@aws-sdk/client-snowball 3.180.0 → 3.183.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 +23 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/pagination/ListClusterJobsPaginator.js +36 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +36 -0
- package/dist-cjs/pagination/ListCompatibleImagesPaginator.js +36 -0
- package/dist-cjs/pagination/ListLongTermPricingPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +31 -25
- package/dist-es/Snowball.js +102 -109
- package/dist-es/SnowballClient.js +22 -28
- package/dist-es/commands/CancelClusterCommand.js +21 -28
- package/dist-es/commands/CancelJobCommand.js +21 -28
- package/dist-es/commands/CreateAddressCommand.js +21 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateJobCommand.js +21 -28
- package/dist-es/commands/CreateLongTermPricingCommand.js +21 -28
- package/dist-es/commands/CreateReturnShippingLabelCommand.js +21 -28
- package/dist-es/commands/DescribeAddressCommand.js +21 -28
- package/dist-es/commands/DescribeAddressesCommand.js +21 -28
- package/dist-es/commands/DescribeClusterCommand.js +21 -28
- package/dist-es/commands/DescribeJobCommand.js +21 -28
- package/dist-es/commands/DescribeReturnShippingLabelCommand.js +21 -28
- package/dist-es/commands/GetJobManifestCommand.js +21 -28
- package/dist-es/commands/GetJobUnlockCodeCommand.js +21 -28
- package/dist-es/commands/GetSnowballUsageCommand.js +21 -28
- package/dist-es/commands/GetSoftwareUpdatesCommand.js +21 -28
- package/dist-es/commands/ListClusterJobsCommand.js +21 -28
- package/dist-es/commands/ListClustersCommand.js +21 -28
- package/dist-es/commands/ListCompatibleImagesCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListLongTermPricingCommand.js +21 -28
- package/dist-es/commands/UpdateClusterCommand.js +21 -28
- package/dist-es/commands/UpdateJobCommand.js +21 -28
- package/dist-es/commands/UpdateJobShipmentStateCommand.js +21 -28
- package/dist-es/commands/UpdateLongTermPricingCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SnowballServiceException.js +5 -10
- package/dist-es/models/models_0.js +367 -212
- package/dist-es/pagination/DescribeAddressesPaginator.js +25 -68
- package/dist-es/pagination/ListClusterJobsPaginator.js +32 -0
- package/dist-es/pagination/ListClustersPaginator.js +32 -0
- package/dist-es/pagination/ListCompatibleImagesPaginator.js +32 -0
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListLongTermPricingPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +1699 -2075
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/Snowball.d.ts +21 -4
- package/dist-types/commands/CreateJobCommand.d.ts +14 -1
- package/dist-types/commands/GetJobManifestCommand.d.ts +4 -2
- package/dist-types/commands/GetJobUnlockCodeCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +9 -6
- package/dist-types/pagination/ListClusterJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCompatibleImagesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLongTermPricingPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/pagination/ListClusterJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCompatibleImagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLongTermPricingPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-snowball:** Adds support for V3_5C. This is a refreshed AWS Snowball Edge Compute Optimized device type with 28TB SSD, 104 vCPU and 416GB memory (customer usable). ([22500bf](https://github.com/aws/aws-sdk-js-v3/commit/22500bf32b6db1e29a61c61c9b3a25a16c6251f4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
23
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @aws-sdk/client-snowball
|
|
@@ -133,6 +133,7 @@ var SnowballType;
|
|
|
133
133
|
SnowballType["SNC1_HDD"] = "SNC1_HDD";
|
|
134
134
|
SnowballType["SNC1_SSD"] = "SNC1_SSD";
|
|
135
135
|
SnowballType["STANDARD"] = "STANDARD";
|
|
136
|
+
SnowballType["V3_5C"] = "V3_5C";
|
|
136
137
|
})(SnowballType = exports.SnowballType || (exports.SnowballType = {}));
|
|
137
138
|
class Ec2RequestFailedException extends SnowballServiceException_1.SnowballServiceException {
|
|
138
139
|
constructor(opts) {
|
|
@@ -181,6 +182,7 @@ var SnowballCapacity;
|
|
|
181
182
|
SnowballCapacity["NO_PREFERENCE"] = "NoPreference";
|
|
182
183
|
SnowballCapacity["T100"] = "T100";
|
|
183
184
|
SnowballCapacity["T14"] = "T14";
|
|
185
|
+
SnowballCapacity["T32"] = "T32";
|
|
184
186
|
SnowballCapacity["T42"] = "T42";
|
|
185
187
|
SnowballCapacity["T50"] = "T50";
|
|
186
188
|
SnowballCapacity["T8"] = "T8";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClusterJobs = void 0;
|
|
4
|
+
const ListClusterJobsCommand_1 = require("../commands/ListClusterJobsCommand");
|
|
5
|
+
const Snowball_1 = require("../Snowball");
|
|
6
|
+
const SnowballClient_1 = require("../SnowballClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListClusterJobsCommand_1.ListClusterJobsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listClusterJobs(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListClusterJobs(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Snowball_1.Snowball) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SnowballClient_1.SnowballClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListClusterJobs = paginateListClusterJobs;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListClusters = void 0;
|
|
4
|
+
const ListClustersCommand_1 = require("../commands/ListClustersCommand");
|
|
5
|
+
const Snowball_1 = require("../Snowball");
|
|
6
|
+
const SnowballClient_1 = require("../SnowballClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListClustersCommand_1.ListClustersCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listClusters(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListClusters(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Snowball_1.Snowball) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SnowballClient_1.SnowballClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListClusters = paginateListClusters;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListCompatibleImages = void 0;
|
|
4
|
+
const ListCompatibleImagesCommand_1 = require("../commands/ListCompatibleImagesCommand");
|
|
5
|
+
const Snowball_1 = require("../Snowball");
|
|
6
|
+
const SnowballClient_1 = require("../SnowballClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListCompatibleImagesCommand_1.ListCompatibleImagesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listCompatibleImages(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListCompatibleImages(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Snowball_1.Snowball) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SnowballClient_1.SnowballClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListCompatibleImages = paginateListCompatibleImages;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListLongTermPricing = void 0;
|
|
4
|
+
const ListLongTermPricingCommand_1 = require("../commands/ListLongTermPricingCommand");
|
|
5
|
+
const Snowball_1 = require("../Snowball");
|
|
6
|
+
const SnowballClient_1 = require("../SnowballClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListLongTermPricingCommand_1.ListLongTermPricingCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listLongTermPricing(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListLongTermPricing(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Snowball_1.Snowball) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof SnowballClient_1.SnowballClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListLongTermPricing = paginateListLongTermPricing;
|
|
@@ -3,4 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeAddressesPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListClusterJobsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListCompatibleImagesPaginator"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListLongTermPricingPaginator"), exports);
|
|
@@ -272,7 +272,7 @@ exports.deserializeAws_json1_1CancelClusterCommand = deserializeAws_json1_1Cance
|
|
|
272
272
|
const deserializeAws_json1_1CancelClusterCommandError = async (output, context) => {
|
|
273
273
|
const parsedOutput = {
|
|
274
274
|
...output,
|
|
275
|
-
body: await
|
|
275
|
+
body: await parseErrorBody(output.body, context),
|
|
276
276
|
};
|
|
277
277
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
278
278
|
switch (errorCode) {
|
|
@@ -312,7 +312,7 @@ exports.deserializeAws_json1_1CancelJobCommand = deserializeAws_json1_1CancelJob
|
|
|
312
312
|
const deserializeAws_json1_1CancelJobCommandError = async (output, context) => {
|
|
313
313
|
const parsedOutput = {
|
|
314
314
|
...output,
|
|
315
|
-
body: await
|
|
315
|
+
body: await parseErrorBody(output.body, context),
|
|
316
316
|
};
|
|
317
317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
318
318
|
switch (errorCode) {
|
|
@@ -352,7 +352,7 @@ exports.deserializeAws_json1_1CreateAddressCommand = deserializeAws_json1_1Creat
|
|
|
352
352
|
const deserializeAws_json1_1CreateAddressCommandError = async (output, context) => {
|
|
353
353
|
const parsedOutput = {
|
|
354
354
|
...output,
|
|
355
|
-
body: await
|
|
355
|
+
body: await parseErrorBody(output.body, context),
|
|
356
356
|
};
|
|
357
357
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
358
358
|
switch (errorCode) {
|
|
@@ -389,7 +389,7 @@ exports.deserializeAws_json1_1CreateClusterCommand = deserializeAws_json1_1Creat
|
|
|
389
389
|
const deserializeAws_json1_1CreateClusterCommandError = async (output, context) => {
|
|
390
390
|
const parsedOutput = {
|
|
391
391
|
...output,
|
|
392
|
-
body: await
|
|
392
|
+
body: await parseErrorBody(output.body, context),
|
|
393
393
|
};
|
|
394
394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
395
|
switch (errorCode) {
|
|
@@ -432,7 +432,7 @@ exports.deserializeAws_json1_1CreateJobCommand = deserializeAws_json1_1CreateJob
|
|
|
432
432
|
const deserializeAws_json1_1CreateJobCommandError = async (output, context) => {
|
|
433
433
|
const parsedOutput = {
|
|
434
434
|
...output,
|
|
435
|
-
body: await
|
|
435
|
+
body: await parseErrorBody(output.body, context),
|
|
436
436
|
};
|
|
437
437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
438
|
switch (errorCode) {
|
|
@@ -478,7 +478,7 @@ exports.deserializeAws_json1_1CreateLongTermPricingCommand = deserializeAws_json
|
|
|
478
478
|
const deserializeAws_json1_1CreateLongTermPricingCommandError = async (output, context) => {
|
|
479
479
|
const parsedOutput = {
|
|
480
480
|
...output,
|
|
481
|
-
body: await
|
|
481
|
+
body: await parseErrorBody(output.body, context),
|
|
482
482
|
};
|
|
483
483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
484
|
switch (errorCode) {
|
|
@@ -512,7 +512,7 @@ exports.deserializeAws_json1_1CreateReturnShippingLabelCommand = deserializeAws_
|
|
|
512
512
|
const deserializeAws_json1_1CreateReturnShippingLabelCommandError = async (output, context) => {
|
|
513
513
|
const parsedOutput = {
|
|
514
514
|
...output,
|
|
515
|
-
body: await
|
|
515
|
+
body: await parseErrorBody(output.body, context),
|
|
516
516
|
};
|
|
517
517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
518
518
|
switch (errorCode) {
|
|
@@ -558,7 +558,7 @@ exports.deserializeAws_json1_1DescribeAddressCommand = deserializeAws_json1_1Des
|
|
|
558
558
|
const deserializeAws_json1_1DescribeAddressCommandError = async (output, context) => {
|
|
559
559
|
const parsedOutput = {
|
|
560
560
|
...output,
|
|
561
|
-
body: await
|
|
561
|
+
body: await parseErrorBody(output.body, context),
|
|
562
562
|
};
|
|
563
563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
564
|
switch (errorCode) {
|
|
@@ -592,7 +592,7 @@ exports.deserializeAws_json1_1DescribeAddressesCommand = deserializeAws_json1_1D
|
|
|
592
592
|
const deserializeAws_json1_1DescribeAddressesCommandError = async (output, context) => {
|
|
593
593
|
const parsedOutput = {
|
|
594
594
|
...output,
|
|
595
|
-
body: await
|
|
595
|
+
body: await parseErrorBody(output.body, context),
|
|
596
596
|
};
|
|
597
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
598
|
switch (errorCode) {
|
|
@@ -629,7 +629,7 @@ exports.deserializeAws_json1_1DescribeClusterCommand = deserializeAws_json1_1Des
|
|
|
629
629
|
const deserializeAws_json1_1DescribeClusterCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
|
-
body: await
|
|
632
|
+
body: await parseErrorBody(output.body, context),
|
|
633
633
|
};
|
|
634
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
switch (errorCode) {
|
|
@@ -663,7 +663,7 @@ exports.deserializeAws_json1_1DescribeJobCommand = deserializeAws_json1_1Describ
|
|
|
663
663
|
const deserializeAws_json1_1DescribeJobCommandError = async (output, context) => {
|
|
664
664
|
const parsedOutput = {
|
|
665
665
|
...output,
|
|
666
|
-
body: await
|
|
666
|
+
body: await parseErrorBody(output.body, context),
|
|
667
667
|
};
|
|
668
668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
669
|
switch (errorCode) {
|
|
@@ -697,7 +697,7 @@ exports.deserializeAws_json1_1DescribeReturnShippingLabelCommand = deserializeAw
|
|
|
697
697
|
const deserializeAws_json1_1DescribeReturnShippingLabelCommandError = async (output, context) => {
|
|
698
698
|
const parsedOutput = {
|
|
699
699
|
...output,
|
|
700
|
-
body: await
|
|
700
|
+
body: await parseErrorBody(output.body, context),
|
|
701
701
|
};
|
|
702
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
703
|
switch (errorCode) {
|
|
@@ -737,7 +737,7 @@ exports.deserializeAws_json1_1GetJobManifestCommand = deserializeAws_json1_1GetJ
|
|
|
737
737
|
const deserializeAws_json1_1GetJobManifestCommandError = async (output, context) => {
|
|
738
738
|
const parsedOutput = {
|
|
739
739
|
...output,
|
|
740
|
-
body: await
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
741
|
};
|
|
742
742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
743
|
switch (errorCode) {
|
|
@@ -774,7 +774,7 @@ exports.deserializeAws_json1_1GetJobUnlockCodeCommand = deserializeAws_json1_1Ge
|
|
|
774
774
|
const deserializeAws_json1_1GetJobUnlockCodeCommandError = async (output, context) => {
|
|
775
775
|
const parsedOutput = {
|
|
776
776
|
...output,
|
|
777
|
-
body: await
|
|
777
|
+
body: await parseErrorBody(output.body, context),
|
|
778
778
|
};
|
|
779
779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
780
|
switch (errorCode) {
|
|
@@ -811,7 +811,7 @@ exports.deserializeAws_json1_1GetSnowballUsageCommand = deserializeAws_json1_1Ge
|
|
|
811
811
|
const deserializeAws_json1_1GetSnowballUsageCommandError = async (output, context) => {
|
|
812
812
|
const parsedOutput = {
|
|
813
813
|
...output,
|
|
814
|
-
body: await
|
|
814
|
+
body: await parseErrorBody(output.body, context),
|
|
815
815
|
};
|
|
816
816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
817
|
const parsedBody = parsedOutput.body;
|
|
@@ -839,7 +839,7 @@ exports.deserializeAws_json1_1GetSoftwareUpdatesCommand = deserializeAws_json1_1
|
|
|
839
839
|
const deserializeAws_json1_1GetSoftwareUpdatesCommandError = async (output, context) => {
|
|
840
840
|
const parsedOutput = {
|
|
841
841
|
...output,
|
|
842
|
-
body: await
|
|
842
|
+
body: await parseErrorBody(output.body, context),
|
|
843
843
|
};
|
|
844
844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
845
|
switch (errorCode) {
|
|
@@ -876,7 +876,7 @@ exports.deserializeAws_json1_1ListClusterJobsCommand = deserializeAws_json1_1Lis
|
|
|
876
876
|
const deserializeAws_json1_1ListClusterJobsCommandError = async (output, context) => {
|
|
877
877
|
const parsedOutput = {
|
|
878
878
|
...output,
|
|
879
|
-
body: await
|
|
879
|
+
body: await parseErrorBody(output.body, context),
|
|
880
880
|
};
|
|
881
881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
882
|
switch (errorCode) {
|
|
@@ -913,7 +913,7 @@ exports.deserializeAws_json1_1ListClustersCommand = deserializeAws_json1_1ListCl
|
|
|
913
913
|
const deserializeAws_json1_1ListClustersCommandError = async (output, context) => {
|
|
914
914
|
const parsedOutput = {
|
|
915
915
|
...output,
|
|
916
|
-
body: await
|
|
916
|
+
body: await parseErrorBody(output.body, context),
|
|
917
917
|
};
|
|
918
918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
919
|
switch (errorCode) {
|
|
@@ -947,7 +947,7 @@ exports.deserializeAws_json1_1ListCompatibleImagesCommand = deserializeAws_json1
|
|
|
947
947
|
const deserializeAws_json1_1ListCompatibleImagesCommandError = async (output, context) => {
|
|
948
948
|
const parsedOutput = {
|
|
949
949
|
...output,
|
|
950
|
-
body: await
|
|
950
|
+
body: await parseErrorBody(output.body, context),
|
|
951
951
|
};
|
|
952
952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
953
|
switch (errorCode) {
|
|
@@ -984,7 +984,7 @@ exports.deserializeAws_json1_1ListJobsCommand = deserializeAws_json1_1ListJobsCo
|
|
|
984
984
|
const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
985
985
|
const parsedOutput = {
|
|
986
986
|
...output,
|
|
987
|
-
body: await
|
|
987
|
+
body: await parseErrorBody(output.body, context),
|
|
988
988
|
};
|
|
989
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
990
|
switch (errorCode) {
|
|
@@ -1018,7 +1018,7 @@ exports.deserializeAws_json1_1ListLongTermPricingCommand = deserializeAws_json1_
|
|
|
1018
1018
|
const deserializeAws_json1_1ListLongTermPricingCommandError = async (output, context) => {
|
|
1019
1019
|
const parsedOutput = {
|
|
1020
1020
|
...output,
|
|
1021
|
-
body: await
|
|
1021
|
+
body: await parseErrorBody(output.body, context),
|
|
1022
1022
|
};
|
|
1023
1023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1024
|
switch (errorCode) {
|
|
@@ -1055,7 +1055,7 @@ exports.deserializeAws_json1_1UpdateClusterCommand = deserializeAws_json1_1Updat
|
|
|
1055
1055
|
const deserializeAws_json1_1UpdateClusterCommandError = async (output, context) => {
|
|
1056
1056
|
const parsedOutput = {
|
|
1057
1057
|
...output,
|
|
1058
|
-
body: await
|
|
1058
|
+
body: await parseErrorBody(output.body, context),
|
|
1059
1059
|
};
|
|
1060
1060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1061
|
switch (errorCode) {
|
|
@@ -1101,7 +1101,7 @@ exports.deserializeAws_json1_1UpdateJobCommand = deserializeAws_json1_1UpdateJob
|
|
|
1101
1101
|
const deserializeAws_json1_1UpdateJobCommandError = async (output, context) => {
|
|
1102
1102
|
const parsedOutput = {
|
|
1103
1103
|
...output,
|
|
1104
|
-
body: await
|
|
1104
|
+
body: await parseErrorBody(output.body, context),
|
|
1105
1105
|
};
|
|
1106
1106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
1107
|
switch (errorCode) {
|
|
@@ -1150,7 +1150,7 @@ exports.deserializeAws_json1_1UpdateJobShipmentStateCommand = deserializeAws_jso
|
|
|
1150
1150
|
const deserializeAws_json1_1UpdateJobShipmentStateCommandError = async (output, context) => {
|
|
1151
1151
|
const parsedOutput = {
|
|
1152
1152
|
...output,
|
|
1153
|
-
body: await
|
|
1153
|
+
body: await parseErrorBody(output.body, context),
|
|
1154
1154
|
};
|
|
1155
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1156
|
switch (errorCode) {
|
|
@@ -1187,7 +1187,7 @@ exports.deserializeAws_json1_1UpdateLongTermPricingCommand = deserializeAws_json
|
|
|
1187
1187
|
const deserializeAws_json1_1UpdateLongTermPricingCommandError = async (output, context) => {
|
|
1188
1188
|
const parsedOutput = {
|
|
1189
1189
|
...output,
|
|
1190
|
-
body: await
|
|
1190
|
+
body: await parseErrorBody(output.body, context),
|
|
1191
1191
|
};
|
|
1192
1192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
1193
|
switch (errorCode) {
|
|
@@ -2307,6 +2307,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2307
2307
|
}
|
|
2308
2308
|
return {};
|
|
2309
2309
|
});
|
|
2310
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2311
|
+
var _a;
|
|
2312
|
+
const value = await parseBody(errorBody, context);
|
|
2313
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2314
|
+
return value;
|
|
2315
|
+
};
|
|
2310
2316
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2311
2317
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2312
2318
|
const sanitizeErrorCode = (rawValue) => {
|