@aws-sdk/client-iot-wireless 3.536.0 → 3.545.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 (45) hide show
  1. package/README.md +27 -0
  2. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  3. package/dist-cjs/index.js +256 -3
  4. package/dist-es/IoTWireless.js +6 -0
  5. package/dist-es/commands/GetMetricConfigurationCommand.js +24 -0
  6. package/dist-es/commands/GetMetricsCommand.js +24 -0
  7. package/dist-es/commands/UpdateMetricConfigurationCommand.js +24 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/endpoint/endpointResolver.js +3 -1
  10. package/dist-es/index.js +0 -1
  11. package/dist-es/models/models_0.js +49 -0
  12. package/dist-es/protocols/Aws_restJson1.js +141 -0
  13. package/dist-types/IoTWireless.d.ts +27 -0
  14. package/dist-types/IoTWirelessClient.d.ts +8 -2
  15. package/dist-types/commands/GetMetricConfigurationCommand.d.ts +77 -0
  16. package/dist-types/commands/GetMetricsCommand.d.ts +121 -0
  17. package/dist-types/commands/ListPositionConfigurationsCommand.d.ts +2 -1
  18. package/dist-types/commands/ListQueuedMessagesCommand.d.ts +1 -1
  19. package/dist-types/commands/ListServiceProfilesCommand.d.ts +1 -1
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  21. package/dist-types/commands/ListWirelessDeviceImportTasksCommand.d.ts +1 -1
  22. package/dist-types/commands/ListWirelessDevicesCommand.d.ts +1 -2
  23. package/dist-types/commands/UpdateMetricConfigurationCommand.d.ts +77 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +3 -1
  26. package/dist-types/models/models_0.d.ts +287 -321
  27. package/dist-types/models/models_1.d.ts +335 -1
  28. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  29. package/dist-types/ts3.4/IoTWireless.d.ts +54 -0
  30. package/dist-types/ts3.4/IoTWirelessClient.d.ts +18 -0
  31. package/dist-types/ts3.4/commands/GetMetricConfigurationCommand.d.ts +39 -0
  32. package/dist-types/ts3.4/commands/GetMetricsCommand.d.ts +35 -0
  33. package/dist-types/ts3.4/commands/ListPositionConfigurationsCommand.d.ts +2 -4
  34. package/dist-types/ts3.4/commands/ListQueuedMessagesCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/commands/ListServiceProfilesCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/ListWirelessDeviceImportTasksCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListWirelessDevicesCommand.d.ts +4 -2
  39. package/dist-types/ts3.4/commands/UpdateMetricConfigurationCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  41. package/dist-types/ts3.4/index.d.ts +0 -1
  42. package/dist-types/ts3.4/models/models_0.d.ts +103 -73
  43. package/dist-types/ts3.4/models/models_1.d.ts +82 -1
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  45. package/package.json +5 -5
package/README.md CHANGED
@@ -19,6 +19,9 @@ multicast session for sending a downlink message to devices in the group. By usi
19
19
  Firmware Updates Over-The-Air (FUOTA) API operations, you can create a FUOTA task and
20
20
  schedule a session to update the firmware of individual devices or an entire group of
21
21
  devices in a multicast group.</p>
22
+ <p>To connect to the AWS IoT Wireless Service, use the Service endpoints as described in
23
+ <a href="https://docs.aws.amazon.com/general/latest/gr/iot-lorawan.html#iot-wireless_region">IoT Wireless Service
24
+ endpoints</a> in the <i>AWS General Reference</i>.</p>
22
25
 
23
26
  ## Installing
24
27
 
@@ -558,6 +561,22 @@ GetLogLevelsByResourceTypes
558
561
 
559
562
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-wireless/command/GetLogLevelsByResourceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetLogLevelsByResourceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetLogLevelsByResourceTypesCommandOutput/)
560
563
 
564
+ </details>
565
+ <details>
566
+ <summary>
567
+ GetMetricConfiguration
568
+ </summary>
569
+
570
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-wireless/command/GetMetricConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetMetricConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetMetricConfigurationCommandOutput/)
571
+
572
+ </details>
573
+ <details>
574
+ <summary>
575
+ GetMetrics
576
+ </summary>
577
+
578
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-wireless/command/GetMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/GetMetricsCommandOutput/)
579
+
561
580
  </details>
562
581
  <details>
563
582
  <summary>
@@ -1014,6 +1033,14 @@ UpdateLogLevelsByResourceTypes
1014
1033
 
