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

Class: Aws::APIGateway::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource_arn: "String", # required
  tags: { # required
    "String" => "String",
  },
}

Adds or updates Tags on a gievn resource.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

[Required] The ARN of a resource that can be tagged. At present, Stage is the only taggable resource.

Returns:

  • (String)


6254
6255
6256
6257
6258
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 6254

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end

#tagsHash<String,String>

[Required] Key/Value map of strings. Valid character set is [a-zA-Z+-=._:/]. Tag key can be up to 128 characters and must not start with "aws:". Tag value can be up to 256 characters.

Returns:

  • (Hash<String,String>)


6254
6255
6256
6257
6258
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 6254

class TagResourceRequest < Struct.new(
  :resource_arn,
  :tags)
  include Aws::Structure
end