@aws-sdk/client-lookoutequipment 3.76.0 → 3.80.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 (44) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/LookoutEquipment.js +15 -0
  3. package/dist-cjs/commands/ListSensorStatisticsCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +121 -8
  6. package/dist-cjs/pagination/ListDataIngestionJobsPaginator.js +2 -1
  7. package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -1
  8. package/dist-cjs/pagination/ListInferenceExecutionsPaginator.js +2 -1
  9. package/dist-cjs/pagination/ListInferenceSchedulersPaginator.js +2 -1
  10. package/dist-cjs/pagination/ListModelsPaginator.js +2 -1
  11. package/dist-cjs/pagination/ListSensorStatisticsPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_json1_0.js +264 -1
  14. package/dist-es/LookoutEquipment.js +15 -0
  15. package/dist-es/commands/ListSensorStatisticsCommand.js +39 -0
  16. package/dist-es/commands/index.js +1 -0
  17. package/dist-es/models/models_0.js +83 -4
  18. package/dist-es/pagination/ListDataIngestionJobsPaginator.js +3 -2
  19. package/dist-es/pagination/ListDatasetsPaginator.js +3 -2
  20. package/dist-es/pagination/ListInferenceExecutionsPaginator.js +3 -2
  21. package/dist-es/pagination/ListInferenceSchedulersPaginator.js +3 -2
  22. package/dist-es/pagination/ListModelsPaginator.js +3 -2
  23. package/dist-es/pagination/ListSensorStatisticsPaginator.js +75 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_0.js +278 -2
  26. package/dist-types/LookoutEquipment.d.ts +11 -2
  27. package/dist-types/LookoutEquipmentClient.d.ts +3 -2
  28. package/dist-types/commands/DescribeDataIngestionJobCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
  30. package/dist-types/commands/ListSensorStatisticsCommand.d.ts +37 -0
  31. package/dist-types/commands/index.d.ts +1 -0
  32. package/dist-types/models/models_0.d.ts +656 -27
  33. package/dist-types/pagination/ListSensorStatisticsPaginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_json1_0.d.ts +3 -0
  36. package/dist-types/ts3.4/LookoutEquipment.d.ts +5 -0
  37. package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +3 -2
  38. package/dist-types/ts3.4/commands/ListSensorStatisticsCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +54 -489
  41. package/dist-types/ts3.4/pagination/ListSensorStatisticsPaginator.d.ts +4 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
  44. package/package.json +25 -25
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_0UpdateInferenceSchedulerCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StopInferenceSchedulerCommand = exports.deserializeAws_json1_0StartInferenceSchedulerCommand = exports.deserializeAws_json1_0StartDataIngestionJobCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListModelsCommand = exports.deserializeAws_json1_0ListInferenceSchedulersCommand = exports.deserializeAws_json1_0ListInferenceExecutionsCommand = exports.deserializeAws_json1_0ListDatasetsCommand = exports.deserializeAws_json1_0ListDataIngestionJobsCommand = exports.deserializeAws_json1_0DescribeModelCommand = exports.deserializeAws_json1_0DescribeInferenceSchedulerCommand = exports.deserializeAws_json1_0DescribeDatasetCommand = exports.deserializeAws_json1_0DescribeDataIngestionJobCommand = exports.deserializeAws_json1_0DeleteModelCommand = exports.deserializeAws_json1_0DeleteInferenceSchedulerCommand = exports.deserializeAws_json1_0DeleteDatasetCommand = exports.deserializeAws_json1_0CreateModelCommand = exports.deserializeAws_json1_0CreateInferenceSchedulerCommand = exports.deserializeAws_json1_0CreateDatasetCommand = exports.serializeAws_json1_0UpdateInferenceSchedulerCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StopInferenceSchedulerCommand = exports.serializeAws_json1_0StartInferenceSchedulerCommand = exports.serializeAws_json1_0StartDataIngestionJobCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListModelsCommand = exports.serializeAws_json1_0ListInferenceSchedulersCommand = exports.serializeAws_json1_0ListInferenceExecutionsCommand = exports.serializeAws_json1_0ListDatasetsCommand = exports.serializeAws_json1_0ListDataIngestionJobsCommand = exports.serializeAws_json1_0DescribeModelCommand = exports.serializeAws_json1_0DescribeInferenceSchedulerCommand = exports.serializeAws_json1_0DescribeDatasetCommand = exports.serializeAws_json1_0DescribeDataIngestionJobCommand = exports.serializeAws_json1_0DeleteModelCommand = exports.serializeAws_json1_0DeleteInferenceSchedulerCommand = exports.serializeAws_json1_0DeleteDatasetCommand = exports.serializeAws_json1_0CreateModelCommand = exports.serializeAws_json1_0CreateInferenceSchedulerCommand = exports.serializeAws_json1_0CreateDatasetCommand = void 0;
3
+ exports.deserializeAws_json1_0UpdateInferenceSchedulerCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StopInferenceSchedulerCommand = exports.deserializeAws_json1_0StartInferenceSchedulerCommand = exports.deserializeAws_json1_0StartDataIngestionJobCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListSensorStatisticsCommand = exports.deserializeAws_json1_0ListModelsCommand = exports.deserializeAws_json1_0ListInferenceSchedulersCommand = exports.deserializeAws_json1_0ListInferenceExecutionsCommand = exports.deserializeAws_json1_0ListDatasetsCommand = exports.deserializeAws_json1_0ListDataIngestionJobsCommand = exports.deserializeAws_json1_0DescribeModelCommand = exports.deserializeAws_json1_0DescribeInferenceSchedulerCommand = exports.deserializeAws_json1_0DescribeDatasetCommand = exports.deserializeAws_json1_0DescribeDataIngestionJobCommand = exports.deserializeAws_json1_0DeleteModelCommand = exports.deserializeAws_json1_0DeleteInferenceSchedulerCommand = exports.deserializeAws_json1_0DeleteDatasetCommand = exports.deserializeAws_json1_0CreateModelCommand = exports.deserializeAws_json1_0CreateInferenceSchedulerCommand = exports.deserializeAws_json1_0CreateDatasetCommand = exports.serializeAws_json1_0UpdateInferenceSchedulerCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StopInferenceSchedulerCommand = exports.serializeAws_json1_0StartInferenceSchedulerCommand = exports.serializeAws_json1_0StartDataIngestionJobCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListSensorStatisticsCommand = exports.serializeAws_json1_0ListModelsCommand = exports.serializeAws_json1_0ListInferenceSchedulersCommand = exports.serializeAws_json1_0ListInferenceExecutionsCommand = exports.serializeAws_json1_0ListDatasetsCommand = exports.serializeAws_json1_0ListDataIngestionJobsCommand = exports.serializeAws_json1_0DescribeModelCommand = exports.serializeAws_json1_0DescribeInferenceSchedulerCommand = exports.serializeAws_json1_0DescribeDatasetCommand = exports.serializeAws_json1_0DescribeDataIngestionJobCommand = exports.serializeAws_json1_0DeleteModelCommand = exports.serializeAws_json1_0DeleteInferenceSchedulerCommand = exports.serializeAws_json1_0DeleteDatasetCommand = exports.serializeAws_json1_0CreateModelCommand = exports.serializeAws_json1_0CreateInferenceSchedulerCommand = exports.serializeAws_json1_0CreateDatasetCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
@@ -156,6 +156,16 @@ const serializeAws_json1_0ListModelsCommand = async (input, context) => {
156
156
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
157
  };
