We are excited to announce our new API Documentation.
Protected
The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use ListTagsForResource instead.
Lists the tags for the specified log group.
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 importconst 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",// },// };
ListTagsLogGroupCommandInput
ListTagsLogGroupCommandOutput
input
response
config
ResourceNotFoundException (client fault)
The specified resource does not exist.
ServiceUnavailableException (server fault)
The service cannot complete the request.
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.
Readonly
Static
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.
Param
ListTagsLogGroupCommandInput
Returns
ListTagsLogGroupCommandOutput
See
input
shape.response
shape.config
shape.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.