Class DeploymentManagerDeployment.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.deployment_manager_deployment.DeploymentManagerDeployment.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentManagerDeployment>
- Enclosing class:
- DeploymentManagerDeployment
@Stability(Stable) public static final class DeploymentManagerDeployment.Builder extends Object implements software.amazon.jsii.Builder<DeploymentManagerDeployment>
A fluent builder forDeploymentManagerDeployment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentManagerDeploymentbuild()DeploymentManagerDeployment.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)DeploymentManagerDeployment.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)DeploymentManagerDeployment.Buildercount(com.hashicorp.cdktf.TerraformCount count)DeploymentManagerDeployment.Buildercount(Number count)static DeploymentManagerDeployment.Buildercreate(software.constructs.Construct scope, String id)DeploymentManagerDeployment.BuildercreatePolicy(String createPolicy)Set the policy to use for creating new resources.DeploymentManagerDeployment.BuilderdeletePolicy(String deletePolicy)Set the policy to use for deleting new resources on update/delete.DeploymentManagerDeployment.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)DeploymentManagerDeployment.Builderdescription(String description)Optional user-provided description of deployment.DeploymentManagerDeployment.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)DeploymentManagerDeployment.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#id DeploymentManagerDeployment#id}.DeploymentManagerDeployment.Builderlabels(com.hashicorp.cdktf.IResolvable labels)labels block.DeploymentManagerDeployment.Builderlabels(List<? extends DeploymentManagerDeploymentLabels> labels)labels block.DeploymentManagerDeployment.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)DeploymentManagerDeployment.Buildername(String name)Unique name for the deployment.DeploymentManagerDeployment.Builderpreview(com.hashicorp.cdktf.IResolvable preview)If set to true, a deployment is created with "shell" resources that are not actually instantiated.DeploymentManagerDeployment.Builderpreview(Boolean preview)If set to true, a deployment is created with "shell" resources that are not actually instantiated.DeploymentManagerDeployment.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}.DeploymentManagerDeployment.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)DeploymentManagerDeployment.Builderprovisioners(List<? extends Object> provisioners)DeploymentManagerDeployment.Buildertarget(DeploymentManagerDeploymentTarget target)target block.DeploymentManagerDeployment.Buildertimeouts(DeploymentManagerDeploymentTimeouts timeouts)timeouts block.
-
-
-
Method Detail
-
create
@Stability(Stable) public static DeploymentManagerDeployment.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
DeploymentManagerDeployment.Builder.
-
connection
@Stability(Experimental) public DeploymentManagerDeployment.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public DeploymentManagerDeployment.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DeploymentManagerDeployment.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DeploymentManagerDeployment.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public DeploymentManagerDeployment.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public DeploymentManagerDeployment.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public DeploymentManagerDeployment.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public DeploymentManagerDeployment.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public DeploymentManagerDeployment.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public DeploymentManagerDeployment.Builder name(String name)
Unique name for the deployment.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#name DeploymentManagerDeployment#name}
- Parameters:
name- Unique name for the deployment. This parameter is required.- Returns:
this
-
target
@Stability(Stable) public DeploymentManagerDeployment.Builder target(DeploymentManagerDeploymentTarget target)
target block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#target DeploymentManagerDeployment#target}
- Parameters:
target- target block. This parameter is required.- Returns:
this
-
createPolicy
@Stability(Stable) public DeploymentManagerDeployment.Builder createPolicy(String createPolicy)
Set the policy to use for creating new resources.Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#create_policy DeploymentManagerDeployment#create_policy}
- Parameters:
createPolicy- Set the policy to use for creating new resources. This parameter is required.- Returns:
this
-
deletePolicy
@Stability(Stable) public DeploymentManagerDeployment.Builder deletePolicy(String deletePolicy)
Set the policy to use for deleting new resources on update/delete.Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#delete_policy DeploymentManagerDeployment#delete_policy}
- Parameters:
deletePolicy- Set the policy to use for deleting new resources on update/delete. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public DeploymentManagerDeployment.Builder description(String description)
Optional user-provided description of deployment.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#description DeploymentManagerDeployment#description}
- Parameters:
description- Optional user-provided description of deployment. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public DeploymentManagerDeployment.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#id DeploymentManagerDeployment#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/deployment_manager_deployment#id DeploymentManagerDeployment#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public DeploymentManagerDeployment.Builder labels(com.hashicorp.cdktf.IResolvable labels)
labels block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}
- Parameters:
labels- labels block. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public DeploymentManagerDeployment.Builder labels(List<? extends DeploymentManagerDeploymentLabels> labels)
labels block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}
- Parameters:
labels- labels block. This parameter is required.- Returns:
this
-
preview
@Stability(Stable) public DeploymentManagerDeployment.Builder preview(Boolean preview)
If set to true, a deployment is created with "shell" resources that are not actually instantiated.This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}
- Parameters:
preview- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This parameter is required.- Returns:
this
-
preview
@Stability(Stable) public DeploymentManagerDeployment.Builder preview(com.hashicorp.cdktf.IResolvable preview)
If set to true, a deployment is created with "shell" resources that are not actually instantiated.This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}
- Parameters:
preview- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public DeploymentManagerDeployment.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public DeploymentManagerDeployment.Builder timeouts(DeploymentManagerDeploymentTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#timeouts DeploymentManagerDeployment#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public DeploymentManagerDeployment build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentManagerDeployment>- Returns:
- a newly built instance of
DeploymentManagerDeployment.
-
-