1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains information about whether the resource's actual configuration differs, or has <i>drifted</i>, from its expected configuration.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackResourceDriftInformation {
    /// <p>Status of the resource's actual configuration compared to its expected configuration</p>
    /// <ul>
    /// <li>
    /// <p><code>DELETED</code>: The resource differs from its expected configuration in that it has been deleted.</p></li>
    /// <li>
    /// <p><code>MODIFIED</code>: The resource differs from its expected configuration.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation has not checked if the resource differs from its expected configuration.</p>
    /// <p>Any resources that do not currently support drift detection have a status of <code>NOT_CHECKED</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources that Support Drift Detection</a>.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: The resource's actual configuration matches its expected configuration.</p></li>
    /// </ul>
    pub stack_resource_drift_status: ::std::option::Option<crate::types::StackResourceDriftStatus>,
    /// <p>When CloudFormation last checked if the resource had drifted from its expected configuration.</p>
    pub last_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl StackResourceDriftInformation {
    /// <p>Status of the resource's actual configuration compared to its expected configuration</p>
    /// <ul>
    /// <li>
    /// <p><code>DELETED</code>: The resource differs from its expected configuration in that it has been deleted.</p></li>
    /// <li>
    /// <p><code>MODIFIED</code>: The resource differs from its expected configuration.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation has not checked if the resource differs from its expected configuration.</p>
    /// <p>Any resources that do not currently support drift detection have a status of <code>NOT_CHECKED</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources that Support Drift Detection</a>.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: The resource's actual configuration matches its expected configuration.</p></li>
    /// </ul>
    pub fn stack_resource_drift_status(&self) -> ::std::option::Option<&crate::types::StackResourceDriftStatus> {
        self.stack_resource_drift_status.as_ref()
    }
    /// <p>When CloudFormation last checked if the resource had drifted from its expected configuration.</p>
    pub fn last_check_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_check_timestamp.as_ref()
    }
}
impl StackResourceDriftInformation {
    /// Creates a new builder-style object to manufacture [`StackResourceDriftInformation`](crate::types::StackResourceDriftInformation).
    pub fn builder() -> crate::types::builders::StackResourceDriftInformationBuilder {
        crate::types::builders::StackResourceDriftInformationBuilder::default()
    }
}

/// A builder for [`StackResourceDriftInformation`](crate::types::StackResourceDriftInformation).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackResourceDriftInformationBuilder {
    pub(crate) stack_resource_drift_status: ::std::option::Option<crate::types::StackResourceDriftStatus>,
    pub(crate) last_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl StackResourceDriftInformationBuilder {
    /// <p>Status of the resource's actual configuration compared to its expected configuration</p>
    /// <ul>
    /// <li>
    /// <p><code>DELETED</code>: The resource differs from its expected configuration in that it has been deleted.</p></li>
    /// <li>
    /// <p><code>MODIFIED</code>: The resource differs from its expected configuration.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation has not checked if the resource differs from its expected configuration.</p>
    /// <p>Any resources that do not currently support drift detection have a status of <code>NOT_CHECKED</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources that Support Drift Detection</a>.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: The resource's actual configuration matches its expected configuration.</p></li>
    /// </ul>
    /// This field is required.
    pub fn stack_resource_drift_status(mut self, input: crate::types::StackResourceDriftStatus) -> Self {
        self.stack_resource_drift_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Status of the resource's actual configuration compared to its expected configuration</p>
    /// <ul>
    /// <li>
    /// <p><code>DELETED</code>: The resource differs from its expected configuration in that it has been deleted.</p></li>
    /// <li>
    /// <p><code>MODIFIED</code>: The resource differs from its expected configuration.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation has not checked if the resource differs from its expected configuration.</p>
    /// <p>Any resources that do not currently support drift detection have a status of <code>NOT_CHECKED</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources that Support Drift Detection</a>.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: The resource's actual configuration matches its expected configuration.</p></li>
    /// </ul>
    pub fn set_stack_resource_drift_status(mut self, input: ::std::option::Option<crate::types::StackResourceDriftStatus>) -> Self {
        self.stack_resource_drift_status = input;
        self
    }
    /// <p>Status of the resource's actual configuration compared to its expected configuration</p>
    /// <ul>
    /// <li>
    /// <p><code>DELETED</code>: The resource differs from its expected configuration in that it has been deleted.</p></li>
    /// <li>
    /// <p><code>MODIFIED</code>: The resource differs from its expected configuration.</p></li>
    /// <li>
    /// <p><code>NOT_CHECKED</code>: CloudFormation has not checked if the resource differs from its expected configuration.</p>
    /// <p>Any resources that do not currently support drift detection have a status of <code>NOT_CHECKED</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html">Resources that Support Drift Detection</a>.</p></li>
    /// <li>
    /// <p><code>IN_SYNC</code>: The resource's actual configuration matches its expected configuration.</p></li>
    /// </ul>
    pub fn get_stack_resource_drift_status(&self) -> &::std::option::Option<crate::types::StackResourceDriftStatus> {
        &self.stack_resource_drift_status
    }
    /// <p>When CloudFormation last checked if the resource had drifted from its expected configuration.</p>
    pub fn last_check_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_check_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>When CloudFormation last checked if the resource had drifted from its expected configuration.</p>
    pub fn set_last_check_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_check_timestamp = input;
        self
    }
    /// <p>When CloudFormation last checked if the resource had drifted from its expected configuration.</p>
    pub fn get_last_check_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_check_timestamp
    }
    /// Consumes the builder and constructs a [`StackResourceDriftInformation`](crate::types::StackResourceDriftInformation).
    pub fn build(self) -> crate::types::StackResourceDriftInformation {
        crate::types::StackResourceDriftInformation {
            stack_resource_drift_status: self.stack_resource_drift_status,
            last_check_timestamp: self.last_check_timestamp,
        }
    }
}