@aws-sdk/client-snowball 3.370.0 → 3.372.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.
Files changed (52) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Snowball.js +2 -0
  3. package/dist-cjs/commands/CreateJobCommand.js +2 -1
  4. package/dist-cjs/commands/DescribeJobCommand.js +2 -1
  5. package/dist-cjs/commands/ListPickupLocationsCommand.js +46 -0
  6. package/dist-cjs/commands/UpdateJobCommand.js +2 -1
  7. package/dist-cjs/commands/index.js +1 -0
  8. package/dist-cjs/models/models_0.js +43 -1
  9. package/dist-cjs/pagination/ListPickupLocationsPaginator.js +29 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_json1_1.js +70 -2
  12. package/dist-es/Snowball.js +2 -0
  13. package/dist-es/commands/CreateJobCommand.js +2 -1
  14. package/dist-es/commands/DescribeJobCommand.js +2 -1
  15. package/dist-es/commands/ListPickupLocationsCommand.js +42 -0
  16. package/dist-es/commands/UpdateJobCommand.js +2 -1
  17. package/dist-es/commands/index.js +1 -0
  18. package/dist-es/models/models_0.js +37 -0
  19. package/dist-es/pagination/ListPickupLocationsPaginator.js +25 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_json1_1.js +66 -0
  22. package/dist-types/Snowball.d.ts +7 -0
  23. package/dist-types/SnowballClient.d.ts +3 -2
  24. package/dist-types/commands/CreateAddressCommand.d.ts +1 -0
  25. package/dist-types/commands/CreateClusterCommand.d.ts +5 -4
  26. package/dist-types/commands/CreateJobCommand.d.ts +20 -8
  27. package/dist-types/commands/CreateLongTermPricingCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeAddressCommand.d.ts +1 -0
  29. package/dist-types/commands/DescribeAddressesCommand.d.ts +1 -0
  30. package/dist-types/commands/DescribeClusterCommand.d.ts +2 -1
  31. package/dist-types/commands/DescribeJobCommand.d.ts +30 -6
  32. package/dist-types/commands/ListClusterJobsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListCompatibleImagesCommand.d.ts +1 -1
  34. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListLongTermPricingCommand.d.ts +1 -1
  36. package/dist-types/commands/ListPickupLocationsCommand.d.ts +97 -0
  37. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -0
  38. package/dist-types/commands/UpdateJobCommand.d.ts +11 -1
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/models_0.d.ts +146 -4
  41. package/dist-types/pagination/ListPickupLocationsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/index.d.ts +1 -0
  43. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  44. package/dist-types/ts3.4/Snowball.d.ts +17 -0
  45. package/dist-types/ts3.4/SnowballClient.d.ts +6 -0
  46. package/dist-types/ts3.4/commands/ListPickupLocationsCommand.d.ts +39 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +55 -1
  49. package/dist-types/ts3.4/pagination/ListPickupLocationsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -375,6 +375,14 @@ ListLongTermPricing
375
375
 
376
376
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/classes/listlongtermpricingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/interfaces/listlongtermpricingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/interfaces/listlongtermpricingcommandoutput.html)
377
377
 
378
+ </details>
379
+ <details>
380
+ <summary>
381
+ ListPickupLocations
382
+ </summary>
383
+
384
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/classes/listpickuplocationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/interfaces/listpickuplocationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-snowball/interfaces/listpickuplocationscommandoutput.html)
385
+
378
386
  </details>
379
387
  <details>
380
388
  <summary>
@@ -23,6 +23,7 @@ const ListClustersCommand_1 = require("./commands/ListClustersCommand");
23
23
  const ListCompatibleImagesCommand_1 = require("./commands/ListCompatibleImagesCommand");
24
24
  const ListJobsCommand_1 = require("./commands/ListJobsCommand");
25
25
  const ListLongTermPricingCommand_1 = require("./commands/ListLongTermPricingCommand");
26
+ const ListPickupLocationsCommand_1 = require("./commands/ListPickupLocationsCommand");
26
27
  const ListServiceVersionsCommand_1 = require("./commands/ListServiceVersionsCommand");