158
158
  exports.serializeAws_json1_0ListModelsCommand = serializeAws_json1_0ListModelsCommand;
159
+ const serializeAws_json1_0ListSensorStatisticsCommand = async (input, context) => {
160
+ const headers = {
161
+ "content-type": "application/x-amz-json-1.0",
162
+ "x-amz-target": "AWSLookoutEquipmentFrontendService.ListSensorStatistics",
163
+ };
164
+ let body;
165
+ body = JSON.stringify(serializeAws_json1_0ListSensorStatisticsRequest(input, context));
166
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
+ };
168
+ exports.serializeAws_json1_0ListSensorStatisticsCommand = serializeAws_json1_0ListSensorStatisticsCommand;
159
169
  const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
160
170
  const headers = {
161
171
  "content-type": "application/x-amz-json-1.0",
@@ -943,6 +953,54 @@ const deserializeAws_json1_0ListModelsCommandError = async (output, context) =>
943
953
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
944
954
  }
945
955
  };
956
+ const deserializeAws_json1_0ListSensorStatisticsCommand = async (output, context) => {
957
+ if (output.statusCode >= 300) {
958
+ return deserializeAws_json1_0ListSensorStatisticsCommandError(output, context);
959
+ }
960
+ const data = await parseBody(output.body, context);
961
+ let contents = {};
962
+ contents = deserializeAws_json1_0ListSensorStatisticsResponse(data, context);
963
+ const response = {
964
+ $metadata: deserializeMetadata(output),
965
+ ...contents,
966
+ };
967
+ return Promise.resolve(response);
968
+ };
969
+ exports.deserializeAws_json1_0ListSensorStatisticsCommand = deserializeAws_json1_0ListSensorStatisticsCommand;
970
+ const deserializeAws_json1_0ListSensorStatisticsCommandError = async (output, context) => {
971
+ const parsedOutput = {
972
+ ...output,
973
+ body: await parseBody(output.body, context),
974
+ };
975
+ let response;
976
+ let errorCode = "UnknownError";
977
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
+ switch (errorCode) {
979
+ case "AccessDeniedException":
980
+ case "com.amazonaws.lookoutequipment#AccessDeniedException":
981
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
982
+ case "InternalServerException":
983
+ case "com.amazonaws.lookoutequipment#InternalServerException":
984
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
985
+ case "ResourceNotFoundException":
986
+ case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
987
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
988
+ case "ThrottlingException":
989
+ case "com.amazonaws.lookoutequipment#ThrottlingException":
990
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
991
+ case "ValidationException":
992
+ case "com.amazonaws.lookoutequipment#ValidationException":
993
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
994
+ default:
995
+ const parsedBody = parsedOutput.body;
996
+ response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
997
+ name: parsedBody.code || parsedBody.Code || errorCode,
998
+ $fault: "client",
999
+ $metadata: deserializeMetadata(output),
1000
+ });
1001
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1002
+ }
1003
+ };
946
1004
  const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
