@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
837 lines • 127 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface CloudRunV2ServiceConfig extends cdktf.TerraformMetaArguments {
/**
* Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
*
* Cloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected in new resources.
* All system annotations in v1 now have a corresponding field in v2 Service.
*
* This field follows Kubernetes annotations' namespacing, limits, and rules.
*
* **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
* Please refer to the field 'effective_annotations' for all of the annotations present on the resource.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#annotations CloudRunV2Service#annotations}
*/
readonly annotations?: {
[key: string]: string;
};
/**
* Arbitrary identifier for the API client.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#client CloudRunV2Service#client}
*/
readonly client?: string;
/**
* Arbitrary version identifier for the API client.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#client_version CloudRunV2Service#client_version}
*/
readonly clientVersion?: string;
/**
* One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests.
* For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#custom_audiences CloudRunV2Service#custom_audiences}
*/
readonly customAudiences?: string[];
/**
* Whether Terraform will be prevented from destroying the service. Defaults to true.
* When a'terraform destroy' or 'terraform apply' would delete the service,
* the command will fail if this field is not set to false in Terraform state.
* When the field is set to true or unset in Terraform state, a 'terraform apply'
* or 'terraform destroy' that would delete the service will fail.
* When the field is set to false, deleting the service is allowed.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#deletion_protection CloudRunV2Service#deletion_protection}
*/
readonly deletionProtection?: boolean | cdktf.IResolvable;
/**
* User-provided description of the Service. This field currently has a 512-character limit.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#description CloudRunV2Service#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#id CloudRunV2Service#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. Possible values: ["INGRESS_TRAFFIC_ALL", "INGRESS_TRAFFIC_INTERNAL_ONLY", "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#ingress CloudRunV2Service#ingress}
*/
readonly ingress?: string;
/**
* Disables IAM permission check for run.routes.invoke for callers of this service. This feature is available by invitation only. For more information, visit https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#invoker_iam_disabled CloudRunV2Service#invoker_iam_disabled}
*/
readonly invokerIamDisabled?: boolean | cdktf.IResolvable;
/**
* Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,
* environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
*
* Cloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected.
* All system labels in v1 now have a corresponding field in v2 Service.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field 'effective_labels' for all of the labels present on the resource.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#labels CloudRunV2Service#labels}
*/
readonly labels?: {
[key: string]: string;
};
/**
* The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/products#product-launch-stages). Cloud Run supports ALPHA, BETA, and GA.
* If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.
*
* For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#launch_stage CloudRunV2Service#launch_stage}
*/
readonly launchStage?: string;
/**
* The location of the cloud run service
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#location CloudRunV2Service#location}
*/
readonly location: string;
/**
* Name of the Service.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#project CloudRunV2Service#project}
*/
readonly project?: string;
/**
* binary_authorization block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#binary_authorization CloudRunV2Service#binary_authorization}
*/
readonly binaryAuthorization?: CloudRunV2ServiceBinaryAuthorization;
/**
* scaling block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#scaling CloudRunV2Service#scaling}
*/
readonly scaling?: CloudRunV2ServiceScaling;
/**
* template block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#template CloudRunV2Service#template}
*/
readonly template: CloudRunV2ServiceTemplate;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#timeouts CloudRunV2Service#timeouts}
*/
readonly timeouts?: CloudRunV2ServiceTimeouts;
/**
* traffic block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#traffic CloudRunV2Service#traffic}
*/
readonly traffic?: CloudRunV2ServiceTraffic[] | cdktf.IResolvable;
}
export interface CloudRunV2ServiceConditions {
}
export declare function cloudRunV2ServiceConditionsToTerraform(struct?: CloudRunV2ServiceConditions): any;
export declare function cloudRunV2ServiceConditionsToHclTerraform(struct?: CloudRunV2ServiceConditions): any;
export declare class CloudRunV2ServiceConditionsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): CloudRunV2ServiceConditions | undefined;
set internalValue(value: CloudRunV2ServiceConditions | undefined);
get executionReason(): string;
get lastTransitionTime(): string;
get message(): string;
get reason(): string;
get revisionReason(): string;
get severity(): string;
get state(): string;
get type(): string;
}
export declare class CloudRunV2ServiceConditionsList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): CloudRunV2ServiceConditionsOutputReference;
}
export interface CloudRunV2ServiceTerminalCondition {
}
export declare function cloudRunV2ServiceTerminalConditionToTerraform(struct?: CloudRunV2ServiceTerminalCondition): any;
export declare function cloudRunV2ServiceTerminalConditionToHclTerraform(struct?: CloudRunV2ServiceTerminalCondition): any;
export declare class CloudRunV2ServiceTerminalConditionOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): CloudRunV2ServiceTerminalCondition | undefined;
set internalValue(value: CloudRunV2ServiceTerminalCondition | undefined);
get executionReason(): string;
get lastTransitionTime(): string;
get message(): string;
get reason(): string;
get revisionReason(): string;
get severity(): string;
get state(): string;
get type(): string;
}
export declare class CloudRunV2ServiceTerminalConditionList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): CloudRunV2ServiceTerminalConditionOutputReference;
}
export interface CloudRunV2ServiceTrafficStatuses {
}
export declare function cloudRunV2ServiceTrafficStatusesToTerraform(struct?: CloudRunV2ServiceTrafficStatuses): any;
export declare function cloudRunV2ServiceTrafficStatusesToHclTerraform(struct?: CloudRunV2ServiceTrafficStatuses): any;
export declare class CloudRunV2ServiceTrafficStatusesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): CloudRunV2ServiceTrafficStatuses | undefined;
set internalValue(value: CloudRunV2ServiceTrafficStatuses | undefined);
get percent(): number;
get revision(): string;
get tag(): string;
get type(): string;
get uri(): string;
}
export declare class CloudRunV2ServiceTrafficStatusesList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): CloudRunV2ServiceTrafficStatusesOutputReference;
}
export interface CloudRunV2ServiceBinaryAuthorization {
/**
* If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#breakglass_justification CloudRunV2Service#breakglass_justification}
*/
readonly breakglassJustification?: string;
/**
* The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#policy CloudRunV2Service#policy}
*/
readonly policy?: string;
/**
* If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#use_default CloudRunV2Service#use_default}
*/
readonly useDefault?: boolean | cdktf.IResolvable;
}
export declare function cloudRunV2ServiceBinaryAuthorizationToTerraform(struct?: CloudRunV2ServiceBinaryAuthorizationOutputReference | CloudRunV2ServiceBinaryAuthorization): any;
export declare function cloudRunV2ServiceBinaryAuthorizationToHclTerraform(struct?: CloudRunV2ServiceBinaryAuthorizationOutputReference | CloudRunV2ServiceBinaryAuthorization): any;
export declare class CloudRunV2ServiceBinaryAuthorizationOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceBinaryAuthorization | undefined;
set internalValue(value: CloudRunV2ServiceBinaryAuthorization | undefined);
private _breakglassJustification?;
get breakglassJustification(): string;
set breakglassJustification(value: string);
resetBreakglassJustification(): void;
get breakglassJustificationInput(): string | undefined;
private _policy?;
get policy(): string;
set policy(value: string);
resetPolicy(): void;
get policyInput(): string | undefined;
private _useDefault?;
get useDefault(): boolean | cdktf.IResolvable;
set useDefault(value: boolean | cdktf.IResolvable);
resetUseDefault(): void;
get useDefaultInput(): boolean | cdktf.IResolvable | undefined;
}
export interface CloudRunV2ServiceScaling {
/**
* Minimum number of instances for the service, to be divided among all revisions receiving traffic.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#min_instance_count CloudRunV2Service#min_instance_count}
*/
readonly minInstanceCount?: number;
}
export declare function cloudRunV2ServiceScalingToTerraform(struct?: CloudRunV2ServiceScalingOutputReference | CloudRunV2ServiceScaling): any;
export declare function cloudRunV2ServiceScalingToHclTerraform(struct?: CloudRunV2ServiceScalingOutputReference | CloudRunV2ServiceScaling): any;
export declare class CloudRunV2ServiceScalingOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceScaling | undefined;
set internalValue(value: CloudRunV2ServiceScaling | undefined);
private _minInstanceCount?;
get minInstanceCount(): number;
set minInstanceCount(value: number);
resetMinInstanceCount(): void;
get minInstanceCountInput(): number | undefined;
}
export interface CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef {
/**
* The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#secret CloudRunV2Service#secret}
*/
readonly secret: string;
/**
* The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#version CloudRunV2Service#version}
*/
readonly version?: string;
}
export declare function cloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefToTerraform(struct?: CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefOutputReference | CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef): any;
export declare function cloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefOutputReference | CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef): any;
export declare class CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef | undefined);
private _secret?;
get secret(): string;
set secret(value: string);
get secretInput(): string | undefined;
private _version?;
get version(): string;
set version(value: string);
resetVersion(): void;
get versionInput(): string | undefined;
}
export interface CloudRunV2ServiceTemplateContainersEnvValueSource {
/**
* secret_key_ref block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#secret_key_ref CloudRunV2Service#secret_key_ref}
*/
readonly secretKeyRef?: CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef;
}
export declare function cloudRunV2ServiceTemplateContainersEnvValueSourceToTerraform(struct?: CloudRunV2ServiceTemplateContainersEnvValueSourceOutputReference | CloudRunV2ServiceTemplateContainersEnvValueSource): any;
export declare function cloudRunV2ServiceTemplateContainersEnvValueSourceToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersEnvValueSourceOutputReference | CloudRunV2ServiceTemplateContainersEnvValueSource): any;
export declare class CloudRunV2ServiceTemplateContainersEnvValueSourceOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersEnvValueSource | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersEnvValueSource | undefined);
private _secretKeyRef;
get secretKeyRef(): CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRefOutputReference;
putSecretKeyRef(value: CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef): void;
resetSecretKeyRef(): void;
get secretKeyRefInput(): CloudRunV2ServiceTemplateContainersEnvValueSourceSecretKeyRef | undefined;
}
export interface CloudRunV2ServiceTemplateContainersEnv {
/**
* Name of the environment variable. Must be a C_IDENTIFIER, and may not exceed 32768 characters.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}
*/
readonly name: string;
/**
* Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#value CloudRunV2Service#value}
*/
readonly value?: string;
/**
* value_source block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#value_source CloudRunV2Service#value_source}
*/
readonly valueSource?: CloudRunV2ServiceTemplateContainersEnvValueSource;
}
export declare function cloudRunV2ServiceTemplateContainersEnvToTerraform(struct?: CloudRunV2ServiceTemplateContainersEnv | cdktf.IResolvable): any;
export declare function cloudRunV2ServiceTemplateContainersEnvToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersEnv | cdktf.IResolvable): any;
export declare class CloudRunV2ServiceTemplateContainersEnvOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): CloudRunV2ServiceTemplateContainersEnv | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersEnv | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
private _valueSource;
get valueSource(): CloudRunV2ServiceTemplateContainersEnvValueSourceOutputReference;
putValueSource(value: CloudRunV2ServiceTemplateContainersEnvValueSource): void;
resetValueSource(): void;
get valueSourceInput(): CloudRunV2ServiceTemplateContainersEnvValueSource | undefined;
}
export declare class CloudRunV2ServiceTemplateContainersEnvList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2ServiceTemplateContainersEnv[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): CloudRunV2ServiceTemplateContainersEnvOutputReference;
}
export interface CloudRunV2ServiceTemplateContainersLivenessProbeGrpc {
/**
* Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#port CloudRunV2Service#port}
*/
readonly port?: number;
/**
* The name of the service to place in the gRPC HealthCheckRequest
* (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
* If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#service CloudRunV2Service#service}
*/
readonly service?: string;
}
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeGrpcToTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeGrpcOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeGrpc): any;
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeGrpcToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeGrpcOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeGrpc): any;
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersLivenessProbeGrpc | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersLivenessProbeGrpc | undefined);
private _port?;
get port(): number;
set port(value: number);
resetPort(): void;
get portInput(): number | undefined;
private _service?;
get service(): string;
set service(value: string);
resetService(): void;
get serviceInput(): string | undefined;
}
export interface CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders {
/**
* The header field name
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}
*/
readonly name: string;
/**
* The header field value
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#value CloudRunV2Service#value}
*/
readonly value?: string;
}
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersToTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders | cdktf.IResolvable): any;
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders | cdktf.IResolvable): any;
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
}
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersOutputReference;
}
export interface CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet {
/**
* Path to access on the HTTP server. Defaults to '/'.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#path CloudRunV2Service#path}
*/
readonly path?: string;
/**
* Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#port CloudRunV2Service#port}
*/
readonly port?: number;
/**
* http_headers block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#http_headers CloudRunV2Service#http_headers}
*/
readonly httpHeaders?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders[] | cdktf.IResolvable;
}
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeHttpGetToTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet): any;
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeHttpGetToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet): any;
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet | undefined);
private _path?;
get path(): string;
set path(value: string);
resetPath(): void;
get pathInput(): string | undefined;
private _port?;
get port(): number;
set port(value: number);
resetPort(): void;
get portInput(): number | undefined;
private _httpHeaders;
get httpHeaders(): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeadersList;
putHttpHeaders(value: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders[] | cdktf.IResolvable): void;
resetHttpHeaders(): void;
get httpHeadersInput(): cdktf.IResolvable | CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetHttpHeaders[] | undefined;
}
export interface CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket {
/**
* Port number to access on the container. Must be in the range 1 to 65535.
* If not specified, defaults to the exposed port of the container, which
* is the value of container.ports[0].containerPort.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#port CloudRunV2Service#port}
*/
readonly port: number;
}
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketToTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket): any;
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket): any;
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket | undefined);
private _port?;
get port(): number;
set port(value: number);
get portInput(): number | undefined;
}
export interface CloudRunV2ServiceTemplateContainersLivenessProbe {
/**
* Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#failure_threshold CloudRunV2Service#failure_threshold}
*/
readonly failureThreshold?: number;
/**
* Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#initial_delay_seconds CloudRunV2Service#initial_delay_seconds}
*/
readonly initialDelaySeconds?: number;
/**
* How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#period_seconds CloudRunV2Service#period_seconds}
*/
readonly periodSeconds?: number;
/**
* Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#timeout_seconds CloudRunV2Service#timeout_seconds}
*/
readonly timeoutSeconds?: number;
/**
* grpc block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#grpc CloudRunV2Service#grpc}
*/
readonly grpc?: CloudRunV2ServiceTemplateContainersLivenessProbeGrpc;
/**
* http_get block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#http_get CloudRunV2Service#http_get}
*/
readonly httpGet?: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet;
/**
* tcp_socket block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#tcp_socket CloudRunV2Service#tcp_socket}
*/
readonly tcpSocket?: CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket;
}
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeToTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbe): any;
export declare function cloudRunV2ServiceTemplateContainersLivenessProbeToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersLivenessProbeOutputReference | CloudRunV2ServiceTemplateContainersLivenessProbe): any;
export declare class CloudRunV2ServiceTemplateContainersLivenessProbeOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersLivenessProbe | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersLivenessProbe | undefined);
private _failureThreshold?;
get failureThreshold(): number;
set failureThreshold(value: number);
resetFailureThreshold(): void;
get failureThresholdInput(): number | undefined;
private _initialDelaySeconds?;
get initialDelaySeconds(): number;
set initialDelaySeconds(value: number);
resetInitialDelaySeconds(): void;
get initialDelaySecondsInput(): number | undefined;
private _periodSeconds?;
get periodSeconds(): number;
set periodSeconds(value: number);
resetPeriodSeconds(): void;
get periodSecondsInput(): number | undefined;
private _timeoutSeconds?;
get timeoutSeconds(): number;
set timeoutSeconds(value: number);
resetTimeoutSeconds(): void;
get timeoutSecondsInput(): number | undefined;
private _grpc;
get grpc(): CloudRunV2ServiceTemplateContainersLivenessProbeGrpcOutputReference;
putGrpc(value: CloudRunV2ServiceTemplateContainersLivenessProbeGrpc): void;
resetGrpc(): void;
get grpcInput(): CloudRunV2ServiceTemplateContainersLivenessProbeGrpc | undefined;
private _httpGet;
get httpGet(): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGetOutputReference;
putHttpGet(value: CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet): void;
resetHttpGet(): void;
get httpGetInput(): CloudRunV2ServiceTemplateContainersLivenessProbeHttpGet | undefined;
private _tcpSocket;
get tcpSocket(): CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocketOutputReference;
putTcpSocket(value: CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket): void;
resetTcpSocket(): void;
get tcpSocketInput(): CloudRunV2ServiceTemplateContainersLivenessProbeTcpSocket | undefined;
}
export interface CloudRunV2ServiceTemplateContainersPorts {
/**
* Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#container_port CloudRunV2Service#container_port}
*/
readonly containerPort?: number;
/**
* If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}
*/
readonly name?: string;
}
export declare function cloudRunV2ServiceTemplateContainersPortsToTerraform(struct?: CloudRunV2ServiceTemplateContainersPortsOutputReference | CloudRunV2ServiceTemplateContainersPorts): any;
export declare function cloudRunV2ServiceTemplateContainersPortsToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersPortsOutputReference | CloudRunV2ServiceTemplateContainersPorts): any;
export declare class CloudRunV2ServiceTemplateContainersPortsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersPorts | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersPorts | undefined);
private _containerPort?;
get containerPort(): number;
set containerPort(value: number);
resetContainerPort(): void;
get containerPortInput(): number | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
}
export interface CloudRunV2ServiceTemplateContainersResources {
/**
* Determines whether CPU is only allocated during requests. True by default if the parent 'resources' field is not set. However, if
* 'resources' is set, this field must be explicitly set to true to preserve the default behavior.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#cpu_idle CloudRunV2Service#cpu_idle}
*/
readonly cpuIdle?: boolean | cdktf.IResolvable;
/**
* Only memory, CPU, and nvidia.com/gpu are supported. Use key 'cpu' for CPU limit, 'memory' for memory limit, 'nvidia.com/gpu' for gpu limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#limits CloudRunV2Service#limits}
*/
readonly limits?: {
[key: string]: string;
};
/**
* Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#startup_cpu_boost CloudRunV2Service#startup_cpu_boost}
*/
readonly startupCpuBoost?: boolean | cdktf.IResolvable;
}
export declare function cloudRunV2ServiceTemplateContainersResourcesToTerraform(struct?: CloudRunV2ServiceTemplateContainersResourcesOutputReference | CloudRunV2ServiceTemplateContainersResources): any;
export declare function cloudRunV2ServiceTemplateContainersResourcesToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersResourcesOutputReference | CloudRunV2ServiceTemplateContainersResources): any;
export declare class CloudRunV2ServiceTemplateContainersResourcesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): CloudRunV2ServiceTemplateContainersResources | undefined;
set internalValue(value: CloudRunV2ServiceTemplateContainersResources | undefined);
private _cpuIdle?;
get cpuIdle(): boolean | cdktf.IResolvable;
set cpuIdle(value: boolean | cdktf.IResolvable);
resetCpuIdle(): void;
get cpuIdleInput(): boolean | cdktf.IResolvable | undefined;
private _limits?;
get limits(): {
[key: string]: string;
};
set limits(value: {
[key: string]: string;
});
resetLimits(): void;
get limitsInput(): {
[key: string]: string;
} | undefined;
private _startupCpuBoost?;
get startupCpuBoost(): boolean | cdktf.IResolvable;
set startupCpuBoost(value: boolean | cdktf.IResolvable);
resetStartupCpuBoost(): void;
get startupCpuBoostInput(): boolean | cdktf.IResolvable | undefined;
}
export interface CloudRunV2ServiceTemplateContainersStartupProbeGrpc {
/**
* Port number to access on the container. Number must be in the range 1 to 65535.
* If not specified, defaults to the same value as container.ports[0].containerPort.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#port CloudRunV2Service#port}
*/
readonly port?: number;
/**
* The name of the service to place in the gRPC HealthCheckRequest
* (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
* If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/cloud_run_v2_service#service CloudRunV2Service#service}
*/
readonly service?: string;
}
export declare function cloudRunV2ServiceTemplateContainersStartupProbeGrpcToTerraform(struct?: CloudRunV2ServiceTemplateContainersStartupProbeGrpcOutputReference | CloudRunV2ServiceTemplateContainersStartupProbeGrpc): any;
export declare function cloudRunV2ServiceTemplateContainersStartupProbeGrpcToHclTerraform(struct?: CloudRunV2ServiceTemplateContainersStartupProbeGrpcOutputReference | CloudRunV2ServiceTemplateContainersStartupProbeGrpc): any;
export declare class CloudRunV2ServiceTemplateContainersStartupProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue