@aws-sdk/client-iot-wireless 3.45.0 → 3.47.2

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 (47) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +11 -1
  3. package/dist-cjs/IoTWireless.js +30 -0
  4. package/dist-cjs/commands/DeleteQueuedMessagesCommand.js +36 -0
  5. package/dist-cjs/commands/ListQueuedMessagesCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +2 -0
  7. package/dist-cjs/models/models_0.js +42 -54
  8. package/dist-cjs/pagination/ListQueuedMessagesPaginator.js +35 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +252 -4
  11. package/dist-cjs/runtimeConfig.browser.js +7 -2
  12. package/dist-cjs/runtimeConfig.js +9 -3
  13. package/dist-es/IoTWireless.js +30 -0
  14. package/dist-es/commands/DeleteQueuedMessagesCommand.js +39 -0
  15. package/dist-es/commands/ListQueuedMessagesCommand.js +39 -0
  16. package/dist-es/commands/index.js +2 -0
  17. package/dist-es/models/models_0.js +24 -32
  18. package/dist-es/pagination/ListQueuedMessagesPaginator.js +74 -0
  19. package/dist-es/pagination/index.js +1 -0
  20. package/dist-es/protocols/Aws_restJson1.js +277 -0
  21. package/dist-es/runtimeConfig.browser.js +12 -3
  22. package/dist-es/runtimeConfig.js +13 -6
  23. package/dist-types/IoTWireless.d.ts +25 -1
  24. package/dist-types/IoTWirelessClient.d.ts +20 -4
  25. package/dist-types/commands/DeleteQueuedMessagesCommand.d.ts +35 -0
  26. package/dist-types/commands/ListQueuedMessagesCommand.d.ts +35 -0
  27. package/dist-types/commands/index.d.ts +2 -0
  28. package/dist-types/models/models_0.d.ts +110 -57
  29. package/dist-types/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  33. package/dist-types/runtimeConfig.d.ts +4 -3
  34. package/dist-types/runtimeConfig.native.d.ts +1 -0
  35. package/dist-types/ts3.4/IoTWireless.d.ts +10 -0
  36. package/dist-types/ts3.4/IoTWirelessClient.d.ts +7 -3
  37. package/dist-types/ts3.4/commands/DeleteQueuedMessagesCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/ListQueuedMessagesCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +66 -37
  41. package/dist-types/ts3.4/pagination/ListQueuedMessagesPaginator.d.ts +4 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  47. package/package.json +39 -46
@@ -16,10 +16,6 @@ export var AbpV1_1;
16
16
  (function (AbpV1_1) {
17
17
  AbpV1_1.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
18
  })(AbpV1_1 || (AbpV1_1 = {}));
19
- export var AccessDeniedException;
20
- (function (AccessDeniedException) {
21
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(AccessDeniedException || (AccessDeniedException = {}));
23
19
  export var SidewalkAccountInfo;
24
20
  (function (SidewalkAccountInfo) {
25
21
  SidewalkAccountInfo.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.AppServerPrivateKey && { AppServerPrivateKey: SENSITIVE_STRING }))); };
@@ -36,26 +32,6 @@ export var AssociateAwsAccountWithPartnerAccountResponse;
36
32
  (function (AssociateAwsAccountWithPartnerAccountResponse) {
37
33
  AssociateAwsAccountWithPartnerAccountResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Sidewalk && { Sidewalk: SidewalkAccountInfo.filterSensitiveLog(obj.Sidewalk) }))); };
38
34
  })(AssociateAwsAccountWithPartnerAccountResponse || (AssociateAwsAccountWithPartnerAccountResponse = {}));
