Struct aws_sdk_athena::client::fluent_builders::TagResource
source · pub struct TagResource { /* private fields */ }
Expand description
Fluent builder constructing a request to TagResource
.
Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. In Athena, a resource can be a workgroup or data catalog. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups or data catalogs in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by commas.
Implementations§
source§impl TagResource
impl TagResource
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TagResource, AwsResponseRetryClassifier>, SdkError<TagResourceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<TagResource, AwsResponseRetryClassifier>, SdkError<TagResourceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<TagResourceOutput, SdkError<TagResourceError>>
pub async fn send(self) -> Result<TagResourceOutput, SdkError<TagResourceError>>
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, which can be set when configuring the client.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
Specifies the ARN of the Athena resource (workgroup or data catalog) to which tags are to be added.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
Specifies the ARN of the Athena resource (workgroup or data catalog) to which tags are to be added.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A collection of one or more tags, separated by commas, to be added to an Athena workgroup or data catalog resource.
A collection of one or more tags, separated by commas, to be added to an Athena workgroup or data catalog resource.
Trait Implementations§
source§impl Clone for TagResource
impl Clone for TagResource
source§fn clone(&self) -> TagResource
fn clone(&self) -> TagResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more