@aws-sdk/client-mgn 3.423.0 → 3.425.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 +40 -0
- package/dist-cjs/Mgn.js +10 -0
- package/dist-cjs/commands/CreateConnectorCommand.js +52 -0
- package/dist-cjs/commands/DeleteConnectorCommand.js +51 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +52 -0
- package/dist-cjs/commands/UpdateConnectorCommand.js +52 -0
- package/dist-cjs/commands/UpdateSourceServerCommand.js +52 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +17 -2
- package/dist-cjs/pagination/ListConnectorsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +341 -3
- package/dist-es/Mgn.js +10 -0
- package/dist-es/commands/CreateConnectorCommand.js +48 -0
- package/dist-es/commands/DeleteConnectorCommand.js +47 -0
- package/dist-es/commands/ListConnectorsCommand.js +48 -0
- package/dist-es/commands/UpdateConnectorCommand.js +48 -0
- package/dist-es/commands/UpdateSourceServerCommand.js +48 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +328 -0
- package/dist-types/Mgn.d.ts +35 -0
- package/dist-types/MgnClient.d.ts +9 -2
- package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +4 -0
- package/dist-types/commands/CreateConnectorCommand.d.ts +101 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +80 -0
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +4 -0
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +4 -0
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +4 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +102 -0
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +4 -0
- package/dist-types/commands/PauseReplicationCommand.d.ts +4 -0
- package/dist-types/commands/ResumeReplicationCommand.d.ts +4 -0
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +4 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +4 -0
- package/dist-types/commands/StopReplicationCommand.d.ts +4 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +101 -0
- package/dist-types/commands/UpdateSourceServerCommand.d.ts +202 -0
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +243 -28
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Mgn.d.ts +85 -0
- package/dist-types/ts3.4/MgnClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateSourceServerCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +70 -13
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +31 -31
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_ResumeReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = exports.de_PauseReplicationCommand = exports.de_MarkAsArchivedCommand = exports.de_ListWavesCommand = exports.de_ListTemplateActionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceServerActionsCommand = void 0;
|
|
3
|
+
exports.se_RetryDataReplicationCommand = exports.se_ResumeReplicationCommand = exports.se_RemoveTemplateActionCommand = exports.se_RemoveSourceServerActionCommand = exports.se_PutTemplateActionCommand = exports.se_PutSourceServerActionCommand = exports.se_PauseReplicationCommand = exports.se_MarkAsArchivedCommand = exports.se_ListWavesCommand = exports.se_ListTemplateActionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceServerActionsCommand = exports.se_ListManagedAccountsCommand = exports.se_ListImportsCommand = exports.se_ListImportErrorsCommand = exports.se_ListExportsCommand = exports.se_ListExportErrorsCommand = exports.se_ListConnectorsCommand = exports.se_ListApplicationsCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_FinalizeCutoverCommand = exports.se_DisconnectFromServiceCommand = exports.se_DisassociateSourceServersCommand = exports.se_DisassociateApplicationsCommand = exports.se_DescribeVcenterClientsCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteWaveCommand = exports.se_DeleteVcenterClientCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteJobCommand = exports.se_DeleteConnectorCommand = exports.se_DeleteApplicationCommand = exports.se_CreateWaveCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateConnectorCommand = exports.se_CreateApplicationCommand = exports.se_ChangeServerLifeCycleStateCommand = exports.se_AssociateSourceServersCommand = exports.se_AssociateApplicationsCommand = exports.se_ArchiveWaveCommand = exports.se_ArchiveApplicationCommand = void 0;
|
|
4
|
+
exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_FinalizeCutoverCommand = exports.de_DisconnectFromServiceCommand = exports.de_DisassociateSourceServersCommand = exports.de_DisassociateApplicationsCommand = exports.de_DescribeVcenterClientsCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteWaveCommand = exports.de_DeleteVcenterClientCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteJobCommand = exports.de_DeleteConnectorCommand = exports.de_DeleteApplicationCommand = exports.de_CreateWaveCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateConnectorCommand = exports.de_CreateApplicationCommand = exports.de_ChangeServerLifeCycleStateCommand = exports.de_AssociateSourceServersCommand = exports.de_AssociateApplicationsCommand = exports.de_ArchiveWaveCommand = exports.de_ArchiveApplicationCommand = exports.se_UpdateWaveCommand = exports.se_UpdateSourceServerReplicationTypeCommand = exports.se_UpdateSourceServerCommand = exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateConnectorCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_UnarchiveWaveCommand = exports.se_UnarchiveApplicationCommand = exports.se_TerminateTargetInstancesCommand = exports.se_TagResourceCommand = exports.se_StopReplicationCommand = exports.se_StartTestCommand = exports.se_StartReplicationCommand = exports.se_StartImportCommand = exports.se_StartExportCommand = exports.se_StartCutoverCommand = void 0;
|
|
5
|
+
exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateSourceServerCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateConnectorCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_ResumeReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = exports.de_PauseReplicationCommand = exports.de_MarkAsArchivedCommand = exports.de_ListWavesCommand = exports.de_ListTemplateActionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceServerActionsCommand = exports.de_ListManagedAccountsCommand = exports.de_ListImportsCommand = exports.de_ListImportErrorsCommand = exports.de_ListExportsCommand = exports.de_ListExportErrorsCommand = exports.de_ListConnectorsCommand = exports.de_ListApplicationsCommand = exports.de_InitializeServiceCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -145,6 +145,30 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
148
|
+
const se_CreateConnectorCommand = async (input, context) => {
|
|
149
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/json",
|
|
152
|
+
};
|
|
153
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateConnector";
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
156
|
+
name: [],
|
|
157
|
+
ssmCommandConfig: (_) => (0, smithy_client_1._json)(_),
|
|
158
|
+
ssmInstanceID: [],
|
|
159
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
160
|
+
}));
|
|
161
|
+
return new protocol_http_1.HttpRequest({
|
|
162
|
+
protocol,
|
|
163
|
+
hostname,
|
|
164
|
+
port,
|
|
165
|
+
method: "POST",
|
|
166
|
+
headers,
|
|
167
|
+
path: resolvedPath,
|
|
168
|
+
body,
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
148
172
|
const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
149
173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
174
|
const headers = {
|
|
@@ -259,6 +283,27 @@ const se_DeleteApplicationCommand = async (input, context) => {
|
|
|
259
283
|
});
|
|
260
284
|
};
|
|
261
285
|
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
286
|
+
const se_DeleteConnectorCommand = async (input, context) => {
|
|
287
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
288
|
+
const headers = {
|
|
289
|
+
"content-type": "application/json",
|
|
290
|
+
};
|
|
291
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteConnector";
|
|
292
|
+
let body;
|
|
293
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
294
|
+
connectorID: [],
|
|
295
|
+
}));
|
|
296
|
+
return new protocol_http_1.HttpRequest({
|
|
297
|
+
protocol,
|
|
298
|
+
hostname,
|
|
299
|
+
port,
|
|
300
|
+
method: "POST",
|
|
301
|
+
headers,
|
|
302
|
+
path: resolvedPath,
|
|
303
|
+
body,
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
262
307
|
const se_DeleteJobCommand = async (input, context) => {
|
|
263
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
309
|
const headers = {
|
|
@@ -705,6 +750,29 @@ const se_ListApplicationsCommand = async (input, context) => {
|
|
|
705
750
|
});
|
|
706
751
|
};
|
|
707
752
|
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
753
|
+
const se_ListConnectorsCommand = async (input, context) => {
|
|
754
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
755
|
+
const headers = {
|
|
756
|
+
"content-type": "application/json",
|
|
757
|
+
};
|
|
758
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListConnectors";
|
|
759
|
+
let body;
|
|
760
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
761
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
762
|
+
maxResults: [],
|
|
763
|
+
nextToken: [],
|
|
764
|
+
}));
|
|
765
|
+
return new protocol_http_1.HttpRequest({
|
|
766
|
+
protocol,
|
|
767
|
+
hostname,
|
|
768
|
+
port,
|
|
769
|
+
method: "POST",
|
|
770
|
+
headers,
|
|
771
|
+
path: resolvedPath,
|
|
772
|
+
body,
|
|
773
|
+
});
|
|
774
|
+
};
|
|
775
|
+
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
708
776
|
const se_ListExportErrorsCommand = async (input, context) => {
|
|
709
777
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
710
778
|
const headers = {
|
|
@@ -1382,6 +1450,29 @@ const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
1382
1450
|
});
|
|
1383
1451
|
};
|
|
1384
1452
|
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
1453
|
+
const se_UpdateConnectorCommand = async (input, context) => {
|
|
1454
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1455
|
+
const headers = {
|
|
1456
|
+
"content-type": "application/json",
|
|
1457
|
+
};
|
|
1458
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateConnector";
|
|
1459
|
+
let body;
|
|
1460
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1461
|
+
connectorID: [],
|
|
1462
|
+
name: [],
|
|
1463
|
+
ssmCommandConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1464
|
+
}));
|
|
1465
|
+
return new protocol_http_1.HttpRequest({
|
|
1466
|
+
protocol,
|
|
1467
|
+
hostname,
|
|
1468
|
+
port,
|
|
1469
|
+
method: "POST",
|
|
1470
|
+
headers,
|
|
1471
|
+
path: resolvedPath,
|
|
1472
|
+
body,
|
|
1473
|
+
});
|
|
1474
|
+
};
|
|
1475
|
+
exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
|
|
1385
1476
|
const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
1386
1477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1387
1478
|
const headers = {
|
|
@@ -1520,6 +1611,29 @@ const se_UpdateReplicationConfigurationTemplateCommand = async (input, context)
|
|
|
1520
1611
|
});
|
|
1521
1612
|
};
|
|
1522
1613
|
exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
|
|
1614
|
+
const se_UpdateSourceServerCommand = async (input, context) => {
|
|
1615
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1616
|
+
const headers = {
|
|
1617
|
+
"content-type": "application/json",
|
|
1618
|
+
};
|
|
1619
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServer";
|
|
1620
|
+
let body;
|
|
1621
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1622
|
+
accountID: [],
|
|
1623
|
+
connectorAction: (_) => (0, smithy_client_1._json)(_),
|
|
1624
|
+
sourceServerID: [],
|
|
1625
|
+
}));
|
|
1626
|
+
return new protocol_http_1.HttpRequest({
|
|
1627
|
+
protocol,
|
|
1628
|
+
hostname,
|
|
1629
|
+
port,
|
|
1630
|
+
method: "POST",
|
|
1631
|
+
headers,
|
|
1632
|
+
path: resolvedPath,
|
|
1633
|
+
body,
|
|
1634
|
+
});
|
|
1635
|
+
};
|
|
1636
|
+
exports.se_UpdateSourceServerCommand = se_UpdateSourceServerCommand;
|
|
1523
1637
|
const se_UpdateSourceServerReplicationTypeCommand = async (input, context) => {
|
|
1524
1638
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1525
1639
|
const headers = {
|
|
@@ -1759,6 +1873,7 @@ const de_ChangeServerLifeCycleStateCommand = async (output, context) => {
|
|
|
1759
1873
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1760
1874
|
applicationID: smithy_client_1.expectString,
|
|
1761
1875
|
arn: smithy_client_1.expectString,
|
|
1876
|
+
connectorAction: smithy_client_1._json,
|
|
1762
1877
|
dataReplicationInfo: smithy_client_1._json,
|
|
1763
1878
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
1764
1879
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -1852,6 +1967,48 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
1852
1967
|
});
|
|
1853
1968
|
}
|
|
1854
1969
|
};
|
|
1970
|
+
const de_CreateConnectorCommand = async (output, context) => {
|
|
1971
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1972
|
+
return de_CreateConnectorCommandError(output, context);
|
|
1973
|
+
}
|
|
1974
|
+
const contents = (0, smithy_client_1.map)({
|
|
1975
|
+
$metadata: deserializeMetadata(output),
|
|
1976
|
+
});
|
|
1977
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1978
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1979
|
+
arn: smithy_client_1.expectString,
|
|
1980
|
+
connectorID: smithy_client_1.expectString,
|
|
1981
|
+
name: smithy_client_1.expectString,
|
|
1982
|
+
ssmCommandConfig: smithy_client_1._json,
|
|
1983
|
+
ssmInstanceID: smithy_client_1.expectString,
|
|
1984
|
+
tags: smithy_client_1._json,
|
|
1985
|
+
});
|
|
1986
|
+
Object.assign(contents, doc);
|
|
1987
|
+
return contents;
|
|
1988
|
+
};
|
|
1989
|
+
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
1990
|
+
const de_CreateConnectorCommandError = async (output, context) => {
|
|
1991
|
+
const parsedOutput = {
|
|
1992
|
+
...output,
|
|
1993
|
+
body: await parseErrorBody(output.body, context),
|
|
1994
|
+
};
|
|
1995
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
|
+
switch (errorCode) {
|
|
1997
|
+
case "UninitializedAccountException":
|
|
1998
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1999
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2000
|
+
case "ValidationException":
|
|
2001
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2002
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2003
|
+
default:
|
|
2004
|
+
const parsedBody = parsedOutput.body;
|
|
2005
|
+
return throwDefaultError({
|
|
2006
|
+
output,
|
|
2007
|
+
parsedBody,
|
|
2008
|
+
errorCode,
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
1855
2012
|
const de_CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1856
2013
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1857
2014
|
return de_CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
@@ -2047,6 +2204,42 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
2047
2204
|
});
|
|
2048
2205
|
}
|
|
2049
2206
|
};
|
|
2207
|
+
const de_DeleteConnectorCommand = async (output, context) => {
|
|
2208
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2209
|
+
return de_DeleteConnectorCommandError(output, context);
|
|
2210
|
+
}
|
|
2211
|
+
const contents = (0, smithy_client_1.map)({
|
|
2212
|
+
$metadata: deserializeMetadata(output),
|
|
2213
|
+
});
|
|
2214
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2215
|
+
return contents;
|
|
2216
|
+
};
|
|
2217
|
+
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
2218
|
+
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
2219
|
+
const parsedOutput = {
|
|
2220
|
+
...output,
|
|
2221
|
+
body: await parseErrorBody(output.body, context),
|
|
2222
|
+
};
|
|
2223
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
switch (errorCode) {
|
|
2225
|
+
case "ResourceNotFoundException":
|
|
2226
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2227
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2228
|
+
case "UninitializedAccountException":
|
|
2229
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2230
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2231
|
+
case "ValidationException":
|
|
2232
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2233
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2234
|
+
default:
|
|
2235
|
+
const parsedBody = parsedOutput.body;
|
|
2236
|
+
return throwDefaultError({
|
|
2237
|
+
output,
|
|
2238
|
+
parsedBody,
|
|
2239
|
+
errorCode,
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
};
|
|
2050
2243
|
const de_DeleteJobCommand = async (output, context) => {
|
|
2051
2244
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2052
2245
|
return de_DeleteJobCommandError(output, context);
|
|
@@ -2583,6 +2776,7 @@ const de_DisconnectFromServiceCommand = async (output, context) => {
|
|
|
2583
2776
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2584
2777
|
applicationID: smithy_client_1.expectString,
|
|
2585
2778
|
arn: smithy_client_1.expectString,
|
|
2779
|
+
connectorAction: smithy_client_1._json,
|
|
2586
2780
|
dataReplicationInfo: smithy_client_1._json,
|
|
2587
2781
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
2588
2782
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -2635,6 +2829,7 @@ const de_FinalizeCutoverCommand = async (output, context) => {
|
|
|
2635
2829
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2636
2830
|
applicationID: smithy_client_1.expectString,
|
|
2637
2831
|
arn: smithy_client_1.expectString,
|
|
2832
|
+
connectorAction: smithy_client_1._json,
|
|
2638
2833
|
dataReplicationInfo: smithy_client_1._json,
|
|
2639
2834
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
2640
2835
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -2847,6 +3042,44 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
2847
3042
|
});
|
|
2848
3043
|
}
|
|
2849
3044
|
};
|
|
3045
|
+
const de_ListConnectorsCommand = async (output, context) => {
|
|
3046
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3047
|
+
return de_ListConnectorsCommandError(output, context);
|
|
3048
|
+
}
|
|
3049
|
+
const contents = (0, smithy_client_1.map)({
|
|
3050
|
+
$metadata: deserializeMetadata(output),
|
|
3051
|
+
});
|
|
3052
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3053
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3054
|
+
items: smithy_client_1._json,
|
|
3055
|
+
nextToken: smithy_client_1.expectString,
|
|
3056
|
+
});
|
|
3057
|
+
Object.assign(contents, doc);
|
|
3058
|
+
return contents;
|
|
3059
|
+
};
|
|
3060
|
+
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
3061
|
+
const de_ListConnectorsCommandError = async (output, context) => {
|
|
3062
|
+
const parsedOutput = {
|
|
3063
|
+
...output,
|
|
3064
|
+
body: await parseErrorBody(output.body, context),
|
|
3065
|
+
};
|
|
3066
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
+
switch (errorCode) {
|
|
3068
|
+
case "UninitializedAccountException":
|
|
3069
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3070
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3071
|
+
case "ValidationException":
|
|
3072
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3073
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3074
|
+
default:
|
|
3075
|
+
const parsedBody = parsedOutput.body;
|
|
3076
|
+
return throwDefaultError({
|
|
3077
|
+
output,
|
|
3078
|
+
parsedBody,
|
|
3079
|
+
errorCode,
|
|
3080
|
+
});
|
|
3081
|
+
}
|
|
3082
|
+
};
|
|
2850
3083
|
const de_ListExportErrorsCommand = async (output, context) => {
|
|
2851
3084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2852
3085
|
return de_ListExportErrorsCommandError(output, context);
|
|
@@ -3202,6 +3435,7 @@ const de_MarkAsArchivedCommand = async (output, context) => {
|
|
|
3202
3435
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3203
3436
|
applicationID: smithy_client_1.expectString,
|
|
3204
3437
|
arn: smithy_client_1.expectString,
|
|
3438
|
+
connectorAction: smithy_client_1._json,
|
|
3205
3439
|
dataReplicationInfo: smithy_client_1._json,
|
|
3206
3440
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3207
3441
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -3254,6 +3488,7 @@ const de_PauseReplicationCommand = async (output, context) => {
|
|
|
3254
3488
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3255
3489
|
applicationID: smithy_client_1.expectString,
|
|
3256
3490
|
arn: smithy_client_1.expectString,
|
|
3491
|
+
connectorAction: smithy_client_1._json,
|
|
3257
3492
|
dataReplicationInfo: smithy_client_1._json,
|
|
3258
3493
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3259
3494
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -3493,6 +3728,7 @@ const de_ResumeReplicationCommand = async (output, context) => {
|
|
|
3493
3728
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3494
3729
|
applicationID: smithy_client_1.expectString,
|
|
3495
3730
|
arn: smithy_client_1.expectString,
|
|
3731
|
+
connectorAction: smithy_client_1._json,
|
|
3496
3732
|
dataReplicationInfo: smithy_client_1._json,
|
|
3497
3733
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3498
3734
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -3551,6 +3787,7 @@ const de_RetryDataReplicationCommand = async (output, context) => {
|
|
|
3551
3787
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3552
3788
|
applicationID: smithy_client_1.expectString,
|
|
3553
3789
|
arn: smithy_client_1.expectString,
|
|
3790
|
+
connectorAction: smithy_client_1._json,
|
|
3554
3791
|
dataReplicationInfo: smithy_client_1._json,
|
|
3555
3792
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3556
3793
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -3729,6 +3966,7 @@ const de_StartReplicationCommand = async (output, context) => {
|
|
|
3729
3966
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3730
3967
|
applicationID: smithy_client_1.expectString,
|
|
3731
3968
|
arn: smithy_client_1.expectString,
|
|
3969
|
+
connectorAction: smithy_client_1._json,
|
|
3732
3970
|
dataReplicationInfo: smithy_client_1._json,
|
|
3733
3971
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3734
3972
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -3827,6 +4065,7 @@ const de_StopReplicationCommand = async (output, context) => {
|
|
|
3827
4065
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3828
4066
|
applicationID: smithy_client_1.expectString,
|
|
3829
4067
|
arn: smithy_client_1.expectString,
|
|
4068
|
+
connectorAction: smithy_client_1._json,
|
|
3830
4069
|
dataReplicationInfo: smithy_client_1._json,
|
|
3831
4070
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3832
4071
|
isArchived: smithy_client_1.expectBoolean,
|
|
@@ -4144,6 +4383,51 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
4144
4383
|
});
|
|
4145
4384
|
}
|
|
4146
4385
|
};
|
|
4386
|
+
const de_UpdateConnectorCommand = async (output, context) => {
|
|
4387
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4388
|
+
return de_UpdateConnectorCommandError(output, context);
|
|
4389
|
+
}
|
|
4390
|
+
const contents = (0, smithy_client_1.map)({
|
|
4391
|
+
$metadata: deserializeMetadata(output),
|
|
4392
|
+
});
|
|
4393
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4394
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4395
|
+
arn: smithy_client_1.expectString,
|
|
4396
|
+
connectorID: smithy_client_1.expectString,
|
|
4397
|
+
name: smithy_client_1.expectString,
|
|
4398
|
+
ssmCommandConfig: smithy_client_1._json,
|
|
4399
|
+
ssmInstanceID: smithy_client_1.expectString,
|
|
4400
|
+
tags: smithy_client_1._json,
|
|
4401
|
+
});
|
|
4402
|
+
Object.assign(contents, doc);
|
|
4403
|
+
return contents;
|
|
4404
|
+
};
|
|
4405
|
+
exports.de_UpdateConnectorCommand = de_UpdateConnectorCommand;
|
|
4406
|
+
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
4407
|
+
const parsedOutput = {
|
|
4408
|
+
...output,
|
|
4409
|
+
body: await parseErrorBody(output.body, context),
|
|
4410
|
+
};
|
|
4411
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4412
|
+
switch (errorCode) {
|
|
4413
|
+
case "ResourceNotFoundException":
|
|
4414
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4415
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4416
|
+
case "UninitializedAccountException":
|
|
4417
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4418
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4419
|
+
case "ValidationException":
|
|
4420
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
4421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4422
|
+
default:
|
|
4423
|
+
const parsedBody = parsedOutput.body;
|
|
4424
|
+
return throwDefaultError({
|
|
4425
|
+
output,
|
|
4426
|
+
parsedBody,
|
|
4427
|
+
errorCode,
|
|
4428
|
+
});
|
|
4429
|
+
}
|
|
4430
|
+
};
|
|
4147
4431
|
const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
4148
4432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4149
4433
|
return de_UpdateLaunchConfigurationCommandError(output, context);
|
|
@@ -4376,6 +4660,59 @@ const de_UpdateReplicationConfigurationTemplateCommandError = async (output, con
|
|
|
4376
4660
|
});
|
|
4377
4661
|
}
|
|
4378
4662
|
};
|
|
4663
|
+
const de_UpdateSourceServerCommand = async (output, context) => {
|
|
4664
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4665
|
+
return de_UpdateSourceServerCommandError(output, context);
|
|
4666
|
+
}
|
|
4667
|
+
const contents = (0, smithy_client_1.map)({
|
|
4668
|
+
$metadata: deserializeMetadata(output),
|
|
4669
|
+
});
|
|
4670
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4671
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4672
|
+
applicationID: smithy_client_1.expectString,
|
|
4673
|
+
arn: smithy_client_1.expectString,
|
|
4674
|
+
connectorAction: smithy_client_1._json,
|
|
4675
|
+
dataReplicationInfo: smithy_client_1._json,
|
|
4676
|
+
fqdnForActionFramework: smithy_client_1.expectString,
|
|
4677
|
+
isArchived: smithy_client_1.expectBoolean,
|
|
4678
|
+
launchedInstance: smithy_client_1._json,
|
|
4679
|
+
lifeCycle: smithy_client_1._json,
|
|
4680
|
+
replicationType: smithy_client_1.expectString,
|
|
4681
|
+
sourceProperties: smithy_client_1._json,
|
|
4682
|
+
sourceServerID: smithy_client_1.expectString,
|
|
4683
|
+
tags: smithy_client_1._json,
|
|
4684
|
+
userProvidedID: smithy_client_1.expectString,
|
|
4685
|
+
vcenterClientID: smithy_client_1.expectString,
|
|
4686
|
+
});
|
|
4687
|
+
Object.assign(contents, doc);
|
|
4688
|
+
return contents;
|
|
4689
|
+
};
|
|
4690
|
+
exports.de_UpdateSourceServerCommand = de_UpdateSourceServerCommand;
|
|
4691
|
+
const de_UpdateSourceServerCommandError = async (output, context) => {
|
|
4692
|
+
const parsedOutput = {
|
|
4693
|
+
...output,
|
|
4694
|
+
body: await parseErrorBody(output.body, context),
|
|
4695
|
+
};
|
|
4696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4697
|
+
switch (errorCode) {
|
|
4698
|
+
case "ConflictException":
|
|
4699
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
4700
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4701
|
+
case "ResourceNotFoundException":
|
|
4702
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4703
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4704
|
+
case "UninitializedAccountException":
|
|
4705
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4706
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4707
|
+
default:
|
|
4708
|
+
const parsedBody = parsedOutput.body;
|
|
4709
|
+
return throwDefaultError({
|
|
4710
|
+
output,
|
|
4711
|
+
parsedBody,
|
|
4712
|
+
errorCode,
|
|
4713
|
+
});
|
|
4714
|
+
}
|
|
4715
|
+
};
|
|
4379
4716
|
const de_UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
4380
4717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4381
4718
|
return de_UpdateSourceServerReplicationTypeCommandError(output, context);
|
|
@@ -4387,6 +4724,7 @@ const de_UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
|
4387
4724
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4388
4725
|
applicationID: smithy_client_1.expectString,
|
|
4389
4726
|
arn: smithy_client_1.expectString,
|
|
4727
|
+
connectorAction: smithy_client_1._json,
|
|
4390
4728
|
dataReplicationInfo: smithy_client_1._json,
|
|
4391
4729
|
fqdnForActionFramework: smithy_client_1.expectString,
|
|
4392
4730
|
isArchived: smithy_client_1.expectBoolean,
|
package/dist-es/Mgn.js
CHANGED
|
@@ -5,10 +5,12 @@ import { AssociateApplicationsCommand, } from "./commands/AssociateApplicationsC
|
|
|
5
5
|
import { AssociateSourceServersCommand, } from "./commands/AssociateSourceServersCommand";
|
|
6
6
|
import { ChangeServerLifeCycleStateCommand, } from "./commands/ChangeServerLifeCycleStateCommand";
|
|
7
7
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
8
|
+
import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
|
|
8
9
|
import { CreateLaunchConfigurationTemplateCommand, } from "./commands/CreateLaunchConfigurationTemplateCommand";
|
|
9
10
|
import { CreateReplicationConfigurationTemplateCommand, } from "./commands/CreateReplicationConfigurationTemplateCommand";
|
|
10
11
|
import { CreateWaveCommand } from "./commands/CreateWaveCommand";
|
|
11
12
|
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
13
|
+
import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
12
14
|
import { DeleteJobCommand } from "./commands/DeleteJobCommand";
|
|
13
15
|
import { DeleteLaunchConfigurationTemplateCommand, } from "./commands/DeleteLaunchConfigurationTemplateCommand";
|
|
14
16
|
import { DeleteReplicationConfigurationTemplateCommand, } from "./commands/DeleteReplicationConfigurationTemplateCommand";
|
|
@@ -29,6 +31,7 @@ import { GetLaunchConfigurationCommand, } from "./commands/GetLaunchConfiguratio
|
|
|
29
31
|
import { GetReplicationConfigurationCommand, } from "./commands/GetReplicationConfigurationCommand";
|
|
30
32
|
import { InitializeServiceCommand, } from "./commands/InitializeServiceCommand";
|
|
31
33
|
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
34
|
+
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
32
35
|
import { ListExportErrorsCommand, } from "./commands/ListExportErrorsCommand";
|
|
33
36
|
import { ListExportsCommand } from "./commands/ListExportsCommand";
|
|
34
37
|
import { ListImportErrorsCommand, } from "./commands/ListImportErrorsCommand";
|
|
@@ -58,10 +61,12 @@ import { UnarchiveApplicationCommand, } from "./commands/UnarchiveApplicationCom
|
|
|
58
61
|
import { UnarchiveWaveCommand, } from "./commands/UnarchiveWaveCommand";
|
|
59
62
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
60
63
|
import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
|
|
64
|
+
import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
|
|
61
65
|
import { UpdateLaunchConfigurationCommand, } from "./commands/UpdateLaunchConfigurationCommand";
|
|
62
66
|
import { UpdateLaunchConfigurationTemplateCommand, } from "./commands/UpdateLaunchConfigurationTemplateCommand";
|
|
63
67
|
import { UpdateReplicationConfigurationCommand, } from "./commands/UpdateReplicationConfigurationCommand";
|
|
64
68
|
import { UpdateReplicationConfigurationTemplateCommand, } from "./commands/UpdateReplicationConfigurationTemplateCommand";
|
|
69
|
+
import { UpdateSourceServerCommand, } from "./commands/UpdateSourceServerCommand";
|
|
65
70
|
import { UpdateSourceServerReplicationTypeCommand, } from "./commands/UpdateSourceServerReplicationTypeCommand";
|
|
66
71
|
import { UpdateWaveCommand } from "./commands/UpdateWaveCommand";
|
|
67
72
|
import { MgnClient } from "./MgnClient";
|
|
@@ -72,10 +77,12 @@ const commands = {
|
|
|
72
77
|
AssociateSourceServersCommand,
|
|
73
78
|
ChangeServerLifeCycleStateCommand,
|
|
74
79
|
CreateApplicationCommand,
|
|
80
|
+
CreateConnectorCommand,
|
|
75
81
|
CreateLaunchConfigurationTemplateCommand,
|
|
76
82
|
CreateReplicationConfigurationTemplateCommand,
|
|
77
83
|
CreateWaveCommand,
|
|
78
84
|
DeleteApplicationCommand,
|
|
85
|
+
DeleteConnectorCommand,
|
|
79
86
|
DeleteJobCommand,
|
|
80
87
|
DeleteLaunchConfigurationTemplateCommand,
|
|
81
88
|
DeleteReplicationConfigurationTemplateCommand,
|
|
@@ -96,6 +103,7 @@ const commands = {
|
|
|
96
103
|
GetReplicationConfigurationCommand,
|
|
97
104
|
InitializeServiceCommand,
|
|
98
105
|
ListApplicationsCommand,
|
|
106
|
+
ListConnectorsCommand,
|
|
99
107
|
ListExportErrorsCommand,
|
|
100
108
|
ListExportsCommand,
|
|
101
109
|
ListImportErrorsCommand,
|
|
@@ -125,10 +133,12 @@ const commands = {
|
|
|
125
133
|
UnarchiveWaveCommand,
|
|
126
134
|
UntagResourceCommand,
|
|
127
135
|
UpdateApplicationCommand,
|
|
136
|
+
UpdateConnectorCommand,
|
|
128
137
|
UpdateLaunchConfigurationCommand,
|
|
129
138
|
UpdateLaunchConfigurationTemplateCommand,
|
|
130
139
|
UpdateReplicationConfigurationCommand,
|
|
131
140
|
UpdateReplicationConfigurationTemplateCommand,
|
|
141
|
+
UpdateSourceServerCommand,
|
|
132
142
|
UpdateSourceServerReplicationTypeCommand,
|
|
133
143
|
UpdateWaveCommand,
|
|
134
144
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { ConnectorFilterSensitiveLog, CreateConnectorRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_CreateConnectorCommand, se_CreateConnectorCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class CreateConnectorCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateConnectorCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "MgnClient";
|
|
27
|
+
const commandName = "CreateConnectorCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: CreateConnectorRequestFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: ConnectorFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "ApplicationMigrationService",
|
|
36
|
+
operation: "CreateConnector",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_CreateConnectorCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_CreateConnectorCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeleteConnectorCommand, se_DeleteConnectorCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteConnectorCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteConnectorCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "MgnClient";
|
|
26
|
+
const commandName = "DeleteConnectorCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "ApplicationMigrationService",
|
|
35
|
+
operation: "DeleteConnector",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeleteConnectorCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeleteConnectorCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|