1015
1034
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-wireless/command/UpdateLogLevelsByResourceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/UpdateLogLevelsByResourceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/UpdateLogLevelsByResourceTypesCommandOutput/)
1016
1035
 
1036
+ </details>
1037
+ <details>
1038
+ <summary>
1039
+ UpdateMetricConfiguration
1040
+ </summary>
1041
+
1042
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-wireless/command/UpdateMetricConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/UpdateMetricConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-wireless/Interface/UpdateMetricConfigurationCommandOutput/)
1043
+
1017
1044
  </details>
1018
1045
  <details>
1019
1046
  <summary>
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ AggregationPeriod: () => AggregationPeriod,
25
26
  ApplicationConfigType: () => ApplicationConfigType,
26
27
  AssociateAwsAccountWithPartnerAccountCommand: () => AssociateAwsAccountWithPartnerAccountCommand,
27
28
  AssociateAwsAccountWithPartnerAccountRequestFilterSensitiveLog: () => AssociateAwsAccountWithPartnerAccountRequestFilterSensitiveLog,
@@ -61,6 +62,7 @@ __export(src_exports, {
61
62
  DeregisterWirelessDeviceCommand: () => DeregisterWirelessDeviceCommand,
62
63
  DeviceProfileType: () => DeviceProfileType,
63
64
  DeviceState: () => DeviceState,
65
+ DimensionName: () => DimensionName,
64
66
  DisassociateAwsAccountFromPartnerAccountCommand: () => DisassociateAwsAccountFromPartnerAccountCommand,
65
67
  DisassociateMulticastGroupFromFuotaTaskCommand: () => DisassociateMulticastGroupFromFuotaTaskCommand,
66
68
  DisassociateWirelessDeviceFromFuotaTaskCommand: () => DisassociateWirelessDeviceFromFuotaTaskCommand,
@@ -83,6 +85,8 @@ __export(src_exports, {
83
85
  GetEventConfigurationByResourceTypesCommand: () => GetEventConfigurationByResourceTypesCommand,
84
86
  GetFuotaTaskCommand: () => GetFuotaTaskCommand,
85
87
  GetLogLevelsByResourceTypesCommand: () => GetLogLevelsByResourceTypesCommand,
88
+ GetMetricConfigurationCommand: () => GetMetricConfigurationCommand,
89
+ GetMetricsCommand: () => GetMetricsCommand,
86
90
  GetMulticastGroupCommand: () => GetMulticastGroupCommand,
87
91
  GetMulticastGroupSessionCommand: () => GetMulticastGroupSessionCommand,
88
92
  GetNetworkAnalyzerConfigurationCommand: () => GetNetworkAnalyzerConfigurationCommand,
@@ -131,6 +135,8 @@ __export(src_exports, {
131
135
  ListWirelessGatewaysCommand: () => ListWirelessGatewaysCommand,
132
136
  LogLevel: () => LogLevel,
133
137
  MessageType: () => MessageType,
138
+ MetricName: () => MetricName,
139
+ MetricQueryStatus: () => MetricQueryStatus,
134
140
  MulticastFrameInfo: () => MulticastFrameInfo,
135
141
  OnboardStatus: () => OnboardStatus,
136
142
  PartnerType: () => PartnerType,
@@ -158,6 +164,7 @@ __export(src_exports, {
158
164
  StartMulticastGroupSessionCommand: () => StartMulticastGroupSessionCommand,
159
165
  StartSingleWirelessDeviceImportTaskCommand: () => StartSingleWirelessDeviceImportTaskCommand,
160
166
  StartWirelessDeviceImportTaskCommand: () => StartWirelessDeviceImportTaskCommand,
167
+ SummaryMetricConfigurationStatus: () => SummaryMetricConfigurationStatus,
161
168
  SupportedRfRegion: () => SupportedRfRegion,
162
169
  TagResourceCommand: () => TagResourceCommand,
163
170
  TestWirelessDeviceCommand: () => TestWirelessDeviceCommand,
@@ -168,6 +175,7 @@ __export(src_exports, {
168
175
  UpdateEventConfigurationByResourceTypesCommand: () => UpdateEventConfigurationByResourceTypesCommand,
169
176
  UpdateFuotaTaskCommand: () => UpdateFuotaTaskCommand,
170
177
  UpdateLogLevelsByResourceTypesCommand: () => UpdateLogLevelsByResourceTypesCommand,
178
+ UpdateMetricConfigurationCommand: () => UpdateMetricConfigurationCommand,
171
179
  UpdateMulticastGroupCommand: () => UpdateMulticastGroupCommand,
172
180
  UpdateNetworkAnalyzerConfigurationCommand: () => UpdateNetworkAnalyzerConfigurationCommand,
173
181
  UpdatePartnerAccountCommand: () => UpdatePartnerAccountCommand,
@@ -393,6 +401,11 @@ var _AccessDeniedException = class _AccessDeniedException extends IoTWirelessSer
393
401
  };
394
402
  __name(_AccessDeniedException, "AccessDeniedException");
395
403
  var AccessDeniedException = _AccessDeniedException;
404
+ var AggregationPeriod = {
405
+ OneDay: "OneDay",
406
+ OneHour: "OneHour",
407
+ OneWeek: "OneWeek"
408
+ };
396
409
  var ApplicationConfigType = {
397
410
  SemtechGeoLocation: "SemtechGeolocation"
398
411
  };
@@ -569,6 +582,10 @@ var DeviceState = {
569
582
  REGISTEREDREACHABLE: "RegisteredReachable",
570
583
  REGISTEREDUNREACHABLE: "RegisteredUnreachable"
571
584
  };
585
+ var DimensionName = {
586
+ DeviceId: "DeviceId",
587
+ GatewayId: "GatewayId"
588
+ };
572
589
  var PartnerType = {
573
590
  Sidewalk: "Sidewalk"
574
591
  };
@@ -633,6 +650,46 @@ var WirelessGatewayEvent = {
633
650
  var WirelessGatewayType = {
634
651
  LoRaWAN: "LoRaWAN"
635
652
  };
653
+ var SummaryMetricConfigurationStatus = {
654
+ Disabled: "Disabled",
655
+ Enabled: "Enabled"
656
+ };
657
+ var MetricName = {
658
+ AwsAccountActiveDeviceCount: "AwsAccountActiveDeviceCount",
659
+ AwsAccountActiveGatewayCount: "AwsAccountActiveGatewayCount",
660
+ AwsAccountDeviceCount: "AwsAccountDeviceCount",
661
+ AwsAccountDownlinkCount: "AwsAccountDownlinkCount",
662
+ AwsAccountGatewayCount: "AwsAccountGatewayCount",
663
+ AwsAccountJoinAcceptCount: "AwsAccountJoinAcceptCount",
664
+ AwsAccountJoinRequestCount: "AwsAccountJoinRequestCount",
665
+ AwsAccountRoamingDownlinkCount: "AwsAccountRoamingDownlinkCount",
666
+ AwsAccountRoamingUplinkCount: "AwsAccountRoamingUplinkCount",
667
+ AwsAccountUplinkCount: "AwsAccountUplinkCount",
668
+ AwsAccountUplinkLostCount: "AwsAccountUplinkLostCount",
669
+ AwsAccountUplinkLostRate: "AwsAccountUplinkLostRate",
670
+ DeviceDownlinkCount: "DeviceDownlinkCount",
671
+ DeviceJoinAcceptCount: "DeviceJoinAcceptCount",
672
+ DeviceJoinRequestCount: "DeviceJoinRequestCount",
673
+ DeviceRSSI: "DeviceRSSI",
674
+ DeviceRoamingDownlinkCount: "DeviceRoamingDownlinkCount",
675
+ DeviceRoamingUplinkCount: "DeviceRoamingUplinkCount",
676
+ DeviceSNR: "DeviceSNR",
677
+ DeviceUplinkCount: "DeviceUplinkCount",
678
+ DeviceUplinkLostCount: "DeviceUplinkLostCount",
679
+ DeviceUplinkLostRate: "DeviceUplinkLostRate",
680
+ GatewayDownTime: "GatewayDownTime",
681
+ GatewayDownlinkCount: "GatewayDownlinkCount",
682
+ GatewayJoinAcceptCount: "GatewayJoinAcceptCount",
683
+ GatewayJoinRequestCount: "GatewayJoinRequestCount",
684
+ GatewayRSSI: "GatewayRSSI",
685
+ GatewaySNR: "GatewaySNR",
686
+ GatewayUpTime: "GatewayUpTime",
687
+ GatewayUplinkCount: "GatewayUplinkCount"
688
+ };
689
+ var MetricQueryStatus = {
690
+ Failed: "Failed",
691
+ Succeeded: "Succeeded"
692
+ };
636
693
  var PositionResourceType = {
637
694
  WirelessDevice: "WirelessDevice",
638
695
  WirelessGateway: "WirelessGateway"
@@ -1331,6 +1388,32 @@ var se_GetLogLevelsByResourceTypesCommand = /* @__PURE__ */ __name(async (input,
1331
1388
  b.m("GET").h(headers).b(body);
1332
1389
  return b.build();
1333
1390
  }, "se_GetLogLevelsByResourceTypesCommand");
1391
+ var se_GetMetricConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
1392
+ const b = (0, import_core.requestBuilder)(input, context);
1393
+ const headers = {
1394
+ "content-type": "application/json"
1395
+ };
1396
+ b.bp("/metric-configuration");
1397
+ let body;
1398
+ body = "";
1399
+ b.m("GET").h(headers).b(body);
1400
+ return b.build();
1401
+ }, "se_GetMetricConfigurationCommand");
1402
+ var se_GetMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
1403
+ const b = (0, import_core.requestBuilder)(input, context);
1404
+ const headers = {
1405
+ "content-type": "application/json"
1406
+ };
1407
+ b.bp("/metrics");
1408
+ let body;
1409
+ body = JSON.stringify(
1410
+ (0, import_smithy_client.take)(input, {
1411
+ SummaryMetricQueries: (_) => se_SummaryMetricQueries(_, context)
1412
+ })
1413
+ );
1414
+ b.m("POST").h(headers).b(body);
1415
+ return b.build();
1416
+ }, "se_GetMetricsCommand");
1334
1417
  var se_GetMulticastGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1335
1418
  const b = (0, import_core.requestBuilder)(input, context);
1336
1419
  const headers = {};
@@ -2095,6 +2178,21 @@ var se_UpdateLogLevelsByResourceTypesCommand = /* @__PURE__ */ __name(async (inp
2095
2178
  b.m("POST").h(headers).b(body);
2096
2179
  return b.build();
2097
2180
  }, "se_UpdateLogLevelsByResourceTypesCommand");
2181
+ var se_UpdateMetricConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
2182
+ const b = (0, import_core.requestBuilder)(input, context);
2183
+ const headers = {
2184
+ "content-type": "application/json"
2185
+ };
2186
+ b.bp("/metric-configuration");
2187
+ let body;
2188
+ body = JSON.stringify(
2189
+ (0, import_smithy_client.take)(input, {
2190
+ SummaryMetric: (_) => (0, import_smithy_client._json)(_)
2191
+ })
2192
+ );
2193
+ b.m("PUT").h(headers).b(body);
2194
+ return b.build();
2195
+ }, "se_UpdateMetricConfigurationCommand");
2098
2196
  var se_UpdateMulticastGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
2099
2197
  const b = (0, import_core.requestBuilder)(input, context);
2100
2198
  const headers = {
@@ -2806,6 +2904,34 @@ var de_GetLogLevelsByResourceTypesCommand = /* @__PURE__ */ __name(async (output
2806
2904
  Object.assign(contents, doc);
2807
2905
  return contents;
2808
2906
  }, "de_GetLogLevelsByResourceTypesCommand");
2907
+ var de_GetMetricConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2909
+ return de_CommandError(output, context);
2910
+ }
2911
+ const contents = (0, import_smithy_client.map)({
2912
+ $metadata: deserializeMetadata(output)
2913
+ });
2914
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2915
+ const doc = (0, import_smithy_client.take)(data, {
2916
+ SummaryMetric: import_smithy_client._json
2917
+ });
2918
+ Object.assign(contents, doc);
2919
+ return contents;
2920
+ }, "de_GetMetricConfigurationCommand");
2921
+ var de_GetMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
2922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2923
+ return de_CommandError(output, context);
2924
+ }
2925
+ const contents = (0, import_smithy_client.map)({
2926
+ $metadata: deserializeMetadata(output)
2927
+ });
2928
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2929
+ const doc = (0, import_smithy_client.take)(data, {
2930
+ SummaryMetricQueryResults: (_) => de_SummaryMetricQueryResults(_, context)
2931
+ });
2932
+ Object.assign(contents, doc);
2933
+ return contents;
2934
+ }, "de_GetMetricsCommand");
2809
2935
  var de_GetMulticastGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2810
