@aws-sdk/client-database-migration-service 3.363.0 → 3.368.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist-cjs/DatabaseMigrationService.js +18 -0
- package/dist-cjs/commands/CreateReplicationConfigCommand.js +46 -0
- package/dist-cjs/commands/DeleteReplicationConfigCommand.js +46 -0
- package/dist-cjs/commands/DescribeReplicationConfigsCommand.js +46 -0
- package/dist-cjs/commands/DescribeReplicationTableStatisticsCommand.js +46 -0
- package/dist-cjs/commands/DescribeReplicationsCommand.js +46 -0
- package/dist-cjs/commands/ModifyReplicationConfigCommand.js +46 -0
- package/dist-cjs/commands/ReloadReplicationTablesCommand.js +46 -0
- package/dist-cjs/commands/StartReplicationCommand.js +46 -0
- package/dist-cjs/commands/StopReplicationCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +29 -20
- package/dist-cjs/pagination/DescribeReplicationConfigsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeReplicationTableStatisticsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeReplicationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +565 -3
- package/dist-es/DatabaseMigrationService.js +18 -0
- package/dist-es/commands/CreateReplicationConfigCommand.js +42 -0
- package/dist-es/commands/DeleteReplicationConfigCommand.js +42 -0
- package/dist-es/commands/DescribeReplicationConfigsCommand.js +42 -0
- package/dist-es/commands/DescribeReplicationTableStatisticsCommand.js +42 -0
- package/dist-es/commands/DescribeReplicationsCommand.js +42 -0
- package/dist-es/commands/ModifyReplicationConfigCommand.js +42 -0
- package/dist-es/commands/ReloadReplicationTablesCommand.js +42 -0
- package/dist-es/commands/StartReplicationCommand.js +42 -0
- package/dist-es/commands/StopReplicationCommand.js +42 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +26 -17
- package/dist-es/pagination/DescribeReplicationConfigsPaginator.js +25 -0
- package/dist-es/pagination/DescribeReplicationTableStatisticsPaginator.js +25 -0
- package/dist-es/pagination/DescribeReplicationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +543 -0
- package/dist-types/DatabaseMigrationService.d.ts +63 -0
- package/dist-types/DatabaseMigrationServiceClient.d.ts +11 -2
- package/dist-types/commands/CreateEndpointCommand.d.ts +30 -0
- package/dist-types/commands/CreateReplicationConfigCommand.d.ts +151 -0
- package/dist-types/commands/CreateReplicationInstanceCommand.d.ts +1 -1
- package/dist-types/commands/CreateReplicationSubnetGroupCommand.d.ts +5 -1
- package/dist-types/commands/DeleteEndpointCommand.d.ts +15 -0
- package/dist-types/commands/DeleteReplicationConfigCommand.d.ts +109 -0
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +15 -0
- package/dist-types/commands/DescribeRecommendationsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeReplicationConfigsCommand.d.ts +112 -0
- package/dist-types/commands/DescribeReplicationTableStatisticsCommand.d.ts +118 -0
- package/dist-types/commands/DescribeReplicationsCommand.d.ts +129 -0
- package/dist-types/commands/ModifyEndpointCommand.d.ts +30 -0
- package/dist-types/commands/ModifyReplicationConfigCommand.d.ts +143 -0
- package/dist-types/commands/ModifyReplicationSubnetGroupCommand.d.ts +1 -1
- package/dist-types/commands/ReloadReplicationTablesCommand.d.ts +89 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +130 -0
- package/dist-types/commands/StopReplicationCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +1235 -344
- package/dist-types/pagination/DescribeReplicationConfigsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeReplicationTableStatisticsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeReplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +81 -0
- package/dist-types/ts3.4/DatabaseMigrationService.d.ts +159 -0
- package/dist-types/ts3.4/DatabaseMigrationServiceClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreateReplicationConfigCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteReplicationConfigCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeReplicationConfigsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeReplicationTableStatisticsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeReplicationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ModifyReplicationConfigCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ReloadReplicationTablesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartReplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StopReplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +235 -47
- package/dist-types/ts3.4/pagination/DescribeReplicationConfigsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReplicationTableStatisticsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeReplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +108 -0
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient";
|
|
5
|
+
import { ModifyReplicationConfigMessage, ModifyReplicationConfigResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ModifyReplicationConfigCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ModifyReplicationConfigCommandInput extends ModifyReplicationConfigMessage {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ModifyReplicationConfigCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ModifyReplicationConfigCommandOutput extends ModifyReplicationConfigResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Modifies an existing DMS Serverless replication configuration that you can use
|
|
27
|
+
* to start a replication. This command includes input validation and logic to check
|
|
28
|
+
* the state of any replication that uses this configuration. You can only modify a replication
|
|
29
|
+
* configuration before any replication that uses it has started. As soon as you have initially
|
|
30
|
+
* started a replication with a given configuiration, you can't modify that configuration,
|
|
31
|
+
* even if you stop it.</p>
|
|
32
|
+
* <p>Other run statuses that allow you to run this command include FAILED and CREATED.
|
|
33
|
+
* A provisioning state that allows you to run this command is FAILED_PROVISION.</p>
|
|
34
|
+
* @example
|
|
35
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
+
* ```javascript
|
|
37
|
+
* import { DatabaseMigrationServiceClient, ModifyReplicationConfigCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import
|
|
38
|
+
* // const { DatabaseMigrationServiceClient, ModifyReplicationConfigCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import
|
|
39
|
+
* const client = new DatabaseMigrationServiceClient(config);
|
|
40
|
+
* const input = { // ModifyReplicationConfigMessage
|
|
41
|
+
* ReplicationConfigArn: "STRING_VALUE", // required
|
|
42
|
+
* ReplicationConfigIdentifier: "STRING_VALUE",
|
|
43
|
+
* ReplicationType: "full-load" || "cdc" || "full-load-and-cdc",
|
|
44
|
+
* TableMappings: "STRING_VALUE",
|
|
45
|
+
* ReplicationSettings: "STRING_VALUE",
|
|
46
|
+
* SupplementalSettings: "STRING_VALUE",
|
|
47
|
+
* ComputeConfig: { // ComputeConfig
|
|
48
|
+
* AvailabilityZone: "STRING_VALUE",
|
|
49
|
+
* DnsNameServers: "STRING_VALUE",
|
|
50
|
+
* KmsKeyId: "STRING_VALUE",
|
|
51
|
+
* MaxCapacityUnits: Number("int"),
|
|
52
|
+
* MinCapacityUnits: Number("int"),
|
|
53
|
+
* MultiAZ: true || false,
|
|
54
|
+
* PreferredMaintenanceWindow: "STRING_VALUE",
|
|
55
|
+
* ReplicationSubnetGroupId: "STRING_VALUE",
|
|
56
|
+
* VpcSecurityGroupIds: [ // StringList
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* },
|
|
60
|
+
* SourceEndpointArn: "STRING_VALUE",
|
|
61
|
+
* TargetEndpointArn: "STRING_VALUE",
|
|
62
|
+
* };
|
|
63
|
+
* const command = new ModifyReplicationConfigCommand(input);
|
|
64
|
+
* const response = await client.send(command);
|
|
65
|
+
* // { // ModifyReplicationConfigResponse
|
|
66
|
+
* // ReplicationConfig: { // ReplicationConfig
|
|
67
|
+
* // ReplicationConfigIdentifier: "STRING_VALUE",
|
|
68
|
+
* // ReplicationConfigArn: "STRING_VALUE",
|
|
69
|
+
* // SourceEndpointArn: "STRING_VALUE",
|
|
70
|
+
* // TargetEndpointArn: "STRING_VALUE",
|
|
71
|
+
* // ReplicationType: "full-load" || "cdc" || "full-load-and-cdc",
|
|
72
|
+
* // ComputeConfig: { // ComputeConfig
|
|
73
|
+
* // AvailabilityZone: "STRING_VALUE",
|
|
74
|
+
* // DnsNameServers: "STRING_VALUE",
|
|
75
|
+
* // KmsKeyId: "STRING_VALUE",
|
|
76
|
+
* // MaxCapacityUnits: Number("int"),
|
|
77
|
+
* // MinCapacityUnits: Number("int"),
|
|
78
|
+
* // MultiAZ: true || false,
|
|
79
|
+
* // PreferredMaintenanceWindow: "STRING_VALUE",
|
|
80
|
+
* // ReplicationSubnetGroupId: "STRING_VALUE",
|
|
81
|
+
* // VpcSecurityGroupIds: [ // StringList
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // },
|
|
85
|
+
* // ReplicationSettings: "STRING_VALUE",
|
|
86
|
+
* // SupplementalSettings: "STRING_VALUE",
|
|
87
|
+
* // TableMappings: "STRING_VALUE",
|
|
88
|
+
* // ReplicationConfigCreateTime: new Date("TIMESTAMP"),
|
|
89
|
+
* // ReplicationConfigUpdateTime: new Date("TIMESTAMP"),
|
|
90
|
+
* // },
|
|
91
|
+
* // };
|
|
92
|
+
*
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @param ModifyReplicationConfigCommandInput - {@link ModifyReplicationConfigCommandInput}
|
|
96
|
+
* @returns {@link ModifyReplicationConfigCommandOutput}
|
|
97
|
+
* @see {@link ModifyReplicationConfigCommandInput} for command's `input` shape.
|
|
98
|
+
* @see {@link ModifyReplicationConfigCommandOutput} for command's `response` shape.
|
|
99
|
+
* @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link AccessDeniedFault} (client fault)
|
|
102
|
+
* <p>DMS was denied access to the endpoint. Check that the
|
|
103
|
+
* role is correctly configured.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link InvalidResourceStateFault} (client fault)
|
|
106
|
+
* <p>The resource is in a state that prevents it from being used for database migration.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link InvalidSubnet} (client fault)
|
|
109
|
+
* <p>The subnet provided isn't valid.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link KMSKeyNotAccessibleFault} (client fault)
|
|
112
|
+
* <p>DMS cannot access the KMS key.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ReplicationSubnetGroupDoesNotCoverEnoughAZs} (client fault)
|
|
115
|
+
* <p>The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.</p>
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link ResourceNotFoundFault} (client fault)
|
|
118
|
+
* <p>The resource could not be found.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link DatabaseMigrationServiceServiceException}
|
|
121
|
+
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
export declare class ModifyReplicationConfigCommand extends $Command<ModifyReplicationConfigCommandInput, ModifyReplicationConfigCommandOutput, DatabaseMigrationServiceClientResolvedConfig> {
|
|
125
|
+
readonly input: ModifyReplicationConfigCommandInput;
|
|
126
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
constructor(input: ModifyReplicationConfigCommandInput);
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ModifyReplicationConfigCommandInput, ModifyReplicationConfigCommandOutput>;
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
private serialize;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
private deserialize;
|
|
143
|
+
}
|
|
@@ -73,7 +73,7 @@ export interface ModifyReplicationSubnetGroupCommandOutput extends ModifyReplica
|
|
|
73
73
|
* role is correctly configured.</p>
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link InvalidSubnet} (client fault)
|
|
76
|
-
* <p>The subnet provided
|
|
76
|
+
* <p>The subnet provided isn't valid.</p>
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link ReplicationSubnetGroupDoesNotCoverEnoughAZs} (client fault)
|
|
79
79
|
* <p>The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.</p>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient";
|
|
5
|
+
import { ReloadReplicationTablesMessage, ReloadReplicationTablesResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ReloadReplicationTablesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ReloadReplicationTablesCommandInput extends ReloadReplicationTablesMessage {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ReloadReplicationTablesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ReloadReplicationTablesCommandOutput extends ReloadReplicationTablesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Reloads the target database table with the source data for a given DMS Serverless
|
|
27
|
+
* replication configuration.</p>
|
|
28
|
+
* <p>You can only use this operation with a task in the RUNNING state, otherwise the service
|
|
29
|
+
* will throw an <code>InvalidResourceStateFault</code> exception.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { DatabaseMigrationServiceClient, ReloadReplicationTablesCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import
|
|
34
|
+
* // const { DatabaseMigrationServiceClient, ReloadReplicationTablesCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import
|
|
35
|
+
* const client = new DatabaseMigrationServiceClient(config);
|
|
36
|
+
* const input = { // ReloadReplicationTablesMessage
|
|
37
|
+
* ReplicationConfigArn: "STRING_VALUE", // required
|
|
38
|
+
* TablesToReload: [ // TableListToReload // required
|
|
39
|
+
* { // TableToReload
|
|
40
|
+
* SchemaName: "STRING_VALUE", // required
|
|
41
|
+
* TableName: "STRING_VALUE", // required
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* ReloadOption: "data-reload" || "validate-only",
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ReloadReplicationTablesCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ReloadReplicationTablesResponse
|
|
49
|
+
* // ReplicationConfigArn: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ReloadReplicationTablesCommandInput - {@link ReloadReplicationTablesCommandInput}
|
|
55
|
+
* @returns {@link ReloadReplicationTablesCommandOutput}
|
|
56
|
+
* @see {@link ReloadReplicationTablesCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ReloadReplicationTablesCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InvalidResourceStateFault} (client fault)
|
|
61
|
+
* <p>The resource is in a state that prevents it from being used for database migration.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundFault} (client fault)
|
|
64
|
+
* <p>The resource could not be found.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link DatabaseMigrationServiceServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class ReloadReplicationTablesCommand extends $Command<ReloadReplicationTablesCommandInput, ReloadReplicationTablesCommandOutput, DatabaseMigrationServiceClientResolvedConfig> {
|
|
71
|
+
readonly input: ReloadReplicationTablesCommandInput;
|
|
72
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
constructor(input: ReloadReplicationTablesCommandInput);
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ReloadReplicationTablesCommandInput, ReloadReplicationTablesCommandOutput>;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
private serialize;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private deserialize;
|
|
89
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient";
|
|
5
|
+
import { StartReplicationMessage, StartReplicationResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StartReplicationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StartReplicationCommandInput extends StartReplicationMessage {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StartReplicationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StartReplicationCommandOutput extends StartReplicationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>For a given DMS Serverless replication configuration, DMS connects to the source endpoint and
|
|
27
|
+
* collects the metadata to analyze the replication workload. Using this metadata, DMS then
|
|
28
|
+
* computes and provisions the required capacity and starts replicating to the target endpoint
|
|
29
|
+
* using the server resources that DMS has provisioned for the DMS Serverless replication.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { DatabaseMigrationServiceClient, StartReplicationCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import
|
|
34
|
+
* // const { DatabaseMigrationServiceClient, StartReplicationCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import
|
|
35
|
+
* const client = new DatabaseMigrationServiceClient(config);
|
|
36
|
+
* const input = { // StartReplicationMessage
|
|
37
|
+
* ReplicationConfigArn: "STRING_VALUE", // required
|
|
38
|
+
* StartReplicationType: "STRING_VALUE", // required
|
|
39
|
+
* CdcStartTime: new Date("TIMESTAMP"),
|
|
40
|
+
* CdcStartPosition: "STRING_VALUE",
|
|
41
|
+
* CdcStopPosition: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new StartReplicationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // StartReplicationResponse
|
|
46
|
+
* // Replication: { // Replication
|
|
47
|
+
* // ReplicationConfigIdentifier: "STRING_VALUE",
|
|
48
|
+
* // ReplicationConfigArn: "STRING_VALUE",
|
|
49
|
+
* // SourceEndpointArn: "STRING_VALUE",
|
|
50
|
+
* // TargetEndpointArn: "STRING_VALUE",
|
|
51
|
+
* // ReplicationType: "full-load" || "cdc" || "full-load-and-cdc",
|
|
52
|
+
* // Status: "STRING_VALUE",
|
|
53
|
+
* // ProvisionData: { // ProvisionData
|
|
54
|
+
* // ProvisionState: "STRING_VALUE",
|
|
55
|
+
* // ProvisionedCapacityUnits: Number("int"),
|
|
56
|
+
* // DateProvisioned: new Date("TIMESTAMP"),
|
|
57
|
+
* // IsNewProvisioningAvailable: true || false,
|
|
58
|
+
* // DateNewProvisioningDataAvailable: new Date("TIMESTAMP"),
|
|
59
|
+
* // ReasonForNewProvisioningData: "STRING_VALUE",
|
|
60
|
+
* // },
|
|
61
|
+
* // StopReason: "STRING_VALUE",
|
|
62
|
+
* // FailureMessages: [ // StringList
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // ReplicationStats: { // ReplicationStats
|
|
66
|
+
* // FullLoadProgressPercent: Number("int"),
|
|
67
|
+
* // ElapsedTimeMillis: Number("long"),
|
|
68
|
+
* // TablesLoaded: Number("int"),
|
|
69
|
+
* // TablesLoading: Number("int"),
|
|
70
|
+
* // TablesQueued: Number("int"),
|
|
71
|
+
* // TablesErrored: Number("int"),
|
|
72
|
+
* // FreshStartDate: new Date("TIMESTAMP"),
|
|
73
|
+
* // StartDate: new Date("TIMESTAMP"),
|
|
74
|
+
* // StopDate: new Date("TIMESTAMP"),
|
|
75
|
+
* // FullLoadStartDate: new Date("TIMESTAMP"),
|
|
76
|
+
* // FullLoadFinishDate: new Date("TIMESTAMP"),
|
|
77
|
+
* // },
|
|
78
|
+
* // StartReplicationType: "STRING_VALUE",
|
|
79
|
+
* // CdcStartTime: new Date("TIMESTAMP"),
|
|
80
|
+
* // CdcStartPosition: "STRING_VALUE",
|
|
81
|
+
* // CdcStopPosition: "STRING_VALUE",
|
|
82
|
+
* // RecoveryCheckpoint: "STRING_VALUE",
|
|
83
|
+
* // ReplicationCreateTime: new Date("TIMESTAMP"),
|
|
84
|
+
* // ReplicationUpdateTime: new Date("TIMESTAMP"),
|
|
85
|
+
* // ReplicationLastStopTime: new Date("TIMESTAMP"),
|
|
86
|
+
* // },
|
|
87
|
+
* // };
|
|
88
|
+
*
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @param StartReplicationCommandInput - {@link StartReplicationCommandInput}
|
|
92
|
+
* @returns {@link StartReplicationCommandOutput}
|
|
93
|
+
* @see {@link StartReplicationCommandInput} for command's `input` shape.
|
|
94
|
+
* @see {@link StartReplicationCommandOutput} for command's `response` shape.
|
|
95
|
+
* @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape.
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link AccessDeniedFault} (client fault)
|
|
98
|
+
* <p>DMS was denied access to the endpoint. Check that the
|
|
99
|
+
* role is correctly configured.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link InvalidResourceStateFault} (client fault)
|
|
102
|
+
* <p>The resource is in a state that prevents it from being used for database migration.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ResourceNotFoundFault} (client fault)
|
|
105
|
+
* <p>The resource could not be found.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link DatabaseMigrationServiceServiceException}
|
|
108
|
+
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
export declare class StartReplicationCommand extends $Command<StartReplicationCommandInput, StartReplicationCommandOutput, DatabaseMigrationServiceClientResolvedConfig> {
|
|
112
|
+
readonly input: StartReplicationCommandInput;
|
|
113
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
114
|
+
/**
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
constructor(input: StartReplicationCommandInput);
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartReplicationCommandInput, StartReplicationCommandOutput>;
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
private serialize;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
private deserialize;
|
|
130
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient";
|
|
5
|
+
import { StopReplicationMessage, StopReplicationResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopReplicationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopReplicationCommandInput extends StopReplicationMessage {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopReplicationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopReplicationCommandOutput extends StopReplicationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>For a given DMS Serverless replication configuration, DMS stops any and all ongoing DMS Serverless replications.
|
|
27
|
+
* This command doesn't deprovision the stopped replications.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { DatabaseMigrationServiceClient, StopReplicationCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import
|
|
32
|
+
* // const { DatabaseMigrationServiceClient, StopReplicationCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import
|
|
33
|
+
* const client = new DatabaseMigrationServiceClient(config);
|
|
34
|
+
* const input = { // StopReplicationMessage
|
|
35
|
+
* ReplicationConfigArn: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new StopReplicationCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // StopReplicationResponse
|
|
40
|
+
* // Replication: { // Replication
|
|
41
|
+
* // ReplicationConfigIdentifier: "STRING_VALUE",
|
|
42
|
+
* // ReplicationConfigArn: "STRING_VALUE",
|
|
43
|
+
* // SourceEndpointArn: "STRING_VALUE",
|
|
44
|
+
* // TargetEndpointArn: "STRING_VALUE",
|
|
45
|
+
* // ReplicationType: "full-load" || "cdc" || "full-load-and-cdc",
|
|
46
|
+
* // Status: "STRING_VALUE",
|
|
47
|
+
* // ProvisionData: { // ProvisionData
|
|
48
|
+
* // ProvisionState: "STRING_VALUE",
|
|
49
|
+
* // ProvisionedCapacityUnits: Number("int"),
|
|
50
|
+
* // DateProvisioned: new Date("TIMESTAMP"),
|
|
51
|
+
* // IsNewProvisioningAvailable: true || false,
|
|
52
|
+
* // DateNewProvisioningDataAvailable: new Date("TIMESTAMP"),
|
|
53
|
+
* // ReasonForNewProvisioningData: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // StopReason: "STRING_VALUE",
|
|
56
|
+
* // FailureMessages: [ // StringList
|
|
57
|
+
* // "STRING_VALUE",
|
|
58
|
+
* // ],
|
|
59
|
+
* // ReplicationStats: { // ReplicationStats
|
|
60
|
+
* // FullLoadProgressPercent: Number("int"),
|
|
61
|
+
* // ElapsedTimeMillis: Number("long"),
|
|
62
|
+
* // TablesLoaded: Number("int"),
|
|
63
|
+
* // TablesLoading: Number("int"),
|
|
64
|
+
* // TablesQueued: Number("int"),
|
|
65
|
+
* // TablesErrored: Number("int"),
|
|
66
|
+
* // FreshStartDate: new Date("TIMESTAMP"),
|
|
67
|
+
* // StartDate: new Date("TIMESTAMP"),
|
|
68
|
+
* // StopDate: new Date("TIMESTAMP"),
|
|
69
|
+
* // FullLoadStartDate: new Date("TIMESTAMP"),
|
|
70
|
+
* // FullLoadFinishDate: new Date("TIMESTAMP"),
|
|
71
|
+
* // },
|
|
72
|
+
* // StartReplicationType: "STRING_VALUE",
|
|
73
|
+
* // CdcStartTime: new Date("TIMESTAMP"),
|
|
74
|
+
* // CdcStartPosition: "STRING_VALUE",
|
|
75
|
+
* // CdcStopPosition: "STRING_VALUE",
|
|
76
|
+
* // RecoveryCheckpoint: "STRING_VALUE",
|
|
77
|
+
* // ReplicationCreateTime: new Date("TIMESTAMP"),
|
|
78
|
+
* // ReplicationUpdateTime: new Date("TIMESTAMP"),
|
|
79
|
+
* // ReplicationLastStopTime: new Date("TIMESTAMP"),
|
|
80
|
+
* // },
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param StopReplicationCommandInput - {@link StopReplicationCommandInput}
|
|
86
|
+
* @returns {@link StopReplicationCommandOutput}
|
|
87
|
+
* @see {@link StopReplicationCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link StopReplicationCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AccessDeniedFault} (client fault)
|
|
92
|
+
* <p>DMS was denied access to the endpoint. Check that the
|
|
93
|
+
* role is correctly configured.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InvalidResourceStateFault} (client fault)
|
|
96
|
+
* <p>The resource is in a state that prevents it from being used for database migration.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ResourceNotFoundFault} (client fault)
|
|
99
|
+
* <p>The resource could not be found.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link DatabaseMigrationServiceServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from DatabaseMigrationService service.</p>
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
export declare class StopReplicationCommand extends $Command<StopReplicationCommandInput, StopReplicationCommandOutput, DatabaseMigrationServiceClientResolvedConfig> {
|
|
106
|
+
readonly input: StopReplicationCommandInput;
|
|
107
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
constructor(input: StopReplicationCommandInput);
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DatabaseMigrationServiceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopReplicationCommandInput, StopReplicationCommandOutput>;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
private serialize;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private deserialize;
|
|
124
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CancelReplicationTaskAssessmentRunCommand";
|
|
|
5
5
|
export * from "./CreateEndpointCommand";
|
|
6
6
|
export * from "./CreateEventSubscriptionCommand";
|
|
7
7
|
export * from "./CreateFleetAdvisorCollectorCommand";
|
|
8
|
+
export * from "./CreateReplicationConfigCommand";
|
|
8
9
|
export * from "./CreateReplicationInstanceCommand";
|
|
9
10
|
export * from "./CreateReplicationSubnetGroupCommand";
|
|
10
11
|
export * from "./CreateReplicationTaskCommand";
|
|
@@ -14,6 +15,7 @@ export * from "./DeleteEndpointCommand";
|
|
|
14
15
|
export * from "./DeleteEventSubscriptionCommand";
|
|
15
16
|
export * from "./DeleteFleetAdvisorCollectorCommand";
|
|
16
17
|
export * from "./DeleteFleetAdvisorDatabasesCommand";
|
|
18
|
+
export * from "./DeleteReplicationConfigCommand";
|
|
17
19
|
export * from "./DeleteReplicationInstanceCommand";
|
|
18
20
|
export * from "./DeleteReplicationSubnetGroupCommand";
|
|
19
21
|
export * from "./DeleteReplicationTaskAssessmentRunCommand";
|
|
@@ -38,32 +40,39 @@ export * from "./DescribePendingMaintenanceActionsCommand";
|
|
|
38
40
|
export * from "./DescribeRecommendationLimitationsCommand";
|
|
39
41
|
export * from "./DescribeRecommendationsCommand";
|
|
40
42
|
export * from "./DescribeRefreshSchemasStatusCommand";
|
|
43
|
+
export * from "./DescribeReplicationConfigsCommand";
|
|
41
44
|
export * from "./DescribeReplicationInstanceTaskLogsCommand";
|
|
42
45
|
export * from "./DescribeReplicationInstancesCommand";
|
|
43
46
|
export * from "./DescribeReplicationSubnetGroupsCommand";
|
|
47
|
+
export * from "./DescribeReplicationTableStatisticsCommand";
|
|
44
48
|
export * from "./DescribeReplicationTaskAssessmentResultsCommand";
|
|
45
49
|
export * from "./DescribeReplicationTaskAssessmentRunsCommand";
|
|
46
50
|
export * from "./DescribeReplicationTaskIndividualAssessmentsCommand";
|
|
47
51
|
export * from "./DescribeReplicationTasksCommand";
|
|
52
|
+
export * from "./DescribeReplicationsCommand";
|
|
48
53
|
export * from "./DescribeSchemasCommand";
|
|
49
54
|
export * from "./DescribeTableStatisticsCommand";
|
|
50
55
|
export * from "./ImportCertificateCommand";
|
|
51
56
|
export * from "./ListTagsForResourceCommand";
|
|
52
57
|
export * from "./ModifyEndpointCommand";
|
|
53
58
|
export * from "./ModifyEventSubscriptionCommand";
|
|
59
|
+
export * from "./ModifyReplicationConfigCommand";
|
|
54
60
|
export * from "./ModifyReplicationInstanceCommand";
|
|
55
61
|
export * from "./ModifyReplicationSubnetGroupCommand";
|
|
56
62
|
export * from "./ModifyReplicationTaskCommand";
|
|
57
63
|
export * from "./MoveReplicationTaskCommand";
|
|
58
64
|
export * from "./RebootReplicationInstanceCommand";
|
|
59
65
|
export * from "./RefreshSchemasCommand";
|
|
66
|
+
export * from "./ReloadReplicationTablesCommand";
|
|
60
67
|
export * from "./ReloadTablesCommand";
|
|
61
68
|
export * from "./RemoveTagsFromResourceCommand";
|
|
62
69
|
export * from "./RunFleetAdvisorLsaAnalysisCommand";
|
|
63
70
|
export * from "./StartRecommendationsCommand";
|
|
71
|
+
export * from "./StartReplicationCommand";
|
|
64
72
|
export * from "./StartReplicationTaskAssessmentCommand";
|
|
65
73
|
export * from "./StartReplicationTaskAssessmentRunCommand";
|
|
66
74
|
export * from "./StartReplicationTaskCommand";
|
|
75
|
+
export * from "./StopReplicationCommand";
|
|
67
76
|
export * from "./StopReplicationTaskCommand";
|
|
68
77
|
export * from "./TestConnectionCommand";
|
|
69
78
|
export * from "./UpdateSubscriptionsToEventBridgeCommand";
|