Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DescribeDestinationsCommandProtected

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.

import { CloudWatchLogsClient, DescribeDestinationsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
// const { CloudWatchLogsClient, DescribeDestinationsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
const 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",
// };

Param

DescribeDestinationsCommandInput

Returns

DescribeDestinationsCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods