Struct aws_sdk_cloudformation::model::stack::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Stack.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
Unique identifier of the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn stack_name(self, input: impl Into<String>) -> Self
pub fn stack_name(self, input: impl Into<String>) -> Self
The name associated with the stack.
sourcepub fn set_stack_name(self, input: Option<String>) -> Self
pub fn set_stack_name(self, input: Option<String>) -> Self
The name associated with the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn change_set_id(self, input: impl Into<String>) -> Self
pub fn change_set_id(self, input: impl Into<String>) -> Self
The unique ID of the change set.
sourcepub fn set_change_set_id(self, input: Option<String>) -> Self
pub fn set_change_set_id(self, input: Option<String>) -> Self
The unique ID of the change set.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A user-defined description associated with the stack.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A user-defined description associated with the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn parameters(self, input: Parameter) -> Self
pub fn parameters(self, input: Parameter) -> Self
Appends an item to parameters.
To override the contents of this collection use set_parameters.
A list of Parameter structures.
sourcepub fn set_parameters(self, input: Option<Vec<Parameter>>) -> Self
pub fn set_parameters(self, input: Option<Vec<Parameter>>) -> Self
A list of Parameter structures.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time at which the stack was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time at which the stack was created.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn deletion_time(self, input: DateTime) -> Self
pub fn deletion_time(self, input: DateTime) -> Self
The time the stack was deleted.
sourcepub fn set_deletion_time(self, input: Option<DateTime>) -> Self
pub fn set_deletion_time(self, input: Option<DateTime>) -> Self
The time the stack was deleted.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn rollback_configuration(self, input: RollbackConfiguration) -> Self
pub fn rollback_configuration(self, input: RollbackConfiguration) -> Self
The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
sourcepub fn set_rollback_configuration(
self,
input: Option<RollbackConfiguration>
) -> Self
pub fn set_rollback_configuration(
self,
input: Option<RollbackConfiguration>
) -> Self
The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn stack_status(self, input: StackStatus) -> Self
pub fn stack_status(self, input: StackStatus) -> Self
Current status of the stack.
sourcepub fn set_stack_status(self, input: Option<StackStatus>) -> Self
pub fn set_stack_status(self, input: Option<StackStatus>) -> Self
Current status of the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn stack_status_reason(self, input: impl Into<String>) -> Self
pub fn stack_status_reason(self, input: impl Into<String>) -> Self
Success/failure message associated with the stack status.
sourcepub fn set_stack_status_reason(self, input: Option<String>) -> Self
pub fn set_stack_status_reason(self, input: Option<String>) -> Self
Success/failure message associated with the stack status.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn disable_rollback(self, input: bool) -> Self
pub fn disable_rollback(self, input: bool) -> Self
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback. -
false: enable rollback.
sourcepub fn set_disable_rollback(self, input: Option<bool>) -> Self
pub fn set_disable_rollback(self, input: Option<bool>) -> Self
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback. -
false: enable rollback.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn notification_ar_ns(self, input: impl Into<String>) -> Self
pub fn notification_ar_ns(self, input: impl Into<String>) -> Self
Appends an item to notification_ar_ns.
To override the contents of this collection use set_notification_ar_ns.
Amazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
sourcepub fn set_notification_ar_ns(self, input: Option<Vec<String>>) -> Self
pub fn set_notification_ar_ns(self, input: Option<Vec<String>>) -> Self
Amazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn timeout_in_minutes(self, input: i32) -> Self
pub fn timeout_in_minutes(self, input: i32) -> Self
The amount of time within which stack creation should complete.
sourcepub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
The amount of time within which stack creation should complete.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn capabilities(self, input: Capability) -> Self
pub fn capabilities(self, input: Capability) -> Self
Appends an item to capabilities.
To override the contents of this collection use set_capabilities.
The capabilities allowed in the stack.
sourcepub fn set_capabilities(self, input: Option<Vec<Capability>>) -> Self
pub fn set_capabilities(self, input: Option<Vec<Capability>>) -> Self
The capabilities allowed in the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn outputs(self, input: Output) -> Self
pub fn outputs(self, input: Output) -> Self
Appends an item to outputs.
To override the contents of this collection use set_outputs.
A list of output structures.
sourcepub fn set_outputs(self, input: Option<Vec<Output>>) -> Self
pub fn set_outputs(self, input: Option<Vec<Output>>) -> Self
A list of output structures.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that's associated with the stack. During a stack operation, CloudFormation uses this role's credentials to make calls on your behalf.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that's associated with the stack. During a stack operation, CloudFormation uses this role's credentials to make calls on your behalf.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}Appends an item to tags.
To override the contents of this collection use set_tags.
A list of Tags that specify information about the stack.
A list of Tags that specify information about the stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn enable_termination_protection(self, input: bool) -> Self
pub fn enable_termination_protection(self, input: bool) -> Self
Whether termination protection is enabled for the stack.
For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide.
sourcepub fn set_enable_termination_protection(self, input: Option<bool>) -> Self
pub fn set_enable_termination_protection(self, input: Option<bool>) -> Self
Whether termination protection is enabled for the stack.
For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn parent_id(self, input: impl Into<String>) -> Self
pub fn parent_id(self, input: impl Into<String>) -> Self
For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
sourcepub fn set_parent_id(self, input: Option<String>) -> Self
pub fn set_parent_id(self, input: Option<String>) -> Self
For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn root_id(self, input: impl Into<String>) -> Self
pub fn root_id(self, input: impl Into<String>) -> Self
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
sourcepub fn set_root_id(self, input: Option<String>) -> Self
pub fn set_root_id(self, input: Option<String>) -> Self
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which the nested stack ultimately belongs.
For more information, see Working with Nested Stacks in the CloudFormation User Guide.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn drift_information(self, input: StackDriftInformation) -> Self
pub fn drift_information(self, input: StackDriftInformation) -> Self
Information about 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 more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
sourcepub fn set_drift_information(self, input: Option<StackDriftInformation>) -> Self
pub fn set_drift_information(self, input: Option<StackDriftInformation>) -> Self
Information about 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 more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> Stack
pub fn build(self) -> Stack
Consumes the builder and constructs a Stack.
Examples found in repository?
7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602
pub fn deser_structure_crate_model_stack(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Stack, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Stack::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("StackId") /* StackId com.amazonaws.cloudformation#Stack$StackId */ => {
let var_301 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_id(var_301);
}
,
s if s.matches("StackName") /* StackName com.amazonaws.cloudformation#Stack$StackName */ => {
let var_302 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_name(var_302);
}
,
s if s.matches("ChangeSetId") /* ChangeSetId com.amazonaws.cloudformation#Stack$ChangeSetId */ => {
let var_303 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_change_set_id(var_303);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#Stack$Description */ => {
let var_304 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_description(var_304);
}
,
s if s.matches("Parameters") /* Parameters com.amazonaws.cloudformation#Stack$Parameters */ => {
let var_305 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_parameters(&mut tag)
?
)
;
builder = builder.set_parameters(var_305);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.cloudformation#Stack$CreationTime */ => {
let var_306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#CreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_306);
}
,
s if s.matches("DeletionTime") /* DeletionTime com.amazonaws.cloudformation#Stack$DeletionTime */ => {
let var_307 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#DeletionTime`)"))
?
)
;
builder = builder.set_deletion_time(var_307);
}
,
s if s.matches("LastUpdatedTime") /* LastUpdatedTime com.amazonaws.cloudformation#Stack$LastUpdatedTime */ => {
let var_308 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.cloudformation#LastUpdatedTime`)"))
?
)
;
builder = builder.set_last_updated_time(var_308);
}
,
s if s.matches("RollbackConfiguration") /* RollbackConfiguration com.amazonaws.cloudformation#Stack$RollbackConfiguration */ => {
let var_309 =
Some(
crate::xml_deser::deser_structure_crate_model_rollback_configuration(&mut tag)
?
)
;
builder = builder.set_rollback_configuration(var_309);
}
,
s if s.matches("StackStatus") /* StackStatus com.amazonaws.cloudformation#Stack$StackStatus */ => {
let var_310 =
Some(
Result::<crate::model::StackStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StackStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_stack_status(var_310);
}
,
s if s.matches("StackStatusReason") /* StackStatusReason com.amazonaws.cloudformation#Stack$StackStatusReason */ => {
let var_311 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_stack_status_reason(var_311);
}
,
s if s.matches("DisableRollback") /* DisableRollback com.amazonaws.cloudformation#Stack$DisableRollback */ => {
let var_312 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#DisableRollback`)"))
}
?
)
;
builder = builder.set_disable_rollback(var_312);
}
,
s if s.matches("NotificationARNs") /* NotificationARNs com.amazonaws.cloudformation#Stack$NotificationARNs */ => {
let var_313 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_notification_ar_ns(&mut tag)
?
)
;
builder = builder.set_notification_ar_ns(var_313);
}
,
s if s.matches("TimeoutInMinutes") /* TimeoutInMinutes com.amazonaws.cloudformation#Stack$TimeoutInMinutes */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudformation#TimeoutMinutes`)"))
}
?
)
;
builder = builder.set_timeout_in_minutes(var_314);
}
,
s if s.matches("Capabilities") /* Capabilities com.amazonaws.cloudformation#Stack$Capabilities */ => {
let var_315 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_capabilities(&mut tag)
?
)
;
builder = builder.set_capabilities(var_315);
}
,
s if s.matches("Outputs") /* Outputs com.amazonaws.cloudformation#Stack$Outputs */ => {
let var_316 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_outputs(&mut tag)
?
)
;
builder = builder.set_outputs(var_316);
}
,
s if s.matches("RoleARN") /* RoleARN com.amazonaws.cloudformation#Stack$RoleARN */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_role_arn(var_317);
}
,
s if s.matches("Tags") /* Tags com.amazonaws.cloudformation#Stack$Tags */ => {
let var_318 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_tags(&mut tag)
?
)
;
builder = builder.set_tags(var_318);
}
,
s if s.matches("EnableTerminationProtection") /* EnableTerminationProtection com.amazonaws.cloudformation#Stack$EnableTerminationProtection */ => {
let var_319 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudformation#EnableTerminationProtection`)"))
}
?
)
;
builder = builder.set_enable_termination_protection(var_319);
}
,
s if s.matches("ParentId") /* ParentId com.amazonaws.cloudformation#Stack$ParentId */ => {
let var_320 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_parent_id(var_320);
}
,
s if s.matches("RootId") /* RootId com.amazonaws.cloudformation#Stack$RootId */ => {
let var_321 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_root_id(var_321);
}
,
s if s.matches("DriftInformation") /* DriftInformation com.amazonaws.cloudformation#Stack$DriftInformation */ => {
let var_322 =
Some(
crate::xml_deser::deser_structure_crate_model_stack_drift_information(&mut tag)
?
)
;
builder = builder.set_drift_information(var_322);
}
,
_ => {}
}
}
Ok(builder.build())
}