Package software.amazon.awscdk.core
Class NestedStackProps.Builder
java.lang.Object
software.amazon.awscdk.core.NestedStackProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NestedStackProps>
- Enclosing interface:
- NestedStackProps
@Stability(Stable)
public static final class NestedStackProps.Builder
extends Object
implements software.amazon.jsii.Builder<NestedStackProps>
A builder for
NestedStackProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.notificationArns
(List<String> notificationArns) Sets the value ofNestedStackProps.getNotificationArns()
parameters
(Map<String, String> parameters) Sets the value ofNestedStackProps.getParameters()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofNestedStackProps.getRemovalPolicy()
Sets the value ofNestedStackProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
notificationArns
Sets the value ofNestedStackProps.getNotificationArns()
- Parameters:
notificationArns
- The Simple Notification Service (SNS) topics to publish stack related events.- Returns:
this
-
parameters
Sets the value ofNestedStackProps.getParameters()
- Parameters:
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.
- Returns:
this
-
removalPolicy
Sets the value ofNestedStackProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Policy to apply when the nested stack is removed. The default isDestroy
, 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.- Returns:
this
-
timeout
Sets the value ofNestedStackProps.getTimeout()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NestedStackProps>
- Returns:
- a new instance of
NestedStackProps
- Throws:
NullPointerException
- if any required attribute was not provided
-