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

Class: Aws::CloudTrail::Types::AddTagsRequest

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

Overview

Note:

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

{
  resource_id: "String", # required
  tags_list: [
    {
      key: "String", # required
      value: "String",
    },
  ],
}

Specifies the tags to add to a trail.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

Returns:

  • (String)


39
40
41
42
43
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 39

class AddTagsRequest < Struct.new(
  :resource_id,
  :tags_list)
  include Aws::Structure
end

#tags_listArray<Types::Tag>

Contains a list of CloudTrail tags, up to a limit of 50

Returns:



39
40
41
42
43
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 39

class AddTagsRequest < Struct.new(
  :resource_id,
  :tags_list)
  include Aws::Structure
end