Skip to content

Tag Resource

securityhub_tag_resource R Documentation

Adds one or more tags to a resource

Description

Adds one or more tags to a resource.

Usage

securityhub_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] The ARN of the resource to apply the tags to.

Tags

[required] The tags to add to the resource. You can add up to 50 tags at a time. The tag keys can be no longer than 128 characters. The tag values can be no longer than 256 characters.

Value

An empty list.

Request syntax

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

Examples

## Not run: 
# The following example adds the 'Department' and 'Area' tags to the
# specified resource.
svc$tag_resource(
  ResourceArn = "arn:aws:securityhub:us-west-1:123456789012:hub/default",
  Tags = list(
    Area = "USMidwest",
    Department = "Operations"
  )
)

## End(Not run)