Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTagsLogGroupCommandProtected

Deprecated

The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use ListTagsForResource instead.

Lists the tags for the specified log group.

Example

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

import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
// const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
const client = new CloudWatchLogsClient(config);
const input = { // ListTagsLogGroupRequest
logGroupName: "STRING_VALUE", // required
};
const command = new ListTagsLogGroupCommand(input);
const response = await client.send(command);
// { // ListTagsLogGroupResponse
// tags: { // Tags
// "<keys>": "STRING_VALUE",
// },
// };

Param

ListTagsLogGroupCommandInput

Returns

ListTagsLogGroupCommandOutput

See

Throws

ResourceNotFoundException (client fault)

The specified resource does not exist.

Throws

ServiceUnavailableException (server fault)

The service cannot complete the request.

Throws

CloudWatchLogsServiceException

Base exception class for all service exceptions from CloudWatchLogs service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods