aws-sdk-iam 1.109.0

AWS SDK for AWS Identity and Access Management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`TagRole`](crate::operation::tag_role::builders::TagRoleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`role_name(impl Into<String>)`](crate::operation::tag_role::builders::TagRoleFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::tag_role::builders::TagRoleFluentBuilder::set_role_name):<br>required: **true**<br><p>The name of the IAM role to which you want to add tags.</p> <p>This parameter accepts (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
    ///   - [`tags(Tag)`](crate::operation::tag_role::builders::TagRoleFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::tag_role::builders::TagRoleFluentBuilder::set_tags):<br>required: **true**<br><p>The list of tags that you want to attach to the IAM role. Each tag consists of a key name and an associated value.</p><br>
    /// - On success, responds with [`TagRoleOutput`](crate::operation::tag_role::TagRoleOutput)
    /// - On failure, responds with [`SdkError<TagRoleError>`](crate::operation::tag_role::TagRoleError)
    pub fn tag_role(&self) -> crate::operation::tag_role::builders::TagRoleFluentBuilder {
        crate::operation::tag_role::builders::TagRoleFluentBuilder::new(self.handle.clone())
    }
}