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 { ModifyEventSubscriptionMessage, ModifyEventSubscriptionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyEventSubscriptionCommand}. */ export interface ModifyEventSubscriptionCommandInput extends ModifyEventSubscriptionMessage { } /** * @public * * The output of {@link ModifyEventSubscriptionCommand}. */ export interface ModifyEventSubscriptionCommandOutput extends ModifyEventSubscriptionResponse, __MetadataBearer { } declare const ModifyEventSubscriptionCommand_base: { new (input: ModifyEventSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyEventSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies an existing DMS event notification subscription.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ModifyEventSubscriptionCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ModifyEventSubscriptionCommand } = 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 = { // ModifyEventSubscriptionMessage * SubscriptionName: "STRING_VALUE", // required * SnsTopicArn: "STRING_VALUE", * SourceType: "STRING_VALUE", * EventCategories: [ // EventCategoriesList * "STRING_VALUE", * ], * Enabled: true || false, * }; * const command = new ModifyEventSubscriptionCommand(input); * const response = await client.send(command); * // { // ModifyEventSubscriptionResponse * // 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 ModifyEventSubscriptionCommandInput - {@link ModifyEventSubscriptionCommandInput} * @returns {@link ModifyEventSubscriptionCommandOutput} * @see {@link ModifyEventSubscriptionCommandInput} for command's `input` shape. * @see {@link ModifyEventSubscriptionCommandOutput} 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 KMSAccessDeniedFault} (client fault) *

The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.

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

The specified KMS key isn't enabled.

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

The state of the specified KMS resource isn't valid for this request.

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

The specified KMS entity or resource can't be found.

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

This request triggered KMS request throttling.

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

The resource could not be found.

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

The quota for this resource quota has been exceeded.

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

The SNS topic is invalid.

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

You are not authorized for the SNS subscription.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @public */ export declare class ModifyEventSubscriptionCommand extends ModifyEventSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyEventSubscriptionMessage; output: ModifyEventSubscriptionResponse; }; sdk: { input: ModifyEventSubscriptionCommandInput; output: ModifyEventSubscriptionCommandOutput; }; }; }