Class CfnStackPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template.
For more information, see Nested stacks in the CloudFormation User Guide .
You can add output values from a nested stack within the containing template. You use the GetAtt function with the nested stack's logical name and the name of the output value in the nested stack in the format Outputs. *NestedStackOutputName* .
We strongly recommend that updates to nested stacks are run from the parent stack.
When you apply template changes to update a top-level stack, CloudFormation updates the top-level stack and initiates an update to its nested stacks. CloudFormation updates the resources of modified nested stacks, but doesn't update the resources of unmodified nested stacks.
For stacks that contain IAM resources, you must acknowledge IAM capabilities. Also, make sure that you have cancel update stack permissions, which are required if an update rolls back. For more information about IAM and CloudFormation , see Controlling access with AWS Identity and Access Management in the CloudFormation User Guide .
A subset of
AWS::CloudFormation::Stackresource type properties listed below are available to customers using CloudFormation , AWS CDK , and Cloud Control to configure.
NotificationARNsParametersTagsTemplateURLTimeoutInMinutesThese properties can be configured only when using Cloud Control . This is because the below properties are set by the parent stack, and thus cannot be configured using CloudFormation or AWS CDK but only Cloud Control .
CapabilitiesDescriptionDisableRollbackEnableTerminationProtectionRoleARNStackNameStackPolicyBodyStackPolicyURLStackStatusReasonTemplateBodyCustomers that configure
AWS::CloudFormation::Stackusing CloudFormation and AWS CDK can do so for nesting a CloudFormation stack as a resource in their top-level template.These read-only properties can be accessed only when using Cloud Control .
ChangeSetIdCreationTimeLastUpdateTimeOutputsParentIdRootIdStackIdStackStatus
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudformation.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnStackPropsMixin cfnStackPropsMixin = CfnStackPropsMixin.Builder.create(CfnStackMixinProps.builder()
.notificationArns(List.of("notificationArns"))
.parameters(Map.of(
"parametersKey", "parameters"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.templateUrl("templateUrl")
.timeoutInMinutes(123)
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStackPropsMixin.static interfaceTheOutputdata type.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CloudFormation::Stack.CfnStackPropsMixin(CfnStackMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CloudFormation::Stack.protectedCfnStackPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStackPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnStackMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnStackPropsMixin
protected CfnStackPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStackPropsMixin
protected CfnStackPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStackPropsMixin
@Stability(Stable) public CfnStackPropsMixin(@NotNull CfnStackMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CloudFormation::Stack.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnStackPropsMixin
Create a mixin to apply properties toAWS::CloudFormation::Stack.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-