Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DescribeSubscriptionFiltersCommandProtected

Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name.

Example

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

import { CloudWatchLogsClient, DescribeSubscriptionFiltersCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
// const { CloudWatchLogsClient, DescribeSubscriptionFiltersCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
const client = new CloudWatchLogsClient(config);
const input = { // DescribeSubscriptionFiltersRequest
logGroupName: "STRING_VALUE", // required
filterNamePrefix: "STRING_VALUE",
nextToken: "STRING_VALUE",
limit: Number("int"),
};
const command = new DescribeSubscriptionFiltersCommand(input);
const response = await client.send(command);
// { // DescribeSubscriptionFiltersResponse
// subscriptionFilters: [ // SubscriptionFilters
// { // SubscriptionFilter
// filterName: "STRING_VALUE",
// logGroupName: "STRING_VALUE",
// filterPattern: "STRING_VALUE",
// destinationArn: "STRING_VALUE",
// roleArn: "STRING_VALUE",
// distribution: "Random" || "ByLogStream",
// creationTime: Number("long"),
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

DescribeSubscriptionFiltersCommandInput

Returns

DescribeSubscriptionFiltersCommandOutput

See

Throws

InvalidParameterException (client fault)

A parameter is specified incorrectly.

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