Skip to content

Tag Resource

backup_tag_resource R Documentation

Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)

Description

Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN).

This API is supported for recovery points for resource types including Aurora, Amazon DocumentDB. Amazon EBS, Amazon FSx, Neptune, and Amazon RDS.

Usage

backup_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.

ARNs that do not include backup are incompatible with tagging. tag_resource and untag_resource with invalid ARNs will result in an error. Acceptable ARN content can include arn:aws:backup:us-east. Invalid ARN content may look like arn:aws:ec2:us-east.

Tags

[required] Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags: ⁠[{"Key":"string","Value":"string"}]⁠.

Value

An empty list.

Request syntax

svc$tag_resource(
  ResourceArn = "string",
  Tags = list(
    "string"
  )
)