Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTagsForResourceCommandProtected

Lists the tags assigned to the resources.

Example

Use a bare-bones client and the command you need to make an API call.

import { EMRContainersClient, ListTagsForResourceCommand } from "@aws-sdk/client-emr-containers"; // ES Modules import
// const { EMRContainersClient, ListTagsForResourceCommand } = require("@aws-sdk/client-emr-containers"); // CommonJS import
const client = new EMRContainersClient(config);
const input = { // ListTagsForResourceRequest
resourceArn: "STRING_VALUE", // required
};
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
// { // ListTagsForResourceResponse
// tags: { // TagMap
// "<keys>": "STRING_VALUE",
// },
// };

Param

ListTagsForResourceCommandInput

Returns

ListTagsForResourceCommandOutput

See

Throws

InternalServerException (server fault)

This is an internal server exception.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ValidationException (client fault)

There are invalid parameters in the client request.

Throws

EMRContainersServiceException

Base exception class for all service exceptions from EMRContainers service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods