aws_sdk_resourcegroups/client/
tag.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 [`Tag`](crate::operation::tag::builders::TagFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::tag::builders::TagFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::tag::builders::TagFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon resource name (ARN) of the resource group to which to add tags.</p><br>
7    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::tag::builders::TagFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::tag::builders::TagFluentBuilder::set_tags):<br>required: **true**<br><p>The tags to add to the specified resource group. A tag is a string-to-string map of key-value pairs.</p><br>
8    /// - On success, responds with [`TagOutput`](crate::operation::tag::TagOutput) with field(s):
9    ///   - [`arn(Option<String>)`](crate::operation::tag::TagOutput::arn): <p>The Amazon resource name (ARN) of the tagged resource.</p>
10    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::tag::TagOutput::tags): <p>The tags that have been added to the specified resource group.</p>
11    /// - On failure, responds with [`SdkError<TagError>`](crate::operation::tag::TagError)
12    pub fn tag(&self) -> crate::operation::tag::builders::TagFluentBuilder {
13        crate::operation::tag::builders::TagFluentBuilder::new(self.handle.clone())
14    }
15}