import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEventSubscriptionsMessage, EventSubscriptionsMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @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/smithy-client").CommandImpl; new (...[input]: [] | [DescribeEventSubscriptionsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists descriptions of all the Amazon Redshift event notification subscriptions for a * customer account. If you specify a subscription name, lists the description for that * subscription.

*

If you specify both tag keys and tag values in the same request, Amazon Redshift returns * all event notification subscriptions that match any combination of the specified keys * and values. For example, if you have owner and environment for * tag keys, and admin and test for tag values, all subscriptions * that have any combination of those values are returned.

*

If both tag keys and values are omitted from the request, subscriptions are * returned regardless of whether they have tag keys or values associated with * them.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeEventSubscriptionsCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeEventSubscriptionsCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // DescribeEventSubscriptionsMessage * SubscriptionName: "STRING_VALUE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * TagKeys: [ // TagKeyList * "STRING_VALUE", * ], * TagValues: [ // TagValueList * "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: new Date("TIMESTAMP"), * // SourceType: "STRING_VALUE", * // SourceIdsList: [ // SourceIdsList * // "STRING_VALUE", * // ], * // EventCategoriesList: [ // EventCategoriesList * // "STRING_VALUE", * // ], * // Severity: "STRING_VALUE", * // Enabled: true || false, * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "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 RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link InvalidTagFault} (client fault) *

The tag is invalid.

* * @throws {@link SubscriptionNotFoundFault} (client fault) *

An Amazon Redshift event notification subscription with the specified name does not * exist.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @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; }; }; }