Class: Aws::IAM::Types::TagRoleRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iam/types.rb

Overview

Note:

When making an API call, you may pass TagRoleRequest data as a hash:

{
  role_name: "roleNameType", # required
  tags: [ # required
    {
      key: "tagKeyType", # required
      value: "tagValueType", # required
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#role_nameString

The name of the IAM role to which you want to add tags.

This parameter accepts (through its [regex pattern]) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,[email protected]

[1]: wikipedia.org/wiki/regex

Returns:

  • (String)

11295
11296
11297
11298
11299
11300
# File 'lib/aws-sdk-iam/types.rb', line 11295

class TagRoleRequest < Struct.new(
  :role_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The list of tags that you want to attach to the IAM role. Each tag consists of a key name and an associated value.

Returns:


11295
11296
11297
11298
11299
11300
# File 'lib/aws-sdk-iam/types.rb', line 11295

class TagRoleRequest < Struct.new(
  :role_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end