aws_sdk_cloudformation/client/update_termination_protection.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateTerminationProtection`](crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`enable_termination_protection(bool)`](crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder::enable_termination_protection) / [`set_enable_termination_protection(Option<bool>)`](crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder::set_enable_termination_protection):<br>required: **true**<br><p>Whether to enable termination protection on the specified stack.</p><br>
7 /// - [`stack_name(impl Into<String>)`](crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder::stack_name) / [`set_stack_name(Option<String>)`](crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder::set_stack_name):<br>required: **true**<br><p>The name or unique ID of the stack for which you want to set termination protection.</p><br>
8 /// - On success, responds with [`UpdateTerminationProtectionOutput`](crate::operation::update_termination_protection::UpdateTerminationProtectionOutput) with field(s):
9 /// - [`stack_id(Option<String>)`](crate::operation::update_termination_protection::UpdateTerminationProtectionOutput::stack_id): <p>The unique ID of the stack.</p>
10 /// - On failure, responds with [`SdkError<UpdateTerminationProtectionError>`](crate::operation::update_termination_protection::UpdateTerminationProtectionError)
11 pub fn update_termination_protection(
12 &self,
13 ) -> crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder {
14 crate::operation::update_termination_protection::builders::UpdateTerminationProtectionFluentBuilder::new(self.handle.clone())
15 }
16}