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

Class: Aws::DirectoryService::Types::AddTagsToResourceRequest

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

Overview

Note:

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

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

Identifier (ID) for the directory to which to add the tag.

Returns:

  • (String)


137
138
139
140
141
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 137

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

#tagsArray<Types::Tag>

The tags to be assigned to the directory.

Returns:



137
138
139
140
141
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 137

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