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.

Constant Summary collapse

SENSITIVE =
[]

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-2:123456789012:trail/MyTrail

Returns:

  • (String)


41
42
43
44
45
46
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 41

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

#tags_listArray<Types::Tag>

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

Returns:



41
42
43
44
45
46
# File 'gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb', line 41

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