947
1005
  if (output.statusCode >= 300) {
948
1006
  return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
@@ -1540,6 +1598,7 @@ const serializeAws_json1_0IngestionInputConfiguration = (input, context) => {
1540
1598
  const serializeAws_json1_0IngestionS3InputConfiguration = (input, context) => {
1541
1599
  return {
1542
1600
  ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
1601
+ ...(input.KeyPattern !== undefined && input.KeyPattern !== null && { KeyPattern: input.KeyPattern }),
1543
1602
  ...(input.Prefix !== undefined && input.Prefix !== null && { Prefix: input.Prefix }),
1544
1603
  };
1545
1604
  };
@@ -1610,6 +1669,15 @@ const serializeAws_json1_0ListModelsRequest = (input, context) => {
1610
1669
  ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1611
1670
  };
1612
1671
  };
1672
+ const serializeAws_json1_0ListSensorStatisticsRequest = (input, context) => {
1673
+ return {
1674
+ ...(input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName }),
1675
+ ...(input.IngestionJobId !== undefined &&
1676
+ input.IngestionJobId !== null && { IngestionJobId: input.IngestionJobId }),
1677
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1678
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1679
+ };
1680
+ };
1613
1681
  const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
1614
1682
  return {
1615
1683
  ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
@@ -1702,11 +1770,23 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
1702
1770
  Message: (0, smithy_client_1.expectString)(output.Message),
1703
1771
  };
1704
1772
  };
1773
+ const deserializeAws_json1_0CategoricalValues = (output, context) => {
1774
+ return {
1775
+ NumberOfCategory: (0, smithy_client_1.expectInt32)(output.NumberOfCategory),
1776
+ Status: (0, smithy_client_1.expectString)(output.Status),
1777
+ };
1778
+ };
1705
1779
  const deserializeAws_json1_0ConflictException = (output, context) => {
1706
1780
  return {
1707
1781
  Message: (0, smithy_client_1.expectString)(output.Message),
1708
1782
  };
1709
1783
  };
1784
+ const deserializeAws_json1_0CountPercent = (output, context) => {
1785
+ return {
1786
+ Count: (0, smithy_client_1.expectInt32)(output.Count),
1787
+ Percentage: (0, smithy_client_1.limitedParseFloat32)(output.Percentage),
1788
+ };
1789
+ };
1710
1790
  const deserializeAws_json1_0CreateDatasetResponse = (output, context) => {
1711
1791
  return {
1712
1792
  DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
@@ -1754,6 +1834,25 @@ const deserializeAws_json1_0DataPreProcessingConfiguration = (output, context) =
1754
1834
  TargetSamplingRate: (0, smithy_client_1.expectString)(output.TargetSamplingRate),
1755
1835
  };
1756
1836
  };
