organizations_tag_resource: Adds one or more tags to the specified resource

Description Usage Arguments Value Request syntax

View source: R/organizations_operations.R

Description

Adds one or more tags to the specified resource.

Currently, you can attach tags to the following resources in AWS Organizations.

This operation can be called only from the organization's management account.

Usage

1
organizations_tag_resource(ResourceId, Tags)

Arguments

ResourceId

[required] The ID of the resource to add a tag to.

Tags

[required] A list of tags to add to the specified resource.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.

  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz

  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b

  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null.

If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.

Value

An empty list.

Request syntax

1
2
3
4
5
6
7
8
9
svc$tag_resource(
  ResourceId = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.