2936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2811
2937
  return de_CommandError(output, context);
@@ -3628,6 +3754,16 @@ var de_UpdateLogLevelsByResourceTypesCommand = /* @__PURE__ */ __name(async (out
3628
3754
  await (0, import_smithy_client.collectBody)(output.body, context);
3629
3755
  return contents;
3630
3756
  }, "de_UpdateLogLevelsByResourceTypesCommand");
3757
+ var de_UpdateMetricConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3758
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3759
+ return de_CommandError(output, context);
3760
+ }
3761
+ const contents = (0, import_smithy_client.map)({
3762
+ $metadata: deserializeMetadata(output)
3763
+ });
3764
+ await (0, import_smithy_client.collectBody)(output.body, context);
3765
+ return contents;
3766
+ }, "de_UpdateMetricConfigurationCommand");
3631
3767
  var de_UpdateMulticastGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3632
3768
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3633
3769
  return de_CommandError(output, context);
@@ -3957,6 +4093,21 @@ var se_PositionCoordinate = /* @__PURE__ */ __name((input, context) => {
3957
4093
  return (0, import_smithy_client.serializeFloat)(entry);
3958
4094
  });
3959
4095
  }, "se_PositionCoordinate");
4096
+ var se_SummaryMetricQueries = /* @__PURE__ */ __name((input, context) => {
4097
+ return input.filter((e) => e != null).map((entry) => {
4098
+ return se_SummaryMetricQuery(entry, context);
4099
+ });
4100
+ }, "se_SummaryMetricQueries");
4101
+ var se_SummaryMetricQuery = /* @__PURE__ */ __name((input, context) => {
4102
+ return (0, import_smithy_client.take)(input, {
4103
+ AggregationPeriod: [],
4104
+ Dimensions: import_smithy_client._json,
4105
+ EndTimestamp: (_) => Math.round(_.getTime() / 1e3),
4106
+ MetricName: [],
4107
+ QueryId: [],
4108
+ StartTimestamp: (_) => Math.round(_.getTime() / 1e3)
4109
+ });
4110
+ }, "se_SummaryMetricQuery");
3960
4111
  var de_Accuracy = /* @__PURE__ */ __name((output, context) => {
3961
4112
  return (0, import_smithy_client.take)(output, {
3962
4113
  HorizontalAccuracy: import_smithy_client.limitedParseFloat32,
@@ -4031,12 +4182,55 @@ var de_LoRaWANMulticastSession = /* @__PURE__ */ __name((output, context) => {
4031
4182
  SessionTimeout: import_smithy_client.expectInt32
4032
4183
  });
4033
4184
  }, "de_LoRaWANMulticastSession");
4185
+ var de_MetricQueryTimestamps = /* @__PURE__ */ __name((output, context) => {
4186
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4187
+ return (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(entry)));
4188
+ });
4189
+ return retVal;
4190
+ }, "de_MetricQueryTimestamps");
4191
+ var de_MetricQueryValue = /* @__PURE__ */ __name((output, context) => {
4192
+ return (0, import_smithy_client.take)(output, {
4193
+ Avg: import_smithy_client.limitedParseDouble,
4194
+ Max: import_smithy_client.limitedParseDouble,
4195
+ Min: import_smithy_client.limitedParseDouble,
4196
+ P90: import_smithy_client.limitedParseDouble,
4197
+ Std: import_smithy_client.limitedParseDouble,
4198
+ Sum: import_smithy_client.limitedParseDouble
4199
+ });
4200
+ }, "de_MetricQueryValue");
4201
+ var de_MetricQueryValues = /* @__PURE__ */ __name((output, context) => {
4202
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4203
+ return de_MetricQueryValue(entry, context);
4204
+ });
4205
+ return retVal;
4206
+ }, "de_MetricQueryValues");
4034
4207
  var de_PositionCoordinate = /* @__PURE__ */ __name((output, context) => {
4035
4208
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
4036
4209
  return (0, import_smithy_client.limitedParseFloat32)(entry);
4037
4210
  });
