Skip to content

List Tags For Resource

ssm_list_tags_for_resource R Documentation

Returns a list of the tags assigned to the specified resource

Description

Returns a list of the tags assigned to the specified resource.

For information about the ID format for each supported resource type, see add_tags_to_resource.

Usage

ssm_list_tags_for_resource(ResourceType, ResourceId)

Arguments

ResourceType

[required] Returns a list of tags for a specific resource type.

ResourceId

[required] The resource ID for which you want to see a list of tags.

Value

A list with the following syntax:

list(
  TagList = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Request syntax

svc$list_tags_for_resource(
  ResourceType = "Document"|"ManagedInstance"|"MaintenanceWindow"|"Parameter"|"PatchBaseline"|"OpsItem"|"OpsMetadata"|"Automation"|"Association",
  ResourceId = "string"
)