Struct aws_sdk_cloudformation::model::Stack
source · #[non_exhaustive]pub struct Stack { /* private fields */ }Expand description
The Stack data type.
Implementations§
source§impl Stack
impl Stack
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The name associated with the stack.
sourcepub fn change_set_id(&self) -> Option<&str>
pub fn change_set_id(&self) -> Option<&str>
The unique ID of the change set.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A user-defined description associated with the stack.
sourcepub fn parameters(&self) -> Option<&[Parameter]>
pub fn parameters(&self) -> Option<&[Parameter]>
A list of Parameter structures.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time at which the stack was created.
sourcepub fn deletion_time(&self) -> Option<&DateTime>
pub fn deletion_time(&self) -> Option<&DateTime>
The time the stack was deleted.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The time the stack was last updated. This field will only be returned if the stack has been updated at least once.
sourcepub fn rollback_configuration(&self) -> Option<&RollbackConfiguration>
pub fn rollback_configuration(&self) -> Option<&RollbackConfiguration>
The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.
sourcepub fn stack_status(&self) -> Option<&StackStatus>
pub fn stack_status(&self) -> Option<&StackStatus>
Current status of the stack.
sourcepub fn stack_status_reason(&self) -> Option<&str>
pub fn stack_status_reason(&self) -> Option<&str>
Success/failure message associated with the stack status.
sourcepub fn disable_rollback(&self) -> Option<bool>
pub fn disable_rollback(&self) -> Option<bool>
Boolean to enable or disable rollback on stack creation failures:
-
true: disable rollback. -
false: enable rollback.
sourcepub fn notification_ar_ns(&self) -> Option<&[String]>
pub fn notification_ar_ns(&self) -> Option<&[String]>
Amazon SNS topic Amazon Resource Names (ARNs) to which stack related events are published.
sourcepub fn timeout_in_minutes(&self) -> Option<i32>
pub fn timeout_in_minutes(&self) -> Option<i32>
The amount of time within which stack creation should complete.
sourcepub fn capabilities(&self) -> Option<&[Capability]>
pub fn capabilities(&self) -> Option<&[Capability]>
The capabilities allowed in the stack.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
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.
A list of Tags that specify information about the stack.
sourcepub fn enable_termination_protection(&self) -> Option<bool>
pub fn enable_termination_protection(&self) -> Option<bool>
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 parent_id(&self) -> Option<&str>
pub fn parent_id(&self) -> Option<&str>
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 root_id(&self) -> Option<&str>
pub fn root_id(&self) -> Option<&str>
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 drift_information(&self) -> Option<&StackDriftInformation>
pub fn drift_information(&self) -> Option<&StackDriftInformation>
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.
source§impl Stack
impl Stack
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture 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())
}