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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The structure that contains summary information about a stack instance.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackInstanceSummary {
/// <p>The name or unique ID of the stack set that the stack instance is associated with.</p>
pub stack_set_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the Amazon Web Services Region that the stack instance is associated with.</p>
pub region: ::std::option::Option<::std::string::String>,
/// <p>[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.</p>
pub account: ::std::option::Option<::std::string::String>,
/// <p>The ID of the stack instance.</p>
pub stack_id: ::std::option::Option<::std::string::String>,
/// <p>The status of the stack instance, in terms of its synchronization with its associated stack set.</p>
/// <ul>
/// <li>
/// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually. <code>INOPERABLE</code> can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the <code>DescribeStackInstance</code> API operation, look at the <code>DetailedStatus</code> member returned in the <code>StackInstanceSummary</code> member.</p></li>
/// <li>
/// <p><code>OUTDATED</code>: The stack isn't currently up to date with the stack set because:</p>
/// <ul>
/// <li>
/// <p>The associated stack failed during a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation.</p></li>
/// <li>
/// <p>The stack was part of a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation that failed or was stopped before the stack was created or updated.</p></li>
/// </ul></li>
/// <li>
/// <p><code>CURRENT</code>: The stack is currently up to date with the stack set.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::StackInstanceStatus>,
/// <p>The explanation for the specific status code assigned to this stack instance.</p>
pub status_reason: ::std::option::Option<::std::string::String>,
/// <p>The detailed status of the stack instance.</p>
pub stack_instance_status: ::std::option::Option<crate::types::StackInstanceComprehensiveStatus>,
/// <p>[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">DeploymentTargets</a>.</p>
pub organizational_unit_id: ::std::option::Option<::std::string::String>,
/// <p>Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.</p>
/// <ul>
/// <li>
/// <p><code>DRIFTED</code>: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
/// <li>
/// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration.</p></li>
/// <li>
/// <p><code>IN_SYNC</code>: The stack instance's actual configuration matches its expected stack set configuration.</p></li>
/// <li>
/// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
/// </ul>
pub drift_status: ::std::option::Option<crate::types::StackDriftStatus>,
/// <p>Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be <code>NULL</code> for any stack instance on which drift detection hasn't yet been performed.</p>
pub last_drift_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The last unique ID of a StackSet operation performed on a stack instance.</p>
pub last_operation_id: ::std::option::Option<::std::string::String>,
}
impl StackInstanceSummary {
/// <p>The name or unique ID of the stack set that the stack instance is associated with.</p>
pub fn stack_set_id(&self) -> ::std::option::Option<&str> {
self.stack_set_id.as_deref()
}
/// <p>The name of the Amazon Web Services Region that the stack instance is associated with.</p>
pub fn region(&self) -> ::std::option::Option<&str> {
self.region.as_deref()
}
/// <p>[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.</p>
pub fn account(&self) -> ::std::option::Option<&str> {
self.account.as_deref()
}
/// <p>The ID of the stack instance.</p>
pub fn stack_id(&self) -> ::std::option::Option<&str> {
self.stack_id.as_deref()
}
/// <p>The status of the stack instance, in terms of its synchronization with its associated stack set.</p>
/// <ul>
/// <li>
/// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually. <code>INOPERABLE</code> can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the <code>DescribeStackInstance</code> API operation, look at the <code>DetailedStatus</code> member returned in the <code>StackInstanceSummary</code> member.</p></li>
/// <li>
/// <p><code>OUTDATED</code>: The stack isn't currently up to date with the stack set because:</p>
/// <ul>
/// <li>
/// <p>The associated stack failed during a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation.</p></li>
/// <li>
/// <p>The stack was part of a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation that failed or was stopped before the stack was created or updated.</p></li>
/// </ul></li>
/// <li>
/// <p><code>CURRENT</code>: The stack is currently up to date with the stack set.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::StackInstanceStatus> {
self.status.as_ref()
}
/// <p>The explanation for the specific status code assigned to this stack instance.</p>
pub fn status_reason(&self) -> ::std::option::Option<&str> {
self.status_reason.as_deref()
}
/// <p>The detailed status of the stack instance.</p>
pub fn stack_instance_status(&self) -> ::std::option::Option<&crate::types::StackInstanceComprehensiveStatus> {
self.stack_instance_status.as_ref()
}
/// <p>[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">DeploymentTargets</a>.</p>
pub fn organizational_unit_id(&self) -> ::std::option::Option<&str> {
self.organizational_unit_id.as_deref()
}
/// <p>Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.</p>
/// <ul>
/// <li>
/// <p><code>DRIFTED</code>: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
/// <li>
/// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration.</p></li>
/// <li>
/// <p><code>IN_SYNC</code>: The stack instance's actual configuration matches its expected stack set configuration.</p></li>
/// <li>
/// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
/// </ul>
pub fn drift_status(&self) -> ::std::option::Option<&crate::types::StackDriftStatus> {
self.drift_status.as_ref()
}
/// <p>Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be <code>NULL</code> for any stack instance on which drift detection hasn't yet been performed.</p>
pub fn last_drift_check_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_drift_check_timestamp.as_ref()
}
/// <p>The last unique ID of a StackSet operation performed on a stack instance.</p>
pub fn last_operation_id(&self) -> ::std::option::Option<&str> {
self.last_operation_id.as_deref()
}
}
impl StackInstanceSummary {
/// Creates a new builder-style object to manufacture [`StackInstanceSummary`](crate::types::StackInstanceSummary).
pub fn builder() -> crate::types::builders::StackInstanceSummaryBuilder {
crate::types::builders::StackInstanceSummaryBuilder::default()
}
}
/// A builder for [`StackInstanceSummary`](crate::types::StackInstanceSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackInstanceSummaryBuilder {
pub(crate) stack_set_id: ::std::option::Option<::std::string::String>,
pub(crate) region: ::std::option::Option<::std::string::String>,
pub(crate) account: ::std::option::Option<::std::string::String>,
pub(crate) stack_id: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::StackInstanceStatus>,
pub(crate) status_reason: ::std::option::Option<::std::string::String>,
pub(crate) stack_instance_status: ::std::option::Option<crate::types::StackInstanceComprehensiveStatus>,
pub(crate) organizational_unit_id: ::std::option::Option<::std::string::String>,
pub(crate) drift_status: ::std::option::Option<crate::types::StackDriftStatus>,
pub(crate) last_drift_check_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_operation_id: ::std::option::Option<::std::string::String>,
}
impl StackInstanceSummaryBuilder {
/// <p>The name or unique ID of the stack set that the stack instance is associated with.</p>
pub fn stack_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_set_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The name or unique ID of the stack set that the stack instance is associated with.</p>
pub fn set_stack_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_set_id = input;
self
}
/// <p>The name or unique ID of the stack set that the stack instance is associated with.</p>
pub fn get_stack_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_set_id
}
/// <p>The name of the Amazon Web Services Region that the stack instance is associated with.</p>
pub fn region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.region = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the Amazon Web Services Region that the stack instance is associated with.</p>
pub fn set_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.region = input;
self
}
/// <p>The name of the Amazon Web Services Region that the stack instance is associated with.</p>
pub fn get_region(&self) -> &::std::option::Option<::std::string::String> {
&self.region
}
/// <p>[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.</p>
pub fn account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account = ::std::option::Option::Some(input.into());
self
}
/// <p>[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.</p>
pub fn set_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account = input;
self
}
/// <p>[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with.</p>
pub fn get_account(&self) -> &::std::option::Option<::std::string::String> {
&self.account
}
/// <p>The ID of the stack instance.</p>
pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the stack instance.</p>
pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_id = input;
self
}
/// <p>The ID of the stack instance.</p>
pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_id
}
/// <p>The status of the stack instance, in terms of its synchronization with its associated stack set.</p>
/// <ul>
/// <li>
/// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually. <code>INOPERABLE</code> can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the <code>DescribeStackInstance</code> API operation, look at the <code>DetailedStatus</code> member returned in the <code>StackInstanceSummary</code> member.</p></li>
/// <li>
/// <p><code>OUTDATED</code>: The stack isn't currently up to date with the stack set because:</p>
/// <ul>
/// <li>
/// <p>The associated stack failed during a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation.</p></li>
/// <li>
/// <p>The stack was part of a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation that failed or was stopped before the stack was created or updated.</p></li>
/// </ul></li>
/// <li>
/// <p><code>CURRENT</code>: The stack is currently up to date with the stack set.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::StackInstanceStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the stack instance, in terms of its synchronization with its associated stack set.</p>
/// <ul>
/// <li>
/// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually. <code>INOPERABLE</code> can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the <code>DescribeStackInstance</code> API operation, look at the <code>DetailedStatus</code> member returned in the <code>StackInstanceSummary</code> member.</p></li>
/// <li>
/// <p><code>OUTDATED</code>: The stack isn't currently up to date with the stack set because:</p>
/// <ul>
/// <li>
/// <p>The associated stack failed during a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation.</p></li>
/// <li>
/// <p>The stack was part of a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation that failed or was stopped before the stack was created or updated.</p></li>
/// </ul></li>
/// <li>
/// <p><code>CURRENT</code>: The stack is currently up to date with the stack set.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::StackInstanceStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the stack instance, in terms of its synchronization with its associated stack set.</p>
/// <ul>
/// <li>
/// <p><code>INOPERABLE</code>: A <code>DeleteStackInstances</code> operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further <code>UpdateStackSet</code> operations. You might need to perform a <code>DeleteStackInstances</code> operation, with <code>RetainStacks</code> set to <code>true</code>, to delete the stack instance, and then delete the stack manually. <code>INOPERABLE</code> can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is due to a failed import, call the <code>DescribeStackInstance</code> API operation, look at the <code>DetailedStatus</code> member returned in the <code>StackInstanceSummary</code> member.</p></li>
/// <li>
/// <p><code>OUTDATED</code>: The stack isn't currently up to date with the stack set because:</p>
/// <ul>
/// <li>
/// <p>The associated stack failed during a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation.</p></li>
/// <li>
/// <p>The stack was part of a <code>CreateStackSet</code> or <code>UpdateStackSet</code> operation that failed or was stopped before the stack was created or updated.</p></li>
/// </ul></li>
/// <li>
/// <p><code>CURRENT</code>: The stack is currently up to date with the stack set.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::StackInstanceStatus> {
&self.status
}
/// <p>The explanation for the specific status code assigned to this stack instance.</p>
pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_reason = ::std::option::Option::Some(input.into());
self
}
/// <p>The explanation for the specific status code assigned to this stack instance.</p>
pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_reason = input;
self
}
/// <p>The explanation for the specific status code assigned to this stack instance.</p>
pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.status_reason
}
/// <p>The detailed status of the stack instance.</p>
pub fn stack_instance_status(mut self, input: crate::types::StackInstanceComprehensiveStatus) -> Self {
self.stack_instance_status = ::std::option::Option::Some(input);
self
}
/// <p>The detailed status of the stack instance.</p>
pub fn set_stack_instance_status(mut self, input: ::std::option::Option<crate::types::StackInstanceComprehensiveStatus>) -> Self {
self.stack_instance_status = input;
self
}
/// <p>The detailed status of the stack instance.</p>
pub fn get_stack_instance_status(&self) -> &::std::option::Option<crate::types::StackInstanceComprehensiveStatus> {
&self.stack_instance_status
}
/// <p>[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">DeploymentTargets</a>.</p>
pub fn organizational_unit_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.organizational_unit_id = ::std::option::Option::Some(input.into());
self
}
/// <p>[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">DeploymentTargets</a>.</p>
pub fn set_organizational_unit_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.organizational_unit_id = input;
self
}
/// <p>[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">DeploymentTargets</a>.</p>
pub fn get_organizational_unit_id(&self) -> &::std::option::Option<::std::string::String> {
&self.organizational_unit_id
}
/// <p>Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.</p>
/// <ul>
/// <li>
/// <p><code>DRIFTED</code>: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
/// <li>
/// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration.</p></li>
/// <li>
/// <p><code>IN_SYNC</code>: The stack instance's actual configuration matches its expected stack set configuration.</p></li>
/// <li>
/// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
/// </ul>
pub fn drift_status(mut self, input: crate::types::StackDriftStatus) -> Self {
self.drift_status = ::std::option::Option::Some(input);
self
}
/// <p>Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.</p>
/// <ul>
/// <li>
/// <p><code>DRIFTED</code>: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
/// <li>
/// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration.</p></li>
/// <li>
/// <p><code>IN_SYNC</code>: The stack instance's actual configuration matches its expected stack set configuration.</p></li>
/// <li>
/// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
/// </ul>
pub fn set_drift_status(mut self, input: ::std::option::Option<crate::types::StackDriftStatus>) -> Self {
self.drift_status = input;
self
}
/// <p>Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the stack set to which it belongs.</p>
/// <ul>
/// <li>
/// <p><code>DRIFTED</code>: The stack differs from the expected template and parameter configuration of the stack set to which it belongs. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted.</p></li>
/// <li>
/// <p><code>NOT_CHECKED</code>: CloudFormation hasn't checked if the stack instance differs from its expected stack set configuration.</p></li>
/// <li>
/// <p><code>IN_SYNC</code>: The stack instance's actual configuration matches its expected stack set configuration.</p></li>
/// <li>
/// <p><code>UNKNOWN</code>: This value is reserved for future use.</p></li>
/// </ul>
pub fn get_drift_status(&self) -> &::std::option::Option<crate::types::StackDriftStatus> {
&self.drift_status
}
/// <p>Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be <code>NULL</code> for any stack instance on which drift detection hasn't yet been performed.</p>
pub fn last_drift_check_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_drift_check_timestamp = ::std::option::Option::Some(input);
self
}
/// <p>Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be <code>NULL</code> for any stack instance on which drift detection hasn't yet been performed.</p>
pub fn set_last_drift_check_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_drift_check_timestamp = input;
self
}
/// <p>Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be <code>NULL</code> for any stack instance on which drift detection hasn't yet been performed.</p>
pub fn get_last_drift_check_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_drift_check_timestamp
}
/// <p>The last unique ID of a StackSet operation performed on a stack instance.</p>
pub fn last_operation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.last_operation_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The last unique ID of a StackSet operation performed on a stack instance.</p>
pub fn set_last_operation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.last_operation_id = input;
self
}
/// <p>The last unique ID of a StackSet operation performed on a stack instance.</p>
pub fn get_last_operation_id(&self) -> &::std::option::Option<::std::string::String> {
&self.last_operation_id
}
/// Consumes the builder and constructs a [`StackInstanceSummary`](crate::types::StackInstanceSummary).
pub fn build(self) -> crate::types::StackInstanceSummary {
crate::types::StackInstanceSummary {
stack_set_id: self.stack_set_id,
region: self.region,
account: self.account,
stack_id: self.stack_id,
status: self.status,
status_reason: self.status_reason,
stack_instance_status: self.stack_instance_status,
organizational_unit_id: self.organizational_unit_id,
drift_status: self.drift_status,
last_drift_check_timestamp: self.last_drift_check_timestamp,
last_operation_id: self.last_operation_id,
}
}
}