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 a tag on a given resource.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

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

Returns:

  • (String)


6332
6333
6334
6335
6336
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 6332

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

#tagsHash<String,String>

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

Returns:

  • (Hash<String,String>)


6332
6333
6334
6335
6336
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 6332

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