public static final class NestedStackProps.Builder
extends java.lang.Object
NestedStackProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NestedStackProps |
build()
Builds the configured instance.
|
NestedStackProps.Builder |
notificationArns(java.util.List<java.lang.String> notificationArns)
Sets the value of
NestedStackProps.getNotificationArns() |
NestedStackProps.Builder |
parameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Sets the value of
NestedStackProps.getParameters() |
NestedStackProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
NestedStackProps.getRemovalPolicy() |
NestedStackProps.Builder |
timeout(Duration timeout)
Sets the value of
NestedStackProps.getTimeout() |
public NestedStackProps.Builder notificationArns(java.util.List<java.lang.String> notificationArns)
NestedStackProps.getNotificationArns()
notificationArns
- The Simple Notification Service (SNS) topics to publish stack related events.this
public NestedStackProps.Builder parameters(java.util.Map<java.lang.String,java.lang.String> parameters)
NestedStackProps.getParameters()
parameters
- The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.
Each parameter has a name corresponding
to a parameter defined in the embedded template and a value representing
the value that you want to set for the parameter.
The nested stack construct will automatically synthesize parameters in order to bind references from the parent stack(s) into the nested stack.
this
public NestedStackProps.Builder removalPolicy(RemovalPolicy removalPolicy)
NestedStackProps.getRemovalPolicy()
removalPolicy
- Policy to apply when the nested stack is removed.
The default is Destroy
, because all Removal Policies of resources inside the
Nested Stack should already have been set correctly. You normally should
not need to set this value.this
public NestedStackProps.Builder timeout(Duration timeout)
NestedStackProps.getTimeout()
timeout
- The length of time that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state.
When CloudFormation detects that the nested stack has reached the
CREATE_COMPLETE state, it marks the nested stack resource as
CREATE_COMPLETE in the parent stack and resumes creating the parent stack.
If the timeout period expires before the nested stack reaches
CREATE_COMPLETE, CloudFormation marks the nested stack as failed and rolls
back both the nested stack and parent stack.this
public NestedStackProps build()
NestedStackProps
java.lang.NullPointerException
- if any required attribute was not provided