1837
+ const deserializeAws_json1_0DataQualitySummary = (output, context) => {
1838
+ return {
1839
+ DuplicateTimestamps: output.DuplicateTimestamps !== undefined && output.DuplicateTimestamps !== null
1840
+ ? deserializeAws_json1_0DuplicateTimestamps(output.DuplicateTimestamps, context)
1841
+ : undefined,
1842
+ InsufficientSensorData: output.InsufficientSensorData !== undefined && output.InsufficientSensorData !== null
1843
+ ? deserializeAws_json1_0InsufficientSensorData(output.InsufficientSensorData, context)
1844
+ : undefined,
1845
+ InvalidSensorData: output.InvalidSensorData !== undefined && output.InvalidSensorData !== null
1846
+ ? deserializeAws_json1_0InvalidSensorData(output.InvalidSensorData, context)
1847
+ : undefined,
1848
+ MissingSensorData: output.MissingSensorData !== undefined && output.MissingSensorData !== null
1849
+ ? deserializeAws_json1_0MissingSensorData(output.MissingSensorData, context)
1850
+ : undefined,
1851
+ UnsupportedTimestamps: output.UnsupportedTimestamps !== undefined && output.UnsupportedTimestamps !== null
1852
+ ? deserializeAws_json1_0UnsupportedTimestamps(output.UnsupportedTimestamps, context)
1853
+ : undefined,
1854
+ };
1855
+ };
1757
1856
  const deserializeAws_json1_0DatasetSummaries = (output, context) => {
1758
1857
  const retVal = (output || [])
1759
1858
  .filter((e) => e != null)
@@ -1780,14 +1879,28 @@ const deserializeAws_json1_0DescribeDataIngestionJobResponse = (output, context)
1780
1879
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1781
1880
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1782
1881
  : undefined,
1882
+ DataEndTime: output.DataEndTime !== undefined && output.DataEndTime !== null
1883
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
1884
+ : undefined,
1885
+ DataQualitySummary: output.DataQualitySummary !== undefined && output.DataQualitySummary !== null
1886
+ ? deserializeAws_json1_0DataQualitySummary(output.DataQualitySummary, context)
1887
+ : undefined,
1888
+ DataStartTime: output.DataStartTime !== undefined && output.DataStartTime !== null
1889
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
1890
+ : undefined,
1783
1891
  DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
1784
1892
  FailedReason: (0, smithy_client_1.expectString)(output.FailedReason),
1893
+ IngestedDataSize: (0, smithy_client_1.expectLong)(output.IngestedDataSize),
1894
+ IngestedFilesSummary: output.IngestedFilesSummary !== undefined && output.IngestedFilesSummary !== null
1895
+ ? deserializeAws_json1_0IngestedFilesSummary(output.IngestedFilesSummary, context)
1896
+ : undefined,
1785
1897
  IngestionInputConfiguration: output.IngestionInputConfiguration !== undefined && output.IngestionInputConfiguration !== null
1786
1898
  ? deserializeAws_json1_0IngestionInputConfiguration(output.IngestionInputConfiguration, context)
1787
1899
  : undefined,
1788
1900
  JobId: (0, smithy_client_1.expectString)(output.JobId),
1789
1901
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1790
1902
  Status: (0, smithy_client_1.expectString)(output.Status),
1903
+ StatusDetail: (0, smithy_client_1.expectString)(output.StatusDetail),
1791
1904
  };
1792
1905
  };
1793
1906
  const deserializeAws_json1_0DescribeDatasetResponse = (output, context) => {
@@ -1795,14 +1908,27 @@ const deserializeAws_json1_0DescribeDatasetResponse = (output, context) => {
1795
1908
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
1796
1909
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
1797
1910
  : undefined,
1911
+ DataEndTime: output.DataEndTime !== undefined && output.DataEndTime !== null
1912
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
1913
+ : undefined,
1914
+ DataQualitySummary: output.DataQualitySummary !== undefined && output.DataQualitySummary !== null
1915
+ ? deserializeAws_json1_0DataQualitySummary(output.DataQualitySummary, context)
1916
+ : undefined,
1917
+ DataStartTime: output.DataStartTime !== undefined && output.DataStartTime !== null
1918
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
1919
+ : undefined,
1798
1920
  DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
1799
1921
  DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
1922
+ IngestedFilesSummary: output.IngestedFilesSummary !== undefined && output.IngestedFilesSummary !== null
1923
+ ? deserializeAws_json1_0IngestedFilesSummary(output.IngestedFilesSummary, context)
1924
+ : undefined,
1800
1925
  IngestionInputConfiguration: output.IngestionInputConfiguration !== undefined && output.IngestionInputConfiguration !== null
1801
1926
  ? deserializeAws_json1_0IngestionInputConfiguration(output.IngestionInputConfiguration, context)
1802
1927
  : undefined,
1803
1928
  LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
1804
1929
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
1805
1930
  : undefined,
1931
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1806
1932
  Schema: output.Schema !== undefined && output.Schema !== null ? new smithy_client_1.LazyJsonString(output.Schema) : undefined,
1807
1933
  ServerSideKmsKeyId: (0, smithy_client_1.expectString)(output.ServerSideKmsKeyId),
1808
1934
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -1880,6 +2006,11 @@ const deserializeAws_json1_0DescribeModelResponse = (output, context) => {
1880
2006
  : undefined,
1881
2007
  };
1882
2008
  };
2009
+ const deserializeAws_json1_0DuplicateTimestamps = (output, context) => {
2010
+ return {
2011
+ TotalNumberOfDuplicateTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfDuplicateTimestamps),
2012
+ };
2013
+ };
1883
2014
  const deserializeAws_json1_0InferenceExecutionSummaries = (output, context) => {
1884
2015
  const retVal = (output || [])
1885
2016
  .filter((e) => e != null)
@@ -1978,6 +2109,15 @@ const deserializeAws_json1_0InferenceSchedulerSummary = (output, context) => {
1978
2109
  Status: (0, smithy_client_1.expectString)(output.Status),
1979
2110
  };
1980
2111
  };
