We are excited to announce our new API Documentation.
Protected
Lists all your destinations. The results are ASCII-sorted by destination name.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, DescribeDestinationsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import// const { CloudWatchLogsClient, DescribeDestinationsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS importconst client = new CloudWatchLogsClient(config);const input = { // DescribeDestinationsRequest DestinationNamePrefix: "STRING_VALUE", nextToken: "STRING_VALUE", limit: Number("int"),};const command = new DescribeDestinationsCommand(input);const response = await client.send(command);// { // DescribeDestinationsResponse// destinations: [ // Destinations// { // Destination// destinationName: "STRING_VALUE",// targetArn: "STRING_VALUE",// roleArn: "STRING_VALUE",// accessPolicy: "STRING_VALUE",// arn: "STRING_VALUE",// creationTime: Number("long"),// },// ],// nextToken: "STRING_VALUE",// };
DescribeDestinationsCommandInput
DescribeDestinationsCommandOutput
input
response
config
InvalidParameterException (client fault)
A parameter is specified incorrectly.
ServiceUnavailableException (server fault)
The service cannot complete the request.
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.
Readonly
Static
Lists all your destinations. The results are ASCII-sorted by destination name.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DescribeDestinationsCommandInput
Returns
DescribeDestinationsCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidParameterException (client fault)
A parameter is specified incorrectly.
Throws
ServiceUnavailableException (server fault)
The service cannot complete the request.
Throws
CloudWatchLogsServiceException
Base exception class for all service exceptions from CloudWatchLogs service.