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

Class: Aws::CloudFront::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource: "ResourceARN", # required
  tags: { # required
    items: [
      {
        key: "TagKey", # required
        value: "TagValue",
      },
    ],
  },
}

The request to add tags to a CloudFront resource.

Instance Attribute Summary collapse

Instance Attribute Details

#resourceString

An ARN of a CloudFront resource.

Returns:

  • (String)


5106
5107
5108
5109
5110
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 5106

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

#tagsTypes::Tags

A complex type that contains zero or more Tag elements.

Returns:



5106
5107
5108
5109
5110
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 5106

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