2112
+ const deserializeAws_json1_0IngestedFilesSummary = (output, context) => {
2113
+ return {
2114
+ DiscardedFiles: output.DiscardedFiles !== undefined && output.DiscardedFiles !== null
2115
+ ? deserializeAws_json1_0ListOfDiscardedFiles(output.DiscardedFiles, context)
2116
+ : undefined,
2117
+ IngestedNumberOfFiles: (0, smithy_client_1.expectInt32)(output.IngestedNumberOfFiles),
2118
+ TotalNumberOfFiles: (0, smithy_client_1.expectInt32)(output.TotalNumberOfFiles),
2119
+ };
2120
+ };
1981
2121
  const deserializeAws_json1_0IngestionInputConfiguration = (output, context) => {
1982
2122
  return {
1983
2123
  S3InputConfiguration: output.S3InputConfiguration !== undefined && output.S3InputConfiguration !== null
@@ -1988,14 +2128,31 @@ const deserializeAws_json1_0IngestionInputConfiguration = (output, context) => {
1988
2128
  const deserializeAws_json1_0IngestionS3InputConfiguration = (output, context) => {
1989
2129
  return {
1990
2130
  Bucket: (0, smithy_client_1.expectString)(output.Bucket),
2131
+ KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
1991
2132
  Prefix: (0, smithy_client_1.expectString)(output.Prefix),
1992
2133
  };
1993
2134
  };
2135
+ const deserializeAws_json1_0InsufficientSensorData = (output, context) => {
2136
+ return {
2137
+ MissingCompleteSensorData: output.MissingCompleteSensorData !== undefined && output.MissingCompleteSensorData !== null
2138
+ ? deserializeAws_json1_0MissingCompleteSensorData(output.MissingCompleteSensorData, context)
2139
+ : undefined,
2140
+ SensorsWithShortDateRange: output.SensorsWithShortDateRange !== undefined && output.SensorsWithShortDateRange !== null
2141
+ ? deserializeAws_json1_0SensorsWithShortDateRange(output.SensorsWithShortDateRange, context)
2142
+ : undefined,
2143
+ };
2144
+ };
1994
2145
  const deserializeAws_json1_0InternalServerException = (output, context) => {
1995
2146
  return {
1996
2147
  Message: (0, smithy_client_1.expectString)(output.Message),
1997
2148
  };
1998
2149
  };
2150
+ const deserializeAws_json1_0InvalidSensorData = (output, context) => {
2151
+ return {
2152
+ AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2153
+ TotalNumberOfInvalidValues: (0, smithy_client_1.expectInt32)(output.TotalNumberOfInvalidValues),
2154
+ };
2155
+ };
1999
2156
  const deserializeAws_json1_0LabelsInputConfiguration = (output, context) => {
2000
2157
  return {
2001
2158
  S3InputConfiguration: output.S3InputConfiguration !== undefined && output.S3InputConfiguration !== null
@@ -2009,6 +2166,13 @@ const deserializeAws_json1_0LabelsS3InputConfiguration = (output, context) => {
2009
2166
  Prefix: (0, smithy_client_1.expectString)(output.Prefix),
2010
2167
  };
2011
2168
  };
2169
+ const deserializeAws_json1_0LargeTimestampGaps = (output, context) => {
2170
+ return {
2171
+ MaxTimestampGapInDays: (0, smithy_client_1.expectInt32)(output.MaxTimestampGapInDays),
2172
+ NumberOfLargeTimestampGaps: (0, smithy_client_1.expectInt32)(output.NumberOfLargeTimestampGaps),
2173
+ Status: (0, smithy_client_1.expectString)(output.Status),
2174
+ };
2175
+ };
2012
2176
  const deserializeAws_json1_0ListDataIngestionJobsResponse = (output, context) => {
2013
2177
  return {
2014
2178
  DataIngestionJobSummaries: output.DataIngestionJobSummaries !== undefined && output.DataIngestionJobSummaries !== null
@@ -2049,6 +2213,25 @@ const deserializeAws_json1_0ListModelsResponse = (output, context) => {
2049
2213
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2050
2214
  };
2051
2215
  };
2216
+ const deserializeAws_json1_0ListOfDiscardedFiles = (output, context) => {
2217
+ const retVal = (output || [])
2218
+ .filter((e) => e != null)
2219
+ .map((entry) => {
2220
+ if (entry === null) {
2221
+ return null;
2222
+ }
2223
+ return deserializeAws_json1_0S3Object(entry, context);
2224
+ });
2225
+ return retVal;
2226
+ };
2227
+ const deserializeAws_json1_0ListSensorStatisticsResponse = (output, context) => {
2228
+ return {
2229
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2230
+ SensorStatisticsSummaries: output.SensorStatisticsSummaries !== undefined && output.SensorStatisticsSummaries !== null
2231
+ ? deserializeAws_json1_0SensorStatisticsSummaries(output.SensorStatisticsSummaries, context)
2232
+ : undefined,
2233
+ };
2234
+ };
2052
2235
  const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
2053
2236
  return {
2054
2237
  Tags: output.Tags !== undefined && output.Tags !== null
@@ -2056,6 +2239,17 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
2056
2239
  : undefined,
2057
2240
  };
2058
2241
  };
2242
+ const deserializeAws_json1_0MissingCompleteSensorData = (output, context) => {
2243
+ return {
2244
+ AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2245
+ };
2246
+ };
2247
+ const deserializeAws_json1_0MissingSensorData = (output, context) => {
2248
+ return {
2249
+ AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2250
+ TotalNumberOfMissingValues: (0, smithy_client_1.expectInt32)(output.TotalNumberOfMissingValues),
2251
+ };
2252
+ };
2059
2253
  const deserializeAws_json1_0ModelSummaries = (output, context) => {
2060
2254
  const retVal = (output || [])
2061
2255
  .filter((e) => e != null)
@@ -2079,6 +2273,17 @@ const deserializeAws_json1_0ModelSummary = (output, context) => {
2079
2273
  Status: (0, smithy_client_1.expectString)(output.Status),
2080
2274
  };
2081
2275
  };
2276
+ const deserializeAws_json1_0MonotonicValues = (output, context) => {
2277
+ return {
2278
+ Monotonicity: (0, smithy_client_1.expectString)(output.Monotonicity),
2279
+ Status: (0, smithy_client_1.expectString)(output.Status),
2280
+ };
2281
+ };
2282
+ const deserializeAws_json1_0MultipleOperatingModes = (output, context) => {
2283
+ return {
2284
+ Status: (0, smithy_client_1.expectString)(output.Status),
2285
+ };
2286
+ };
2082
2287
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
2083
2288
  return {
2084
2289
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -2090,6 +2295,59 @@ const deserializeAws_json1_0S3Object = (output, context) => {
2090
2295
  Key: (0, smithy_client_1.expectString)(output.Key),
2091
2296
  };
2092
2297
  };
2298
+ const deserializeAws_json1_0SensorStatisticsSummaries = (output, context) => {
2299
+ const retVal = (output || [])
2300
+ .filter((e) => e != null)
2301
+ .map((entry) => {
2302
+ if (entry === null) {
2303
+ return null;
2304
+ }
2305
+ return deserializeAws_json1_0SensorStatisticsSummary(entry, context);
2306
+ });
2307
+ return retVal;
2308
+ };
2309
+ const deserializeAws_json1_0SensorStatisticsSummary = (output, context) => {
2310
+ return {
2311
+ CategoricalValues: output.CategoricalValues !== undefined && output.CategoricalValues !== null
2312
+ ? deserializeAws_json1_0CategoricalValues(output.CategoricalValues, context)
2313
+ : undefined,
2314
+ ComponentName: (0, smithy_client_1.expectString)(output.ComponentName),
2315
+ DataEndTime: output.DataEndTime !== undefined && output.DataEndTime !== null
2316
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataEndTime)))
2317
+ : undefined,
2318
+ DataExists: (0, smithy_client_1.expectBoolean)(output.DataExists),
2319
+ DataStartTime: output.DataStartTime !== undefined && output.DataStartTime !== null
2320
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DataStartTime)))
2321
+ : undefined,
2322
+ DuplicateTimestamps: output.DuplicateTimestamps !== undefined && output.DuplicateTimestamps !== null
2323
+ ? deserializeAws_json1_0CountPercent(output.DuplicateTimestamps, context)
2324
+ : undefined,
2325
+ InvalidDateEntries: output.InvalidDateEntries !== undefined && output.InvalidDateEntries !== null
2326
+ ? deserializeAws_json1_0CountPercent(output.InvalidDateEntries, context)
2327
+ : undefined,
2328
+ InvalidValues: output.InvalidValues !== undefined && output.InvalidValues !== null
2329
+ ? deserializeAws_json1_0CountPercent(output.InvalidValues, context)
2330
+ : undefined,
2331
+ LargeTimestampGaps: output.LargeTimestampGaps !== undefined && output.LargeTimestampGaps !== null
2332
+ ? deserializeAws_json1_0LargeTimestampGaps(output.LargeTimestampGaps, context)
2333
+ : undefined,
2334
+ MissingValues: output.MissingValues !== undefined && output.MissingValues !== null
2335
+ ? deserializeAws_json1_0CountPercent(output.MissingValues, context)
2336
+ : undefined,
2337
+ MonotonicValues: output.MonotonicValues !== undefined && output.MonotonicValues !== null
2338
+ ? deserializeAws_json1_0MonotonicValues(output.MonotonicValues, context)
2339
+ : undefined,
2340
+ MultipleOperatingModes: output.MultipleOperatingModes !== undefined && output.MultipleOperatingModes !== null
2341
+ ? deserializeAws_json1_0MultipleOperatingModes(output.MultipleOperatingModes, context)
2342
+ : undefined,
2343
+ SensorName: (0, smithy_client_1.expectString)(output.SensorName),
2344
+ };
2345
+ };
2346
+ const deserializeAws_json1_0SensorsWithShortDateRange = (output, context) => {
2347
+ return {
2348
+ AffectedSensorCount: (0, smithy_client_1.expectInt32)(output.AffectedSensorCount),
2349
+ };
2350
+ };
2093
2351
  const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
