Package software.amazon.awscdk
Class CfnChangeSet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.CfnChangeSet
- All Implemented Interfaces:
IInspectable,IChangeSetRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:01.576Z")
@Stability(Stable)
public class CfnChangeSet
extends CfnResource
implements IInspectable, IChangeSetRef, ITaggableV2
Resource type definition for AWS::CloudFormation::ChangeSet.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
CfnChangeSet cfnChangeSet = CfnChangeSet.Builder.create(this, "MyCfnChangeSet")
.changeSetName("changeSetName")
.stackName("stackName")
// the properties below are optional
.capabilities(List.of("capabilities"))
.changeSetType("changeSetType")
.deploymentMode("deploymentMode")
.description("description")
.importExistingResources(false)
.includeNestedStacks(false)
.notificationArns(List.of("notificationArns"))
.onStackFailure("onStackFailure")
.roleArn("roleArn")
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.templateBody("templateBody")
.templateUrl("templateUrl")
.usePreviousTemplate(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnChangeSet.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cloudformation.IChangeSetRef
IChangeSetRef.Jsii$Default, IChangeSetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnChangeSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnChangeSet(software.amazon.jsii.JsiiObjectRef objRef) CfnChangeSet(software.constructs.Construct scope, String id, CfnChangeSetProps props) Create a newAWS::CloudFormation::ChangeSet. -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the change set.The time the change set was created.The unique ID of the stack.The capabilities that are allowed in the stack.Tag Manager which manages the tags for this resource.The name of the change set.A reference to a ChangeSet resource.The type of change set operation.Determines how CloudFormation handles configuration drift during deployment.A description to help you identify this change set.Indicates if the change set imports resources that already exist.Creates a change set for all nested stacks specified in the template.The ARNs of Amazon SNS topics that CloudFormation associates with the stack.Determines what action will be taken if stack creation fails.The ARN of an IAM role that CloudFormation assumes when executing the change set.The name or unique ID of the stack for which you are creating a change set.getTags()Key-value pairs to associate with the change set.A structure that contains the body of the revised template.The URL of the file that contains the revised template.Whether to reuse the template associated with the stack to create the change set.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnChangeSet.renderProperties(Map<String, Object> props) voidsetCapabilities(List<String> value) The capabilities that are allowed in the stack.voidsetChangeSetName(String value) The name of the change set.voidsetChangeSetType(String value) The type of change set operation.voidsetDeploymentMode(String value) Determines how CloudFormation handles configuration drift during deployment.voidsetDescription(String value) A description to help you identify this change set.voidIndicates if the change set imports resources that already exist.voidIndicates if the change set imports resources that already exist.voidsetIncludeNestedStacks(Boolean value) Creates a change set for all nested stacks specified in the template.voidCreates a change set for all nested stacks specified in the template.voidsetNotificationArns(List<String> value) The ARNs of Amazon SNS topics that CloudFormation associates with the stack.voidsetOnStackFailure(String value) Determines what action will be taken if stack creation fails.voidsetRoleArn(String value) The ARN of an IAM role that CloudFormation assumes when executing the change set.voidsetStackName(String value) The name or unique ID of the stack for which you are creating a change set.voidKey-value pairs to associate with the change set.voidsetTemplateBody(String value) A structure that contains the body of the revised template.voidsetTemplateUrl(String value) The URL of the file that contains the revised template.voidsetUsePreviousTemplate(Boolean value) Whether to reuse the template associated with the stack to create the change set.voidWhether to reuse the template associated with the stack to create the change set.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnChangeSet
protected CfnChangeSet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnChangeSet
protected CfnChangeSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnChangeSet
@Stability(Stable) public CfnChangeSet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnChangeSetProps props) Create a newAWS::CloudFormation::ChangeSet.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnChangeSet
Checks whether the given object is a CfnChangeSet.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrChangeSetId
The ARN of the change set. -
getAttrCreationTime
The time the change set was created. -
getAttrStackId
The unique ID of the stack. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getChangeSetRef
A reference to a ChangeSet resource.- Specified by:
getChangeSetRefin interfaceIChangeSetRef
-
getChangeSetName
The name of the change set. -
setChangeSetName
The name of the change set. -
getStackName
The name or unique ID of the stack for which you are creating a change set. -
setStackName
The name or unique ID of the stack for which you are creating a change set. -
getCapabilities
The capabilities that are allowed in the stack. -
setCapabilities
The capabilities that are allowed in the stack. -
getChangeSetType
The type of change set operation. -
setChangeSetType
The type of change set operation. -
getDeploymentMode
Determines how CloudFormation handles configuration drift during deployment. -
setDeploymentMode
Determines how CloudFormation handles configuration drift during deployment. -
getDescription
A description to help you identify this change set. -
setDescription
A description to help you identify this change set. -
getImportExistingResources
Indicates if the change set imports resources that already exist.Returns union: either
BooleanorIResolvable -
setImportExistingResources
Indicates if the change set imports resources that already exist. -
setImportExistingResources
Indicates if the change set imports resources that already exist. -
getIncludeNestedStacks
Creates a change set for all nested stacks specified in the template.Returns union: either
BooleanorIResolvable -
setIncludeNestedStacks
Creates a change set for all nested stacks specified in the template. -
setIncludeNestedStacks
Creates a change set for all nested stacks specified in the template. -
getNotificationArns
The ARNs of Amazon SNS topics that CloudFormation associates with the stack. -
setNotificationArns
The ARNs of Amazon SNS topics that CloudFormation associates with the stack. -
getOnStackFailure
Determines what action will be taken if stack creation fails. -
setOnStackFailure
Determines what action will be taken if stack creation fails. -
getRoleArn
The ARN of an IAM role that CloudFormation assumes when executing the change set. -
setRoleArn
The ARN of an IAM role that CloudFormation assumes when executing the change set. -
getTags
Key-value pairs to associate with the change set. -
setTags
Key-value pairs to associate with the change set. -
getTemplateBody
A structure that contains the body of the revised template. -
setTemplateBody
A structure that contains the body of the revised template. -
getTemplateUrl
The URL of the file that contains the revised template. -
setTemplateUrl
The URL of the file that contains the revised template. -
getUsePreviousTemplate
Whether to reuse the template associated with the stack to create the change set.Returns union: either
BooleanorIResolvable -
setUsePreviousTemplate
Whether to reuse the template associated with the stack to create the change set. -
setUsePreviousTemplate
Whether to reuse the template associated with the stack to create the change set.
-