detect_stack_resource_drift¶
Operation¶
detect_stack_resource_drift
async
¶
detect_stack_resource_drift(input: DetectStackResourceDriftInput, plugins: list[Plugin] | None = None) -> DetectStackResourceDriftOutput
Returns information about whether a resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detect unmanaged configuration changes to stacks and resources with 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.
Resources that don't currently support drift detection can't be checked. For a list of resources that support drift detection, see Resource type support for imports and drift detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DetectStackResourceDriftInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
DetectStackResourceDriftOutput
|
An instance of |
Input¶
DetectStackResourceDriftInput
dataclass
¶
Output¶
DetectStackResourceDriftOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DetectStackResourceDriftOutput structure.
Attributes¶
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.
stack_resource_drift
class-attribute
instance-attribute
¶
Information about whether the resource's actual configuration has drifted from its expected template configuration, including actual and expected property values and any differences detected.