39
- export var ConflictException;
40
- (function (ConflictException) {
41
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
- })(ConflictException || (ConflictException = {}));
43
- export var InternalServerException;
44
- (function (InternalServerException) {
45
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
- })(InternalServerException || (InternalServerException = {}));
47
- export var ResourceNotFoundException;
48
- (function (ResourceNotFoundException) {
49
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
50
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
51
- export var ThrottlingException;
52
- (function (ThrottlingException) {
53
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
54
- })(ThrottlingException || (ThrottlingException = {}));
55
- export var ValidationException;
56
- (function (ValidationException) {
57
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
58
- })(ValidationException || (ValidationException = {}));
59
35
  export var AssociateMulticastGroupWithFuotaTaskRequest;
60
36
  (function (AssociateMulticastGroupWithFuotaTaskRequest) {
61
37
  AssociateMulticastGroupWithFuotaTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -315,6 +291,14 @@ export var DeleteMulticastGroupResponse;
315
291
  (function (DeleteMulticastGroupResponse) {
316
292
  DeleteMulticastGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
293
  })(DeleteMulticastGroupResponse || (DeleteMulticastGroupResponse = {}));
294
+ export var DeleteQueuedMessagesRequest;
295
+ (function (DeleteQueuedMessagesRequest) {
296
+ DeleteQueuedMessagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
+ })(DeleteQueuedMessagesRequest || (DeleteQueuedMessagesRequest = {}));
298
+ export var DeleteQueuedMessagesResponse;
299
+ (function (DeleteQueuedMessagesResponse) {
300
+ DeleteQueuedMessagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
+ })(DeleteQueuedMessagesResponse || (DeleteQueuedMessagesResponse = {}));
318
302
  export var DeleteServiceProfileRequest;
319
303
  (function (DeleteServiceProfileRequest) {
320
304
  DeleteServiceProfileRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -443,6 +427,14 @@ export var DisassociateWirelessGatewayFromThingResponse;
443
427
  (function (DisassociateWirelessGatewayFromThingResponse) {
444
428
  DisassociateWirelessGatewayFromThingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
445
429
  })(DisassociateWirelessGatewayFromThingResponse || (DisassociateWirelessGatewayFromThingResponse = {}));
430
+ export var LoRaWANSendDataToDevice;
431
+ (function (LoRaWANSendDataToDevice) {
432
+ LoRaWANSendDataToDevice.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
433
+ })(LoRaWANSendDataToDevice || (LoRaWANSendDataToDevice = {}));
434
+ export var DownlinkQueueMessage;
435
+ (function (DownlinkQueueMessage) {
436
+ DownlinkQueueMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
437
+ })(DownlinkQueueMessage || (DownlinkQueueMessage = {}));
446
438
  export var Event;
447
439
  (function (Event) {
448
440
  Event["ACK"] = "ack";
@@ -813,6 +805,14 @@ export var ListPartnerAccountsResponse;
813
805
  Sidewalk: obj.Sidewalk.map(function (item) { return SidewalkAccountInfoWithFingerprint.filterSensitiveLog(item); }),
814
806
  }))); };
815
807
  })(ListPartnerAccountsResponse || (ListPartnerAccountsResponse = {}));
808
+ export var ListQueuedMessagesRequest;
809
+ (function (ListQueuedMessagesRequest) {
810
+ ListQueuedMessagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
811
+ })(ListQueuedMessagesRequest || (ListQueuedMessagesRequest = {}));
812
+ export var ListQueuedMessagesResponse;
813
+ (function (ListQueuedMessagesResponse) {
814
+ ListQueuedMessagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
815
+ })(ListQueuedMessagesResponse || (ListQueuedMessagesResponse = {}));
816
816
  export var ListServiceProfilesRequest;
817
817
  (function (ListServiceProfilesRequest) {
818
818
  ListServiceProfilesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -925,10 +925,6 @@ export var SendDataToMulticastGroupResponse;
925
925
  (function (SendDataToMulticastGroupResponse) {
926
926
  SendDataToMulticastGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
927
927
  })(SendDataToMulticastGroupResponse || (SendDataToMulticastGroupResponse = {}));
928
- export var LoRaWANSendDataToDevice;
929
- (function (LoRaWANSendDataToDevice) {
930
- LoRaWANSendDataToDevice.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
931
- })(LoRaWANSendDataToDevice || (LoRaWANSendDataToDevice = {}));
932
928
  export var MessageType;
933
929
  (function (MessageType) {
934
930
  MessageType["CUSTOM_COMMAND_ID_GET"] = "CUSTOM_COMMAND_ID_GET";
@@ -996,10 +992,6 @@ export var TagResourceResponse;
996
992
  (function (TagResourceResponse) {
997
993
  TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
998
994
  })(TagResourceResponse || (TagResourceResponse = {}));
999
- export var TooManyTagsException;
1000
- (function (TooManyTagsException) {
1001
- TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1002
- })(TooManyTagsException || (TooManyTagsException = {}));
1003
995
  export var TestWirelessDeviceRequest;
1004
996
  (function (TestWirelessDeviceRequest) {
1005
997
  TestWirelessDeviceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListQueuedMessagesCommand, } from "../commands/ListQueuedMessagesCommand";
3
+ import { IoTWireless } from "../IoTWireless";
4
+ import { IoTWirelessClient } from "../IoTWirelessClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListQueuedMessagesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listQueuedMessages.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListQueuedMessages(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListQueuedMessages_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTWireless)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTWirelessClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -4,6 +4,7 @@ export * from "./ListDeviceProfilesPaginator";
4
4
  export * from "./ListFuotaTasksPaginator";
5
5
  export * from "./ListMulticastGroupsByFuotaTaskPaginator";
6
6
  export * from "./ListMulticastGroupsPaginator";
7
+ export * from "./ListQueuedMessagesPaginator";
7
8
  export * from "./ListServiceProfilesPaginator";
8
9
  export * from "./ListWirelessDevicesPaginator";
9
10
  export * from "./ListWirelessGatewaysPaginator";
@@ -651,6 +651,39 @@ export var serializeAws_restJson1DeleteMulticastGroupCommand = function (input,
651
651
  }
652
652
  });
653
653
  }); };
654
+ export var serializeAws_restJson1DeleteQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
655
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
656
+ return __generator(this, function (_c) {
657
+ switch (_c.label) {
658
+ case 0: return [4, context.endpoint()];
659
+ case 1:
660
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
661
+ headers = {};
662
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices/{Id}/data";
663
+ if (input.Id !== undefined) {
664
+ labelValue = input.Id;
665
+ if (labelValue.length <= 0) {
666
+ throw new Error("Empty value provided for input HTTP label: Id.");
667
+ }
668
+ resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
669
+ }
670
+ else {
671
+ throw new Error("No value provided for input HTTP label: Id.");
672
+ }
673
+ query = __assign(__assign({}, (input.MessageId !== undefined && { messageId: input.MessageId })), (input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }));
674
+ return [2, new __HttpRequest({
675
+ protocol: protocol,
676
+ hostname: hostname,
677
+ port: port,
678
+ method: "DELETE",
679
+ headers: headers,
680
+ path: resolvedPath,
681
+ query: query,
682
+ body: body,
683
+ })];
684
+ }
685
+ });
686
+ }); };
654
687
  export var serializeAws_restJson1DeleteServiceProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
