pub struct DetectStackDrift { /* private fields */ }
Expand description
Fluent builder constructing a request to DetectStackDrift
.
Detects whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
Use DetectStackDrift
to detect drift on all supported resources for a given stack, or DetectStackResourceDrift
to detect drift on individual resources.
For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.
DetectStackDrift
can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus
to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts
to return drift information about the stack and its resources.
When detecting drift on a stack, CloudFormation doesn't detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift
directly on the nested stack itself.
Implementations
sourceimpl DetectStackDrift
impl DetectStackDrift
sourcepub async fn send(
self
) -> Result<DetectStackDriftOutput, SdkError<DetectStackDriftError>>
pub async fn send(
self
) -> Result<DetectStackDriftOutput, SdkError<DetectStackDriftError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name of the stack for which you want to detect drift.
sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name of the stack for which you want to detect drift.
sourcepub fn logical_resource_ids(self, input: impl Into<String>) -> Self
pub fn logical_resource_ids(self, input: impl Into<String>) -> Self
Appends an item to LogicalResourceIds
.
To override the contents of this collection use set_logical_resource_ids
.
The logical names of any resources you want to use as filters.
sourcepub fn set_logical_resource_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_logical_resource_ids(self, input: Option<Vec<String>>) -> Self
The logical names of any resources you want to use as filters.
Trait Implementations
sourceimpl Clone for DetectStackDrift
impl Clone for DetectStackDrift
sourcefn clone(&self) -> DetectStackDrift
fn clone(&self) -> DetectStackDrift
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DetectStackDrift
impl Send for DetectStackDrift
impl Sync for DetectStackDrift
impl Unpin for DetectStackDrift
impl !UnwindSafe for DetectStackDrift
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more