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

Class: Aws::Redshift::Types::CreateTagsMessage

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

Overview

Note:

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

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

Contains the output from the CreateTags action.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_nameString

The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

Returns:

  • (String)


1965
1966
1967
1968
1969
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 1965

class CreateTagsMessage < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter Key and the corresponding value is passed in with the parameter Value. The Key and Value parameters are separated by a comma (,). Separate multiple tags with a space. For example, --tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".

Returns:



1965
1966
1967
1968
1969
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 1965

class CreateTagsMessage < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end