655
688
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
656
689
  return __generator(this, function (_c) {
@@ -1825,6 +1858,39 @@ export var serializeAws_restJson1ListPartnerAccountsCommand = function (input, c
1825
1858
  }
1826
1859
  });
1827
1860
  }); };
1861
+ export var serializeAws_restJson1ListQueuedMessagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1862
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
1863
+ return __generator(this, function (_c) {
1864
+ switch (_c.label) {
1865
+ case 0: return [4, context.endpoint()];
1866
+ case 1:
1867
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1868
+ headers = {};
1869
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/wireless-devices/{Id}/data";
1870
+ if (input.Id !== undefined) {
1871
+ labelValue = input.Id;
1872
+ if (labelValue.length <= 0) {
1873
+ throw new Error("Empty value provided for input HTTP label: Id.");
1874
+ }
1875
+ resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
1876
+ }
1877
+ else {
1878
+ throw new Error("No value provided for input HTTP label: Id.");
1879
+ }
1880
+ query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.WirelessDeviceType !== undefined && { WirelessDeviceType: input.WirelessDeviceType }));
1881
+ return [2, new __HttpRequest({
1882
+ protocol: protocol,
1883
+ hostname: hostname,
1884
+ port: port,
1885
+ method: "GET",
1886
+ headers: headers,
1887
+ path: resolvedPath,
1888
+ query: query,
1889
+ body: body,
1890
+ })];
1891
+ }
1892
+ });
1893
+ }); };
1828
1894
  export var serializeAws_restJson1ListServiceProfilesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1829
1895
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
1830
1896
  return __generator(this, function (_c) {
@@ -4757,6 +4823,94 @@ var deserializeAws_restJson1DeleteMulticastGroupCommandError = function (output,
4757
4823
  }
4758
4824
  });
4759
4825
  }); };
