Skip to content

Deletes specified tags from a resource

Description

Deletes specified tags from a resource.

Usage

ecs_untag_resource(resourceArn, tagKeys)

Arguments

  • resourceArn

    [required] The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances.

  • tagKeys

    [required] The keys of the tags to be removed.

Value

An empty list.

Request syntax

svc$untag_resource(
  resourceArn = "string",
  tagKeys = list(
    "string"
  )
)

Examples

# This example deletes the 'team' tag from the 'dev' cluster.
svc$untag_resource(
  resourceArn = "arn:aws:ecs:region:aws_account_id:cluster/dev",
  tagKeys = list(
    "team"
  )
)