Class ResourceChange
- All Implemented Interfaces:
Serializable
,Cloneable
The ResourceChange
structure describes the resource and the
action that AWS CloudFormation will perform on it if you execute this change
set.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.The resource's logical ID, which is defined in the stack's template.The resource's physical ID (resource name).For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.The type of AWS CloudFormation resource, such asAWS::S3::Bucket
.getScope()
For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.int
hashCode()
void
setAction
(ChangeAction action) The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).void
The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).void
setDetails
(Collection<ResourceChangeDetail> details) For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.void
setLogicalResourceId
(String logicalResourceId) The resource's logical ID, which is defined in the stack's template.void
setPhysicalResourceId
(String physicalResourceId) The resource's physical ID (resource name).void
setReplacement
(Replacement replacement) For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.void
setReplacement
(String replacement) For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.void
setResourceType
(String resourceType) The type of AWS CloudFormation resource, such asAWS::S3::Bucket
.void
setScope
(Collection<String> scope) For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.toString()
Returns a string representation of this object; useful for testing and debugging.withAction
(ChangeAction action) The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).withAction
(String action) The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).withDetails
(ResourceChangeDetail... details) For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.withDetails
(Collection<ResourceChangeDetail> details) For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.withLogicalResourceId
(String logicalResourceId) The resource's logical ID, which is defined in the stack's template.withPhysicalResourceId
(String physicalResourceId) The resource's physical ID (resource name).withReplacement
(Replacement replacement) For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.withReplacement
(String replacement) For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one.withResourceType
(String resourceType) The type of AWS CloudFormation resource, such asAWS::S3::Bucket
.withScope
(ResourceAttribute... scope) For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.withScope
(Collection<String> scope) For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.
-
Constructor Details
-
ResourceChange
public ResourceChange()
-
-
Method Details
-
setAction
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Parameters:
action
- The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- See Also:
-
getAction
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Returns:
- The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource). - See Also:
-
withAction
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Parameters:
action
- The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAction
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Parameters:
action
- The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- See Also:
-
withAction
The action that AWS CloudFormation takes on the resource, such as
Add
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Parameters:
action
- The action that AWS CloudFormation takes on the resource, such asAdd
(adds a new resource),Modify
(changes a resource), orRemove
(deletes a resource).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setLogicalResourceId
The resource's logical ID, which is defined in the stack's template.
- Parameters:
logicalResourceId
- The resource's logical ID, which is defined in the stack's template.
-
getLogicalResourceId
The resource's logical ID, which is defined in the stack's template.
- Returns:
- The resource's logical ID, which is defined in the stack's template.
-
withLogicalResourceId
The resource's logical ID, which is defined in the stack's template.
- Parameters:
logicalResourceId
- The resource's logical ID, which is defined in the stack's template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPhysicalResourceId
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Parameters:
physicalResourceId
- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
-
getPhysicalResourceId
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Returns:
- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
-
withPhysicalResourceId
The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.
- Parameters:
physicalResourceId
- The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceType
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.- Parameters:
resourceType
- The type of AWS CloudFormation resource, such asAWS::S3::Bucket
.
-
getResourceType
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.- Returns:
- The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.
-
withResourceType
The type of AWS CloudFormation resource, such as
AWS::S3::Bucket
.- Parameters:
resourceType
- The type of AWS CloudFormation resource, such asAWS::S3::Bucket
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReplacement
For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Parameters:
replacement
- For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- See Also:
-
getReplacement
For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Returns:
- For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
. - See Also:
-
withReplacement
For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Parameters:
replacement
- For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setReplacement
For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Parameters:
replacement
- For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- See Also:
-
withReplacement
For the
Modify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Parameters:
replacement
- For theModify
action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of theRequiresRecreation
property in theResourceTargetDefinition
structure. For example, if theRequiresRecreation
field isAlways
and theEvaluation
field isStatic
,Replacement
isTrue
. If theRequiresRecreation
field isAlways
and theEvaluation
field isDynamic
,Replacement
isConditionally
.If you have multiple changes with different
RequiresRecreation
values, theReplacement
value depends on the change with the most impact. ARequiresRecreation
value ofAlways
has the most impact, followed byConditionally
, and thenNever
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getScope
For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Returns:
- For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
. - See Also:
-
setScope
For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Parameters:
scope
- For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- See Also:
-
withScope
For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.NOTE: This method appends the values to the existing list (if any). Use
setScope(java.util.Collection)
orwithScope(java.util.Collection)
if you want to override the existing values.- Parameters:
scope
- For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withScope
For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Parameters:
scope
- For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withScope
For the
Modify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Parameters:
scope
- For theModify
action, indicates which resource attribute is triggering this update, such as a change in the resource attribute'sMetadata
,Properties
, orTags
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getDetails
For the
Modify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- For the
Modify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.
-
setDetails
For the
Modify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.- Parameters:
details
- For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.
-
withDetails
For the
Modify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.NOTE: This method appends the values to the existing list (if any). Use
setDetails(java.util.Collection)
orwithDetails(java.util.Collection)
if you want to override the existing values.- Parameters:
details
- For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDetails
For the
Modify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.- Parameters:
details
- For theModify
action, a list ofResourceChangeDetail
structures that describes the changes that AWS CloudFormation will make to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-