4826
+ export var deserializeAws_restJson1DeleteQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4827
+ var contents;
4828
+ return __generator(this, function (_a) {
4829
+ switch (_a.label) {
4830
+ case 0:
4831
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
4832
+ return [2, deserializeAws_restJson1DeleteQueuedMessagesCommandError(output, context)];
4833
+ }
4834
+ contents = {
4835
+ $metadata: deserializeMetadata(output),
4836
+ };
4837
+ return [4, collectBody(output.body, context)];
4838
+ case 1:
4839
+ _a.sent();
4840
+ return [2, Promise.resolve(contents)];
4841
+ }
4842
+ });
4843
+ }); };
4844
+ var deserializeAws_restJson1DeleteQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4845
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
4846
+ var _h;
4847
+ return __generator(this, function (_j) {
4848
+ switch (_j.label) {
4849
+ case 0:
4850
+ _a = [__assign({}, output)];
4851
+ _h = {};
4852
+ return [4, parseBody(output.body, context)];
4853
+ case 1:
4854
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
4855
+ errorCode = "UnknownError";
4856
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4857
+ _b = errorCode;
4858
+ switch (_b) {
4859
+ case "AccessDeniedException": return [3, 2];
4860
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
4861
+ case "InternalServerException": return [3, 4];
4862
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
4863
+ case "ResourceNotFoundException": return [3, 6];
4864
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
4865
+ case "ThrottlingException": return [3, 8];
4866
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
4867
+ case "ValidationException": return [3, 10];
4868
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
4869
+ }
4870
+ return [3, 12];
4871
+ case 2:
4872
+ _c = [{}];
4873
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
4874
+ case 3:
4875
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4876
+ return [3, 13];
4877
+ case 4:
4878
+ _d = [{}];
4879
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4880
+ case 5:
4881
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4882
+ return [3, 13];
4883
+ case 6:
4884
+ _e = [{}];
4885
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4886
+ case 7:
4887
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4888
+ return [3, 13];
4889
+ case 8:
4890
+ _f = [{}];
4891
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
4892
+ case 9:
4893
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4894
+ return [3, 13];
4895
+ case 10:
4896
+ _g = [{}];
4897
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
4898
+ case 11:
4899
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4900
+ return [3, 13];
4901
+ case 12:
4902
+ parsedBody = parsedOutput.body;
4903
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
4904
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
4905
+ _j.label = 13;
4906
+ case 13:
4907
+ message = response.message || response.Message || errorCode;
4908
+ response.message = message;
4909
+ delete response.Message;
4910
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4911
+ }
4912
+ });
4913
+ }); };
4760
4914
  export var deserializeAws_restJson1DeleteServiceProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4761
4915
  var contents;
4762
4916
  return __generator(this, function (_a) {
@@ -8493,6 +8647,104 @@ var deserializeAws_restJson1ListPartnerAccountsCommandError = function (output,
8493
8647
  }
8494
8648
  });
8495
8649
  }); };
