Class CloudformationStackConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.cloudformation_stack.CloudformationStackConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudformationStackConfig>
- Enclosing interface:
- CloudformationStackConfig
@Stability(Stable) public static final class CloudformationStackConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudformationStackConfig>
A builder forCloudformationStackConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public CloudformationStackConfig.Builder name(String name)
Sets the value ofCloudformationStackConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#name CloudformationStack#name}. This parameter is required.- Returns:
this
-
capabilities
@Stability(Stable) public CloudformationStackConfig.Builder capabilities(List<String> capabilities)
Sets the value ofCloudformationStackConfig.getCapabilities()- Parameters:
capabilities- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#capabilities CloudformationStack#capabilities}.- Returns:
this
-
disableRollback
@Stability(Stable) public CloudformationStackConfig.Builder disableRollback(Boolean disableRollback)
Sets the value ofCloudformationStackConfig.getDisableRollback()- Parameters:
disableRollback- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#disable_rollback CloudformationStack#disable_rollback}.- Returns:
this
-
disableRollback
@Stability(Stable) public CloudformationStackConfig.Builder disableRollback(com.hashicorp.cdktf.IResolvable disableRollback)
Sets the value ofCloudformationStackConfig.getDisableRollback()- Parameters:
disableRollback- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#disable_rollback CloudformationStack#disable_rollback}.- Returns:
this
-
iamRoleArn
@Stability(Stable) public CloudformationStackConfig.Builder iamRoleArn(String iamRoleArn)
Sets the value ofCloudformationStackConfig.getIamRoleArn()- Parameters:
iamRoleArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#iam_role_arn CloudformationStack#iam_role_arn}.- Returns:
this
-
id
@Stability(Stable) public CloudformationStackConfig.Builder id(String id)
Sets the value ofCloudformationStackConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#id CloudformationStack#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.- Returns:
this
-
notificationArns
@Stability(Stable) public CloudformationStackConfig.Builder notificationArns(List<String> notificationArns)
Sets the value ofCloudformationStackConfig.getNotificationArns()- Parameters:
notificationArns- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#notification_arns CloudformationStack#notification_arns}.- Returns:
this
-
onFailure
@Stability(Stable) public CloudformationStackConfig.Builder onFailure(String onFailure)
Sets the value ofCloudformationStackConfig.getOnFailure()- Parameters:
onFailure- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#on_failure CloudformationStack#on_failure}.- Returns:
this
-
parameters
@Stability(Stable) public CloudformationStackConfig.Builder parameters(Map<String,String> parameters)
Sets the value ofCloudformationStackConfig.getParameters()- Parameters:
parameters- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#parameters CloudformationStack#parameters}.- Returns:
this
-
policyBody
@Stability(Stable) public CloudformationStackConfig.Builder policyBody(String policyBody)
Sets the value ofCloudformationStackConfig.getPolicyBody()- Parameters:
policyBody- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#policy_body CloudformationStack#policy_body}.- Returns:
this
-
policyUrl
@Stability(Stable) public CloudformationStackConfig.Builder policyUrl(String policyUrl)
Sets the value ofCloudformationStackConfig.getPolicyUrl()- Parameters:
policyUrl- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#policy_url CloudformationStack#policy_url}.- Returns:
this
-
tags
@Stability(Stable) public CloudformationStackConfig.Builder tags(Map<String,String> tags)
Sets the value ofCloudformationStackConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#tags CloudformationStack#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public CloudformationStackConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofCloudformationStackConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#tags_all CloudformationStack#tags_all}.- Returns:
this
-
templateBody
@Stability(Stable) public CloudformationStackConfig.Builder templateBody(String templateBody)
Sets the value ofCloudformationStackConfig.getTemplateBody()- Parameters:
templateBody- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#template_body CloudformationStack#template_body}.- Returns:
this
-
templateUrl
@Stability(Stable) public CloudformationStackConfig.Builder templateUrl(String templateUrl)
Sets the value ofCloudformationStackConfig.getTemplateUrl()- Parameters:
templateUrl- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#template_url CloudformationStack#template_url}.- Returns:
this
-
timeoutInMinutes
@Stability(Stable) public CloudformationStackConfig.Builder timeoutInMinutes(Number timeoutInMinutes)
Sets the value ofCloudformationStackConfig.getTimeoutInMinutes()- Parameters:
timeoutInMinutes- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#timeout_in_minutes CloudformationStack#timeout_in_minutes}.- Returns:
this
-
timeouts
@Stability(Stable) public CloudformationStackConfig.Builder timeouts(CloudformationStackTimeouts timeouts)
Sets the value ofCloudformationStackConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/cloudformation_stack#timeouts CloudformationStack#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public CloudformationStackConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudformationStackConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudformationStackConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudformationStackConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudformationStackConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudformationStackConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudformationStackConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudformationStackConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudformationStackConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudformationStackConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudformationStackConfig>- Returns:
- a new instance of
CloudformationStackConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-