StackResourceDrift class
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.
Constructors
-
StackResourceDrift({required String logicalResourceId, required String resourceType, required String stackId, required StackResourceDriftStatus stackResourceDriftStatus, required DateTime timestamp, String? actualProperties, String? expectedProperties, ModuleInfo? moduleInfo, String? physicalResourceId, List<
PhysicalResourceIdContextKeyValuePair> ? physicalResourceIdContext, List<PropertyDifference> ? propertyDifferences}) - StackResourceDrift.fromXml(XmlElement elem)
-
factory
Properties
- actualProperties → String?
-
A JSON structure containing the actual property values of the stack
resource.
final
- expectedProperties → String?
-
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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logicalResourceId → String
-
The logical name of the resource specified in the template.
final
- moduleInfo → ModuleInfo?
-
Contains information about the module from which the resource was created,
if the resource was created from a module included in the stack template.
final
- physicalResourceId → String?
-
The name or unique identifier that corresponds to a physical instance ID of
a resource supported by AWS CloudFormation.
final
-
physicalResourceIdContext
→ List<
PhysicalResourceIdContextKeyValuePair> ? -
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.
final
-
propertyDifferences
→ List<
PropertyDifference> ? -
A collection of the resource properties whose actual values differ from
their expected values. These will be present only for resources whose
StackResourceDriftStatus
isMODIFIED
.final - resourceType → String
-
The type of the resource.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackId → String
-
The ID of the stack.
final
- stackResourceDriftStatus → StackResourceDriftStatus
-
Status of the resource's actual configuration compared to its expected
configuration
final
- timestamp → DateTime
-
Time at which AWS CloudFormation performed drift detection on the stack
resource.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited