import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteEventSubscriptionMessage, DeleteEventSubscriptionResult } from "../models/models_0"; import type { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteEventSubscriptionCommand}. */ export interface DeleteEventSubscriptionCommandInput extends DeleteEventSubscriptionMessage { } /** * @public * * The output of {@link DeleteEventSubscriptionCommand}. */ export interface DeleteEventSubscriptionCommandOutput extends DeleteEventSubscriptionResult, __MetadataBearer { } declare const DeleteEventSubscriptionCommand_base: { new (input: DeleteEventSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteEventSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Deletes an RDS event notification subscription.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSClient, DeleteEventSubscriptionCommand } from "@aws-sdk/client-rds"; // ES Modules import * // const { RDSClient, DeleteEventSubscriptionCommand } = 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 = { // DeleteEventSubscriptionMessage * SubscriptionName: "STRING_VALUE", // required * }; * const command = new DeleteEventSubscriptionCommand(input); * const response = await client.send(command); * // { // DeleteEventSubscriptionResult * // EventSubscription: { // 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 DeleteEventSubscriptionCommandInput - {@link DeleteEventSubscriptionCommandInput} * @returns {@link DeleteEventSubscriptionCommandOutput} * @see {@link DeleteEventSubscriptionCommandInput} for command's `input` shape. * @see {@link DeleteEventSubscriptionCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * * @throws {@link InvalidEventSubscriptionStateFault} (client fault) *

This error can occur if someone else is modifying a subscription. You should retry the action.

* * @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 delete an event subscription * ```javascript * // The following example deletes the specified event subscription. * const input = { * SubscriptionName: "my-instance-events" * }; * const command = new DeleteEventSubscriptionCommand(input); * const response = await client.send(command); * /* response is * { * EventSubscription: { * CustSubscriptionId: "my-instance-events", * CustomerAwsId: "123456789012", * Enabled: false, * 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", * SourceIdsList: [ * "test-instance" * ], * SourceType: "db-instance", * Status: "deleting", * SubscriptionCreationTime: "2018-07-31 23:22:01.893" * } * } * *\/ * ``` * * @public */ export declare class DeleteEventSubscriptionCommand extends DeleteEventSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteEventSubscriptionMessage; output: DeleteEventSubscriptionResult; }; sdk: { input: DeleteEventSubscriptionCommandInput; output: DeleteEventSubscriptionCommandOutput; }; }; }