You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iam/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
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#role_nameString

The name of the role that you want to add tags to.

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: _+=,.@-

Returns:

  • (String)


9851
9852
9853
9854
9855
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 9851

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

#tagsArray<Types::Tag>

The list of tags that you want to attach to the role. Each tag consists of a key name and an associated value. You can specify this with a JSON string.

Returns:



9851
9852
9853
9854
9855
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 9851

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