Skip to content

List Tags

cloudhsmv2_list_tags R Documentation

Gets a list of tags for the specified CloudHSM cluster

Description

Gets a list of tags for the specified CloudHSM cluster.

This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent list_tags request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.

Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.

Usage

cloudhsmv2_list_tags(ResourceId, NextToken, MaxResults)

Arguments

ResourceId

[required] The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, use describe_clusters.

NextToken

The NextToken value that you received in the previous response. Use this value to get more tags.

MaxResults

The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a NextToken value.

Value

A list with the following syntax:

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

Request syntax

svc$list_tags(
  ResourceId = "string",
  NextToken = "string",
  MaxResults = 123
)