Skip to content

Untag Resource

cloudwatchobservabilityaccessmanager_untag_resource R Documentation

Removes one or more tags from the specified resource

Description

Removes one or more tags from the specified resource.

Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTag permission. The iam:TagResource permission does not allow you to tag and untag links and sinks.

Usage

cloudwatchobservabilityaccessmanager_untag_resource(ResourceArn,
  TagKeys)

Arguments

ResourceArn

[required] The ARN of the resource that you're removing tags from.

The ARN format of a sink is arn:aws:oam:Region:account-id:sink/sink-id

The ARN format of a link is arn:aws:oam:Region:account-id:link/link-id

For more information about ARN format, see CloudWatch Logs resources and operations.

TagKeys

[required] The list of tag keys to remove from the resource.

Value

An empty list.

Request syntax

svc$untag_resource(
  ResourceArn = "string",
  TagKeys = list(
    "string"
  )
)