4038
4211
  return retVal;
4039
4212
  }, "de_PositionCoordinate");
4213
+ var de_SummaryMetricQueryResult = /* @__PURE__ */ __name((output, context) => {
4214
+ return (0, import_smithy_client.take)(output, {
4215
+ AggregationPeriod: import_smithy_client.expectString,
4216
+ Dimensions: import_smithy_client._json,
4217
+ EndTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
4218
+ Error: import_smithy_client.expectString,
4219
+ MetricName: import_smithy_client.expectString,
4220
+ QueryId: import_smithy_client.expectString,
4221
+ QueryStatus: import_smithy_client.expectString,
4222
+ StartTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
4223
+ Timestamps: (_) => de_MetricQueryTimestamps(_, context),
4224
+ Unit: import_smithy_client.expectString,
4225
+ Values: (_) => de_MetricQueryValues(_, context)
4226
+ });
4227
+ }, "de_SummaryMetricQueryResult");
4228
+ var de_SummaryMetricQueryResults = /* @__PURE__ */ __name((output, context) => {
4229
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4230
+ return de_SummaryMetricQueryResult(entry, context);
4231
+ });
4232
+ return retVal;
4233
+ }, "de_SummaryMetricQueryResults");
4040
4234
  var de_WirelessDeviceImportTask = /* @__PURE__ */ __name((output, context) => {
4041
4235
  return (0, import_smithy_client.take)(output, {
4042
4236
  Arn: import_smithy_client.expectString,
@@ -4849,6 +5043,40 @@ var _GetLogLevelsByResourceTypesCommand = class _GetLogLevelsByResourceTypesComm
4849
5043
  __name(_GetLogLevelsByResourceTypesCommand, "GetLogLevelsByResourceTypesCommand");
4850
5044
  var GetLogLevelsByResourceTypesCommand = _GetLogLevelsByResourceTypesCommand;
4851
5045
 
5046
+ // src/commands/GetMetricConfigurationCommand.ts
5047
+
5048
+
5049
+
5050
+
5051
+ var _GetMetricConfigurationCommand = class _GetMetricConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
5052
+ ...commonParams
5053
+ }).m(function(Command, cs, config, o) {
5054
+ return [
5055
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5056
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5057
+ ];
5058
+ }).s("iotwireless", "GetMetricConfiguration", {}).n("IoTWirelessClient", "GetMetricConfigurationCommand").f(void 0, void 0).ser(se_GetMetricConfigurationCommand).de(de_GetMetricConfigurationCommand).build() {
5059
+ };
5060
+ __name(_GetMetricConfigurationCommand, "GetMetricConfigurationCommand");
5061
+ var GetMetricConfigurationCommand = _GetMetricConfigurationCommand;
5062
+
5063
+ // src/commands/GetMetricsCommand.ts
5064
+
5065
+
5066
+
5067
+
5068
+ var _GetMetricsCommand = class _GetMetricsCommand extends import_smithy_client.Command.classBuilder().ep({
5069
+ ...commonParams
5070
+ }).m(function(Command, cs, config, o) {
5071
+ return [
5072
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5073
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5074
+ ];
5075
+ }).s("iotwireless", "GetMetrics", {}).n("IoTWirelessClient", "GetMetricsCommand").f(void 0, void 0).ser(se_GetMetricsCommand).de(de_GetMetricsCommand).build() {
5076
+ };
5077
+ __name(_GetMetricsCommand, "GetMetricsCommand");
5078
+ var GetMetricsCommand = _GetMetricsCommand;
5079
+
4852
5080
  // src/commands/GetMulticastGroupCommand.ts
4853
5081
 
4854
5082
 
@@ -5818,6 +6046,23 @@ var _UpdateLogLevelsByResourceTypesCommand = class _UpdateLogLevelsByResourceTyp
5818
6046
  __name(_UpdateLogLevelsByResourceTypesCommand, "UpdateLogLevelsByResourceTypesCommand");
5819
6047
  var UpdateLogLevelsByResourceTypesCommand = _UpdateLogLevelsByResourceTypesCommand;
5820
6048
 
6049
+ // src/commands/UpdateMetricConfigurationCommand.ts
6050
+
6051
+
6052
+
6053
+
6054
+ var _UpdateMetricConfigurationCommand = class _UpdateMetricConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
6055
+ ...commonParams
6056
+ }).m(function(Command, cs, config, o) {
6057
+ return [
6058
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
6059
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
6060
+ ];
6061
+ }).s("iotwireless", "UpdateMetricConfiguration", {}).n("IoTWirelessClient", "UpdateMetricConfigurationCommand").f(void 0, void 0).ser(se_UpdateMetricConfigurationCommand).de(de_UpdateMetricConfigurationCommand).build() {
6062
+ };
6063
+ __name(_UpdateMetricConfigurationCommand, "UpdateMetricConfigurationCommand");
6064
+ var UpdateMetricConfigurationCommand = _UpdateMetricConfigurationCommand;
6065
+
5821
6066
  // src/commands/UpdateMulticastGroupCommand.ts
