@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
|
@@ -134,6 +134,29 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
134
134
|
body,
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
+
export const se_CreateConnectorCommand = async (input, context) => {
|
|
138
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
|
+
const headers = {
|
|
140
|
+
"content-type": "application/json",
|
|
141
|
+
};
|
|
142
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateConnector";
|
|
143
|
+
let body;
|
|
144
|
+
body = JSON.stringify(take(input, {
|
|
145
|
+
name: [],
|
|
146
|
+
ssmCommandConfig: (_) => _json(_),
|
|
147
|
+
ssmInstanceID: [],
|
|
148
|
+
tags: (_) => _json(_),
|
|
149
|
+
}));
|
|
150
|
+
return new __HttpRequest({
|
|
151
|
+
protocol,
|
|
152
|
+
hostname,
|
|
153
|
+
port,
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers,
|
|
156
|
+
path: resolvedPath,
|
|
157
|
+
body,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
137
160
|
export const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
138
161
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
162
|
const headers = {
|
|
@@ -244,6 +267,26 @@ export const se_DeleteApplicationCommand = async (input, context) => {
|
|
|
244
267
|
body,
|
|
245
268
|
});
|
|
246
269
|
};
|
|
270
|
+
export const se_DeleteConnectorCommand = async (input, context) => {
|
|
271
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
272
|
+
const headers = {
|
|
273
|
+
"content-type": "application/json",
|
|
274
|
+
};
|
|
275
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteConnector";
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(take(input, {
|
|
278
|
+
connectorID: [],
|
|
279
|
+
}));
|
|
280
|
+
return new __HttpRequest({
|
|
281
|
+
protocol,
|
|
282
|
+
hostname,
|
|
283
|
+
port,
|
|
284
|
+
method: "POST",
|
|
285
|
+
headers,
|
|
286
|
+
path: resolvedPath,
|
|
287
|
+
body,
|
|
288
|
+
});
|
|
289
|
+
};
|
|
247
290
|
export const se_DeleteJobCommand = async (input, context) => {
|
|
248
291
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
292
|
const headers = {
|
|
@@ -670,6 +713,28 @@ export const se_ListApplicationsCommand = async (input, context) => {
|
|
|
670
713
|
body,
|
|
671
714
|
});
|
|
672
715
|
};
|
|
716
|
+
export const se_ListConnectorsCommand = async (input, context) => {
|
|
717
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
718
|
+
const headers = {
|
|
719
|
+
"content-type": "application/json",
|
|
720
|
+
};
|
|
721
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListConnectors";
|
|
722
|
+
let body;
|
|
723
|
+
body = JSON.stringify(take(input, {
|
|
724
|
+
filters: (_) => _json(_),
|
|
725
|
+
maxResults: [],
|
|
726
|
+
nextToken: [],
|
|
727
|
+
}));
|
|
728
|
+
return new __HttpRequest({
|
|
729
|
+
protocol,
|
|
730
|
+
hostname,
|
|
731
|
+
port,
|
|
732
|
+
method: "POST",
|
|
733
|
+
headers,
|
|
734
|
+
path: resolvedPath,
|
|
735
|
+
body,
|
|
736
|
+
});
|
|
737
|
+
};
|
|
673
738
|
export const se_ListExportErrorsCommand = async (input, context) => {
|
|
674
739
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
675
740
|
const headers = {
|
|
@@ -1318,6 +1383,28 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
1318
1383
|
body,
|
|
1319
1384
|
});
|
|
1320
1385
|
};
|
|
1386
|
+
export const se_UpdateConnectorCommand = async (input, context) => {
|
|
1387
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1388
|
+
const headers = {
|
|
1389
|
+
"content-type": "application/json",
|
|
1390
|
+
};
|
|
1391
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateConnector";
|
|
1392
|
+
let body;
|
|
1393
|
+
body = JSON.stringify(take(input, {
|
|
1394
|
+
connectorID: [],
|
|
1395
|
+
name: [],
|
|
1396
|
+
ssmCommandConfig: (_) => _json(_),
|
|
1397
|
+
}));
|
|
1398
|
+
return new __HttpRequest({
|
|
1399
|
+
protocol,
|
|
1400
|
+
hostname,
|
|
1401
|
+
port,
|
|
1402
|
+
method: "POST",
|
|
1403
|
+
headers,
|
|
1404
|
+
path: resolvedPath,
|
|
1405
|
+
body,
|
|
1406
|
+
});
|
|
1407
|
+
};
|
|
1321
1408
|
export const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
1322
1409
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1323
1410
|
const headers = {
|
|
@@ -1452,6 +1539,28 @@ export const se_UpdateReplicationConfigurationTemplateCommand = async (input, co
|
|
|
1452
1539
|
body,
|
|
1453
1540
|
});
|
|
1454
1541
|
};
|
|
1542
|
+
export const se_UpdateSourceServerCommand = async (input, context) => {
|
|
1543
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1544
|
+
const headers = {
|
|
1545
|
+
"content-type": "application/json",
|
|
1546
|
+
};
|
|
1547
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateSourceServer";
|
|
1548
|
+
let body;
|
|
1549
|
+
body = JSON.stringify(take(input, {
|
|
1550
|
+
accountID: [],
|
|
1551
|
+
connectorAction: (_) => _json(_),
|
|
1552
|
+
sourceServerID: [],
|
|
1553
|
+
}));
|
|
1554
|
+
return new __HttpRequest({
|
|
1555
|
+
protocol,
|
|
1556
|
+
hostname,
|
|
1557
|
+
port,
|
|
1558
|
+
method: "POST",
|
|
1559
|
+
headers,
|
|
1560
|
+
path: resolvedPath,
|
|
1561
|
+
body,
|
|
1562
|
+
});
|
|
1563
|
+
};
|
|
1455
1564
|
export const se_UpdateSourceServerReplicationTypeCommand = async (input, context) => {
|
|
1456
1565
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1457
1566
|
const headers = {
|
|
@@ -1685,6 +1794,7 @@ export const de_ChangeServerLifeCycleStateCommand = async (output, context) => {
|
|
|
1685
1794
|
const doc = take(data, {
|
|
1686
1795
|
applicationID: __expectString,
|
|
1687
1796
|
arn: __expectString,
|
|
1797
|
+
connectorAction: _json,
|
|
1688
1798
|
dataReplicationInfo: _json,
|
|
1689
1799
|
fqdnForActionFramework: __expectString,
|
|
1690
1800
|
isArchived: __expectBoolean,
|
|
@@ -1776,6 +1886,47 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
1776
1886
|
});
|
|
1777
1887
|
}
|
|
1778
1888
|
};
|
|
1889
|
+
export const de_CreateConnectorCommand = async (output, context) => {
|
|
1890
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1891
|
+
return de_CreateConnectorCommandError(output, context);
|
|
1892
|
+
}
|
|
1893
|
+
const contents = map({
|
|
1894
|
+
$metadata: deserializeMetadata(output),
|
|
1895
|
+
});
|
|
1896
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1897
|
+
const doc = take(data, {
|
|
1898
|
+
arn: __expectString,
|
|
1899
|
+
connectorID: __expectString,
|
|
1900
|
+
name: __expectString,
|
|
1901
|
+
ssmCommandConfig: _json,
|
|
1902
|
+
ssmInstanceID: __expectString,
|
|
1903
|
+
tags: _json,
|
|
1904
|
+
});
|
|
1905
|
+
Object.assign(contents, doc);
|
|
1906
|
+
return contents;
|
|
1907
|
+
};
|
|
1908
|
+
const de_CreateConnectorCommandError = async (output, context) => {
|
|
1909
|
+
const parsedOutput = {
|
|
1910
|
+
...output,
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
|
+
};
|
|
1913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
+
switch (errorCode) {
|
|
1915
|
+
case "UninitializedAccountException":
|
|
1916
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1917
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ValidationException":
|
|
1919
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
1920
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
+
default:
|
|
1922
|
+
const parsedBody = parsedOutput.body;
|
|
1923
|
+
return throwDefaultError({
|
|
1924
|
+
output,
|
|
1925
|
+
parsedBody,
|
|
1926
|
+
errorCode,
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1779
1930
|
export const de_CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1780
1931
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1781
1932
|
return de_CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
@@ -1967,6 +2118,41 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
1967
2118
|
});
|
|
1968
2119
|
}
|
|
1969
2120
|
};
|
|
2121
|
+
export const de_DeleteConnectorCommand = async (output, context) => {
|
|
2122
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2123
|
+
return de_DeleteConnectorCommandError(output, context);
|
|
2124
|
+
}
|
|
2125
|
+
const contents = map({
|
|
2126
|
+
$metadata: deserializeMetadata(output),
|
|
2127
|
+
});
|
|
2128
|
+
await collectBody(output.body, context);
|
|
2129
|
+
return contents;
|
|
2130
|
+
};
|
|
2131
|
+
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
2132
|
+
const parsedOutput = {
|
|
2133
|
+
...output,
|
|
2134
|
+
body: await parseErrorBody(output.body, context),
|
|
2135
|
+
};
|
|
2136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
|
+
switch (errorCode) {
|
|
2138
|
+
case "ResourceNotFoundException":
|
|
2139
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2140
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2141
|
+
case "UninitializedAccountException":
|
|
2142
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2143
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2144
|
+
case "ValidationException":
|
|
2145
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2146
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2147
|
+
default:
|
|
2148
|
+
const parsedBody = parsedOutput.body;
|
|
2149
|
+
return throwDefaultError({
|
|
2150
|
+
output,
|
|
2151
|
+
parsedBody,
|
|
2152
|
+
errorCode,
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
};
|
|
1970
2156
|
export const de_DeleteJobCommand = async (output, context) => {
|
|
1971
2157
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1972
2158
|
return de_DeleteJobCommandError(output, context);
|
|
@@ -2489,6 +2675,7 @@ export const de_DisconnectFromServiceCommand = async (output, context) => {
|
|
|
2489
2675
|
const doc = take(data, {
|
|
2490
2676
|
applicationID: __expectString,
|
|
2491
2677
|
arn: __expectString,
|
|
2678
|
+
connectorAction: _json,
|
|
2492
2679
|
dataReplicationInfo: _json,
|
|
2493
2680
|
fqdnForActionFramework: __expectString,
|
|
2494
2681
|
isArchived: __expectBoolean,
|
|
@@ -2540,6 +2727,7 @@ export const de_FinalizeCutoverCommand = async (output, context) => {
|
|
|
2540
2727
|
const doc = take(data, {
|
|
2541
2728
|
applicationID: __expectString,
|
|
2542
2729
|
arn: __expectString,
|
|
2730
|
+
connectorAction: _json,
|
|
2543
2731
|
dataReplicationInfo: _json,
|
|
2544
2732
|
fqdnForActionFramework: __expectString,
|
|
2545
2733
|
isArchived: __expectBoolean,
|
|
@@ -2747,6 +2935,43 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
2747
2935
|
});
|
|
2748
2936
|
}
|
|
2749
2937
|
};
|
|
2938
|
+
export const de_ListConnectorsCommand = async (output, context) => {
|
|
2939
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2940
|
+
return de_ListConnectorsCommandError(output, context);
|
|
2941
|
+
}
|
|
2942
|
+
const contents = map({
|
|
2943
|
+
$metadata: deserializeMetadata(output),
|
|
2944
|
+
});
|
|
2945
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2946
|
+
const doc = take(data, {
|
|
2947
|
+
items: _json,
|
|
2948
|
+
nextToken: __expectString,
|
|
2949
|
+
});
|
|
2950
|
+
Object.assign(contents, doc);
|
|
2951
|
+
return contents;
|
|
2952
|
+
};
|
|
2953
|
+
const de_ListConnectorsCommandError = async (output, context) => {
|
|
2954
|
+
const parsedOutput = {
|
|
2955
|
+
...output,
|
|
2956
|
+
body: await parseErrorBody(output.body, context),
|
|
2957
|
+
};
|
|
2958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
|
+
switch (errorCode) {
|
|
2960
|
+
case "UninitializedAccountException":
|
|
2961
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2962
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2963
|
+
case "ValidationException":
|
|
2964
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2965
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2966
|
+
default:
|
|
2967
|
+
const parsedBody = parsedOutput.body;
|
|
2968
|
+
return throwDefaultError({
|
|
2969
|
+
output,
|
|
2970
|
+
parsedBody,
|
|
2971
|
+
errorCode,
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
};
|
|
2750
2975
|
export const de_ListExportErrorsCommand = async (output, context) => {
|
|
2751
2976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2752
2977
|
return de_ListExportErrorsCommandError(output, context);
|
|
@@ -3093,6 +3318,7 @@ export const de_MarkAsArchivedCommand = async (output, context) => {
|
|
|
3093
3318
|
const doc = take(data, {
|
|
3094
3319
|
applicationID: __expectString,
|
|
3095
3320
|
arn: __expectString,
|
|
3321
|
+
connectorAction: _json,
|
|
3096
3322
|
dataReplicationInfo: _json,
|
|
3097
3323
|
fqdnForActionFramework: __expectString,
|
|
3098
3324
|
isArchived: __expectBoolean,
|
|
@@ -3144,6 +3370,7 @@ export const de_PauseReplicationCommand = async (output, context) => {
|
|
|
3144
3370
|
const doc = take(data, {
|
|
3145
3371
|
applicationID: __expectString,
|
|
3146
3372
|
arn: __expectString,
|
|
3373
|
+
connectorAction: _json,
|
|
3147
3374
|
dataReplicationInfo: _json,
|
|
3148
3375
|
fqdnForActionFramework: __expectString,
|
|
3149
3376
|
isArchived: __expectBoolean,
|
|
@@ -3378,6 +3605,7 @@ export const de_ResumeReplicationCommand = async (output, context) => {
|
|
|
3378
3605
|
const doc = take(data, {
|
|
3379
3606
|
applicationID: __expectString,
|
|
3380
3607
|
arn: __expectString,
|
|
3608
|
+
connectorAction: _json,
|
|
3381
3609
|
dataReplicationInfo: _json,
|
|
3382
3610
|
fqdnForActionFramework: __expectString,
|
|
3383
3611
|
isArchived: __expectBoolean,
|
|
@@ -3435,6 +3663,7 @@ export const de_RetryDataReplicationCommand = async (output, context) => {
|
|
|
3435
3663
|
const doc = take(data, {
|
|
3436
3664
|
applicationID: __expectString,
|
|
3437
3665
|
arn: __expectString,
|
|
3666
|
+
connectorAction: _json,
|
|
3438
3667
|
dataReplicationInfo: _json,
|
|
3439
3668
|
fqdnForActionFramework: __expectString,
|
|
3440
3669
|
isArchived: __expectBoolean,
|
|
@@ -3609,6 +3838,7 @@ export const de_StartReplicationCommand = async (output, context) => {
|
|
|
3609
3838
|
const doc = take(data, {
|
|
3610
3839
|
applicationID: __expectString,
|
|
3611
3840
|
arn: __expectString,
|
|
3841
|
+
connectorAction: _json,
|
|
3612
3842
|
dataReplicationInfo: _json,
|
|
3613
3843
|
fqdnForActionFramework: __expectString,
|
|
3614
3844
|
isArchived: __expectBoolean,
|
|
@@ -3705,6 +3935,7 @@ export const de_StopReplicationCommand = async (output, context) => {
|
|
|
3705
3935
|
const doc = take(data, {
|
|
3706
3936
|
applicationID: __expectString,
|
|
3707
3937
|
arn: __expectString,
|
|
3938
|
+
connectorAction: _json,
|
|
3708
3939
|
dataReplicationInfo: _json,
|
|
3709
3940
|
fqdnForActionFramework: __expectString,
|
|
3710
3941
|
isArchived: __expectBoolean,
|
|
@@ -4015,6 +4246,50 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
4015
4246
|
});
|
|
4016
4247
|
}
|
|
4017
4248
|
};
|
|
4249
|
+
export const de_UpdateConnectorCommand = async (output, context) => {
|
|
4250
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4251
|
+
return de_UpdateConnectorCommandError(output, context);
|
|
4252
|
+
}
|
|
4253
|
+
const contents = map({
|
|
4254
|
+
$metadata: deserializeMetadata(output),
|
|
4255
|
+
});
|
|
4256
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4257
|
+
const doc = take(data, {
|
|
4258
|
+
arn: __expectString,
|
|
4259
|
+
connectorID: __expectString,
|
|
4260
|
+
name: __expectString,
|
|
4261
|
+
ssmCommandConfig: _json,
|
|
4262
|
+
ssmInstanceID: __expectString,
|
|
4263
|
+
tags: _json,
|
|
4264
|
+
});
|
|
4265
|
+
Object.assign(contents, doc);
|
|
4266
|
+
return contents;
|
|
4267
|
+
};
|
|
4268
|
+
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
4269
|
+
const parsedOutput = {
|
|
4270
|
+
...output,
|
|
4271
|
+
body: await parseErrorBody(output.body, context),
|
|
4272
|
+
};
|
|
4273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
|
+
switch (errorCode) {
|
|
4275
|
+
case "ResourceNotFoundException":
|
|
4276
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4277
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4278
|
+
case "UninitializedAccountException":
|
|
4279
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4280
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4281
|
+
case "ValidationException":
|
|
4282
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
4283
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4284
|
+
default:
|
|
4285
|
+
const parsedBody = parsedOutput.body;
|
|
4286
|
+
return throwDefaultError({
|
|
4287
|
+
output,
|
|
4288
|
+
parsedBody,
|
|
4289
|
+
errorCode,
|
|
4290
|
+
});
|
|
4291
|
+
}
|
|
4292
|
+
};
|
|
4018
4293
|
export const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
4019
4294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4020
4295
|
return de_UpdateLaunchConfigurationCommandError(output, context);
|
|
@@ -4243,6 +4518,58 @@ const de_UpdateReplicationConfigurationTemplateCommandError = async (output, con
|
|
|
4243
4518
|
});
|
|
4244
4519
|
}
|
|
4245
4520
|
};
|
|
4521
|
+
export const de_UpdateSourceServerCommand = async (output, context) => {
|
|
4522
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4523
|
+
return de_UpdateSourceServerCommandError(output, context);
|
|
4524
|
+
}
|
|
4525
|
+
const contents = map({
|
|
4526
|
+
$metadata: deserializeMetadata(output),
|
|
4527
|
+
});
|
|
4528
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4529
|
+
const doc = take(data, {
|
|
4530
|
+
applicationID: __expectString,
|
|
4531
|
+
arn: __expectString,
|
|
4532
|
+
connectorAction: _json,
|
|
4533
|
+
dataReplicationInfo: _json,
|
|
4534
|
+
fqdnForActionFramework: __expectString,
|
|
4535
|
+
isArchived: __expectBoolean,
|
|
4536
|
+
launchedInstance: _json,
|
|
4537
|
+
lifeCycle: _json,
|
|
4538
|
+
replicationType: __expectString,
|
|
4539
|
+
sourceProperties: _json,
|
|
4540
|
+
sourceServerID: __expectString,
|
|
4541
|
+
tags: _json,
|
|
4542
|
+
userProvidedID: __expectString,
|
|
4543
|
+
vcenterClientID: __expectString,
|
|
4544
|
+
});
|
|
4545
|
+
Object.assign(contents, doc);
|
|
4546
|
+
return contents;
|
|
4547
|
+
};
|
|
4548
|
+
const de_UpdateSourceServerCommandError = async (output, context) => {
|
|
4549
|
+
const parsedOutput = {
|
|
4550
|
+
...output,
|
|
4551
|
+
body: await parseErrorBody(output.body, context),
|
|
4552
|
+
};
|
|
4553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4554
|
+
switch (errorCode) {
|
|
4555
|
+
case "ConflictException":
|
|
4556
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
4557
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4558
|
+
case "ResourceNotFoundException":
|
|
4559
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4560
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4561
|
+
case "UninitializedAccountException":
|
|
4562
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4563
|
+
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4564
|
+
default:
|
|
4565
|
+
const parsedBody = parsedOutput.body;
|
|
4566
|
+
return throwDefaultError({
|
|
4567
|
+
output,
|
|
4568
|
+
parsedBody,
|
|
4569
|
+
errorCode,
|
|
4570
|
+
});
|
|
4571
|
+
}
|
|
4572
|
+
};
|
|
4246
4573
|
export const de_UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
4247
4574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4248
4575
|
return de_UpdateSourceServerReplicationTypeCommandError(output, context);
|
|
@@ -4254,6 +4581,7 @@ export const de_UpdateSourceServerReplicationTypeCommand = async (output, contex
|
|
|
4254
4581
|
const doc = take(data, {
|
|
4255
4582
|
applicationID: __expectString,
|
|
4256
4583
|
arn: __expectString,
|
|
4584
|
+
connectorAction: _json,
|
|
4257
4585
|
dataReplicationInfo: _json,
|
|
4258
4586
|
fqdnForActionFramework: __expectString,
|
|
4259
4587
|
isArchived: __expectBoolean,
|
package/dist-types/Mgn.d.ts
CHANGED
|
@@ -5,10 +5,12 @@ import { AssociateApplicationsCommandInput, AssociateApplicationsCommandOutput }
|
|
|
5
5
|
import { AssociateSourceServersCommandInput, AssociateSourceServersCommandOutput } from "./commands/AssociateSourceServersCommand";
|
|
6
6
|
import { ChangeServerLifeCycleStateCommandInput, ChangeServerLifeCycleStateCommandOutput } from "./commands/ChangeServerLifeCycleStateCommand";
|
|
7
7
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
8
|
+
import { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
8
9
|
import { CreateLaunchConfigurationTemplateCommandInput, CreateLaunchConfigurationTemplateCommandOutput } from "./commands/CreateLaunchConfigurationTemplateCommand";
|
|
9
10
|
import { CreateReplicationConfigurationTemplateCommandInput, CreateReplicationConfigurationTemplateCommandOutput } from "./commands/CreateReplicationConfigurationTemplateCommand";
|
|
10
11
|
import { CreateWaveCommandInput, CreateWaveCommandOutput } from "./commands/CreateWaveCommand";
|
|
11
12
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
13
|
+
import { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
12
14
|
import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
|
|
13
15
|
import { DeleteLaunchConfigurationTemplateCommandInput, DeleteLaunchConfigurationTemplateCommandOutput } from "./commands/DeleteLaunchConfigurationTemplateCommand";
|
|
14
16
|
import { DeleteReplicationConfigurationTemplateCommandInput, DeleteReplicationConfigurationTemplateCommandOutput } from "./commands/DeleteReplicationConfigurationTemplateCommand";
|
|
@@ -29,6 +31,7 @@ import { GetLaunchConfigurationCommandInput, GetLaunchConfigurationCommandOutput
|
|
|
29
31
|
import { GetReplicationConfigurationCommandInput, GetReplicationConfigurationCommandOutput } from "./commands/GetReplicationConfigurationCommand";
|
|
30
32
|
import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
|
|
31
33
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
34
|
+
import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
|
|
32
35
|
import { ListExportErrorsCommandInput, ListExportErrorsCommandOutput } from "./commands/ListExportErrorsCommand";
|
|
33
36
|
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
|
|
34
37
|
import { ListImportErrorsCommandInput, ListImportErrorsCommandOutput } from "./commands/ListImportErrorsCommand";
|
|
@@ -58,10 +61,12 @@ import { UnarchiveApplicationCommandInput, UnarchiveApplicationCommandOutput } f
|
|
|
58
61
|
import { UnarchiveWaveCommandInput, UnarchiveWaveCommandOutput } from "./commands/UnarchiveWaveCommand";
|
|
59
62
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
60
63
|
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
|
|
64
|
+
import { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
|
|
61
65
|
import { UpdateLaunchConfigurationCommandInput, UpdateLaunchConfigurationCommandOutput } from "./commands/UpdateLaunchConfigurationCommand";
|
|
62
66
|
import { UpdateLaunchConfigurationTemplateCommandInput, UpdateLaunchConfigurationTemplateCommandOutput } from "./commands/UpdateLaunchConfigurationTemplateCommand";
|
|
63
67
|
import { UpdateReplicationConfigurationCommandInput, UpdateReplicationConfigurationCommandOutput } from "./commands/UpdateReplicationConfigurationCommand";
|
|
64
68
|
import { UpdateReplicationConfigurationTemplateCommandInput, UpdateReplicationConfigurationTemplateCommandOutput } from "./commands/UpdateReplicationConfigurationTemplateCommand";
|
|
69
|
+
import { UpdateSourceServerCommandInput, UpdateSourceServerCommandOutput } from "./commands/UpdateSourceServerCommand";
|
|
65
70
|
import { UpdateSourceServerReplicationTypeCommandInput, UpdateSourceServerReplicationTypeCommandOutput } from "./commands/UpdateSourceServerReplicationTypeCommand";
|
|
66
71
|
import { UpdateWaveCommandInput, UpdateWaveCommandOutput } from "./commands/UpdateWaveCommand";
|
|
67
72
|
import { MgnClient } from "./MgnClient";
|
|
@@ -102,6 +107,12 @@ export interface Mgn {
|
|
|
102
107
|
createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
|
|
103
108
|
createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
104
109
|
createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link CreateConnectorCommand}
|
|
112
|
+
*/
|
|
113
|
+
createConnector(args: CreateConnectorCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectorCommandOutput>;
|
|
114
|
+
createConnector(args: CreateConnectorCommandInput, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
115
|
+
createConnector(args: CreateConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
105
116
|
/**
|
|
106
117
|
* @see {@link CreateLaunchConfigurationTemplateCommand}
|
|
107
118
|
*/
|
|
@@ -126,6 +137,12 @@ export interface Mgn {
|
|
|
126
137
|
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
127
138
|
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
128
139
|
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
140
|
+
/**
|
|
141
|
+
* @see {@link DeleteConnectorCommand}
|
|
142
|
+
*/
|
|
143
|
+
deleteConnector(args: DeleteConnectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteConnectorCommandOutput>;
|
|
144
|
+
deleteConnector(args: DeleteConnectorCommandInput, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
|
|
145
|
+
deleteConnector(args: DeleteConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteConnectorCommandOutput) => void): void;
|
|
129
146
|
/**
|
|
130
147
|
* @see {@link DeleteJobCommand}
|
|
131
148
|
*/
|
|
@@ -246,6 +263,12 @@ export interface Mgn {
|
|
|
246
263
|
listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
|
|
247
264
|
listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
248
265
|
listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
266
|
+
/**
|
|
267
|
+
* @see {@link ListConnectorsCommand}
|
|
268
|
+
*/
|
|
269
|
+
listConnectors(args: ListConnectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListConnectorsCommandOutput>;
|
|
270
|
+
listConnectors(args: ListConnectorsCommandInput, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
|
|
271
|
+
listConnectors(args: ListConnectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConnectorsCommandOutput) => void): void;
|
|
249
272
|
/**
|
|
250
273
|
* @see {@link ListExportErrorsCommand}
|
|
251
274
|
*/
|
|
@@ -420,6 +443,12 @@ export interface Mgn {
|
|
|
420
443
|
updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
|
|
421
444
|
updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
|
|
422
445
|
updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
|
|
446
|
+
/**
|
|
447
|
+
* @see {@link UpdateConnectorCommand}
|
|
448
|
+
*/
|
|
449
|
+
updateConnector(args: UpdateConnectorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorCommandOutput>;
|
|
450
|
+
updateConnector(args: UpdateConnectorCommandInput, cb: (err: any, data?: UpdateConnectorCommandOutput) => void): void;
|
|
451
|
+
updateConnector(args: UpdateConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorCommandOutput) => void): void;
|
|
423
452
|
/**
|
|
424
453
|
* @see {@link UpdateLaunchConfigurationCommand}
|
|
425
454
|
*/
|
|
@@ -444,6 +473,12 @@ export interface Mgn {
|
|
|
444
473
|
updateReplicationConfigurationTemplate(args: UpdateReplicationConfigurationTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateReplicationConfigurationTemplateCommandOutput>;
|
|
445
474
|
updateReplicationConfigurationTemplate(args: UpdateReplicationConfigurationTemplateCommandInput, cb: (err: any, data?: UpdateReplicationConfigurationTemplateCommandOutput) => void): void;
|
|
446
475
|
updateReplicationConfigurationTemplate(args: UpdateReplicationConfigurationTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateReplicationConfigurationTemplateCommandOutput) => void): void;
|
|
476
|
+
/**
|
|
477
|
+
* @see {@link UpdateSourceServerCommand}
|
|
478
|
+
*/
|
|
479
|
+
updateSourceServer(args: UpdateSourceServerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSourceServerCommandOutput>;
|
|
480
|
+
updateSourceServer(args: UpdateSourceServerCommandInput, cb: (err: any, data?: UpdateSourceServerCommandOutput) => void): void;
|
|
481
|
+
updateSourceServer(args: UpdateSourceServerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSourceServerCommandOutput) => void): void;
|
|
447
482
|
/**
|
|
448
483
|
* @see {@link UpdateSourceServerReplicationTypeCommand}
|
|
449
484
|
*/
|
|
@@ -14,10 +14,12 @@ import { AssociateApplicationsCommandInput, AssociateApplicationsCommandOutput }
|
|
|
14
14
|
import { AssociateSourceServersCommandInput, AssociateSourceServersCommandOutput } from "./commands/AssociateSourceServersCommand";
|
|
15
15
|
import { ChangeServerLifeCycleStateCommandInput, ChangeServerLifeCycleStateCommandOutput } from "./commands/ChangeServerLifeCycleStateCommand";
|
|
16
16
|
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
17
|
+
import { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
17
18
|
import { CreateLaunchConfigurationTemplateCommandInput, CreateLaunchConfigurationTemplateCommandOutput } from "./commands/CreateLaunchConfigurationTemplateCommand";
|
|
18
19
|
import { CreateReplicationConfigurationTemplateCommandInput, CreateReplicationConfigurationTemplateCommandOutput } from "./commands/CreateReplicationConfigurationTemplateCommand";
|
|
19
20
|
import { CreateWaveCommandInput, CreateWaveCommandOutput } from "./commands/CreateWaveCommand";
|
|
20
21
|
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
22
|
+
import { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
21
23
|
import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
|
|
22
24
|
import { DeleteLaunchConfigurationTemplateCommandInput, DeleteLaunchConfigurationTemplateCommandOutput } from "./commands/DeleteLaunchConfigurationTemplateCommand";
|
|
23
25
|
import { DeleteReplicationConfigurationTemplateCommandInput, DeleteReplicationConfigurationTemplateCommandOutput } from "./commands/DeleteReplicationConfigurationTemplateCommand";
|
|
@@ -38,6 +40,7 @@ import { GetLaunchConfigurationCommandInput, GetLaunchConfigurationCommandOutput
|
|
|
38
40
|
import { GetReplicationConfigurationCommandInput, GetReplicationConfigurationCommandOutput } from "./commands/GetReplicationConfigurationCommand";
|
|
39
41
|
import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
|
|
40
42
|
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
43
|
+
import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
|
|
41
44
|
import { ListExportErrorsCommandInput, ListExportErrorsCommandOutput } from "./commands/ListExportErrorsCommand";
|
|
42
45
|
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
|
|
43
46
|
import { ListImportErrorsCommandInput, ListImportErrorsCommandOutput } from "./commands/ListImportErrorsCommand";
|
|
@@ -67,10 +70,12 @@ import { UnarchiveApplicationCommandInput, UnarchiveApplicationCommandOutput } f
|
|
|
67
70
|
import { UnarchiveWaveCommandInput, UnarchiveWaveCommandOutput } from "./commands/UnarchiveWaveCommand";
|
|
68
71
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
69
72
|
import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
|
|
73
|
+
import { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
|
|
70
74
|
import { UpdateLaunchConfigurationCommandInput, UpdateLaunchConfigurationCommandOutput } from "./commands/UpdateLaunchConfigurationCommand";
|
|
71
75
|
import { UpdateLaunchConfigurationTemplateCommandInput, UpdateLaunchConfigurationTemplateCommandOutput } from "./commands/UpdateLaunchConfigurationTemplateCommand";
|
|
72
76
|
import { UpdateReplicationConfigurationCommandInput, UpdateReplicationConfigurationCommandOutput } from "./commands/UpdateReplicationConfigurationCommand";
|
|
73
77
|
import { UpdateReplicationConfigurationTemplateCommandInput, UpdateReplicationConfigurationTemplateCommandOutput } from "./commands/UpdateReplicationConfigurationTemplateCommand";
|
|
78
|
+
import { UpdateSourceServerCommandInput, UpdateSourceServerCommandOutput } from "./commands/UpdateSourceServerCommand";
|
|
74
79
|
import { UpdateSourceServerReplicationTypeCommandInput, UpdateSourceServerReplicationTypeCommandOutput } from "./commands/UpdateSourceServerReplicationTypeCommand";
|
|
75
80
|
import { UpdateWaveCommandInput, UpdateWaveCommandOutput } from "./commands/UpdateWaveCommand";
|
|
76
81
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -79,11 +84,11 @@ export { __Client };
|
|
|
79
84
|
/**
|
|
80
85
|
* @public
|
|
81
86
|
*/
|
|
82
|
-
export type ServiceInputTypes = ArchiveApplicationCommandInput | ArchiveWaveCommandInput | AssociateApplicationsCommandInput | AssociateSourceServersCommandInput | ChangeServerLifeCycleStateCommandInput | CreateApplicationCommandInput | CreateLaunchConfigurationTemplateCommandInput | CreateReplicationConfigurationTemplateCommandInput | CreateWaveCommandInput | DeleteApplicationCommandInput | DeleteJobCommandInput | DeleteLaunchConfigurationTemplateCommandInput | DeleteReplicationConfigurationTemplateCommandInput | DeleteSourceServerCommandInput | DeleteVcenterClientCommandInput | DeleteWaveCommandInput | DescribeJobLogItemsCommandInput | DescribeJobsCommandInput | DescribeLaunchConfigurationTemplatesCommandInput | DescribeReplicationConfigurationTemplatesCommandInput | DescribeSourceServersCommandInput | DescribeVcenterClientsCommandInput | DisassociateApplicationsCommandInput | DisassociateSourceServersCommandInput | DisconnectFromServiceCommandInput | FinalizeCutoverCommandInput | GetLaunchConfigurationCommandInput | GetReplicationConfigurationCommandInput | InitializeServiceCommandInput | ListApplicationsCommandInput | ListExportErrorsCommandInput | ListExportsCommandInput | ListImportErrorsCommandInput | ListImportsCommandInput | ListManagedAccountsCommandInput | ListSourceServerActionsCommandInput | ListTagsForResourceCommandInput | ListTemplateActionsCommandInput | ListWavesCommandInput | MarkAsArchivedCommandInput | PauseReplicationCommandInput | PutSourceServerActionCommandInput | PutTemplateActionCommandInput | RemoveSourceServerActionCommandInput | RemoveTemplateActionCommandInput | ResumeReplicationCommandInput | RetryDataReplicationCommandInput | StartCutoverCommandInput | StartExportCommandInput | StartImportCommandInput | StartReplicationCommandInput | StartTestCommandInput | StopReplicationCommandInput | TagResourceCommandInput | TerminateTargetInstancesCommandInput | UnarchiveApplicationCommandInput | UnarchiveWaveCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateLaunchConfigurationCommandInput | UpdateLaunchConfigurationTemplateCommandInput | UpdateReplicationConfigurationCommandInput | UpdateReplicationConfigurationTemplateCommandInput | UpdateSourceServerReplicationTypeCommandInput | UpdateWaveCommandInput;
|
|
87
|
+
export type ServiceInputTypes = ArchiveApplicationCommandInput | ArchiveWaveCommandInput | AssociateApplicationsCommandInput | AssociateSourceServersCommandInput | ChangeServerLifeCycleStateCommandInput | CreateApplicationCommandInput | CreateConnectorCommandInput | CreateLaunchConfigurationTemplateCommandInput | CreateReplicationConfigurationTemplateCommandInput | CreateWaveCommandInput | DeleteApplicationCommandInput | DeleteConnectorCommandInput | DeleteJobCommandInput | DeleteLaunchConfigurationTemplateCommandInput | DeleteReplicationConfigurationTemplateCommandInput | DeleteSourceServerCommandInput | DeleteVcenterClientCommandInput | DeleteWaveCommandInput | DescribeJobLogItemsCommandInput | DescribeJobsCommandInput | DescribeLaunchConfigurationTemplatesCommandInput | DescribeReplicationConfigurationTemplatesCommandInput | DescribeSourceServersCommandInput | DescribeVcenterClientsCommandInput | DisassociateApplicationsCommandInput | DisassociateSourceServersCommandInput | DisconnectFromServiceCommandInput | FinalizeCutoverCommandInput | GetLaunchConfigurationCommandInput | GetReplicationConfigurationCommandInput | InitializeServiceCommandInput | ListApplicationsCommandInput | ListConnectorsCommandInput | ListExportErrorsCommandInput | ListExportsCommandInput | ListImportErrorsCommandInput | ListImportsCommandInput | ListManagedAccountsCommandInput | ListSourceServerActionsCommandInput | ListTagsForResourceCommandInput | ListTemplateActionsCommandInput | ListWavesCommandInput | MarkAsArchivedCommandInput | PauseReplicationCommandInput | PutSourceServerActionCommandInput | PutTemplateActionCommandInput | RemoveSourceServerActionCommandInput | RemoveTemplateActionCommandInput | ResumeReplicationCommandInput | RetryDataReplicationCommandInput | StartCutoverCommandInput | StartExportCommandInput | StartImportCommandInput | StartReplicationCommandInput | StartTestCommandInput | StopReplicationCommandInput | TagResourceCommandInput | TerminateTargetInstancesCommandInput | UnarchiveApplicationCommandInput | UnarchiveWaveCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateConnectorCommandInput | UpdateLaunchConfigurationCommandInput | UpdateLaunchConfigurationTemplateCommandInput | UpdateReplicationConfigurationCommandInput | UpdateReplicationConfigurationTemplateCommandInput | UpdateSourceServerCommandInput | UpdateSourceServerReplicationTypeCommandInput | UpdateWaveCommandInput;
|
|
83
88
|
/**
|
|
84
89
|
* @public
|
|
85
90
|
*/
|
|
86
|
-
export type ServiceOutputTypes = ArchiveApplicationCommandOutput | ArchiveWaveCommandOutput | AssociateApplicationsCommandOutput | AssociateSourceServersCommandOutput | ChangeServerLifeCycleStateCommandOutput | CreateApplicationCommandOutput | CreateLaunchConfigurationTemplateCommandOutput | CreateReplicationConfigurationTemplateCommandOutput | CreateWaveCommandOutput | DeleteApplicationCommandOutput | DeleteJobCommandOutput | DeleteLaunchConfigurationTemplateCommandOutput | DeleteReplicationConfigurationTemplateCommandOutput | DeleteSourceServerCommandOutput | DeleteVcenterClientCommandOutput | DeleteWaveCommandOutput | DescribeJobLogItemsCommandOutput | DescribeJobsCommandOutput | DescribeLaunchConfigurationTemplatesCommandOutput | DescribeReplicationConfigurationTemplatesCommandOutput | DescribeSourceServersCommandOutput | DescribeVcenterClientsCommandOutput | DisassociateApplicationsCommandOutput | DisassociateSourceServersCommandOutput | DisconnectFromServiceCommandOutput | FinalizeCutoverCommandOutput | GetLaunchConfigurationCommandOutput | GetReplicationConfigurationCommandOutput | InitializeServiceCommandOutput | ListApplicationsCommandOutput | ListExportErrorsCommandOutput | ListExportsCommandOutput | ListImportErrorsCommandOutput | ListImportsCommandOutput | ListManagedAccountsCommandOutput | ListSourceServerActionsCommandOutput | ListTagsForResourceCommandOutput | ListTemplateActionsCommandOutput | ListWavesCommandOutput | MarkAsArchivedCommandOutput | PauseReplicationCommandOutput | PutSourceServerActionCommandOutput | PutTemplateActionCommandOutput | RemoveSourceServerActionCommandOutput | RemoveTemplateActionCommandOutput | ResumeReplicationCommandOutput | RetryDataReplicationCommandOutput | StartCutoverCommandOutput | StartExportCommandOutput | StartImportCommandOutput | StartReplicationCommandOutput | StartTestCommandOutput | StopReplicationCommandOutput | TagResourceCommandOutput | TerminateTargetInstancesCommandOutput | UnarchiveApplicationCommandOutput | UnarchiveWaveCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateLaunchConfigurationCommandOutput | UpdateLaunchConfigurationTemplateCommandOutput | UpdateReplicationConfigurationCommandOutput | UpdateReplicationConfigurationTemplateCommandOutput | UpdateSourceServerReplicationTypeCommandOutput | UpdateWaveCommandOutput;
|
|
91
|
+
export type ServiceOutputTypes = ArchiveApplicationCommandOutput | ArchiveWaveCommandOutput | AssociateApplicationsCommandOutput | AssociateSourceServersCommandOutput | ChangeServerLifeCycleStateCommandOutput | CreateApplicationCommandOutput | CreateConnectorCommandOutput | CreateLaunchConfigurationTemplateCommandOutput | CreateReplicationConfigurationTemplateCommandOutput | CreateWaveCommandOutput | DeleteApplicationCommandOutput | DeleteConnectorCommandOutput | DeleteJobCommandOutput | DeleteLaunchConfigurationTemplateCommandOutput | DeleteReplicationConfigurationTemplateCommandOutput | DeleteSourceServerCommandOutput | DeleteVcenterClientCommandOutput | DeleteWaveCommandOutput | DescribeJobLogItemsCommandOutput | DescribeJobsCommandOutput | DescribeLaunchConfigurationTemplatesCommandOutput | DescribeReplicationConfigurationTemplatesCommandOutput | DescribeSourceServersCommandOutput | DescribeVcenterClientsCommandOutput | DisassociateApplicationsCommandOutput | DisassociateSourceServersCommandOutput | DisconnectFromServiceCommandOutput | FinalizeCutoverCommandOutput | GetLaunchConfigurationCommandOutput | GetReplicationConfigurationCommandOutput | InitializeServiceCommandOutput | ListApplicationsCommandOutput | ListConnectorsCommandOutput | ListExportErrorsCommandOutput | ListExportsCommandOutput | ListImportErrorsCommandOutput | ListImportsCommandOutput | ListManagedAccountsCommandOutput | ListSourceServerActionsCommandOutput | ListTagsForResourceCommandOutput | ListTemplateActionsCommandOutput | ListWavesCommandOutput | MarkAsArchivedCommandOutput | PauseReplicationCommandOutput | PutSourceServerActionCommandOutput | PutTemplateActionCommandOutput | RemoveSourceServerActionCommandOutput | RemoveTemplateActionCommandOutput | ResumeReplicationCommandOutput | RetryDataReplicationCommandOutput | StartCutoverCommandOutput | StartExportCommandOutput | StartImportCommandOutput | StartReplicationCommandOutput | StartTestCommandOutput | StopReplicationCommandOutput | TagResourceCommandOutput | TerminateTargetInstancesCommandOutput | UnarchiveApplicationCommandOutput | UnarchiveWaveCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateConnectorCommandOutput | UpdateLaunchConfigurationCommandOutput | UpdateLaunchConfigurationTemplateCommandOutput | UpdateReplicationConfigurationCommandOutput | UpdateReplicationConfigurationTemplateCommandOutput | UpdateSourceServerCommandOutput | UpdateSourceServerReplicationTypeCommandOutput | UpdateWaveCommandOutput;
|
|
87
92
|
/**
|
|
88
93
|
* @public
|
|
89
94
|
*/
|
|
@@ -176,6 +181,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
176
181
|
maxAttempts?: number | __Provider<number>;
|
|
177
182
|
/**
|
|
178
183
|
* Specifies which retry algorithm to use.
|
|
184
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
185
|
+
*
|
|
179
186
|
*/
|
|
180
187
|
retryMode?: string | __Provider<string>;
|
|
181
188
|
/**
|
|
@@ -152,6 +152,10 @@ export interface ChangeServerLifeCycleStateCommandOutput extends SourceServer, _
|
|
|
152
152
|
* // applicationID: "STRING_VALUE",
|
|
153
153
|
* // userProvidedID: "STRING_VALUE",
|
|
154
154
|
* // fqdnForActionFramework: "STRING_VALUE",
|
|
155
|
+
* // connectorAction: { // SourceServerConnectorAction
|
|
156
|
+
* // credentialsSecretArn: "STRING_VALUE",
|
|
157
|
+
* // connectorArn: "STRING_VALUE",
|
|
158
|
+
* // },
|
|
155
159
|
* // };
|
|
156
160
|
*
|
|
157
161
|
* ```
|