organizations_tag_resource: Adds one or more tags to the specified resource

View source: R/organizations_operations.R

organizations_tag_resourceR Documentation

Adds one or more tags to the specified resource

Description

Adds one or more tags to the specified resource.

See https://www.paws-r-sdk.com/docs/organizations_tag_resource/ for full documentation.

Usage

organizations_tag_resource(ResourceId, Tags)

Arguments

ResourceId

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

You can specify any of the following taggable resources.

  • Amazon Web Services 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 ⁠

Tags

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

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

If any one of the tags is not valid or if you exceed the maximum allowed number of tags for a resource, then the entire request fails.


paws.management documentation built on Sept. 12, 2023, 1:06 a.m.