public static final class AwsCloudFormationStackProperties.Builder
extends java.lang.Object
AwsCloudFormationStackProperties
Constructor and Description |
---|
Builder() |
public AwsCloudFormationStackProperties.Builder templateFile(java.lang.String templateFile)
AwsCloudFormationStackProperties.getTemplateFile()
templateFile
- A file relative to the assembly root which contains the CloudFormation template for this stack. This parameter is required.this
public AwsCloudFormationStackProperties.Builder assumeRoleArn(java.lang.String assumeRoleArn)
AwsCloudFormationStackProperties.getAssumeRoleArn()
assumeRoleArn
- The role that needs to be assumed to deploy the stack.this
public AwsCloudFormationStackProperties.Builder assumeRoleExternalId(java.lang.String assumeRoleExternalId)
AwsCloudFormationStackProperties.getAssumeRoleExternalId()
assumeRoleExternalId
- External ID to use when assuming role for cloudformation deployments.this
public AwsCloudFormationStackProperties.Builder bootstrapStackVersionSsmParameter(java.lang.String bootstrapStackVersionSsmParameter)
AwsCloudFormationStackProperties.getBootstrapStackVersionSsmParameter()
bootstrapStackVersionSsmParameter
- SSM parameter where the bootstrap stack version number can be found.
Only used if requiresBootstrapStackVersion
is set.
this
public AwsCloudFormationStackProperties.Builder cloudFormationExecutionRoleArn(java.lang.String cloudFormationExecutionRoleArn)
AwsCloudFormationStackProperties.getCloudFormationExecutionRoleArn()
cloudFormationExecutionRoleArn
- The role that is passed to CloudFormation to execute the change set.this
public AwsCloudFormationStackProperties.Builder lookupRole(BootstrapRole lookupRole)
AwsCloudFormationStackProperties.getLookupRole()
lookupRole
- The role to use to look up values from the target AWS account.this
public AwsCloudFormationStackProperties.Builder parameters(java.util.Map<java.lang.String,java.lang.String> parameters)
AwsCloudFormationStackProperties.getParameters()
parameters
- Values for CloudFormation stack parameters that should be passed when the stack is deployed.this
public AwsCloudFormationStackProperties.Builder requiresBootstrapStackVersion(java.lang.Number requiresBootstrapStackVersion)
AwsCloudFormationStackProperties.getRequiresBootstrapStackVersion()
requiresBootstrapStackVersion
- Version of bootstrap stack required to deploy this stack.this
public AwsCloudFormationStackProperties.Builder stackName(java.lang.String stackName)
AwsCloudFormationStackProperties.getStackName()
stackName
- The name to use for the CloudFormation stack.this
public AwsCloudFormationStackProperties.Builder stackTemplateAssetObjectUrl(java.lang.String stackTemplateAssetObjectUrl)
AwsCloudFormationStackProperties.getStackTemplateAssetObjectUrl()
stackTemplateAssetObjectUrl
- If the stack template has already been included in the asset manifest, its asset URL.this
public AwsCloudFormationStackProperties.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
AwsCloudFormationStackProperties.getTags()
tags
- Values for CloudFormation stack tags that should be passed when the stack is deployed.this
public AwsCloudFormationStackProperties.Builder terminationProtection(java.lang.Boolean terminationProtection)
AwsCloudFormationStackProperties.getTerminationProtection()
terminationProtection
- Whether to enable termination protection for this stack.this
public AwsCloudFormationStackProperties.Builder validateOnSynth(java.lang.Boolean validateOnSynth)
AwsCloudFormationStackProperties.getValidateOnSynth()
validateOnSynth
- Whether this stack should be validated by the CLI after synthesis.this
public AwsCloudFormationStackProperties build()
AwsCloudFormationStackProperties
java.lang.NullPointerException
- if any required attribute was not provided