2094
2352
  return {
2095
2353
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -2144,6 +2402,11 @@ const deserializeAws_json1_0ThrottlingException = (output, context) => {
2144
2402
  Message: (0, smithy_client_1.expectString)(output.Message),
2145
2403
  };
2146
2404
  };
2405
+ const deserializeAws_json1_0UnsupportedTimestamps = (output, context) => {
2406
+ return {
2407
+ TotalNumberOfUnsupportedTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfUnsupportedTimestamps),
2408
+ };
2409
+ };
2147
2410
  const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
2148
2411
  return {};
2149
2412
  };
@@ -14,6 +14,7 @@ import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
14
14
  import { ListInferenceExecutionsCommand, } from "./commands/ListInferenceExecutionsCommand";
15
15
  import { ListInferenceSchedulersCommand, } from "./commands/ListInferenceSchedulersCommand";
16
16
  import { ListModelsCommand } from "./commands/ListModelsCommand";
17
+ import { ListSensorStatisticsCommand, } from "./commands/ListSensorStatisticsCommand";
17
18
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
18
19
  import { StartDataIngestionJobCommand, } from "./commands/StartDataIngestionJobCommand";
19
20
  import { StartInferenceSchedulerCommand, } from "./commands/StartInferenceSchedulerCommand";
@@ -237,6 +238,20 @@ var LookoutEquipment = (function (_super) {
237
238
  return this.send(command, optionsOrCb);
238
239
  }
239
240
  };