5822
6067
 
5823
6068
 
@@ -6016,6 +6261,8 @@ var commands = {
6016
6261
  GetEventConfigurationByResourceTypesCommand,
6017
6262
  GetFuotaTaskCommand,
6018
6263
  GetLogLevelsByResourceTypesCommand,
6264
+ GetMetricConfigurationCommand,
6265
+ GetMetricsCommand,
6019
6266
  GetMulticastGroupCommand,
6020
6267
  GetMulticastGroupSessionCommand,
6021
6268
  GetNetworkAnalyzerConfigurationCommand,
@@ -6073,6 +6320,7 @@ var commands = {
6073
6320
  UpdateEventConfigurationByResourceTypesCommand,
6074
6321
  UpdateFuotaTaskCommand,
6075
6322
  UpdateLogLevelsByResourceTypesCommand,
6323
+ UpdateMetricConfigurationCommand,
6076
6324
  UpdateMulticastGroupCommand,
6077
6325
  UpdateNetworkAnalyzerConfigurationCommand,
6078
6326
  UpdatePartnerAccountCommand,
@@ -6132,9 +6380,6 @@ var paginateListWirelessDevices = (0, import_core.createPaginator)(IoTWirelessCl
6132
6380
  // src/pagination/ListWirelessGatewaysPaginator.ts
6133
6381
 
6134
6382
  var paginateListWirelessGateways = (0, import_core.createPaginator)(IoTWirelessClient, ListWirelessGatewaysCommand, "NextToken", "NextToken", "MaxResults");
6135
-
6136
- // src/index.ts
6137
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
6138
6383
  // Annotate the CommonJS export names for ESM import in node:
6139
6384
 
6140
6385
  0 && (module.exports = {
@@ -6186,6 +6431,8 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6186
6431
  GetEventConfigurationByResourceTypesCommand,
6187
6432
  GetFuotaTaskCommand,
6188
6433
  GetLogLevelsByResourceTypesCommand,
6434
+ GetMetricConfigurationCommand,
6435
+ GetMetricsCommand,
6189
6436
  GetMulticastGroupCommand,
6190
6437
  GetMulticastGroupSessionCommand,
6191
6438
  GetNetworkAnalyzerConfigurationCommand,
@@ -6243,6 +6490,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6243
6490
  UpdateEventConfigurationByResourceTypesCommand,
6244
6491
  UpdateFuotaTaskCommand,
6245
6492
  UpdateLogLevelsByResourceTypesCommand,
6493
+ UpdateMetricConfigurationCommand,
6246
6494
  UpdateMulticastGroupCommand,
6247
6495
  UpdateNetworkAnalyzerConfigurationCommand,
6248
6496
  UpdatePartnerAccountCommand,
@@ -6264,6 +6512,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6264
6512
  paginateListWirelessDevices,
6265
6513
  paginateListWirelessGateways,
6266
6514
  AccessDeniedException,
6515
+ AggregationPeriod,
6267
6516
  ApplicationConfigType,
6268
6517
  ConflictException,
6269
6518
  InternalServerException,
@@ -6285,6 +6534,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6285
6534
  WirelessGatewayTaskStatus,
6286
6535
  DeviceProfileType,
6287
6536
  DeviceState,
6537
+ DimensionName,
6288
6538
  PartnerType,
6289
6539
  DownlinkMode,
6290
6540
  Event,
@@ -6296,6 +6546,9 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
6296
6546
  WirelessDeviceEvent,
6297
6547
  WirelessGatewayEvent,
6298
6548
  WirelessGatewayType,
6549
+ SummaryMetricConfigurationStatus,
6550
+ MetricName,
6551
+ MetricQueryStatus,
6299
6552
  PositionResourceType,
6300
6553
  PositionSolverProvider,
6301
6554
  PositionSolverType,
@@ -42,6 +42,8 @@ import { GetDeviceProfileCommand, } from "./commands/GetDeviceProfileCommand";
42
42
  import { GetEventConfigurationByResourceTypesCommand, } from "./commands/GetEventConfigurationByResourceTypesCommand";
43
43
  import { GetFuotaTaskCommand, } from "./commands/GetFuotaTaskCommand";
44
44
  import { GetLogLevelsByResourceTypesCommand, } from "./commands/GetLogLevelsByResourceTypesCommand";
45
+ import { GetMetricConfigurationCommand, } from "./commands/GetMetricConfigurationCommand";
46
+ import { GetMetricsCommand } from "./commands/GetMetricsCommand";
45
47
  import { GetMulticastGroupCommand, } from "./commands/GetMulticastGroupCommand";
46
48
  import { GetMulticastGroupSessionCommand, } from "./commands/GetMulticastGroupSessionCommand";
47
49
  import { GetNetworkAnalyzerConfigurationCommand, } from "./commands/GetNetworkAnalyzerConfigurationCommand";
@@ -99,6 +101,7 @@ import { UpdateDestinationCommand, } from "./commands/UpdateDestinationCommand";
99
101
  import { UpdateEventConfigurationByResourceTypesCommand, } from "./commands/UpdateEventConfigurationByResourceTypesCommand";
100
102
  import { UpdateFuotaTaskCommand, } from "./commands/UpdateFuotaTaskCommand";
101
103
  import { UpdateLogLevelsByResourceTypesCommand, } from "./commands/UpdateLogLevelsByResourceTypesCommand";
104
+ import { UpdateMetricConfigurationCommand, } from "./commands/UpdateMetricConfigurationCommand";
102
105
  import { UpdateMulticastGroupCommand, } from "./commands/UpdateMulticastGroupCommand";
103
106
  import { UpdateNetworkAnalyzerConfigurationCommand, } from "./commands/UpdateNetworkAnalyzerConfigurationCommand";
104
107
  import { UpdatePartnerAccountCommand, } from "./commands/UpdatePartnerAccountCommand";
@@ -153,6 +156,8 @@ const commands = {
153
156
  GetEventConfigurationByResourceTypesCommand,
154
157
  GetFuotaTaskCommand,
155
158
  GetLogLevelsByResourceTypesCommand,
159
+ GetMetricConfigurationCommand,
160
+ GetMetricsCommand,
156
161
  GetMulticastGroupCommand,
157
162
  GetMulticastGroupSessionCommand,
158
163
  GetNetworkAnalyzerConfigurationCommand,
@@ -210,6 +215,7 @@ const commands = {
210
215
  UpdateEventConfigurationByResourceTypesCommand,
211
216
  UpdateFuotaTaskCommand,
212
217
  UpdateLogLevelsByResourceTypesCommand,
218
+ UpdateMetricConfigurationCommand,
213
219
  UpdateMulticastGroupCommand,
214
220
  UpdateNetworkAnalyzerConfigurationCommand,
215
221
  UpdatePartnerAccountCommand,
@@ -0,0 +1,24 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetMetricConfigurationCommand, se_GetMetricConfigurationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetMetricConfigurationCommand 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("iotwireless", "GetMetricConfiguration", {})
19
+ .n("IoTWirelessClient", "GetMetricConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetMetricConfigurationCommand)
22
+ .de(de_GetMetricConfigurationCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetMetricsCommand, se_GetMetricsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetMetricsCommand 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("iotwireless", "GetMetrics", {})
19
+ .n("IoTWirelessClient", "GetMetricsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetMetricsCommand)
22
+ .de(de_GetMetricsCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateMetricConfigurationCommand, se_UpdateMetricConfigurationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateMetricConfigurationCommand 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("iotwireless", "UpdateMetricConfiguration", {})
19
+ .n("IoTWirelessClient", "UpdateMetricConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateMetricConfigurationCommand)
22
+ .de(de_UpdateMetricConfigurationCommand)
23
+ .build() {
24
+ }
@@ -41,6 +41,8 @@ export * from "./GetDeviceProfileCommand";
41
41
  export * from "./GetEventConfigurationByResourceTypesCommand";
42
42
  export * from "./GetFuotaTaskCommand";
43
43
  export * from "./GetLogLevelsByResourceTypesCommand";
44
+ export * from "./GetMetricConfigurationCommand";
45
+ export * from "./GetMetricsCommand";
44
46
  export * from "./GetMulticastGroupCommand";
45
47
  export * from "./GetMulticastGroupSessionCommand";
46
48
  export * from "./GetNetworkAnalyzerConfigurationCommand";
@@ -98,6 +100,7 @@ export * from "./UpdateDestinationCommand";
98
100
  export * from "./UpdateEventConfigurationByResourceTypesCommand";
99
101
  export * from "./UpdateFuotaTaskCommand";
100
102
  export * from "./UpdateLogLevelsByResourceTypesCommand";
103
+ export * from "./UpdateMetricConfigurationCommand";
101
104
  export * from "./UpdateMulticastGroupCommand";
102
105
  export * from "./UpdateNetworkAnalyzerConfigurationCommand";
103
106
  export * from "./UpdatePartnerAccountCommand";
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./IoTWireless";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { IoTWirelessServiceException } from "./models/IoTWirelessServiceException";