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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-workspaces/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 ID of the WorkSpace. To find this ID, use DescribeWorkspaces.

Returns:

  • (String)


154
155
156
157
158
# File 'gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/types.rb', line 154

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:



154
155
156
157
158
# File 'gems/aws-sdk-workspaces/lib/aws-sdk-workspaces/types.rb', line 154

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