8650
+ export var deserializeAws_restJson1ListQueuedMessagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8651
+ var contents, data, _a, _b;
8652
+ return __generator(this, function (_c) {
8653
+ switch (_c.label) {
8654
+ case 0:
8655
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8656
+ return [2, deserializeAws_restJson1ListQueuedMessagesCommandError(output, context)];
8657
+ }
8658
+ contents = {
8659
+ $metadata: deserializeMetadata(output),
8660
+ DownlinkQueueMessagesList: undefined,
8661
+ NextToken: undefined,
8662
+ };
8663
+ _a = __expectNonNull;
8664
+ _b = __expectObject;
8665
+ return [4, parseBody(output.body, context)];
8666
+ case 1:
8667
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
8668
+ if (data.DownlinkQueueMessagesList !== undefined && data.DownlinkQueueMessagesList !== null) {
8669
+ contents.DownlinkQueueMessagesList = deserializeAws_restJson1DownlinkQueueMessagesList(data.DownlinkQueueMessagesList, context);
8670
+ }
8671
+ if (data.NextToken !== undefined && data.NextToken !== null) {
8672
+ contents.NextToken = __expectString(data.NextToken);
8673
+ }
8674
+ return [2, Promise.resolve(contents)];
8675
+ }
8676
+ });
8677
+ }); };
8678
+ var deserializeAws_restJson1ListQueuedMessagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8679
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
8680
+ var _h;
8681
+ return __generator(this, function (_j) {
8682
+ switch (_j.label) {
8683
+ case 0:
8684
+ _a = [__assign({}, output)];
8685
+ _h = {};
8686
+ return [4, parseBody(output.body, context)];
8687
+ case 1:
8688
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
8689
+ errorCode = "UnknownError";
8690
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8691
+ _b = errorCode;
8692
+ switch (_b) {
8693
+ case "AccessDeniedException": return [3, 2];
8694
+ case "com.amazonaws.iotwireless#AccessDeniedException": return [3, 2];
8695
+ case "InternalServerException": return [3, 4];
8696
+ case "com.amazonaws.iotwireless#InternalServerException": return [3, 4];
8697
+ case "ResourceNotFoundException": return [3, 6];
8698
+ case "com.amazonaws.iotwireless#ResourceNotFoundException": return [3, 6];
8699
+ case "ThrottlingException": return [3, 8];
8700
+ case "com.amazonaws.iotwireless#ThrottlingException": return [3, 8];
8701
+ case "ValidationException": return [3, 10];
8702
+ case "com.amazonaws.iotwireless#ValidationException": return [3, 10];
8703
+ }
8704
+ return [3, 12];
8705
+ case 2:
8706
+ _c = [{}];
8707
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
8708
+ case 3:
8709
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8710
+ return [3, 13];
8711
+ case 4:
8712
+ _d = [{}];
8713
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
8714
+ case 5:
8715
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8716
+ return [3, 13];
8717
+ case 6:
8718
+ _e = [{}];
8719
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
8720
+ case 7:
8721
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8722
+ return [3, 13];
8723
+ case 8:
8724
+ _f = [{}];
8725
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
8726
+ case 9:
8727
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8728
+ return [3, 13];
8729
+ case 10:
8730
+ _g = [{}];
8731
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
8732
+ case 11:
8733
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
8734
+ return [3, 13];
8735
+ case 12:
8736
+ parsedBody = parsedOutput.body;
8737
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
8738
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
8739
+ _j.label = 13;
8740
+ case 13:
8741
+ message = response.message || response.Message || errorCode;
8742
+ response.message = message;
8743
+ delete response.Message;
8744
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
8745
+ }
8746
+ });
8747
+ }); };
8496
8748
  export var deserializeAws_restJson1ListServiceProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8497
8749
  var contents, data, _a, _b;
8498
8750
  return __generator(this, function (_c) {
@@ -11351,6 +11603,26 @@ var deserializeAws_restJson1DeviceRegistrationStateEventConfiguration = function
11351
11603
  : undefined,
11352
11604
  };
11353
11605
  };
11606
+ var deserializeAws_restJson1DownlinkQueueMessage = function (output, context) {
11607
+ return {
11608
+ LoRaWAN: output.LoRaWAN !== undefined && output.LoRaWAN !== null
11609
+ ? deserializeAws_restJson1LoRaWANSendDataToDevice(output.LoRaWAN, context)
11610
+ : undefined,
11611
+ MessageId: __expectString(output.MessageId),
11612
+ ReceivedAt: __expectString(output.ReceivedAt),
11613
+ TransmitMode: __expectInt32(output.TransmitMode),
11614
+ };
11615
+ };
11616
+ var deserializeAws_restJson1DownlinkQueueMessagesList = function (output, context) {
11617
+ return (output || [])
11618
+ .filter(function (e) { return e != null; })
11619
+ .map(function (entry) {
11620
+ if (entry === null) {
11621
+ return null;
11622
+ }
11623
+ return deserializeAws_restJson1DownlinkQueueMessage(entry, context);
11624
+ });
11625
+ };
11354
11626
  var deserializeAws_restJson1FactoryPresetFreqsList = function (output, context) {
11355
11627
  return (output || [])
11356
11628
  .filter(function (e) { return e != null; })
@@ -11564,6 +11836,11 @@ var deserializeAws_restJson1LoRaWANMulticastSession = function (output, context)
11564
11836
  SessionTimeout: __expectInt32(output.SessionTimeout),
11565
11837
  };
11566
11838
  };
11839
+ var deserializeAws_restJson1LoRaWANSendDataToDevice = function (output, context) {
11840
+ return {
11841
+ FPort: __expectInt32(output.FPort),
11842
+ };
11843
+ };
11567
11844
  var deserializeAws_restJson1LoRaWANUpdateGatewayTaskCreate = function (output, context) {
11568
11845
  return {
11569
11846
  CurrentVersion: output.CurrentVersion !== undefined && output.CurrentVersion !== null
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };