import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { DeleteEventSubscriptionMessage, DeleteEventSubscriptionResponse } from "../models/models_0"; /** * @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 DeleteEventSubscriptionResponse, __MetadataBearer { } declare const DeleteEventSubscriptionCommand_base: { new (input: DeleteEventSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteEventSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes an DMS event subscription.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, DeleteEventSubscriptionCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, DeleteEventSubscriptionCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // DeleteEventSubscriptionMessage * SubscriptionName: "STRING_VALUE", // required * }; * const command = new DeleteEventSubscriptionCommand(input); * const response = await client.send(command); * // { // DeleteEventSubscriptionResponse * // 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, * // }, * // }; * * ``` * * @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 DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link AccessDeniedFault} (client fault) *

DMS was denied access to the endpoint. Check that the * role is correctly configured.

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

The resource is in a state that prevents it from being used for database migration.

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

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @public */ export declare class DeleteEventSubscriptionCommand extends DeleteEventSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteEventSubscriptionMessage; output: DeleteEventSubscriptionResponse; }; sdk: { input: DeleteEventSubscriptionCommandInput; output: DeleteEventSubscriptionCommandOutput; }; }; }