@aws-sdk/client-mgn 3.28.0 → 3.32.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/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +33 -33
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +129 -91
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +37 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-mgn
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-mgn
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-mgn
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/client-mgn
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
|
|
7
39
|
|
|
8
40
|
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mgn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mgn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.1.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.1.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -734,7 +734,7 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
|
|
|
734
734
|
sourceServerID: undefined,
|
|
735
735
|
tags: undefined,
|
|
736
736
|
};
|
|
737
|
-
const data = await parseBody(output.body, context);
|
|
737
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
738
738
|
if (data.arn !== undefined && data.arn !== null) {
|
|
739
739
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
740
740
|
}
|
|
@@ -841,7 +841,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
841
841
|
tags: undefined,
|
|
842
842
|
useDedicatedReplicationServer: undefined,
|
|
843
843
|
};
|
|
844
|
-
const data = await parseBody(output.body, context);
|
|
844
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
845
845
|
if (data.arn !== undefined && data.arn !== null) {
|
|
846
846
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
847
847
|
}
|
|
@@ -849,7 +849,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
849
849
|
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
850
850
|
}
|
|
851
851
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
852
|
-
contents.bandwidthThrottling = smithy_client_1.
|
|
852
|
+
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
853
853
|
}
|
|
854
854
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
855
855
|
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
@@ -1128,7 +1128,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, contex
|
|
|
1128
1128
|
items: undefined,
|
|
1129
1129
|
nextToken: undefined,
|
|
1130
1130
|
};
|
|
1131
|
-
const data = await parseBody(output.body, context);
|
|
1131
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1132
1132
|
if (data.items !== undefined && data.items !== null) {
|
|
1133
1133
|
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1134
1134
|
}
|
|
@@ -1188,7 +1188,7 @@ const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
|
1188
1188
|
items: undefined,
|
|
1189
1189
|
nextToken: undefined,
|
|
1190
1190
|
};
|
|
1191
|
-
const data = await parseBody(output.body, context);
|
|
1191
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1192
1192
|
if (data.items !== undefined && data.items !== null) {
|
|
1193
1193
|
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
1194
1194
|
}
|
|
@@ -1248,7 +1248,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand =
|
|
|
1248
1248
|
items: undefined,
|
|
1249
1249
|
nextToken: undefined,
|
|
1250
1250
|
};
|
|
1251
|
-
const data = await parseBody(output.body, context);
|
|
1251
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1252
1252
|
if (data.items !== undefined && data.items !== null) {
|
|
1253
1253
|
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
1254
1254
|
}
|
|
@@ -1316,7 +1316,7 @@ const deserializeAws_restJson1DescribeSourceServersCommand = async (output, cont
|
|
|
1316
1316
|
items: undefined,
|
|
1317
1317
|
nextToken: undefined,
|
|
1318
1318
|
};
|
|
1319
|
-
const data = await parseBody(output.body, context);
|
|
1319
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1320
1320
|
if (data.items !== undefined && data.items !== null) {
|
|
1321
1321
|
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
1322
1322
|
}
|
|
@@ -1382,7 +1382,7 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1382
1382
|
sourceServerID: undefined,
|
|
1383
1383
|
tags: undefined,
|
|
1384
1384
|
};
|
|
1385
|
-
const data = await parseBody(output.body, context);
|
|
1385
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1386
1386
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1387
1387
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1388
1388
|
}
|
|
@@ -1474,7 +1474,7 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
|
|
|
1474
1474
|
sourceServerID: undefined,
|
|
1475
1475
|
tags: undefined,
|
|
1476
1476
|
};
|
|
1477
|
-
const data = await parseBody(output.body, context);
|
|
1477
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1478
1478
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1479
1479
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1480
1480
|
}
|
|
@@ -1574,7 +1574,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, con
|
|
|
1574
1574
|
sourceServerID: undefined,
|
|
1575
1575
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
1576
1576
|
};
|
|
1577
|
-
const data = await parseBody(output.body, context);
|
|
1577
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1578
1578
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
1579
1579
|
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
1580
1580
|
}
|
|
@@ -1665,12 +1665,12 @@ const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output
|
|
|
1665
1665
|
stagingAreaTags: undefined,
|
|
1666
1666
|
useDedicatedReplicationServer: undefined,
|
|
1667
1667
|
};
|
|
1668
|
-
const data = await parseBody(output.body, context);
|
|
1668
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1669
1669
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
1670
1670
|
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
1671
1671
|
}
|
|
1672
1672
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
1673
|
-
contents.bandwidthThrottling = smithy_client_1.
|
|
1673
|
+
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
1676
1676
|
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
@@ -1815,7 +1815,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1815
1815
|
$metadata: deserializeMetadata(output),
|
|
1816
1816
|
tags: undefined,
|
|
1817
1817
|
};
|
|
1818
|
-
const data = await parseBody(output.body, context);
|
|
1818
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1819
1819
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1820
1820
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1821
1821
|
}
|
|
@@ -1902,7 +1902,7 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
|
|
|
1902
1902
|
sourceServerID: undefined,
|
|
1903
1903
|
tags: undefined,
|
|
1904
1904
|
};
|
|
1905
|
-
const data = await parseBody(output.body, context);
|
|
1905
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1906
1906
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1907
1907
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1908
1908
|
}
|
|
@@ -1994,7 +1994,7 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1994
1994
|
sourceServerID: undefined,
|
|
1995
1995
|
tags: undefined,
|
|
1996
1996
|
};
|
|
1997
|
-
const data = await parseBody(output.body, context);
|
|
1997
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1998
1998
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1999
1999
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2000
2000
|
}
|
|
@@ -2079,7 +2079,7 @@ const deserializeAws_restJson1StartCutoverCommand = async (output, context) => {
|
|
|
2079
2079
|
$metadata: deserializeMetadata(output),
|
|
2080
2080
|
job: undefined,
|
|
2081
2081
|
};
|
|
2082
|
-
const data = await parseBody(output.body, context);
|
|
2082
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2083
2083
|
if (data.job !== undefined && data.job !== null) {
|
|
2084
2084
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2085
2085
|
}
|
|
@@ -2143,7 +2143,7 @@ const deserializeAws_restJson1StartTestCommand = async (output, context) => {
|
|
|
2143
2143
|
$metadata: deserializeMetadata(output),
|
|
2144
2144
|
job: undefined,
|
|
2145
2145
|
};
|
|
2146
|
-
const data = await parseBody(output.body, context);
|
|
2146
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2147
2147
|
if (data.job !== undefined && data.job !== null) {
|
|
2148
2148
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2149
2149
|
}
|
|
@@ -2283,7 +2283,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommand = async (output, c
|
|
|
2283
2283
|
$metadata: deserializeMetadata(output),
|
|
2284
2284
|
job: undefined,
|
|
2285
2285
|
};
|
|
2286
|
-
const data = await parseBody(output.body, context);
|
|
2286
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2287
2287
|
if (data.job !== undefined && data.job !== null) {
|
|
2288
2288
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2289
2289
|
}
|
|
@@ -2430,7 +2430,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2430
2430
|
sourceServerID: undefined,
|
|
2431
2431
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
2432
2432
|
};
|
|
2433
|
-
const data = await parseBody(output.body, context);
|
|
2433
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2434
2434
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
2435
2435
|
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
2436
2436
|
}
|
|
@@ -2537,12 +2537,12 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (out
|
|
|
2537
2537
|
stagingAreaTags: undefined,
|
|
2538
2538
|
useDedicatedReplicationServer: undefined,
|
|
2539
2539
|
};
|
|
2540
|
-
const data = await parseBody(output.body, context);
|
|
2540
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2541
2541
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2542
2542
|
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2543
2543
|
}
|
|
2544
2544
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2545
|
-
contents.bandwidthThrottling = smithy_client_1.
|
|
2545
|
+
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2546
2546
|
}
|
|
2547
2547
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2548
2548
|
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
@@ -2673,7 +2673,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2673
2673
|
tags: undefined,
|
|
2674
2674
|
useDedicatedReplicationServer: undefined,
|
|
2675
2675
|
};
|
|
2676
|
-
const data = await parseBody(output.body, context);
|
|
2676
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2677
2677
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2678
2678
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2679
2679
|
}
|
|
@@ -2681,7 +2681,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2681
2681
|
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2682
2682
|
}
|
|
2683
2683
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2684
|
-
contents.bandwidthThrottling = smithy_client_1.
|
|
2684
|
+
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2685
2685
|
}
|
|
2686
2686
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2687
2687
|
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
@@ -2830,7 +2830,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2830
2830
|
retryAfterSeconds: undefined,
|
|
2831
2831
|
};
|
|
2832
2832
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2833
|
-
contents.retryAfterSeconds = smithy_client_1.
|
|
2833
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseLong(parsedOutput.headers["retry-after"]);
|
|
2834
2834
|
}
|
|
2835
2835
|
const data = parsedOutput.body;
|
|
2836
2836
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -3061,7 +3061,7 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (in
|
|
|
3061
3061
|
};
|
|
3062
3062
|
const deserializeAws_restJson1CPU = (output, context) => {
|
|
3063
3063
|
return {
|
|
3064
|
-
cores: smithy_client_1.
|
|
3064
|
+
cores: smithy_client_1.expectLong(output.cores),
|
|
3065
3065
|
modelName: smithy_client_1.expectString(output.modelName),
|
|
3066
3066
|
};
|
|
3067
3067
|
};
|
|
@@ -3099,11 +3099,11 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
3099
3099
|
};
|
|
3100
3100
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, context) => {
|
|
3101
3101
|
return {
|
|
3102
|
-
backloggedStorageBytes: smithy_client_1.
|
|
3102
|
+
backloggedStorageBytes: smithy_client_1.expectLong(output.backloggedStorageBytes),
|
|
3103
3103
|
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3104
|
-
replicatedStorageBytes: smithy_client_1.
|
|
3105
|
-
rescannedStorageBytes: smithy_client_1.
|
|
3106
|
-
totalStorageBytes: smithy_client_1.
|
|
3104
|
+
replicatedStorageBytes: smithy_client_1.expectLong(output.replicatedStorageBytes),
|
|
3105
|
+
rescannedStorageBytes: smithy_client_1.expectLong(output.rescannedStorageBytes),
|
|
3106
|
+
totalStorageBytes: smithy_client_1.expectLong(output.totalStorageBytes),
|
|
3107
3107
|
};
|
|
3108
3108
|
};
|
|
3109
3109
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
@@ -3143,7 +3143,7 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context)
|
|
|
3143
3143
|
};
|
|
3144
3144
|
const deserializeAws_restJson1Disk = (output, context) => {
|
|
3145
3145
|
return {
|
|
3146
|
-
bytes: smithy_client_1.
|
|
3146
|
+
bytes: smithy_client_1.expectLong(output.bytes),
|
|
3147
3147
|
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3148
3148
|
};
|
|
3149
3149
|
};
|
|
@@ -3357,7 +3357,7 @@ const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
|
3357
3357
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
3358
3358
|
return {
|
|
3359
3359
|
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3360
|
-
iops: smithy_client_1.
|
|
3360
|
+
iops: smithy_client_1.expectLong(output.iops),
|
|
3361
3361
|
isBootDisk: smithy_client_1.expectBoolean(output.isBootDisk),
|
|
3362
3362
|
stagingDiskType: smithy_client_1.expectString(output.stagingDiskType),
|
|
3363
3363
|
};
|
|
@@ -3376,7 +3376,7 @@ const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, contex
|
|
|
3376
3376
|
return {
|
|
3377
3377
|
arn: smithy_client_1.expectString(output.arn),
|
|
3378
3378
|
associateDefaultSecurityGroup: smithy_client_1.expectBoolean(output.associateDefaultSecurityGroup),
|
|
3379
|
-
bandwidthThrottling: smithy_client_1.
|
|
3379
|
+
bandwidthThrottling: smithy_client_1.expectLong(output.bandwidthThrottling),
|
|
3380
3380
|
createPublicIP: smithy_client_1.expectBoolean(output.createPublicIP),
|
|
3381
3381
|
dataPlaneRouting: smithy_client_1.expectString(output.dataPlaneRouting),
|
|
3382
3382
|
defaultLargeStagingDiskType: smithy_client_1.expectString(output.defaultLargeStagingDiskType),
|
|
@@ -3433,7 +3433,7 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3433
3433
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3434
3434
|
: undefined,
|
|
3435
3435
|
os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3436
|
-
ramBytes: smithy_client_1.
|
|
3436
|
+
ramBytes: smithy_client_1.expectLong(output.ramBytes),
|
|
3437
3437
|
recommendedInstanceType: smithy_client_1.expectString(output.recommendedInstanceType),
|
|
3438
3438
|
};
|
|
3439
3439
|
};
|