Struct aws_sdk_cloudformation::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder
source · pub struct DetectStackDriftFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DetectStackDrift
.
Detects whether a stack's actual configuration differs, or has drifted, from its 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§
source§impl DetectStackDriftFluentBuilder
impl DetectStackDriftFluentBuilder
sourcepub fn as_input(&self) -> &DetectStackDriftInputBuilder
pub fn as_input(&self) -> &DetectStackDriftInputBuilder
Access the DetectStackDrift as a reference.
sourcepub async fn send(
self
) -> Result<DetectStackDriftOutput, SdkError<DetectStackDriftError, HttpResponse>>
pub async fn send( self ) -> Result<DetectStackDriftOutput, SdkError<DetectStackDriftError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<DetectStackDriftOutput, DetectStackDriftError, Self>
pub fn customize( self ) -> CustomizableOperation<DetectStackDriftOutput, DetectStackDriftError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_stack_name(&self) -> &Option<String>
pub fn get_stack_name(&self) -> &Option<String>
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.
sourcepub fn get_logical_resource_ids(&self) -> &Option<Vec<String>>
pub fn get_logical_resource_ids(&self) -> &Option<Vec<String>>
The logical names of any resources you want to use as filters.
Trait Implementations§
source§impl Clone for DetectStackDriftFluentBuilder
impl Clone for DetectStackDriftFluentBuilder
source§fn clone(&self) -> DetectStackDriftFluentBuilder
fn clone(&self) -> DetectStackDriftFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DetectStackDriftFluentBuilder
impl !RefUnwindSafe for DetectStackDriftFluentBuilder
impl Send for DetectStackDriftFluentBuilder
impl Sync for DetectStackDriftFluentBuilder
impl Unpin for DetectStackDriftFluentBuilder
impl !UnwindSafe for DetectStackDriftFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more