27
28
  const UpdateClusterCommand_1 = require("./commands/UpdateClusterCommand");
28
29
  const UpdateJobCommand_1 = require("./commands/UpdateJobCommand");
@@ -51,6 +52,7 @@ const commands = {
51
52
  ListCompatibleImagesCommand: ListCompatibleImagesCommand_1.ListCompatibleImagesCommand,
52
53
  ListJobsCommand: ListJobsCommand_1.ListJobsCommand,
53
54
  ListLongTermPricingCommand: ListLongTermPricingCommand_1.ListLongTermPricingCommand,
55
+ ListPickupLocationsCommand: ListPickupLocationsCommand_1.ListPickupLocationsCommand,
54
56
  ListServiceVersionsCommand: ListServiceVersionsCommand_1.ListServiceVersionsCommand,
55
57
  UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand,
56
58
  UpdateJobCommand: UpdateJobCommand_1.UpdateJobCommand,
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class CreateJobCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class CreateJobCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.CreateJobRequestFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  };
36
37
  const { requestHandler } = configuration;
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class DescribeJobCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -31,7 +32,7 @@ class DescribeJobCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: models_0_1.DescribeJobResultFilterSensitiveLog,
35
36
  };
36
37
  const { requestHandler } = configuration;
37
38
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPickupLocationsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class ListPickupLocationsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListPickupLocationsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SnowballClient";
28
+ const commandName = "ListPickupLocationsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.se_ListPickupLocationsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.de_ListPickupLocationsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListPickupLocationsCommand = ListPickupLocationsCommand;
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const models_0_1 = require("../models/models_0");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class UpdateJobCommand extends smithy_client_1.Command {
10
11
  static getEndpointParameterInstructions() {
@@ -30,7 +31,7 @@ class UpdateJobCommand extends smithy_client_1.Command {
30
31
  logger,
31
32
  clientName,
32
33
  commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
+ inputFilterSensitiveLog: models_0_1.UpdateJobRequestFilterSensitiveLog,
34
35
  outputFilterSensitiveLog: (_) => _,
35
36
  };
36
37
  const { requestHandler } = configuration;
@@ -22,6 +22,7 @@ tslib_1.__exportStar(require("./ListClustersCommand"), exports);
22
22
  tslib_1.__exportStar(require("./ListCompatibleImagesCommand"), exports);
23
23
  tslib_1.__exportStar(require("./ListJobsCommand"), exports);
24
24
  tslib_1.__exportStar(require("./ListLongTermPricingCommand"), exports);
25
+ tslib_1.__exportStar(require("./ListPickupLocationsCommand"), exports);
25
26
  tslib_1.__exportStar(require("./ListServiceVersionsCommand"), exports);
26
27
  tslib_1.__exportStar(require("./UpdateClusterCommand"), exports);
27
28
  tslib_1.__exportStar(require("./UpdateJobCommand"), exports);
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShipmentState = exports.ServiceName = exports.ClusterState = exports.InvalidNextTokenException = exports.ReturnShippingLabelAlreadyExistsException = exports.ShippingLabelStatus = exports.ConflictException = exports.LongTermPricingType = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.SnowballType = exports.SnowballCapacity = exports.ShippingOption = exports.TransferOption = exports.DeviceServiceName = exports.RemoteManagement = exports.StorageUnit = exports.JobState = exports.JobType = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = void 0;
3
+ exports.UpdateJobRequestFilterSensitiveLog = exports.DescribeJobResultFilterSensitiveLog = exports.JobMetadataFilterSensitiveLog = exports.CreateJobRequestFilterSensitiveLog = exports.PickupDetailsFilterSensitiveLog = exports.ShipmentState = exports.ServiceName = exports.ClusterState = exports.InvalidNextTokenException = exports.ReturnShippingLabelAlreadyExistsException = exports.ShippingLabelStatus = exports.ConflictException = exports.LongTermPricingType = exports.ImpactLevel = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.SnowballType = exports.SnowballCapacity = exports.ShippingOption = exports.TransferOption = exports.DeviceServiceName = exports.RemoteManagement = exports.StorageUnit = exports.JobState = exports.JobType = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = exports.AddressType = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
4
5
  const SnowballServiceException_1 = require("./SnowballServiceException");
6
+ exports.AddressType = {
7
+ AWS_SHIP: "AWS_SHIP",
8
+ CUST_PICKUP: "CUST_PICKUP",
9
+ };
5
10
  class InvalidJobStateException extends SnowballServiceException_1.SnowballServiceException {
6
11
  constructor(opts) {
7
12
  super({
@@ -99,6 +104,7 @@ exports.StorageUnit = {
99
104
  exports.RemoteManagement = {
100
105
  INSTALLED_AUTOSTART: "INSTALLED_AUTOSTART",
101
106
  INSTALLED_ONLY: "INSTALLED_ONLY",
107
+ NOT_INSTALLED: "NOT_INSTALLED",
102
108
  };
103
109
  exports.DeviceServiceName = {
104
110
  NFS_ON_DEVICE_SERVICE: "NFS_ON_DEVICE_SERVICE",
@@ -118,6 +124,7 @@ exports.ShippingOption = {
118
124
  exports.SnowballCapacity = {
119
125
  NO_PREFERENCE: "NoPreference",
120
126
  T100: "T100",
127
+ T13: "T13",
121
128
  T14: "T14",
122
129
  T240: "T240",
123
130
  T32: "T32",
@@ -132,6 +139,7 @@ exports.SnowballType = {
132
139
  EDGE_C: "EDGE_C",
133
140
  EDGE_CG: "EDGE_CG",
134
141
  EDGE_S: "EDGE_S",
142
+ RACK_5U_C: "RACK_5U_C",
135
143
  SNC1_HDD: "SNC1_HDD",
136
144
  SNC1_SSD: "SNC1_SSD",
137
145
  STANDARD: "STANDARD",
@@ -180,6 +188,13 @@ class ClusterLimitExceededException extends SnowballServiceException_1.SnowballS
180
188
  }
181
189
  }
182
190
  exports.ClusterLimitExceededException = ClusterLimitExceededException;
191
+ exports.ImpactLevel = {
192
+ IL2: "IL2",
193
+ IL4: "IL4",
194
+ IL5: "IL5",
195
+ IL6: "IL6",
196
+ IL99: "IL99",
197
+ };
183
198
  exports.LongTermPricingType = {
184
199
  ONE_MONTH: "OneMonth",
185
200
  ONE_YEAR: "OneYear",
@@ -249,3 +264,30 @@ exports.ShipmentState = {
249
264
  RECEIVED: "RECEIVED",
250
265
  RETURNED: "RETURNED",
251
266
  };
267
+ const PickupDetailsFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ ...(obj.PhoneNumber && { PhoneNumber: smithy_client_1.SENSITIVE_STRING }),
270
+ ...(obj.Email && { Email: smithy_client_1.SENSITIVE_STRING }),
271
+ });
272
+ exports.PickupDetailsFilterSensitiveLog = PickupDetailsFilterSensitiveLog;
273
+ const CreateJobRequestFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ ...(obj.PickupDetails && { PickupDetails: (0, exports.PickupDetailsFilterSensitiveLog)(obj.PickupDetails) }),
276
+ });
277
+ exports.CreateJobRequestFilterSensitiveLog = CreateJobRequestFilterSensitiveLog;
278
+ const JobMetadataFilterSensitiveLog = (obj) => ({
279
+ ...obj,
280
+ ...(obj.PickupDetails && { PickupDetails: (0, exports.PickupDetailsFilterSensitiveLog)(obj.PickupDetails) }),
281
+ });
282
+ exports.JobMetadataFilterSensitiveLog = JobMetadataFilterSensitiveLog;
283
+ const DescribeJobResultFilterSensitiveLog = (obj) => ({
284
+ ...obj,
285
+ ...(obj.JobMetadata && { JobMetadata: (0, exports.JobMetadataFilterSensitiveLog)(obj.JobMetadata) }),
286
+ ...(obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => (0, exports.JobMetadataFilterSensitiveLog)(item)) }),
287
+ });
288
+ exports.DescribeJobResultFilterSensitiveLog = DescribeJobResultFilterSensitiveLog;
289
+ const UpdateJobRequestFilterSensitiveLog = (obj) => ({
290
+ ...obj,
291
+ ...(obj.PickupDetails && { PickupDetails: (0, exports.PickupDetailsFilterSensitiveLog)(obj.PickupDetails) }),
292
+ });
293
+ exports.UpdateJobRequestFilterSensitiveLog = UpdateJobRequestFilterSensitiveLog;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListPickupLocations = void 0;
4
+ const ListPickupLocationsCommand_1 = require("../commands/ListPickupLocationsCommand");
5
+ const SnowballClient_1 = require("../SnowballClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListPickupLocationsCommand_1.ListPickupLocationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListPickupLocations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof SnowballClient_1.SnowballClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Snowball | SnowballClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListPickupLocations = paginateListPickupLocations;
@@ -8,3 +8,4 @@ tslib_1.__exportStar(require("./ListClustersPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListCompatibleImagesPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./ListLongTermPricingPaginator"), exports);
11
+ tslib_1.__exportStar(require("./ListPickupLocationsPaginator"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateJobCommand = exports.de_UpdateClusterCommand = exports.de_ListServiceVersionsCommand = exports.de_ListLongTermPricingCommand = exports.de_ListJobsCommand = exports.de_ListCompatibleImagesCommand = exports.de_ListClustersCommand = exports.de_ListClusterJobsCommand = exports.de_GetSoftwareUpdatesCommand = exports.de_GetSnowballUsageCommand = exports.de_GetJobUnlockCodeCommand = exports.de_GetJobManifestCommand = exports.de_DescribeReturnShippingLabelCommand = exports.de_DescribeJobCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddressesCommand = exports.de_DescribeAddressCommand = exports.de_CreateReturnShippingLabelCommand = exports.de_CreateLongTermPricingCommand = exports.de_CreateJobCommand = exports.de_CreateClusterCommand = exports.de_CreateAddressCommand = exports.de_CancelJobCommand = exports.de_CancelClusterCommand = exports.se_UpdateLongTermPricingCommand = exports.se_UpdateJobShipmentStateCommand = exports.se_UpdateJobCommand = exports.se_UpdateClusterCommand = exports.se_ListServiceVersionsCommand = exports.se_ListLongTermPricingCommand = exports.se_ListJobsCommand = exports.se_ListCompatibleImagesCommand = exports.se_ListClustersCommand = exports.se_ListClusterJobsCommand = exports.se_GetSoftwareUpdatesCommand = exports.se_GetSnowballUsageCommand = exports.se_GetJobUnlockCodeCommand = exports.se_GetJobManifestCommand = exports.se_DescribeReturnShippingLabelCommand = exports.se_DescribeJobCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddressesCommand = exports.se_DescribeAddressCommand = exports.se_CreateReturnShippingLabelCommand = exports.se_CreateLongTermPricingCommand = exports.se_CreateJobCommand = exports.se_CreateClusterCommand = exports.se_CreateAddressCommand = exports.se_CancelJobCommand = exports.se_CancelClusterCommand = void 0;
4
- exports.de_UpdateLongTermPricingCommand = exports.de_UpdateJobShipmentStateCommand = void 0;
3
+ exports.de_ListServiceVersionsCommand = exports.de_ListPickupLocationsCommand = exports.de_ListLongTermPricingCommand = exports.de_ListJobsCommand = exports.de_ListCompatibleImagesCommand = exports.de_ListClustersCommand = exports.de_ListClusterJobsCommand = exports.de_GetSoftwareUpdatesCommand = exports.de_GetSnowballUsageCommand = exports.de_GetJobUnlockCodeCommand = exports.de_GetJobManifestCommand = exports.de_DescribeReturnShippingLabelCommand = exports.de_DescribeJobCommand = exports.de_DescribeClusterCommand = exports.de_DescribeAddressesCommand = exports.de_DescribeAddressCommand = exports.de_CreateReturnShippingLabelCommand = exports.de_CreateLongTermPricingCommand = exports.de_CreateJobCommand = exports.de_CreateClusterCommand = exports.de_CreateAddressCommand = exports.de_CancelJobCommand = exports.de_CancelClusterCommand = exports.se_UpdateLongTermPricingCommand = exports.se_UpdateJobShipmentStateCommand = exports.se_UpdateJobCommand = exports.se_UpdateClusterCommand = exports.se_ListServiceVersionsCommand = exports.se_ListPickupLocationsCommand = exports.se_ListLongTermPricingCommand = exports.se_ListJobsCommand = exports.se_ListCompatibleImagesCommand = exports.se_ListClustersCommand = exports.se_ListClusterJobsCommand = exports.se_GetSoftwareUpdatesCommand = exports.se_GetSnowballUsageCommand = exports.se_GetJobUnlockCodeCommand = exports.se_GetJobManifestCommand = exports.se_DescribeReturnShippingLabelCommand = exports.se_DescribeJobCommand = exports.se_DescribeClusterCommand = exports.se_DescribeAddressesCommand = exports.se_DescribeAddressCommand = exports.se_CreateReturnShippingLabelCommand = exports.se_CreateLongTermPricingCommand = exports.se_CreateJobCommand = exports.se_CreateClusterCommand = exports.se_CreateAddressCommand = exports.se_CancelJobCommand = exports.se_CancelClusterCommand = void 0;
4
+ exports.de_UpdateLongTermPricingCommand = exports.de_UpdateJobShipmentStateCommand = exports.de_UpdateJobCommand = exports.de_UpdateClusterCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
@@ -153,6 +153,13 @@ const se_ListLongTermPricingCommand = async (input, context) => {
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  exports.se_ListLongTermPricingCommand = se_ListLongTermPricingCommand;
156
+ const se_ListPickupLocationsCommand = async (input, context) => {
157
+ const headers = sharedHeaders("ListPickupLocations");
158
+ let body;
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
160
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
+ };
162
+ exports.se_ListPickupLocationsCommand = se_ListPickupLocationsCommand;
156
163
  const se_ListServiceVersionsCommand = async (input, context) => {
157
164
  const headers = sharedHeaders("ListServiceVersions");
158
165
  let body;
@@ -950,6 +957,39 @@ const de_ListLongTermPricingCommandError = async (output, context) => {
950
957
  });
951
958
  }
952
959
  };
960
+ const de_ListPickupLocationsCommand = async (output, context) => {
961
+ if (output.statusCode >= 300) {
962
+ return de_ListPickupLocationsCommandError(output, context);
963
+ }
964
+ const data = await parseBody(output.body, context);
965
+ let contents = {};
966
+ contents = (0, smithy_client_1._json)(data);
967
+ const response = {
968
+ $metadata: deserializeMetadata(output),
969
+ ...contents,
970
+ };
971
+ return response;
972
+ };
973
+ exports.de_ListPickupLocationsCommand = de_ListPickupLocationsCommand;
974
+ const de_ListPickupLocationsCommandError = async (output, context) => {
975
+ const parsedOutput = {
976
+ ...output,
977
+ body: await parseErrorBody(output.body, context),
978
+ };
979
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
+ switch (errorCode) {
981
+ case "InvalidResourceException":
982
+ case "com.amazonaws.snowball#InvalidResourceException":
983
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
984
+ default:
985
+ const parsedBody = parsedOutput.body;
986
+ return throwDefaultError({
987
+ output,
988
+ parsedBody,
989
+ errorCode,
990
+ });
991
+ }
992
+ };
953
993
  const de_ListServiceVersionsCommand = async (output, context) => {
954
994
  if (output.statusCode >= 300) {
955
995
  return de_ListServiceVersionsCommandError(output, context);
@@ -1275,11 +1315,13 @@ const se_CreateJobRequest = (input, context) => {
1275
1315
  Description: [],
1276
1316
  DeviceConfiguration: smithy_client_1._json,
1277
1317
  ForwardingAddressId: [],
1318
+ ImpactLevel: [],
1278
1319
  JobType: [],
1279
1320
  KmsKeyARN: [],
1280
1321
  LongTermPricingId: [],
1281
1322
  Notification: smithy_client_1._json,
1282
1323
  OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1324
+ PickupDetails: (_) => se_PickupDetails(_, context),
1283
1325
  RemoteManagement: [],
1284
1326
  Resources: smithy_client_1._json,
1285
1327
  RoleARN: [],
@@ -1297,6 +1339,17 @@ const se_OnDeviceServiceConfiguration = (input, context) => {
1297
1339
  TGWOnDeviceService: smithy_client_1._json,
1298
1340
  });
1299
1341
  };
1342
+ const se_PickupDetails = (input, context) => {
1343
+ return (0, smithy_client_1.take)(input, {
1344
+ DevicePickupId: [],
1345
+ Email: [],
1346
+ IdentificationExpirationDate: (_) => Math.round(_.getTime() / 1000),
1347
+ IdentificationIssuingOrg: [],
1348
+ IdentificationNumber: [],
1349
+ Name: [],
1350
+ PhoneNumber: [],
1351
+ });
1352
+ };
1300
1353
  const se_S3OnDeviceServiceConfiguration = (input, context) => {
1301
1354
  return (0, smithy_client_1.take)(input, {
1302
1355
  FaultTolerance: [],
@@ -1326,6 +1379,7 @@ const se_UpdateJobRequest = (input, context) => {
1326
1379
  JobId: [],
1327
1380
  Notification: smithy_client_1._json,
1328
1381
  OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1382
+ PickupDetails: (_) => se_PickupDetails(_, context),
1329
1383
  Resources: smithy_client_1._json,
1330
1384
  RoleARN: [],
1331
1385
  ShippingOption: [],
@@ -1419,6 +1473,7 @@ const de_JobMetadata = (output, context) => {
1419
1473
  Description: smithy_client_1.expectString,
1420
1474
  DeviceConfiguration: smithy_client_1._json,
1421
1475
  ForwardingAddressId: smithy_client_1.expectString,
1476
+ ImpactLevel: smithy_client_1.expectString,
1422
1477
  JobId: smithy_client_1.expectString,
1423
1478
  JobLogInfo: smithy_client_1._json,
1424
1479
  JobState: smithy_client_1.expectString,
@@ -1427,11 +1482,13 @@ const de_JobMetadata = (output, context) => {
1427
1482
  LongTermPricingId: smithy_client_1.expectString,
1428
1483
  Notification: smithy_client_1._json,
1429
1484
  OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1485
+ PickupDetails: (_) => de_PickupDetails(_, context),
1430
1486
  RemoteManagement: smithy_client_1.expectString,
1431
1487
  Resources: smithy_client_1._json,
1432
1488
  RoleARN: smithy_client_1.expectString,
1433
1489
  ShippingDetails: smithy_client_1._json,
1434
1490
  SnowballCapacityPreference: smithy_client_1.expectString,
1491
+ SnowballId: smithy_client_1.expectString,
1435
1492
  SnowballType: smithy_client_1.expectString,
1436
1493
  TaxDocuments: smithy_client_1._json,
1437
1494
  });
@@ -1498,6 +1555,17 @@ const de_OnDeviceServiceConfiguration = (output, context) => {
1498
1555
  TGWOnDeviceService: smithy_client_1._json,
1499
1556
  });
1500
1557
  };
1558
+ const de_PickupDetails = (output, context) => {
1559
+ return (0, smithy_client_1.take)(output, {
1560
+ DevicePickupId: smithy_client_1.expectString,
1561
+ Email: smithy_client_1.expectString,
1562
+ IdentificationExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1563
+ IdentificationIssuingOrg: smithy_client_1.expectString,
1564
+ IdentificationNumber: smithy_client_1.expectString,
1565
+ Name: smithy_client_1.expectString,
1566
+ PhoneNumber: smithy_client_1.expectString,
1567
+ });
1568
+ };
1501
1569
  const de_S3OnDeviceServiceConfiguration = (output, context) => {
1502
1570
  return (0, smithy_client_1.take)(output, {
1503
1571
  FaultTolerance: smithy_client_1.expectInt32,
@@ -20,6 +20,7 @@ import { ListClustersCommand, } from "./commands/ListClustersCommand";
20
20
  import { ListCompatibleImagesCommand, } from "./commands/ListCompatibleImagesCommand";
21
21
  import { ListJobsCommand } from "./commands/ListJobsCommand";
22
22
  import { ListLongTermPricingCommand, } from "./commands/ListLongTermPricingCommand";
23
+ import { ListPickupLocationsCommand, } from "./commands/ListPickupLocationsCommand";
23
24
  import { ListServiceVersionsCommand, } from "./commands/ListServiceVersionsCommand";
24
25
  import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
25
26
  import { UpdateJobCommand } from "./commands/UpdateJobCommand";
@@ -48,6 +49,7 @@ const commands = {
48
49
  ListCompatibleImagesCommand,
49
50
  ListJobsCommand,
50
51
  ListLongTermPricingCommand,
52
+ ListPickupLocationsCommand,
51
53
  ListServiceVersionsCommand,
52
54
  UpdateClusterCommand,
53
55
  UpdateJobCommand,
@@ -1,6 +1,7 @@
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 { CreateJobRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { de_CreateJobCommand, se_CreateJobCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class CreateJobCommand extends $Command {
@@ -27,7 +28,7 @@ export class CreateJobCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: CreateJobRequestFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  };
33
34
  const { requestHandler } = configuration;
@@ -1,6 +1,7 @@
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 { DescribeJobResultFilterSensitiveLog } from "../models/models_0";
4
5
  import { de_DescribeJobCommand, se_DescribeJobCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class DescribeJobCommand extends $Command {
@@ -28,7 +29,7 @@ export class DescribeJobCommand extends $Command {
28
29
  clientName,
29
30
  commandName,
30
31
  inputFilterSensitiveLog: (_) => _,
31
- outputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: DescribeJobResultFilterSensitiveLog,
32
33
  };
33
34
  const { requestHandler } = configuration;
34
35
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_ListPickupLocationsCommand, se_ListPickupLocationsCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class ListPickupLocationsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListPickupLocationsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SnowballClient";
25
+ const commandName = "ListPickupLocationsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListPickupLocationsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListPickupLocationsCommand(output, context);
41
+ }
42
+ }
@@ -1,6 +1,7 @@
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 { UpdateJobRequestFilterSensitiveLog } from "../models/models_0";
4
5
  import { de_UpdateJobCommand, se_UpdateJobCommand } from "../protocols/Aws_json1_1";
5
6
  export { $Command };
6
7
  export class UpdateJobCommand extends $Command {
@@ -27,7 +28,7 @@ export class UpdateJobCommand extends $Command {
27
28
  logger,
28
29
  clientName,
29
30
  commandName,
30
- inputFilterSensitiveLog: (_) => _,
31
+ inputFilterSensitiveLog: UpdateJobRequestFilterSensitiveLog,
31
32
  outputFilterSensitiveLog: (_) => _,
32
33
  };
33
34
  const { requestHandler } = configuration;
@@ -19,6 +19,7 @@ export * from "./ListClustersCommand";
19
19
  export * from "./ListCompatibleImagesCommand";
20
20
  export * from "./ListJobsCommand";
21
21
  export * from "./ListLongTermPricingCommand";
22
+ export * from "./ListPickupLocationsCommand";
22
23
  export * from "./ListServiceVersionsCommand";
23
24
  export * from "./UpdateClusterCommand";
24
25
  export * from "./UpdateJobCommand";
@@ -1,4 +1,9 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { SnowballServiceException as __BaseException } from "./SnowballServiceException";
3
+ export const AddressType = {
4
+ AWS_SHIP: "AWS_SHIP",
5
+ CUST_PICKUP: "CUST_PICKUP",
6
+ };
2
7
  export class InvalidJobStateException extends __BaseException {
3
8
  constructor(opts) {
4
9
  super({
@@ -91,6 +96,7 @@ export const StorageUnit = {
91
96
  export const RemoteManagement = {
92
97
  INSTALLED_AUTOSTART: "INSTALLED_AUTOSTART",
93
98
  INSTALLED_ONLY: "INSTALLED_ONLY",
99
+ NOT_INSTALLED: "NOT_INSTALLED",
94
100
  };
95
101
  export const DeviceServiceName = {
96
102
  NFS_ON_DEVICE_SERVICE: "NFS_ON_DEVICE_SERVICE",
@@ -110,6 +116,7 @@ export const ShippingOption = {
110
116
  export const SnowballCapacity = {
111
117
  NO_PREFERENCE: "NoPreference",
112
118
  T100: "T100",
119
+ T13: "T13",
113
120
  T14: "T14",
114
121
  T240: "T240",
115
122
  T32: "T32",
@@ -124,6 +131,7 @@ export const SnowballType = {
124
131
  EDGE_C: "EDGE_C",
125
132
  EDGE_CG: "EDGE_CG",
126
133
  EDGE_S: "EDGE_S",
134
+ RACK_5U_C: "RACK_5U_C",
127
135
  SNC1_HDD: "SNC1_HDD",
128
136
  SNC1_SSD: "SNC1_SSD",
129
137
  STANDARD: "STANDARD",
@@ -169,6 +177,13 @@ export class ClusterLimitExceededException extends __BaseException {
169
177
  this.Message = opts.Message;
170
178
  }
171
179
  }
180
+ export const ImpactLevel = {
181
+ IL2: "IL2",
182
+ IL4: "IL4",
183
+ IL5: "IL5",
184
+ IL6: "IL6",
185
+ IL99: "IL99",
186
+ };
172
187
  export const LongTermPricingType = {
173
188
  ONE_MONTH: "OneMonth",
174
189
  ONE_YEAR: "OneYear",
@@ -235,3 +250,25 @@ export const ShipmentState = {
235
250
  RECEIVED: "RECEIVED",
236
251
  RETURNED: "RETURNED",
237
252
  };
253
+ export const PickupDetailsFilterSensitiveLog = (obj) => ({
254
+ ...obj,
255
+ ...(obj.PhoneNumber && { PhoneNumber: SENSITIVE_STRING }),
256
+ ...(obj.Email && { Email: SENSITIVE_STRING }),
257
+ });
258
+ export const CreateJobRequestFilterSensitiveLog = (obj) => ({
259
+ ...obj,
260
+ ...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
261
+ });
262
+ export const JobMetadataFilterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ ...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
265
+ });
266
+ export const DescribeJobResultFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ ...(obj.JobMetadata && { JobMetadata: JobMetadataFilterSensitiveLog(obj.JobMetadata) }),
269
+ ...(obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => JobMetadataFilterSensitiveLog(item)) }),
270
+ });
271
+ export const UpdateJobRequestFilterSensitiveLog = (obj) => ({
272
+ ...obj,
273
+ ...(obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }),
274
+ });
@@ -0,0 +1,25 @@
1
+ import { ListPickupLocationsCommand, } from "../commands/ListPickupLocationsCommand";
2
+ import { SnowballClient } from "../SnowballClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
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
+ }
@@ -5,3 +5,4 @@ export * from "./ListClustersPaginator";
5
5
  export * from "./ListCompatibleImagesPaginator";
6
6
  export * from "./ListJobsPaginator";
7
7
  export * from "./ListLongTermPricingPaginator";
8
+ export * from "./ListPickupLocationsPaginator";