Struct aws_sdk_dynamodb::input::untag_resource_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UntagResourceInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The DynamoDB resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The DynamoDB resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
sourcepub fn tag_keys(self, input: impl Into<String>) -> Self
pub fn tag_keys(self, input: impl Into<String>) -> Self
Appends an item to tag_keys
.
To override the contents of this collection use set_tag_keys
.
A list of tag keys. Existing tags of the resource whose keys are members of this list will be removed from the DynamoDB resource.
sourcepub fn set_tag_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_tag_keys(self, input: Option<Vec<String>>) -> Self
A list of tag keys. Existing tags of the resource whose keys are members of this list will be removed from the DynamoDB resource.
sourcepub fn build(self) -> Result<UntagResourceInput, BuildError>
pub fn build(self) -> Result<UntagResourceInput, BuildError>
Consumes the builder and constructs a UntagResourceInput
.
Examples found in repository?
src/client.rs (line 7117)
7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UntagResource,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
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::UntagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
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
}