Skip to content

Tag Resource

fsx_tag_resource R Documentation

Tags an Amazon FSx resource

Description

Tags an Amazon FSx resource.

Usage

fsx_tag_resource(ResourceARN, Tags)

Arguments

ResourceARN

[required] The Amazon Resource Name (ARN) of the Amazon FSx resource that you want to tag.

Tags

[required] A list of tags for the resource. If a tag with a given key already exists, the value is replaced by the one specified in this parameter.

Value

An empty list.

Request syntax

svc$tag_resource(
  ResourceARN = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

## Not run: 
# This operation tags an Amazon FSx resource.
svc$tag_resource(
  ResourceARN = "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec",
  Tags = list(
    list(
      Key = "Name",
      Value = "MyFileSystem"
    )
  )
)

## End(Not run)