aws_sdk_cloudformation/client/
detect_stack_drift.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DetectStackDrift`](crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`stack_name(impl Into<String>)`](crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder::set_stack_name):<br>required: **true**<br><p>The name of the stack for which you want to detect drift.</p><br>
7    ///   - [`logical_resource_ids(impl Into<String>)`](crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder::logical_resource_ids) / [`set_logical_resource_ids(Option<Vec::<String>>)`](crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder::set_logical_resource_ids):<br>required: **false**<br><p>The logical names of any resources you want to use as filters.</p><br>
8    /// - On success, responds with [`DetectStackDriftOutput`](crate::operation::detect_stack_drift::DetectStackDriftOutput) with field(s):
9    ///   - [`stack_drift_detection_id(Option<String>)`](crate::operation::detect_stack_drift::DetectStackDriftOutput::stack_drift_detection_id): <p>The ID of the drift detection results of this operation.</p> <p>CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results CloudFormation retains for any given stack, and for how long, may vary.</p>
10    /// - On failure, responds with [`SdkError<DetectStackDriftError>`](crate::operation::detect_stack_drift::DetectStackDriftError)
11    pub fn detect_stack_drift(&self) -> crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder {
12        crate::operation::detect_stack_drift::builders::DetectStackDriftFluentBuilder::new(self.handle.clone())
13    }
14}