@aws-sdk/client-snowball 3.181.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 +11 -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-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 -2088
- 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,17 @@
|
|
|
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
|
+
|
|
6
17
|
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -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);
|