@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StackResourceDrift extends Object implements Serializable, Cloneable
Contains the drift information for a resource that has been checked for drift. This includes actual and expected property values for resources in which AWS CloudFormation has detected drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
Resources that do not currently support drift detection cannot be checked. For a list of resources that support drift detection, see Resources that Support Drift Detection.
Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection.
Constructor and Description |
---|
StackResourceDrift() |
Modifier and Type | Method and Description |
---|---|
StackResourceDrift |
clone() |
boolean |
equals(Object obj) |
String |
getActualProperties()
A JSON structure containing the actual property values of the stack resource.
|
String |
getExpectedProperties()
A JSON structure containing the expected property values of the stack resource, as defined in the stack template
and any values specified as template parameters.
|
String |
getLogicalResourceId()
The logical name of the resource specified in the template.
|
String |
getPhysicalResourceId()
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS
CloudFormation.
|
List<PhysicalResourceIdContextKeyValuePair> |
getPhysicalResourceIdContext()
Context information that enables AWS CloudFormation to uniquely identify a resource.
|
List<PropertyDifference> |
getPropertyDifferences()
A collection of the resource properties whose actual values differ from their expected values.
|
String |
getResourceType()
The type of the resource.
|
String |
getStackId()
The ID of the stack.
|
String |
getStackResourceDriftStatus()
Status of the resource's actual configuration compared to its expected configuration
|
Date |
getTimestamp()
Time at which AWS CloudFormation performed drift detection on the stack resource.
|
int |
hashCode() |
void |
setActualProperties(String actualProperties)
A JSON structure containing the actual property values of the stack resource.
|
void |
setExpectedProperties(String expectedProperties)
A JSON structure containing the expected property values of the stack resource, as defined in the stack template
and any values specified as template parameters.
|
void |
setLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
|
void |
setPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS
CloudFormation.
|
void |
setPhysicalResourceIdContext(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource.
|
void |
setPropertyDifferences(Collection<PropertyDifference> propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values.
|
void |
setResourceType(String resourceType)
The type of the resource.
|
void |
setStackId(String stackId)
The ID of the stack.
|
void |
setStackResourceDriftStatus(String stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
|
void |
setTimestamp(Date timestamp)
Time at which AWS CloudFormation performed drift detection on the stack resource.
|
String |
toString()
Returns a string representation of this object.
|
StackResourceDrift |
withActualProperties(String actualProperties)
A JSON structure containing the actual property values of the stack resource.
|
StackResourceDrift |
withExpectedProperties(String expectedProperties)
A JSON structure containing the expected property values of the stack resource, as defined in the stack template
and any values specified as template parameters.
|
StackResourceDrift |
withLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
|
StackResourceDrift |
withPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS
CloudFormation.
|
StackResourceDrift |
withPhysicalResourceIdContext(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource.
|
StackResourceDrift |
withPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePair... physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource.
|
StackResourceDrift |
withPropertyDifferences(Collection<PropertyDifference> propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values.
|
StackResourceDrift |
withPropertyDifferences(PropertyDifference... propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values.
|
StackResourceDrift |
withResourceType(String resourceType)
The type of the resource.
|
StackResourceDrift |
withStackId(String stackId)
The ID of the stack.
|
StackResourceDrift |
withStackResourceDriftStatus(StackResourceDriftStatus stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
|
StackResourceDrift |
withStackResourceDriftStatus(String stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
|
StackResourceDrift |
withTimestamp(Date timestamp)
Time at which AWS CloudFormation performed drift detection on the stack resource.
|
public void setStackId(String stackId)
The ID of the stack.
stackId
- The ID of the stack.public String getStackId()
The ID of the stack.
public StackResourceDrift withStackId(String stackId)
The ID of the stack.
stackId
- The ID of the stack.public void setLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
logicalResourceId
- The logical name of the resource specified in the template.public String getLogicalResourceId()
The logical name of the resource specified in the template.
public StackResourceDrift withLogicalResourceId(String logicalResourceId)
The logical name of the resource specified in the template.
logicalResourceId
- The logical name of the resource specified in the template.public void setPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS
CloudFormation.public String getPhysicalResourceId()
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
public StackResourceDrift withPhysicalResourceId(String physicalResourceId)
The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.
physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS
CloudFormation.public List<PhysicalResourceIdContextKeyValuePair> getPhysicalResourceIdContext()
Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
public void setPhysicalResourceIdContext(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
physicalResourceIdContext
- Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation
uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to
uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the
targeted resource.public StackResourceDrift withPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePair... physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
NOTE: This method appends the values to the existing list (if any). Use
setPhysicalResourceIdContext(java.util.Collection)
or
withPhysicalResourceIdContext(java.util.Collection)
if you want to override the existing values.
physicalResourceIdContext
- Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation
uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to
uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the
targeted resource.public StackResourceDrift withPhysicalResourceIdContext(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext)
Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
physicalResourceIdContext
- Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation
uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to
uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the
targeted resource.public void setResourceType(String resourceType)
The type of the resource.
resourceType
- The type of the resource.public String getResourceType()
The type of the resource.
public StackResourceDrift withResourceType(String resourceType)
The type of the resource.
resourceType
- The type of the resource.public void setExpectedProperties(String expectedProperties)
A JSON structure containing the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
expectedProperties
- A JSON structure containing the expected property values of the stack resource, as defined in the stack
template and any values specified as template parameters.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not
be present.
public String getExpectedProperties()
A JSON structure containing the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will
not be present.
public StackResourceDrift withExpectedProperties(String expectedProperties)
A JSON structure containing the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
expectedProperties
- A JSON structure containing the expected property values of the stack resource, as defined in the stack
template and any values specified as template parameters.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not
be present.
public void setActualProperties(String actualProperties)
A JSON structure containing the actual property values of the stack resource.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
actualProperties
- A JSON structure containing the actual property values of the stack resource.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not
be present.
public String getActualProperties()
A JSON structure containing the actual property values of the stack resource.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will
not be present.
public StackResourceDrift withActualProperties(String actualProperties)
A JSON structure containing the actual property values of the stack resource.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not be
present.
actualProperties
- A JSON structure containing the actual property values of the stack resource.
For resources whose StackResourceDriftStatus
is DELETED
, this structure will not
be present.
public List<PropertyDifference> getPropertyDifferences()
A collection of the resource properties whose actual values differ from their expected values. These will be
present only for resources whose StackResourceDriftStatus
is MODIFIED
.
StackResourceDriftStatus
is MODIFIED
.public void setPropertyDifferences(Collection<PropertyDifference> propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values. These will be
present only for resources whose StackResourceDriftStatus
is MODIFIED
.
propertyDifferences
- A collection of the resource properties whose actual values differ from their expected values. These will
be present only for resources whose StackResourceDriftStatus
is MODIFIED
.public StackResourceDrift withPropertyDifferences(PropertyDifference... propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values. These will be
present only for resources whose StackResourceDriftStatus
is MODIFIED
.
NOTE: This method appends the values to the existing list (if any). Use
setPropertyDifferences(java.util.Collection)
or withPropertyDifferences(java.util.Collection)
if you want to override the existing values.
propertyDifferences
- A collection of the resource properties whose actual values differ from their expected values. These will
be present only for resources whose StackResourceDriftStatus
is MODIFIED
.public StackResourceDrift withPropertyDifferences(Collection<PropertyDifference> propertyDifferences)
A collection of the resource properties whose actual values differ from their expected values. These will be
present only for resources whose StackResourceDriftStatus
is MODIFIED
.
propertyDifferences
- A collection of the resource properties whose actual values differ from their expected values. These will
be present only for resources whose StackResourceDriftStatus
is MODIFIED
.public void setStackResourceDriftStatus(String stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource has been
deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack
template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
stackResourceDriftStatus
- Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource
has been deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in
the stack template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
StackResourceDriftStatus
public String getStackResourceDriftStatus()
Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource has been
deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack
template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
DELETED
: The resource differs from its expected template configuration because the resource
has been deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in
the stack template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
StackResourceDriftStatus
public StackResourceDrift withStackResourceDriftStatus(String stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource has been
deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack
template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
stackResourceDriftStatus
- Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource
has been deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in
the stack template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
StackResourceDriftStatus
public StackResourceDrift withStackResourceDriftStatus(StackResourceDriftStatus stackResourceDriftStatus)
Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource has been
deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack
template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
stackResourceDriftStatus
- Status of the resource's actual configuration compared to its expected configuration
DELETED
: The resource differs from its expected template configuration because the resource
has been deleted.
MODIFIED
: One or more resource properties differ from their expected values (as defined in
the stack template and any values specified as template parameters).
IN_SYNC
: The resources's actual configuration matches its expected template configuration.
NOT_CHECKED
: AWS CloudFormation does not currently return this value.
StackResourceDriftStatus
public void setTimestamp(Date timestamp)
Time at which AWS CloudFormation performed drift detection on the stack resource.
timestamp
- Time at which AWS CloudFormation performed drift detection on the stack resource.public Date getTimestamp()
Time at which AWS CloudFormation performed drift detection on the stack resource.
public StackResourceDrift withTimestamp(Date timestamp)
Time at which AWS CloudFormation performed drift detection on the stack resource.
timestamp
- Time at which AWS CloudFormation performed drift detection on the stack resource.public String toString()
toString
in class Object
Object.toString()
public StackResourceDrift clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.