Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTagsForResourceCommandProtected

Gets a list of the tags associated with an Cloud9 development environment.

Example

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

import { Cloud9Client, ListTagsForResourceCommand } from "@aws-sdk/client-cloud9"; // ES Modules import
// const { Cloud9Client, ListTagsForResourceCommand } = require("@aws-sdk/client-cloud9"); // CommonJS import
const client = new Cloud9Client(config);
const input = { // ListTagsForResourceRequest
ResourceARN: "STRING_VALUE", // required
};
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
// { // ListTagsForResourceResponse
// Tags: [ // TagList
// { // Tag
// Key: "STRING_VALUE", // required
// Value: "STRING_VALUE", // required
// },
// ],
// };

Param

ListTagsForResourceCommandInput

Returns

ListTagsForResourceCommandOutput

See

Throws

BadRequestException (client fault)

The target request is invalid.

Throws

InternalServerErrorException (server fault)

An internal server error occurred.

Throws

NotFoundException (client fault)

The target resource cannot be found.

Throws

Cloud9ServiceException

Base exception class for all service exceptions from Cloud9 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods