#[non_exhaustive]pub struct UpdateTerminationProtectionInput { /* private fields */ }Implementations§
source§impl UpdateTerminationProtectionInput
impl UpdateTerminationProtectionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTerminationProtection, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateTerminationProtection, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateTerminationProtection>
Examples found in repository?
src/client.rs (line 10095)
10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTerminationProtection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateTerminationProtectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateTerminationProtectionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTerminationProtectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateTerminationProtectionInput.
source§impl UpdateTerminationProtectionInput
impl UpdateTerminationProtectionInput
sourcepub fn enable_termination_protection(&self) -> Option<bool>
pub fn enable_termination_protection(&self) -> Option<bool>
Whether to enable termination protection on the specified stack.
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The name or unique ID of the stack for which you want to set termination protection.
Trait Implementations§
source§impl Clone for UpdateTerminationProtectionInput
impl Clone for UpdateTerminationProtectionInput
source§fn clone(&self) -> UpdateTerminationProtectionInput
fn clone(&self) -> UpdateTerminationProtectionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more