Skip to content

Add Tags

cloudtrail_add_tags R Documentation

Adds one or more tags to a trail, event data store, or channel, up to a limit of 50

Description

Adds one or more tags to a trail, event data store, or channel, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home Region).

Usage

cloudtrail_add_tags(ResourceId, TagsList)

Arguments

ResourceId

[required] Specifies the ARN of the trail, event data store, or channel 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

The format of an event data store ARN is: ⁠arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE⁠

The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

TagsList

[required] Contains a list of tags, up to a limit of 50

Value

An empty list.

Request syntax

svc$add_tags(
  ResourceId = "string",
  TagsList = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)