Skip to content

/AWS1/CL_PCY=>LISTTAGSFORRESOURCE()

About ListTagsForResource

Lists the tags for an Amazon Web Services resource.

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 ListTagsForResource 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: This operation can't be used across different Amazon Web Services accounts.

Related operations:

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/PCYRESOURCEARN /AWS1/PCYRESOURCEARN

The KeyARN of the key whose tags you are getting.

Optional arguments:

IV_NEXTTOKEN TYPE /AWS1/PCYNEXTTOKEN /AWS1/PCYNEXTTOKEN

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received.

IV_MAXRESULTS TYPE /AWS1/PCYMAXRESULTS /AWS1/PCYMAXRESULTS

Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PCYLISTTGSFORRESRCOUT /AWS1/CL_PCYLISTTGSFORRESRCOUT