@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
832 lines • 90.9 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface CloudRunV2WorkerPoolConfig 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 WorkerPool.
*
* 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.41.0/docs/resources/cloud_run_v2_worker_pool#annotations CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#client CloudRunV2WorkerPool#client}
*/
readonly client?: string;
/**
* Arbitrary version identifier for the API client.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#client_version CloudRunV2WorkerPool#client_version}
*/
readonly clientVersion?: string;
/**
* One or more custom audiences that you want this worker pool 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.41.0/docs/resources/cloud_run_v2_worker_pool#custom_audiences CloudRunV2WorkerPool#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 WorkerPool will fail.
* When the field is set to false, deleting the WorkerPool is allowed.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#deletion_protection CloudRunV2WorkerPool#deletion_protection}
*/
readonly deletionProtection?: boolean | cdktf.IResolvable;
/**
* User-provided description of the WorkerPool. This field currently has a 512-character limit.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#description CloudRunV2WorkerPool#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#id CloudRunV2WorkerPool#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;
/**
* 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 WorkerPool.
*
* **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.41.0/docs/resources/cloud_run_v2_worker_pool#labels CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#launch_stage CloudRunV2WorkerPool#launch_stage}
*/
readonly launchStage?: string;
/**
* The location of the cloud run worker pool
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#location CloudRunV2WorkerPool#location}
*/
readonly location: string;
/**
* Name of the WorkerPool.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#name CloudRunV2WorkerPool#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#project CloudRunV2WorkerPool#project}
*/
readonly project?: string;
/**
* binary_authorization block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#binary_authorization CloudRunV2WorkerPool#binary_authorization}
*/
readonly binaryAuthorization?: CloudRunV2WorkerPoolBinaryAuthorization;
/**
* instance_splits block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#instance_splits CloudRunV2WorkerPool#instance_splits}
*/
readonly instanceSplits?: CloudRunV2WorkerPoolInstanceSplits[] | cdktf.IResolvable;
/**
* scaling block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#scaling CloudRunV2WorkerPool#scaling}
*/
readonly scaling?: CloudRunV2WorkerPoolScaling;
/**
* template block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#template CloudRunV2WorkerPool#template}
*/
readonly template: CloudRunV2WorkerPoolTemplate;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#timeouts CloudRunV2WorkerPool#timeouts}
*/
readonly timeouts?: CloudRunV2WorkerPoolTimeouts;
}
export interface CloudRunV2WorkerPoolConditions {
}
export declare function cloudRunV2WorkerPoolConditionsToTerraform(struct?: CloudRunV2WorkerPoolConditions): any;
export declare function cloudRunV2WorkerPoolConditionsToHclTerraform(struct?: CloudRunV2WorkerPoolConditions): any;
export declare class CloudRunV2WorkerPoolConditionsOutputReference 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(): CloudRunV2WorkerPoolConditions | undefined;
set internalValue(value: CloudRunV2WorkerPoolConditions | 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 CloudRunV2WorkerPoolConditionsList 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): CloudRunV2WorkerPoolConditionsOutputReference;
}
export interface CloudRunV2WorkerPoolInstanceSplitStatuses {
}
export declare function cloudRunV2WorkerPoolInstanceSplitStatusesToTerraform(struct?: CloudRunV2WorkerPoolInstanceSplitStatuses): any;
export declare function cloudRunV2WorkerPoolInstanceSplitStatusesToHclTerraform(struct?: CloudRunV2WorkerPoolInstanceSplitStatuses): any;
export declare class CloudRunV2WorkerPoolInstanceSplitStatusesOutputReference 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(): CloudRunV2WorkerPoolInstanceSplitStatuses | undefined;
set internalValue(value: CloudRunV2WorkerPoolInstanceSplitStatuses | undefined);
get percent(): number;
get revision(): string;
get type(): string;
}
export declare class CloudRunV2WorkerPoolInstanceSplitStatusesList 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): CloudRunV2WorkerPoolInstanceSplitStatusesOutputReference;
}
export interface CloudRunV2WorkerPoolTerminalCondition {
}
export declare function cloudRunV2WorkerPoolTerminalConditionToTerraform(struct?: CloudRunV2WorkerPoolTerminalCondition): any;
export declare function cloudRunV2WorkerPoolTerminalConditionToHclTerraform(struct?: CloudRunV2WorkerPoolTerminalCondition): any;
export declare class CloudRunV2WorkerPoolTerminalConditionOutputReference 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(): CloudRunV2WorkerPoolTerminalCondition | undefined;
set internalValue(value: CloudRunV2WorkerPoolTerminalCondition | 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 CloudRunV2WorkerPoolTerminalConditionList 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): CloudRunV2WorkerPoolTerminalConditionOutputReference;
}
export interface CloudRunV2WorkerPoolBinaryAuthorization {
/**
* 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.41.0/docs/resources/cloud_run_v2_worker_pool#breakglass_justification CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#policy CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#use_default CloudRunV2WorkerPool#use_default}
*/
readonly useDefault?: boolean | cdktf.IResolvable;
}
export declare function cloudRunV2WorkerPoolBinaryAuthorizationToTerraform(struct?: CloudRunV2WorkerPoolBinaryAuthorizationOutputReference | CloudRunV2WorkerPoolBinaryAuthorization): any;
export declare function cloudRunV2WorkerPoolBinaryAuthorizationToHclTerraform(struct?: CloudRunV2WorkerPoolBinaryAuthorizationOutputReference | CloudRunV2WorkerPoolBinaryAuthorization): any;
export declare class CloudRunV2WorkerPoolBinaryAuthorizationOutputReference 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(): CloudRunV2WorkerPoolBinaryAuthorization | undefined;
set internalValue(value: CloudRunV2WorkerPoolBinaryAuthorization | 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 CloudRunV2WorkerPoolInstanceSplits {
/**
* Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#percent CloudRunV2WorkerPool#percent}
*/
readonly percent?: number;
/**
* Revision to which to assign this portion of instances, if split allocation is by revision.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#revision CloudRunV2WorkerPool#revision}
*/
readonly revision?: string;
/**
* The allocation type for this instance split. Possible values: ["INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST", "INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#type CloudRunV2WorkerPool#type}
*/
readonly type?: string;
}
export declare function cloudRunV2WorkerPoolInstanceSplitsToTerraform(struct?: CloudRunV2WorkerPoolInstanceSplits | cdktf.IResolvable): any;
export declare function cloudRunV2WorkerPoolInstanceSplitsToHclTerraform(struct?: CloudRunV2WorkerPoolInstanceSplits | cdktf.IResolvable): any;
export declare class CloudRunV2WorkerPoolInstanceSplitsOutputReference 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(): CloudRunV2WorkerPoolInstanceSplits | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2WorkerPoolInstanceSplits | cdktf.IResolvable | undefined);
private _percent?;
get percent(): number;
set percent(value: number);
resetPercent(): void;
get percentInput(): number | undefined;
private _revision?;
get revision(): string;
set revision(value: string);
resetRevision(): void;
get revisionInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
}
export declare class CloudRunV2WorkerPoolInstanceSplitsList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2WorkerPoolInstanceSplits[] | 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): CloudRunV2WorkerPoolInstanceSplitsOutputReference;
}
export interface CloudRunV2WorkerPoolScaling {
/**
* The total number of instances in manual scaling mode.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#manual_instance_count CloudRunV2WorkerPool#manual_instance_count}
*/
readonly manualInstanceCount?: number;
/**
* The maximum count of instances distributed among revisions based on the specified instance split percentages.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#max_instance_count CloudRunV2WorkerPool#max_instance_count}
*/
readonly maxInstanceCount?: number;
/**
* The minimum count of instances distributed among revisions based on the specified instance split percentages.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#min_instance_count CloudRunV2WorkerPool#min_instance_count}
*/
readonly minInstanceCount?: number;
/**
* The scaling mode for the worker pool. It defaults to MANUAL. Possible values: ["AUTOMATIC", "MANUAL"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#scaling_mode CloudRunV2WorkerPool#scaling_mode}
*/
readonly scalingMode?: string;
}
export declare function cloudRunV2WorkerPoolScalingToTerraform(struct?: CloudRunV2WorkerPoolScalingOutputReference | CloudRunV2WorkerPoolScaling): any;
export declare function cloudRunV2WorkerPoolScalingToHclTerraform(struct?: CloudRunV2WorkerPoolScalingOutputReference | CloudRunV2WorkerPoolScaling): any;
export declare class CloudRunV2WorkerPoolScalingOutputReference 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(): CloudRunV2WorkerPoolScaling | undefined;
set internalValue(value: CloudRunV2WorkerPoolScaling | undefined);
private _manualInstanceCount?;
get manualInstanceCount(): number;
set manualInstanceCount(value: number);
resetManualInstanceCount(): void;
get manualInstanceCountInput(): number | undefined;
private _maxInstanceCount?;
get maxInstanceCount(): number;
set maxInstanceCount(value: number);
resetMaxInstanceCount(): void;
get maxInstanceCountInput(): number | undefined;
private _minInstanceCount?;
get minInstanceCount(): number;
set minInstanceCount(value: number);
resetMinInstanceCount(): void;
get minInstanceCountInput(): number | undefined;
private _scalingMode?;
get scalingMode(): string;
set scalingMode(value: string);
resetScalingMode(): void;
get scalingModeInput(): string | undefined;
}
export interface CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef {
/**
* 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.41.0/docs/resources/cloud_run_v2_worker_pool#secret CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#version CloudRunV2WorkerPool#version}
*/
readonly version?: string;
}
export declare function cloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefOutputReference | CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef): any;
export declare function cloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefOutputReference | CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef): any;
export declare class CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefOutputReference 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(): CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef | 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 CloudRunV2WorkerPoolTemplateContainersEnvValueSource {
/**
* secret_key_ref block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#secret_key_ref CloudRunV2WorkerPool#secret_key_ref}
*/
readonly secretKeyRef?: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef;
}
export declare function cloudRunV2WorkerPoolTemplateContainersEnvValueSourceToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceOutputReference | CloudRunV2WorkerPoolTemplateContainersEnvValueSource): any;
export declare function cloudRunV2WorkerPoolTemplateContainersEnvValueSourceToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceOutputReference | CloudRunV2WorkerPoolTemplateContainersEnvValueSource): any;
export declare class CloudRunV2WorkerPoolTemplateContainersEnvValueSourceOutputReference 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(): CloudRunV2WorkerPoolTemplateContainersEnvValueSource | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainersEnvValueSource | undefined);
private _secretKeyRef;
get secretKeyRef(): CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRefOutputReference;
putSecretKeyRef(value: CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef): void;
resetSecretKeyRef(): void;
get secretKeyRefInput(): CloudRunV2WorkerPoolTemplateContainersEnvValueSourceSecretKeyRef | undefined;
}
export interface CloudRunV2WorkerPoolTemplateContainersEnv {
/**
* 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.41.0/docs/resources/cloud_run_v2_worker_pool#name CloudRunV2WorkerPool#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.41.0/docs/resources/cloud_run_v2_worker_pool#value CloudRunV2WorkerPool#value}
*/
readonly value?: string;
/**
* value_source block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#value_source CloudRunV2WorkerPool#value_source}
*/
readonly valueSource?: CloudRunV2WorkerPoolTemplateContainersEnvValueSource;
}
export declare function cloudRunV2WorkerPoolTemplateContainersEnvToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnv | cdktf.IResolvable): any;
export declare function cloudRunV2WorkerPoolTemplateContainersEnvToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersEnv | cdktf.IResolvable): any;
export declare class CloudRunV2WorkerPoolTemplateContainersEnvOutputReference 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(): CloudRunV2WorkerPoolTemplateContainersEnv | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainersEnv | 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(): CloudRunV2WorkerPoolTemplateContainersEnvValueSourceOutputReference;
putValueSource(value: CloudRunV2WorkerPoolTemplateContainersEnvValueSource): void;
resetValueSource(): void;
get valueSourceInput(): CloudRunV2WorkerPoolTemplateContainersEnvValueSource | undefined;
}
export declare class CloudRunV2WorkerPoolTemplateContainersEnvList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2WorkerPoolTemplateContainersEnv[] | 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): CloudRunV2WorkerPoolTemplateContainersEnvOutputReference;
}
export interface CloudRunV2WorkerPoolTemplateContainersResources {
/**
* 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.41.0/docs/resources/cloud_run_v2_worker_pool#limits CloudRunV2WorkerPool#limits}
*/
readonly limits?: {
[key: string]: string;
};
}
export declare function cloudRunV2WorkerPoolTemplateContainersResourcesToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersResourcesOutputReference | CloudRunV2WorkerPoolTemplateContainersResources): any;
export declare function cloudRunV2WorkerPoolTemplateContainersResourcesToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersResourcesOutputReference | CloudRunV2WorkerPoolTemplateContainersResources): any;
export declare class CloudRunV2WorkerPoolTemplateContainersResourcesOutputReference 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(): CloudRunV2WorkerPoolTemplateContainersResources | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainersResources | undefined);
private _limits?;
get limits(): {
[key: string]: string;
};
set limits(value: {
[key: string]: string;
});
resetLimits(): void;
get limitsInput(): {
[key: string]: string;
} | undefined;
}
export interface CloudRunV2WorkerPoolTemplateContainersVolumeMounts {
/**
* Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#mount_path CloudRunV2WorkerPool#mount_path}
*/
readonly mountPath: string;
/**
* This must match the Name of a Volume.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#name CloudRunV2WorkerPool#name}
*/
readonly name: string;
}
export declare function cloudRunV2WorkerPoolTemplateContainersVolumeMountsToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersVolumeMounts | cdktf.IResolvable): any;
export declare function cloudRunV2WorkerPoolTemplateContainersVolumeMountsToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainersVolumeMounts | cdktf.IResolvable): any;
export declare class CloudRunV2WorkerPoolTemplateContainersVolumeMountsOutputReference 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(): CloudRunV2WorkerPoolTemplateContainersVolumeMounts | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainersVolumeMounts | cdktf.IResolvable | undefined);
private _mountPath?;
get mountPath(): string;
set mountPath(value: string);
get mountPathInput(): string | undefined;
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
}
export declare class CloudRunV2WorkerPoolTemplateContainersVolumeMountsList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2WorkerPoolTemplateContainersVolumeMounts[] | 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): CloudRunV2WorkerPoolTemplateContainersVolumeMountsOutputReference;
}
export interface CloudRunV2WorkerPoolTemplateContainers {
/**
* Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#args CloudRunV2WorkerPool#args}
*/
readonly args?: string[];
/**
* Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#command CloudRunV2WorkerPool#command}
*/
readonly command?: string[];
/**
* Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#depends_on CloudRunV2WorkerPool#depends_on}
*/
readonly dependsOn?: string[];
/**
* URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#image CloudRunV2WorkerPool#image}
*/
readonly image: string;
/**
* Name of the container specified as a DNS_LABEL.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#name CloudRunV2WorkerPool#name}
*/
readonly name?: string;
/**
* Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#working_dir CloudRunV2WorkerPool#working_dir}
*/
readonly workingDir?: string;
/**
* env block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#env CloudRunV2WorkerPool#env}
*/
readonly env?: CloudRunV2WorkerPoolTemplateContainersEnv[] | cdktf.IResolvable;
/**
* resources block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#resources CloudRunV2WorkerPool#resources}
*/
readonly resources?: CloudRunV2WorkerPoolTemplateContainersResources;
/**
* volume_mounts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#volume_mounts CloudRunV2WorkerPool#volume_mounts}
*/
readonly volumeMounts?: CloudRunV2WorkerPoolTemplateContainersVolumeMounts[] | cdktf.IResolvable;
}
export declare function cloudRunV2WorkerPoolTemplateContainersToTerraform(struct?: CloudRunV2WorkerPoolTemplateContainers | cdktf.IResolvable): any;
export declare function cloudRunV2WorkerPoolTemplateContainersToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateContainers | cdktf.IResolvable): any;
export declare class CloudRunV2WorkerPoolTemplateContainersOutputReference 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(): CloudRunV2WorkerPoolTemplateContainers | cdktf.IResolvable | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateContainers | cdktf.IResolvable | undefined);
private _args?;
get args(): string[];
set args(value: string[]);
resetArgs(): void;
get argsInput(): string[] | undefined;
private _command?;
get command(): string[];
set command(value: string[]);
resetCommand(): void;
get commandInput(): string[] | undefined;
private _dependsOn?;
get dependsOn(): string[];
set dependsOn(value: string[]);
resetDependsOn(): void;
get dependsOnInput(): string[] | undefined;
private _image?;
get image(): string;
set image(value: string);
get imageInput(): string | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _workingDir?;
get workingDir(): string;
set workingDir(value: string);
resetWorkingDir(): void;
get workingDirInput(): string | undefined;
private _env;
get env(): CloudRunV2WorkerPoolTemplateContainersEnvList;
putEnv(value: CloudRunV2WorkerPoolTemplateContainersEnv[] | cdktf.IResolvable): void;
resetEnv(): void;
get envInput(): cdktf.IResolvable | CloudRunV2WorkerPoolTemplateContainersEnv[] | undefined;
private _resources;
get resources(): CloudRunV2WorkerPoolTemplateContainersResourcesOutputReference;
putResources(value: CloudRunV2WorkerPoolTemplateContainersResources): void;
resetResources(): void;
get resourcesInput(): CloudRunV2WorkerPoolTemplateContainersResources | undefined;
private _volumeMounts;
get volumeMounts(): CloudRunV2WorkerPoolTemplateContainersVolumeMountsList;
putVolumeMounts(value: CloudRunV2WorkerPoolTemplateContainersVolumeMounts[] | cdktf.IResolvable): void;
resetVolumeMounts(): void;
get volumeMountsInput(): cdktf.IResolvable | CloudRunV2WorkerPoolTemplateContainersVolumeMounts[] | undefined;
}
export declare class CloudRunV2WorkerPoolTemplateContainersList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: CloudRunV2WorkerPoolTemplateContainers[] | 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): CloudRunV2WorkerPoolTemplateContainersOutputReference;
}
export interface CloudRunV2WorkerPoolTemplateNodeSelector {
/**
* The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#accelerator CloudRunV2WorkerPool#accelerator}
*/
readonly accelerator: string;
}
export declare function cloudRunV2WorkerPoolTemplateNodeSelectorToTerraform(struct?: CloudRunV2WorkerPoolTemplateNodeSelectorOutputReference | CloudRunV2WorkerPoolTemplateNodeSelector): any;
export declare function cloudRunV2WorkerPoolTemplateNodeSelectorToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateNodeSelectorOutputReference | CloudRunV2WorkerPoolTemplateNodeSelector): any;
export declare class CloudRunV2WorkerPoolTemplateNodeSelectorOutputReference 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(): CloudRunV2WorkerPoolTemplateNodeSelector | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateNodeSelector | undefined);
private _accelerator?;
get accelerator(): string;
set accelerator(value: string);
get acceleratorInput(): string | undefined;
}
export interface CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstance {
/**
* The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#instances CloudRunV2WorkerPool#instances}
*/
readonly instances?: string[];
}
export declare function cloudRunV2WorkerPoolTemplateVolumesCloudSqlInstanceToTerraform(struct?: CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstanceOutputReference | CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstance): any;
export declare function cloudRunV2WorkerPoolTemplateVolumesCloudSqlInstanceToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstanceOutputReference | CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstance): any;
export declare class CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstanceOutputReference 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(): CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstance | undefined;
set internalValue(value: CloudRunV2WorkerPoolTemplateVolumesCloudSqlInstance | undefined);
private _instances?;
get instances(): string[];
set instances(value: string[]);
resetInstances(): void;
get instancesInput(): string[] | undefined;
}
export interface CloudRunV2WorkerPoolTemplateVolumesEmptyDir {
/**
* The different types of medium supported for EmptyDir. Default value: "MEMORY" Possible values: ["MEMORY"]
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#medium CloudRunV2WorkerPool#medium}
*/
readonly medium?: string;
/**
* Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.41.0/docs/resources/cloud_run_v2_worker_pool#size_limit CloudRunV2WorkerPool#size_limit}
*/
readonly sizeLimit?: string;
}
export declare function cloudRunV2WorkerPoolTemplateVolumesEmptyDirToTerraform(struct?: CloudRunV2WorkerPoolTemplateVolumesEmptyDirOutputReference | CloudRunV2WorkerPoolTemplateVolumesEmptyDir): any;
export declare function cloudRunV2WorkerPoolTemplateVolumesEmptyDirToHclTerraform(struct?: CloudRunV2WorkerPoolTemplateVolumesEmptyDirOutputReference | CloudRunV2WorkerPoolTemplateVolumesEmptyDir): any;
export declare class CloudRunV2WorkerPoolTemplateVolumesEmptyDirOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribut