pub struct Builder { /* private fields */ }Expand description
A builder for DeleteTemplateAliasInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that contains the item to delete.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that contains the item to delete.
sourcepub fn template_id(self, input: impl Into<String>) -> Self
pub fn template_id(self, input: impl Into<String>) -> Self
The ID for the template that the specified alias is for.
sourcepub fn set_template_id(self, input: Option<String>) -> Self
pub fn set_template_id(self, input: Option<String>) -> Self
The ID for the template that the specified alias is for.
sourcepub fn alias_name(self, input: impl Into<String>) -> Self
pub fn alias_name(self, input: impl Into<String>) -> Self
The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword $LATEST in the AliasName parameter.
sourcepub fn set_alias_name(self, input: Option<String>) -> Self
pub fn set_alias_name(self, input: Option<String>) -> Self
The name for the template alias. To delete a specific alias, you delete the version that the alias points to. You can specify the alias name, or specify the latest version of the template by providing the keyword $LATEST in the AliasName parameter.
sourcepub fn build(self) -> Result<DeleteTemplateAliasInput, BuildError>
pub fn build(self) -> Result<DeleteTemplateAliasInput, BuildError>
Consumes the builder and constructs a DeleteTemplateAliasInput.
Examples found in repository?
6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteTemplateAlias,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteTemplateAliasError>,
> {
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::DeleteTemplateAliasOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTemplateAliasError>,
> {
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
}