Class: Aws::WorkSpaces::Types::CreateTagsRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-workspaces/types.rb

Overview

Note:

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

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces.

Returns:

  • (String)


238
239
240
241
242
# File 'lib/aws-sdk-workspaces/types.rb', line 238

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

#tagsArray<Types::Tag>

The tags. Each WorkSpace can have a maximum of 50 tags.

Returns:



238
239
240
241
242
# File 'lib/aws-sdk-workspaces/types.rb', line 238

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