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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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: [ # required
    {
      key: "TagKey", # required
      value: "TagValue",
    },
  ],
}

Specifies the tags to add to a trail or event data store.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_idString

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

`arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`

Returns:

  • (String)

48
49
50
51
52
53
# File 'lib/aws-sdk-cloudtrail/types.rb', line 48

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

#tags_listArray<Types::Tag>

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

Returns:


48
49
50
51
52
53
# File 'lib/aws-sdk-cloudtrail/types.rb', line 48

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