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

Class: Aws::CloudHSMV2::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource_id: "ClusterId", # required
  tag_list: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

The cluster identifier (ID) for the cluster that you are tagging. To find the cluster ID, use DescribeClusters.

Returns:

  • (String)


661
662
663
664
665
# File 'gems/aws-sdk-cloudhsmv2/lib/aws-sdk-cloudhsmv2/types.rb', line 661

class TagResourceRequest < Struct.new(
  :resource_id,
  :tag_list)
  include Aws::Structure
end

#tag_listArray<Types::Tag>

A list of one or more tags.

Returns:



661
662
663
664
665
# File 'gems/aws-sdk-cloudhsmv2/lib/aws-sdk-cloudhsmv2/types.rb', line 661

class TagResourceRequest < Struct.new(
  :resource_id,
  :tag_list)
  include Aws::Structure
end