241
+ LookoutEquipment.prototype.listSensorStatistics = function (args, optionsOrCb, cb) {
242
+ var command = new ListSensorStatisticsCommand(args);
243
+ if (typeof optionsOrCb === "function") {
244
+ this.send(command, optionsOrCb);
245
+ }
246
+ else if (typeof cb === "function") {
247
+ if (typeof optionsOrCb !== "object")
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
249
+ this.send(command, optionsOrCb || {}, cb);
250
+ }
251
+ else {
252
+ return this.send(command, optionsOrCb);
253
+ }
254
+ };
240
255
  LookoutEquipment.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
241
256
  var command = new ListTagsForResourceCommand(args);
242
257
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListSensorStatisticsRequest, ListSensorStatisticsResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListSensorStatisticsCommand, serializeAws_json1_0ListSensorStatisticsCommand, } from "../protocols/Aws_json1_0";
6
+ var ListSensorStatisticsCommand = (function (_super) {
7
+ __extends(ListSensorStatisticsCommand, _super);
8
+ function ListSensorStatisticsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListSensorStatisticsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "LookoutEquipmentClient";
18
+ var commandName = "ListSensorStatisticsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListSensorStatisticsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListSensorStatisticsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListSensorStatisticsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0ListSensorStatisticsCommand(input, context);
33
+ };
34
+ ListSensorStatisticsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0ListSensorStatisticsCommand(output, context);
36
+ };
37
+ return ListSensorStatisticsCommand;
38
+ }($Command));
39
+ export { ListSensorStatisticsCommand };
@@ -13,6 +13,7 @@ export * from "./ListDatasetsCommand";
13
13
  export * from "./ListInferenceExecutionsCommand";
14
14
  export * from "./ListInferenceSchedulersCommand";
15
15
  export * from "./ListModelsCommand";
16
+ export * from "./ListSensorStatisticsCommand";
16
17
  export * from "./ListTagsForResourceCommand";
17
18
  export * from "./StartDataIngestionJobCommand";
18
19
  export * from "./StartInferenceSchedulerCommand";
@@ -212,6 +212,46 @@ export var DescribeDataIngestionJobRequest;
212
212
  (function (DescribeDataIngestionJobRequest) {
213
213
  DescribeDataIngestionJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
214
  })(DescribeDataIngestionJobRequest || (DescribeDataIngestionJobRequest = {}));
