@aws-sdk/client-snowball 3.477.0 → 3.481.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/dist-cjs/commands/CancelClusterCommand.js +18 -41
- package/dist-cjs/commands/CancelJobCommand.js +18 -41
- package/dist-cjs/commands/CreateAddressCommand.js +18 -41
- package/dist-cjs/commands/CreateClusterCommand.js +18 -41
- package/dist-cjs/commands/CreateJobCommand.js +18 -41
- package/dist-cjs/commands/CreateLongTermPricingCommand.js +18 -41
- package/dist-cjs/commands/CreateReturnShippingLabelCommand.js +18 -41
- package/dist-cjs/commands/DescribeAddressCommand.js +18 -41
- package/dist-cjs/commands/DescribeAddressesCommand.js +18 -41
- package/dist-cjs/commands/DescribeClusterCommand.js +18 -41
- package/dist-cjs/commands/DescribeJobCommand.js +18 -41
- package/dist-cjs/commands/DescribeReturnShippingLabelCommand.js +18 -41
- package/dist-cjs/commands/GetJobManifestCommand.js +18 -41
- package/dist-cjs/commands/GetJobUnlockCodeCommand.js +18 -41
- package/dist-cjs/commands/GetSnowballUsageCommand.js +18 -41
- package/dist-cjs/commands/GetSoftwareUpdatesCommand.js +18 -41
- package/dist-cjs/commands/ListClusterJobsCommand.js +18 -41
- package/dist-cjs/commands/ListClustersCommand.js +18 -41
- package/dist-cjs/commands/ListCompatibleImagesCommand.js +18 -41
- package/dist-cjs/commands/ListJobsCommand.js +18 -41
- package/dist-cjs/commands/ListLongTermPricingCommand.js +18 -41
- package/dist-cjs/commands/ListPickupLocationsCommand.js +18 -41
- package/dist-cjs/commands/ListServiceVersionsCommand.js +18 -41
- package/dist-cjs/commands/UpdateClusterCommand.js +18 -41
- package/dist-cjs/commands/UpdateJobCommand.js +18 -41
- package/dist-cjs/commands/UpdateJobShipmentStateCommand.js +18 -41
- package/dist-cjs/commands/UpdateLongTermPricingCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeAddressesPaginator.js +2 -24
- package/dist-cjs/pagination/ListClusterJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListClustersPaginator.js +2 -24
- package/dist-cjs/pagination/ListCompatibleImagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListLongTermPricingPaginator.js +2 -24
- package/dist-cjs/pagination/ListPickupLocationsPaginator.js +2 -24
- package/dist-es/commands/CancelClusterCommand.js +18 -41
- package/dist-es/commands/CancelJobCommand.js +18 -41
- package/dist-es/commands/CreateAddressCommand.js +18 -41
- package/dist-es/commands/CreateClusterCommand.js +18 -41
- package/dist-es/commands/CreateJobCommand.js +18 -41
- package/dist-es/commands/CreateLongTermPricingCommand.js +18 -41
- package/dist-es/commands/CreateReturnShippingLabelCommand.js +18 -41
- package/dist-es/commands/DescribeAddressCommand.js +18 -41
- package/dist-es/commands/DescribeAddressesCommand.js +18 -41
- package/dist-es/commands/DescribeClusterCommand.js +18 -41
- package/dist-es/commands/DescribeJobCommand.js +18 -41
- package/dist-es/commands/DescribeReturnShippingLabelCommand.js +18 -41
- package/dist-es/commands/GetJobManifestCommand.js +18 -41
- package/dist-es/commands/GetJobUnlockCodeCommand.js +18 -41
- package/dist-es/commands/GetSnowballUsageCommand.js +18 -41
- package/dist-es/commands/GetSoftwareUpdatesCommand.js +18 -41
- package/dist-es/commands/ListClusterJobsCommand.js +18 -41
- package/dist-es/commands/ListClustersCommand.js +18 -41
- package/dist-es/commands/ListCompatibleImagesCommand.js +18 -41
- package/dist-es/commands/ListJobsCommand.js +18 -41
- package/dist-es/commands/ListLongTermPricingCommand.js +18 -41
- package/dist-es/commands/ListPickupLocationsCommand.js +18 -41
- package/dist-es/commands/ListServiceVersionsCommand.js +18 -41
- package/dist-es/commands/UpdateClusterCommand.js +18 -41
- package/dist-es/commands/UpdateJobCommand.js +18 -41
- package/dist-es/commands/UpdateJobShipmentStateCommand.js +18 -41
- package/dist-es/commands/UpdateLongTermPricingCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeAddressesPaginator.js +2 -23
- package/dist-es/pagination/ListClusterJobsPaginator.js +2 -23
- package/dist-es/pagination/ListClustersPaginator.js +2 -23
- package/dist-es/pagination/ListCompatibleImagesPaginator.js +2 -23
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListLongTermPricingPaginator.js +2 -23
- package/dist-es/pagination/ListPickupLocationsPaginator.js +2 -23
- package/dist-types/commands/CancelClusterCommand.d.ts +6 -21
- package/dist-types/commands/CancelJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateAddressCommand.d.ts +6 -21
- package/dist-types/commands/CreateClusterCommand.d.ts +6 -21
- package/dist-types/commands/CreateJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateLongTermPricingCommand.d.ts +6 -21
- package/dist-types/commands/CreateReturnShippingLabelCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAddressCommand.d.ts +6 -21
- package/dist-types/commands/DescribeAddressesCommand.d.ts +6 -21
- package/dist-types/commands/DescribeClusterCommand.d.ts +6 -21
- package/dist-types/commands/DescribeJobCommand.d.ts +6 -21
- package/dist-types/commands/DescribeReturnShippingLabelCommand.d.ts +6 -21
- package/dist-types/commands/GetJobManifestCommand.d.ts +6 -21
- package/dist-types/commands/GetJobUnlockCodeCommand.d.ts +6 -21
- package/dist-types/commands/GetSnowballUsageCommand.d.ts +6 -21
- package/dist-types/commands/GetSoftwareUpdatesCommand.d.ts +6 -21
- package/dist-types/commands/ListClusterJobsCommand.d.ts +6 -21
- package/dist-types/commands/ListClustersCommand.d.ts +6 -21
- package/dist-types/commands/ListCompatibleImagesCommand.d.ts +6 -21
- package/dist-types/commands/ListJobsCommand.d.ts +6 -21
- package/dist-types/commands/ListLongTermPricingCommand.d.ts +6 -21
- package/dist-types/commands/ListPickupLocationsCommand.d.ts +6 -21
- package/dist-types/commands/ListServiceVersionsCommand.d.ts +6 -21
- package/dist-types/commands/UpdateClusterCommand.d.ts +6 -21
- package/dist-types/commands/UpdateJobCommand.d.ts +6 -21
- package/dist-types/commands/UpdateJobShipmentStateCommand.d.ts +6 -21
- package/dist-types/commands/UpdateLongTermPricingCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeAddressesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClusterJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClustersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCompatibleImagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLongTermPricingPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPickupLocationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CancelClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateAddressCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateLongTermPricingCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateReturnShippingLabelCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeAddressCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeAddressesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeReturnShippingLabelCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetJobManifestCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetJobUnlockCodeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetSnowballUsageCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetSoftwareUpdatesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListClusterJobsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListCompatibleImagesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListLongTermPricingCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListPickupLocationsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListServiceVersionsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateJobShipmentStateCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateLongTermPricingCommand.d.ts +12 -24
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeAddressesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClusterJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCompatibleImagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLongTermPricingPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPickupLocationsPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -1,48 +1,25 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { UpdateJobRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
6
|
import { de_UpdateJobCommand, se_UpdateJobCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
|
-
export class UpdateJobCommand extends $Command
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const { logger } = configuration;
|
|
26
|
-
const clientName = "SnowballClient";
|
|
27
|
-
const commandName = "UpdateJobCommand";
|
|
28
|
-
const handlerExecutionContext = {
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
32
|
-
inputFilterSensitiveLog: UpdateJobRequestFilterSensitiveLog,
|
|
33
|
-
outputFilterSensitiveLog: (_) => _,
|
|
34
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
-
service: "AWSIESnowballJobManagementService",
|
|
36
|
-
operation: "UpdateJob",
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const { requestHandler } = configuration;
|
|
40
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
-
}
|
|
42
|
-
serialize(input, context) {
|
|
43
|
-
return se_UpdateJobCommand(input, context);
|
|
44
|
-
}
|
|
45
|
-
deserialize(output, context) {
|
|
46
|
-
return de_UpdateJobCommand(output, context);
|
|
47
|
-
}
|
|
8
|
+
export class UpdateJobCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep({
|
|
11
|
+
...commonParams,
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AWSIESnowballJobManagementService", "UpdateJob", {})
|
|
20
|
+
.n("SnowballClient", "UpdateJobCommand")
|
|
21
|
+
.f(UpdateJobRequestFilterSensitiveLog, void 0)
|
|
22
|
+
.ser(se_UpdateJobCommand)
|
|
23
|
+
.de(de_UpdateJobCommand)
|
|
24
|
+
.build() {
|
|
48
25
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateJobShipmentStateCommand, se_UpdateJobShipmentStateCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateJobShipmentStateCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "SnowballClient";
|
|
26
|
-
const commandName = "UpdateJobShipmentStateCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIESnowballJobManagementService",
|
|
35
|
-
operation: "UpdateJobShipmentState",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateJobShipmentStateCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateJobShipmentStateCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateJobShipmentStateCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIESnowballJobManagementService", "UpdateJobShipmentState", {})
|
|
19
|
+
.n("SnowballClient", "UpdateJobShipmentStateCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateJobShipmentStateCommand)
|
|
22
|
+
.de(de_UpdateJobShipmentStateCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateLongTermPricingCommand, se_UpdateLongTermPricingCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateLongTermPricingCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "SnowballClient";
|
|
26
|
-
const commandName = "UpdateLongTermPricingCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIESnowballJobManagementService",
|
|
35
|
-
operation: "UpdateLongTermPricing",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateLongTermPricingCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateLongTermPricingCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateLongTermPricingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIESnowballJobManagementService", "UpdateLongTermPricing", {})
|
|
19
|
+
.n("SnowballClient", "UpdateLongTermPricingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateLongTermPricingCommand)
|
|
22
|
+
.de(de_UpdateLongTermPricingCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "snowball",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAddressesCommand, } from "../commands/DescribeAddressesCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAddressesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAddresses(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAddresses = createPaginator(SnowballClient, DescribeAddressesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListClusterJobsCommand, } from "../commands/ListClusterJobsCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListClusterJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListClusterJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListClusterJobs = createPaginator(SnowballClient, ListClusterJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListClustersCommand, } from "../commands/ListClustersCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListClustersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListClusters(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListClusters = createPaginator(SnowballClient, ListClustersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCompatibleImagesCommand, } from "../commands/ListCompatibleImagesCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCompatibleImagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCompatibleImages(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListCompatibleImages = createPaginator(SnowballClient, ListCompatibleImagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobsCommand } from "../commands/ListJobsCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListJobs = createPaginator(SnowballClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListLongTermPricingCommand, } from "../commands/ListLongTermPricingCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLongTermPricingCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLongTermPricing(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListLongTermPricing = createPaginator(SnowballClient, ListLongTermPricingCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPickupLocationsCommand, } from "../commands/ListPickupLocationsCommand";
|
|
2
3
|
import { SnowballClient } from "../SnowballClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPickupLocationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPickupLocations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SnowballClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Snowball | SnowballClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPickupLocations = createPaginator(SnowballClient, ListPickupLocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CancelClusterRequest, CancelClusterResult } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CancelClusterCommandInput extends CancelClusterRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CancelClusterCommandOutput extends CancelClusterResult, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CancelClusterCommand_base: {
|
|
24
|
+
new (input: CancelClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CancelClusterCommandInput, CancelClusterCommandOutput, SnowballClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Cancels a cluster job. You can only cancel a cluster job while it's in the
|
|
@@ -74,23 +77,5 @@ export interface CancelClusterCommandOutput extends CancelClusterResult, __Metad
|
|
|
74
77
|
* ```
|
|
75
78
|
*
|
|
76
79
|
*/
|
|
77
|
-
export declare class CancelClusterCommand extends
|
|
78
|
-
readonly input: CancelClusterCommandInput;
|
|
79
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
80
|
-
/**
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
constructor(input: CancelClusterCommandInput);
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelClusterCommandInput, CancelClusterCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
private serialize;
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
private deserialize;
|
|
80
|
+
export declare class CancelClusterCommand extends CancelClusterCommand_base {
|
|
96
81
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CancelJobRequest, CancelJobResult } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CancelJobCommandInput extends CancelJobRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CancelJobCommandOutput extends CancelJobResult, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CancelJobCommand_base: {
|
|
24
|
+
new (input: CancelJobCommandInput): import("@smithy/smithy-client").CommandImpl<CancelJobCommandInput, CancelJobCommandOutput, SnowballClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Cancels the specified job. You can only cancel a job before its <code>JobState</code>
|
|
@@ -75,23 +78,5 @@ export interface CancelJobCommandOutput extends CancelJobResult, __MetadataBeare
|
|
|
75
78
|
* ```
|
|
76
79
|
*
|
|
77
80
|
*/
|
|
78
|
-
export declare class CancelJobCommand extends
|
|
79
|
-
readonly input: CancelJobCommandInput;
|
|
80
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
81
|
-
/**
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
constructor(input: CancelJobCommandInput);
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelJobCommandInput, CancelJobCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
private serialize;
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
private deserialize;
|
|
81
|
+
export declare class CancelJobCommand extends CancelJobCommand_base {
|
|
97
82
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CreateAddressRequest, CreateAddressResult } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateAddressCommandInput extends CreateAddressRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateAddressCommandOutput extends CreateAddressResult, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateAddressCommand_base: {
|
|
24
|
+
new (input: CreateAddressCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAddressCommandInput, CreateAddressCommandOutput, SnowballClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates an address for a Snow device to be shipped to. In most regions,
|
|
@@ -104,23 +107,5 @@ export interface CreateAddressCommandOutput extends CreateAddressResult, __Metad
|
|
|
104
107
|
* ```
|
|
105
108
|
*
|
|
106
109
|
*/
|
|
107
|
-
export declare class CreateAddressCommand extends
|
|
108
|
-
readonly input: CreateAddressCommandInput;
|
|
109
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
110
|
-
/**
|
|
111
|
-
* @public
|
|
112
|
-
*/
|
|
113
|
-
constructor(input: CreateAddressCommandInput);
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAddressCommandInput, CreateAddressCommandOutput>;
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
private serialize;
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
private deserialize;
|
|
110
|
+
export declare class CreateAddressCommand extends CreateAddressCommand_base {
|
|
126
111
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CreateClusterRequest, CreateClusterResult } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateClusterCommandInput extends CreateClusterRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateClusterCommandOutput extends CreateClusterResult, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateClusterCommand_base: {
|
|
24
|
+
new (input: CreateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, SnowballClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates an empty cluster. Each cluster supports five nodes. You use the <a>CreateJob</a> action separately to create the jobs for each of these nodes. The
|
|
@@ -192,23 +195,5 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
|
|
|
192
195
|
* ```
|
|
193
196
|
*
|
|
194
197
|
*/
|
|
195
|
-
export declare class CreateClusterCommand extends
|
|
196
|
-
readonly input: CreateClusterCommandInput;
|
|
197
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
198
|
-
/**
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
201
|
-
constructor(input: CreateClusterCommandInput);
|
|
202
|
-
/**
|
|
203
|
-
* @internal
|
|
204
|
-
*/
|
|
205
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterCommandInput, CreateClusterCommandOutput>;
|
|
206
|
-
/**
|
|
207
|
-
* @internal
|
|
208
|
-
*/
|
|
209
|
-
private serialize;
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
private deserialize;
|
|
198
|
+
export declare class CreateClusterCommand extends CreateClusterCommand_base {
|
|
214
199
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CreateJobRequest, CreateJobResult } from "../models/models_0";
|
|
5
4
|
import { ServiceInputTypes, ServiceOutputTypes, SnowballClientResolvedConfig } from "../SnowballClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateJobCommandInput extends CreateJobRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateJobCommandOutput extends CreateJobResult, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateJobCommand_base: {
|
|
24
|
+
new (input: CreateJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateJobCommandInput, CreateJobCommandOutput, SnowballClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a job to import or export data between Amazon S3 and your on-premises data
|
|
@@ -354,23 +357,5 @@ export interface CreateJobCommandOutput extends CreateJobResult, __MetadataBeare
|
|
|
354
357
|
* ```
|
|
355
358
|
*
|
|
356
359
|
*/
|
|
357
|
-
export declare class CreateJobCommand extends
|
|
358
|
-
readonly input: CreateJobCommandInput;
|
|
359
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
360
|
-
/**
|
|
361
|
-
* @public
|
|
362
|
-
*/
|
|
363
|
-
constructor(input: CreateJobCommandInput);
|
|
364
|
-
/**
|
|
365
|
-
* @internal
|
|
366
|
-
*/
|
|
367
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SnowballClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateJobCommandInput, CreateJobCommandOutput>;
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
*/
|
|
371
|
-
private serialize;
|
|
372
|
-
/**
|
|
373
|
-
* @internal
|
|
374
|
-
*/
|
|
375
|
-
private deserialize;
|
|
360
|
+
export declare class CreateJobCommand extends CreateJobCommand_base {
|
|
376
361
|
}
|