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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AddTagsRequest as input to an Aws::Client method, you can use a vanilla 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-2:123456789012:trail/MyTrail

Returns:

  • (String)

    Specifies the ARN of the trail to which one or more tags will be added.

#tags_listArray<Types::Tag>

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

Returns:

  • (Array<Types::Tag>)

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