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

Class: Aws::EMR::Types::AddTagsInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb

Overview

Note:

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

{
  resource_id: "ResourceId", # required
  tags: [ # required
    {
      key: "String",
      value: "String",
    },
  ],
}

This input identifies a cluster and a list of tags to attach.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.

Returns:

  • (String)


295
296
297
298
299
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 295

class AddTagsInput < Struct.new(
  :resource_id,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

A list of tags to associate with a cluster and propagate to EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.

Returns:



295
296
297
298
299
# File 'gems/aws-sdk-emr/lib/aws-sdk-emr/types.rb', line 295

class AddTagsInput < Struct.new(
  :resource_id,
  :tags)
  include Aws::Structure
end