aws-sdk-resourcegroupstagging 1.99.0

AWS SDK for AWS Resource Groups Tagging API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`TagResources`](crate::operation::tag_resources::builders::TagResourcesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn_list(impl Into<String>)`](crate::operation::tag_resources::builders::TagResourcesFluentBuilder::resource_arn_list) / [`set_resource_arn_list(Option<Vec::<String>>)`](crate::operation::tag_resources::builders::TagResourcesFluentBuilder::set_resource_arn_list):<br>required: **true**<br><p>Specifies the list of ARNs of the resources that you want to apply tags to.</p> <p>An ARN (Amazon Resource Name) uniquely identifies a resource. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::tag_resources::builders::TagResourcesFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::tag_resources::builders::TagResourcesFluentBuilder::set_tags):<br>required: **true**<br><p>Specifies a list of tags that you want to add to the specified resources. A tag consists of a key and a value that you define.</p><br>
    /// - On success, responds with [`TagResourcesOutput`](crate::operation::tag_resources::TagResourcesOutput) with field(s):
    ///   - [`failed_resources_map(Option<HashMap::<String, FailureInfo>>)`](crate::operation::tag_resources::TagResourcesOutput::failed_resources_map): <p>A map containing a key-value pair for each failed item that couldn't be tagged. The key is the ARN of the failed resource. The value is a <code>FailureInfo</code> object that contains an error code, a status code, and an error message. If there are no errors, the <code>FailedResourcesMap</code> is empty.</p>
    /// - On failure, responds with [`SdkError<TagResourcesError>`](crate::operation::tag_resources::TagResourcesError)
    pub fn tag_resources(&self) -> crate::operation::tag_resources::builders::TagResourcesFluentBuilder {
        crate::operation::tag_resources::builders::TagResourcesFluentBuilder::new(self.handle.clone())
    }
}