Skip to content

Tag Resource

ram_tag_resource R Documentation

Adds the specified tag keys and values to a resource share or managed permission

Description

Adds the specified tag keys and values to a resource share or managed permission. If you choose a resource share, the tags are attached to only the resource share, not to the resources that are in the resource share.

The tags on a managed permission are the same for all versions of the managed permission.

Usage

ram_tag_resource(resourceShareArn, tags, resourceArn)

Arguments

resourceShareArn

Specifies the Amazon Resource Name (ARN) of the resource share that you want to add tags to. You must specify either resourceShareArn, or resourceArn, but not both.

tags

[required] A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.

resourceArn

Specifies the Amazon Resource Name (ARN) of the managed permission that you want to add tags to. You must specify either resourceArn, or resourceShareArn, but not both.

Value

An empty list.

Request syntax

svc$tag_resource(
  resourceShareArn = "string",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  ),
  resourceArn = "string"
)