215
+ export var DuplicateTimestamps;
216
+ (function (DuplicateTimestamps) {
217
+ DuplicateTimestamps.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
+ })(DuplicateTimestamps || (DuplicateTimestamps = {}));
219
+ export var MissingCompleteSensorData;
220
+ (function (MissingCompleteSensorData) {
221
+ MissingCompleteSensorData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
+ })(MissingCompleteSensorData || (MissingCompleteSensorData = {}));
223
+ export var SensorsWithShortDateRange;
224
+ (function (SensorsWithShortDateRange) {
225
+ SensorsWithShortDateRange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
+ })(SensorsWithShortDateRange || (SensorsWithShortDateRange = {}));
227
+ export var InsufficientSensorData;
228
+ (function (InsufficientSensorData) {
229
+ InsufficientSensorData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
230
+ })(InsufficientSensorData || (InsufficientSensorData = {}));
231
+ export var InvalidSensorData;
232
+ (function (InvalidSensorData) {
233
+ InvalidSensorData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
+ })(InvalidSensorData || (InvalidSensorData = {}));
235
+ export var MissingSensorData;
236
+ (function (MissingSensorData) {
237
+ MissingSensorData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
+ })(MissingSensorData || (MissingSensorData = {}));
239
+ export var UnsupportedTimestamps;
240
+ (function (UnsupportedTimestamps) {
241
+ UnsupportedTimestamps.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
+ })(UnsupportedTimestamps || (UnsupportedTimestamps = {}));
243
+ export var DataQualitySummary;
244
+ (function (DataQualitySummary) {
245
+ DataQualitySummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
+ })(DataQualitySummary || (DataQualitySummary = {}));
247
+ export var S3Object;
248
+ (function (S3Object) {
249
+ S3Object.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
+ })(S3Object || (S3Object = {}));
251
+ export var IngestedFilesSummary;
252
+ (function (IngestedFilesSummary) {
253
+ IngestedFilesSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
+ })(IngestedFilesSummary || (IngestedFilesSummary = {}));
215
255
  export var IngestionS3InputConfiguration;
216
256
  (function (IngestionS3InputConfiguration) {
217
257
  IngestionS3InputConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -288,10 +328,6 @@ export var ListInferenceExecutionsRequest;
288
328
  (function (ListInferenceExecutionsRequest) {
289
329
  ListInferenceExecutionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
290
330
  })(ListInferenceExecutionsRequest || (ListInferenceExecutionsRequest = {}));
291
- export var S3Object;
292
- (function (S3Object) {
293
- S3Object.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
- })(S3Object || (S3Object = {}));
295
331
  export var InferenceExecutionSummary;
296
332
  (function (InferenceExecutionSummary) {
297
333
  InferenceExecutionSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -324,6 +360,49 @@ export var ListModelsResponse;
324
360
  (function (ListModelsResponse) {
325
361
  ListModelsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
326
362
  })(ListModelsResponse || (ListModelsResponse = {}));
363
+ export var ListSensorStatisticsRequest;
364
+ (function (ListSensorStatisticsRequest) {
365
+ ListSensorStatisticsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
366
+ })(ListSensorStatisticsRequest || (ListSensorStatisticsRequest = {}));
367
+ export var StatisticalIssueStatus;
368
+ (function (StatisticalIssueStatus) {
369
+ StatisticalIssueStatus["NO_ISSUE_DETECTED"] = "NO_ISSUE_DETECTED";
370
+ StatisticalIssueStatus["POTENTIAL_ISSUE_DETECTED"] = "POTENTIAL_ISSUE_DETECTED";
371
+ })(StatisticalIssueStatus || (StatisticalIssueStatus = {}));
372
+ export var CategoricalValues;
373
+ (function (CategoricalValues) {
374
+ CategoricalValues.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
375
+ })(CategoricalValues || (CategoricalValues = {}));
376
+ export var CountPercent;
377
+ (function (CountPercent) {
378
+ CountPercent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
379
+ })(CountPercent || (CountPercent = {}));
380
+ export var LargeTimestampGaps;
381
+ (function (LargeTimestampGaps) {
382
+ LargeTimestampGaps.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
+ })(LargeTimestampGaps || (LargeTimestampGaps = {}));
384
+ export var Monotonicity;
385
+ (function (Monotonicity) {
386
+ Monotonicity["DECREASING"] = "DECREASING";
387
+ Monotonicity["INCREASING"] = "INCREASING";
388
+ Monotonicity["STATIC"] = "STATIC";
389
+ })(Monotonicity || (Monotonicity = {}));
390
+ export var MonotonicValues;
391
+ (function (MonotonicValues) {
392
+ MonotonicValues.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
+ })(MonotonicValues || (MonotonicValues = {}));
394
+ export var MultipleOperatingModes;
395
+ (function (MultipleOperatingModes) {
396
+ MultipleOperatingModes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
397
+ })(MultipleOperatingModes || (MultipleOperatingModes = {}));
398
+ export var SensorStatisticsSummary;
399
+ (function (SensorStatisticsSummary) {
400
+ SensorStatisticsSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
401
+ })(SensorStatisticsSummary || (SensorStatisticsSummary = {}));
402
+ export var ListSensorStatisticsResponse;
403
+ (function (ListSensorStatisticsResponse) {
404
+ ListSensorStatisticsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
405
+ })(ListSensorStatisticsResponse || (ListSensorStatisticsResponse = {}));
327
406
  export var ListTagsForResourceRequest;
328
407
  (function (ListTagsForResourceRequest) {
329
408
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -36,7 +36,7 @@ export function paginateListDataIngestionJobs(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListDataIngestionJobs_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListDataIngestionJobs(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListDatasets(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListDatasets_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListDatasets(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];