Skip to content

List Tags For Resource

ecs_list_tags_for_resource R Documentation

List the tags for an Amazon ECS resource

Description

List the tags for an Amazon ECS resource.

Usage

ecs_list_tags_for_resource(resourceArn)

Arguments

resourceArn

[required] The Amazon Resource Name (ARN) that identifies the resource to list the tags for. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.

Value

A list with the following syntax:

list(
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Request syntax

svc$list_tags_for_resource(
  resourceArn = "string"
)

Examples

## Not run: 
# This example lists the tags for the 'dev' cluster.
svc$list_tags_for_resource(
  resourceArn = "arn:aws:ecs:region:aws_account_id:cluster/dev"
)

## End(Not run)