Skip to content

Adds a tag to a resource

Description

Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor.

A minimum of one tag is required for this call. It returns an error if you use the tag_resource request with 0 tags.

Usage

cloudwatchinternetmonitor_tag_resource(ResourceArn, Tags)

Arguments

  • ResourceArn

    [required] The Amazon Resource Name (ARN) for a tag that you add to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.

  • Tags

    [required] Tags that you add to a resource. You can add a maximum of 50 tags in Internet Monitor.

Value

An empty list.

Request syntax

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