import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEventSubscriptionsMessage, EventSubscriptionsMessage } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeEventSubscriptionsCommand}. */ export interface DescribeEventSubscriptionsCommandInput extends DescribeEventSubscriptionsMessage { } /** * @public * * The output of {@link DescribeEventSubscriptionsCommand}. */ export interface DescribeEventSubscriptionsCommandOutput extends EventSubscriptionsMessage, __MetadataBearer { } declare const DescribeEventSubscriptionsCommand_base: { new (input: DescribeEventSubscriptionsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeEventSubscriptionsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, DescribeEventSubscriptionsCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, DescribeEventSubscriptionsCommand } = require("@aws-sdk/client-rds"); // CommonJS import * // import type { RDSClientConfig } from "@aws-sdk/client-rds"; * const config = {}; // type is RDSClientConfig * const client = new RDSClient(config); * const input = { // DescribeEventSubscriptionsMessage * SubscriptionName: "STRING_VALUE", * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", // required * Values: [ // FilterValueList // required * "STRING_VALUE", * ], * }, * ], * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeEventSubscriptionsCommand(input); * const response = await client.send(command); * // { // EventSubscriptionsMessage * // Marker: "STRING_VALUE", * // EventSubscriptionsList: [ // EventSubscriptionsList * // { // EventSubscription * // CustomerAwsId: "STRING_VALUE", * // CustSubscriptionId: "STRING_VALUE", * // SnsTopicArn: "STRING_VALUE", * // Status: "STRING_VALUE", * // SubscriptionCreationTime: "STRING_VALUE", * // SourceType: "STRING_VALUE", * // SourceIdsList: [ // SourceIdsList * // "STRING_VALUE", * // ], * // EventCategoriesList: [ // EventCategoriesList * // "STRING_VALUE", * // ], * // Enabled: true || false, * // EventSubscriptionArn: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param DescribeEventSubscriptionsCommandInput - {@link DescribeEventSubscriptionsCommandInput} * @returns {@link DescribeEventSubscriptionsCommandOutput} * @see {@link DescribeEventSubscriptionsCommandInput} for command's `input` shape. * @see {@link DescribeEventSubscriptionsCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link SubscriptionNotFoundFault} (client fault) *

The subscription name does not exist.

* * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* * * @example To describe event subscriptions * ```javascript * // This example describes all of the Amazon RDS event subscriptions for the current AWS account. * const input = { /* empty *\/ }; * const command = new DescribeEventSubscriptionsCommand(input); * const response = await client.send(command); * /* response is * { * EventSubscriptionsList: [ * { * CustSubscriptionId: "my-instance-events", * CustomerAwsId: "123456789012", * Enabled: true, * EventCategoriesList: [ * "backup", * "recovery" * ], * EventSubscriptionArn: "arn:aws:rds:us-east-1:123456789012:es:my-instance-events", * SnsTopicArn: "arn:aws:sns:us-east-1:123456789012:interesting-events", * SourceType: "db-instance", * Status: "creating", * SubscriptionCreationTime: "2018-07-31 23:22:01.893" * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeEventSubscriptionsCommand extends DescribeEventSubscriptionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeEventSubscriptionsMessage; output: EventSubscriptionsMessage; }; sdk: { input: DescribeEventSubscriptionsCommandInput; output: DescribeEventSubscriptionsCommandOutput; }; }; }