Class ClouddeployTarget.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.clouddeploy_target.ClouddeployTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClouddeployTarget>
- Enclosing class:
- ClouddeployTarget
@Stability(Stable) public static final class ClouddeployTarget.Builder extends Object implements software.amazon.jsii.Builder<ClouddeployTarget>
A fluent builder forClouddeployTarget.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClouddeployTarget.Builderannotations(Map<String,String> annotations)Optional.ClouddeployTarget.BuilderanthosCluster(ClouddeployTargetAnthosCluster anthosCluster)anthos_cluster block.ClouddeployTargetbuild()ClouddeployTarget.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ClouddeployTarget.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ClouddeployTarget.Buildercount(com.hashicorp.cdktf.TerraformCount count)ClouddeployTarget.Buildercount(Number count)static ClouddeployTarget.Buildercreate(software.constructs.Construct scope, String id)ClouddeployTarget.BuildercustomTarget(ClouddeployTargetCustomTarget customTarget)custom_target block.ClouddeployTarget.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ClouddeployTarget.BuilderdeployParameters(Map<String,String> deployParameters)Optional.ClouddeployTarget.Builderdescription(String description)Optional.ClouddeployTarget.BuilderexecutionConfigs(com.hashicorp.cdktf.IResolvable executionConfigs)execution_configs block.ClouddeployTarget.BuilderexecutionConfigs(List<? extends ClouddeployTargetExecutionConfigs> executionConfigs)execution_configs block.ClouddeployTarget.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ClouddeployTarget.Buildergke(ClouddeployTargetGke gke)gke block.ClouddeployTarget.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#id ClouddeployTarget#id}.ClouddeployTarget.Builderlabels(Map<String,String> labels)Optional.ClouddeployTarget.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ClouddeployTarget.Builderlocation(String location)The location for the resource.ClouddeployTarget.BuildermultiTarget(ClouddeployTargetMultiTarget multiTarget)multi_target block.ClouddeployTarget.Buildername(String name)Name of theTarget.ClouddeployTarget.Builderproject(String project)The project for the resource.ClouddeployTarget.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ClouddeployTarget.Builderprovisioners(List<? extends Object> provisioners)ClouddeployTarget.BuilderrequireApproval(com.hashicorp.cdktf.IResolvable requireApproval)Optional.ClouddeployTarget.BuilderrequireApproval(Boolean requireApproval)Optional.ClouddeployTarget.Builderrun(ClouddeployTargetRun run)run block.ClouddeployTarget.Buildertimeouts(ClouddeployTargetTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ClouddeployTarget.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ClouddeployTarget.Builder.
-
connection
@Stability(Experimental) public ClouddeployTarget.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ClouddeployTarget.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ClouddeployTarget.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ClouddeployTarget.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ClouddeployTarget.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ClouddeployTarget.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ClouddeployTarget.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ClouddeployTarget.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ClouddeployTarget.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
location
@Stability(Stable) public ClouddeployTarget.Builder location(String location)
The location for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#location ClouddeployTarget#location}
- Parameters:
location- The location for the resource. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ClouddeployTarget.Builder name(String name)
Name of theTarget. Format is[a-z]([a-z0-9-]{0,61}[a-z0-9])?.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#name ClouddeployTarget#name}
- Parameters:
name- Name of theTarget. Format is[a-z]([a-z0-9-]{0,61}[a-z0-9])?. This parameter is required.- Returns:
this
-
annotations
@Stability(Stable) public ClouddeployTarget.Builder annotations(Map<String,String> annotations)
Optional.User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. **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/5.43.1/docs/resources/clouddeploy_target#annotations ClouddeployTarget#annotations}
- Parameters:
annotations- Optional. This parameter is required.- Returns:
this
-
anthosCluster
@Stability(Stable) public ClouddeployTarget.Builder anthosCluster(ClouddeployTargetAnthosCluster anthosCluster)
anthos_cluster block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#anthos_cluster ClouddeployTarget#anthos_cluster}
- Parameters:
anthosCluster- anthos_cluster block. This parameter is required.- Returns:
this
-
customTarget
@Stability(Stable) public ClouddeployTarget.Builder customTarget(ClouddeployTargetCustomTarget customTarget)
custom_target block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#custom_target ClouddeployTarget#custom_target}
- Parameters:
customTarget- custom_target block. This parameter is required.- Returns:
this
-
deployParameters
@Stability(Stable) public ClouddeployTarget.Builder deployParameters(Map<String,String> deployParameters)
Optional. The deploy parameters to use for this target.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#deploy_parameters ClouddeployTarget#deploy_parameters}
- Parameters:
deployParameters- Optional. The deploy parameters to use for this target. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ClouddeployTarget.Builder description(String description)
Optional. Description of theTarget. Max length is 255 characters.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#description ClouddeployTarget#description}
- Parameters:
description- Optional. Description of theTarget. Max length is 255 characters. This parameter is required.- Returns:
this
-
executionConfigs
@Stability(Stable) public ClouddeployTarget.Builder executionConfigs(com.hashicorp.cdktf.IResolvable executionConfigs)
execution_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#execution_configs ClouddeployTarget#execution_configs}
- Parameters:
executionConfigs- execution_configs block. This parameter is required.- Returns:
this
-
executionConfigs
@Stability(Stable) public ClouddeployTarget.Builder executionConfigs(List<? extends ClouddeployTargetExecutionConfigs> executionConfigs)
execution_configs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#execution_configs ClouddeployTarget#execution_configs}
- Parameters:
executionConfigs- execution_configs block. This parameter is required.- Returns:
this
-
gke
@Stability(Stable) public ClouddeployTarget.Builder gke(ClouddeployTargetGke gke)
gke block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#gke ClouddeployTarget#gke}
- Parameters:
gke- gke block. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ClouddeployTarget.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#id ClouddeployTarget#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#id ClouddeployTarget#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public ClouddeployTarget.Builder labels(Map<String,String> labels)
Optional.Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. **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/5.43.1/docs/resources/clouddeploy_target#labels ClouddeployTarget#labels}
- Parameters:
labels- Optional. This parameter is required.- Returns:
this
-
multiTarget
@Stability(Stable) public ClouddeployTarget.Builder multiTarget(ClouddeployTargetMultiTarget multiTarget)
multi_target block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#multi_target ClouddeployTarget#multi_target}
- Parameters:
multiTarget- multi_target block. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ClouddeployTarget.Builder project(String project)
The project for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#project ClouddeployTarget#project}
- Parameters:
project- The project for the resource. This parameter is required.- Returns:
this
-
requireApproval
@Stability(Stable) public ClouddeployTarget.Builder requireApproval(Boolean requireApproval)
Optional. Whether or not theTargetrequires approval.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#require_approval ClouddeployTarget#require_approval}
- Parameters:
requireApproval- Optional. Whether or not theTargetrequires approval. This parameter is required.- Returns:
this
-
requireApproval
@Stability(Stable) public ClouddeployTarget.Builder requireApproval(com.hashicorp.cdktf.IResolvable requireApproval)
Optional. Whether or not theTargetrequires approval.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#require_approval ClouddeployTarget#require_approval}
- Parameters:
requireApproval- Optional. Whether or not theTargetrequires approval. This parameter is required.- Returns:
this
-
run
@Stability(Stable) public ClouddeployTarget.Builder run(ClouddeployTargetRun run)
run block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#run ClouddeployTarget#run}
- Parameters:
run- run block. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ClouddeployTarget.Builder timeouts(ClouddeployTargetTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_target#timeouts ClouddeployTarget#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ClouddeployTarget build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClouddeployTarget>- Returns:
- a newly built instance of
ClouddeployTarget.
-
-