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

Modifies an existing DMS Serverless replication configuration that you can use to * start a replication. This command includes input validation and logic to check the state of * any replication that uses this configuration. You can only modify a replication * configuration before any replication that uses it has started. As soon as you have * initially started a replication with a given configuiration, you can't modify that * configuration, even if you stop it.

*

Other run statuses that allow you to run this command include FAILED and CREATED. A * provisioning state that allows you to run this command is FAILED_PROVISION.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ModifyReplicationConfigCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ModifyReplicationConfigCommand } = 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 = { // ModifyReplicationConfigMessage * ReplicationConfigArn: "STRING_VALUE", // required * ReplicationConfigIdentifier: "STRING_VALUE", * ReplicationType: "full-load" || "cdc" || "full-load-and-cdc", * TableMappings: "STRING_VALUE", * ReplicationSettings: "STRING_VALUE", * SupplementalSettings: "STRING_VALUE", * ComputeConfig: { // ComputeConfig * AvailabilityZone: "STRING_VALUE", * DnsNameServers: "STRING_VALUE", * KmsKeyId: "STRING_VALUE", * MaxCapacityUnits: Number("int"), * MinCapacityUnits: Number("int"), * MultiAZ: true || false, * PreferredMaintenanceWindow: "STRING_VALUE", * ReplicationSubnetGroupId: "STRING_VALUE", * VpcSecurityGroupIds: [ // StringList * "STRING_VALUE", * ], * }, * SourceEndpointArn: "STRING_VALUE", * TargetEndpointArn: "STRING_VALUE", * }; * const command = new ModifyReplicationConfigCommand(input); * const response = await client.send(command); * // { // ModifyReplicationConfigResponse * // ReplicationConfig: { // ReplicationConfig * // ReplicationConfigIdentifier: "STRING_VALUE", * // ReplicationConfigArn: "STRING_VALUE", * // SourceEndpointArn: "STRING_VALUE", * // TargetEndpointArn: "STRING_VALUE", * // ReplicationType: "full-load" || "cdc" || "full-load-and-cdc", * // ComputeConfig: { // ComputeConfig * // AvailabilityZone: "STRING_VALUE", * // DnsNameServers: "STRING_VALUE", * // KmsKeyId: "STRING_VALUE", * // MaxCapacityUnits: Number("int"), * // MinCapacityUnits: Number("int"), * // MultiAZ: true || false, * // PreferredMaintenanceWindow: "STRING_VALUE", * // ReplicationSubnetGroupId: "STRING_VALUE", * // VpcSecurityGroupIds: [ // StringList * // "STRING_VALUE", * // ], * // }, * // ReplicationSettings: "STRING_VALUE", * // SupplementalSettings: "STRING_VALUE", * // TableMappings: "STRING_VALUE", * // ReplicationConfigCreateTime: new Date("TIMESTAMP"), * // ReplicationConfigUpdateTime: new Date("TIMESTAMP"), * // IsReadOnly: true || false, * // }, * // }; * * ``` * * @param ModifyReplicationConfigCommandInput - {@link ModifyReplicationConfigCommandInput} * @returns {@link ModifyReplicationConfigCommandOutput} * @see {@link ModifyReplicationConfigCommandInput} for command's `input` shape. * @see {@link ModifyReplicationConfigCommandOutput} 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 InvalidSubnet} (client fault) *

The subnet provided isn't valid.

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

DMS cannot access the KMS key.

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

The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.

* * @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 ModifyReplicationConfigCommand extends ModifyReplicationConfigCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyReplicationConfigMessage; output: ModifyReplicationConfigResponse; }; sdk: { input: ModifyReplicationConfigCommandInput; output: ModifyReplicationConfigCommandOutput; }; }; }