@aws-sdk/client-lookoutequipment 3.110.0 → 3.118.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 (39) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +3 -2
  3. package/dist-cjs/LookoutEquipment.js +15 -0
  4. package/dist-cjs/commands/ListInferenceEventsCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/models/models_0.js +19 -1
  7. package/dist-cjs/pagination/ListInferenceEventsPaginator.js +36 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_json1_0.js +104 -1
  10. package/dist-es/LookoutEquipment.js +15 -0
  11. package/dist-es/commands/ListInferenceEventsCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/models/models_0.js +12 -0
  14. package/dist-es/pagination/ListInferenceEventsPaginator.js +75 -0
  15. package/dist-es/pagination/index.js +1 -0
  16. package/dist-es/protocols/Aws_json1_0.js +116 -0
  17. package/dist-types/LookoutEquipment.d.ts +32 -19
  18. package/dist-types/LookoutEquipmentClient.d.ts +6 -4
  19. package/dist-types/commands/CreateModelCommand.d.ts +4 -4
  20. package/dist-types/commands/DeleteModelCommand.d.ts +3 -2
  21. package/dist-types/commands/DescribeDatasetCommand.d.ts +2 -1
  22. package/dist-types/commands/DescribeModelCommand.d.ts +3 -2
  23. package/dist-types/commands/ListInferenceEventsCommand.d.ts +36 -0
  24. package/dist-types/commands/ListSensorStatisticsCommand.d.ts +3 -3
  25. package/dist-types/commands/StartDataIngestionJobCommand.d.ts +2 -1
  26. package/dist-types/commands/TagResourceCommand.d.ts +4 -4
  27. package/dist-types/commands/index.d.ts +1 -0
  28. package/dist-types/models/models_0.d.ts +310 -349
  29. package/dist-types/pagination/ListInferenceEventsPaginator.d.ts +4 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/protocols/Aws_json1_0.d.ts +3 -0
  32. package/dist-types/ts3.4/LookoutEquipment.d.ts +5 -0
  33. package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +3 -2
  34. package/dist-types/ts3.4/commands/ListInferenceEventsCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  36. package/dist-types/ts3.4/pagination/ListInferenceEventsPaginator.d.ts +4 -0
  37. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  38. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
  39. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-lookoutequipment
9
+
10
+
11
+
12
+
13
+
14
+ # [3.117.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.116.0...v3.117.0) (2022-06-23)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-lookoutequipment:** This release adds visualizations to the scheduled inference results. Users will be able to see interference results, including diagnostic results from their running inference schedulers. ([d809dff](https://github.com/aws/aws-sdk-js-v3/commit/d809dff8ce56fda66244ff364ee0e3c6ed733e47))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-lookoutequipment
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-lookoutequipment
package/README.md CHANGED
@@ -9,8 +9,9 @@
9
9
 
10
10
  AWS SDK for JavaScript LookoutEquipment Client for Node.js, Browser and React Native.
11
11
 
12
- <p>Amazon Lookout for Equipment is a machine learning service that uses advanced analytics to identify
13
- anomalies in machines from sensor data for use in predictive maintenance. </p>
12
+ <p>Amazon Lookout for Equipment is a machine learning service that uses advanced analytics
13
+ to identify anomalies in machines from sensor data for use in predictive maintenance.
14
+ </p>
14
15
 
15
16
  ## Installing
16
17
 
@@ -13,6 +13,7 @@ const DescribeInferenceSchedulerCommand_1 = require("./commands/DescribeInferenc
13
13
  const DescribeModelCommand_1 = require("./commands/DescribeModelCommand");
14
14
  const ListDataIngestionJobsCommand_1 = require("./commands/ListDataIngestionJobsCommand");
15
15
  const ListDatasetsCommand_1 = require("./commands/ListDatasetsCommand");
16
+ const ListInferenceEventsCommand_1 = require("./commands/ListInferenceEventsCommand");
16
17
  const ListInferenceExecutionsCommand_1 = require("./commands/ListInferenceExecutionsCommand");
17
18
  const ListInferenceSchedulersCommand_1 = require("./commands/ListInferenceSchedulersCommand");
18
19
  const ListModelsCommand_1 = require("./commands/ListModelsCommand");
@@ -194,6 +195,20 @@ class LookoutEquipment extends LookoutEquipmentClient_1.LookoutEquipmentClient {
194
195
  return this.send(command, optionsOrCb);
195
196
  }
196
197
  }
198
+ listInferenceEvents(args, optionsOrCb, cb) {
199
+ const command = new ListInferenceEventsCommand_1.ListInferenceEventsCommand(args);
200
+ if (typeof optionsOrCb === "function") {
201
+ this.send(command, optionsOrCb);
202
+ }
203
+ else if (typeof cb === "function") {
204
+ if (typeof optionsOrCb !== "object")
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ this.send(command, optionsOrCb || {}, cb);
207
+ }
208
+ else {
209
+ return this.send(command, optionsOrCb);
210
+ }
211
+ }
197
212
  listInferenceExecutions(args, optionsOrCb, cb) {
198
213
  const command = new ListInferenceExecutionsCommand_1.ListInferenceExecutionsCommand(args);
199
214
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListInferenceEventsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
8
+ class ListInferenceEventsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "LookoutEquipmentClient";
18
+ const commandName = "ListInferenceEventsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListInferenceEventsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListInferenceEventsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_json1_0_1.serializeAws_json1_0ListInferenceEventsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_json1_0_1.deserializeAws_json1_0ListInferenceEventsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListInferenceEventsCommand = ListInferenceEventsCommand;
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./DescribeInferenceSchedulerCommand"), exports);
13
13
  tslib_1.__exportStar(require("./DescribeModelCommand"), exports);
14
14
  tslib_1.__exportStar(require("./ListDataIngestionJobsCommand"), exports);
15
15
  tslib_1.__exportStar(require("./ListDatasetsCommand"), exports);
16
+ tslib_1.__exportStar(require("./ListInferenceEventsCommand"), exports);
16
17
  tslib_1.__exportStar(require("./ListInferenceExecutionsCommand"), exports);
17
18
  tslib_1.__exportStar(require("./ListInferenceSchedulersCommand"), exports);
18
19
  tslib_1.__exportStar(require("./ListModelsCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DescribeInferenceSchedulerResponse = exports.DescribeInferenceSchedulerRequest = exports.DescribeDatasetResponse = exports.DescribeDatasetRequest = exports.DescribeDataIngestionJobResponse = exports.IngestionJobStatus = exports.IngestionInputConfiguration = exports.IngestionS3InputConfiguration = exports.IngestedFilesSummary = exports.S3Object = exports.DataQualitySummary = exports.UnsupportedTimestamps = exports.MissingSensorData = exports.InvalidSensorData = exports.InsufficientSensorData = exports.SensorsWithShortDateRange = exports.MissingCompleteSensorData = exports.DuplicateTimestamps = exports.DescribeDataIngestionJobRequest = exports.DeleteModelRequest = exports.DeleteInferenceSchedulerRequest = exports.DeleteDatasetRequest = exports.CreateModelResponse = exports.ModelStatus = exports.CreateModelRequest = exports.LabelsInputConfiguration = exports.LabelsS3InputConfiguration = exports.DataPreProcessingConfiguration = exports.TargetSamplingRate = exports.ResourceNotFoundException = exports.CreateInferenceSchedulerResponse = exports.InferenceSchedulerStatus = exports.CreateInferenceSchedulerRequest = exports.DataUploadFrequency = exports.InferenceOutputConfiguration = exports.InferenceS3OutputConfiguration = exports.InferenceInputConfiguration = exports.InferenceS3InputConfiguration = exports.InferenceInputNameConfiguration = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.CreateDatasetResponse = exports.DatasetStatus = exports.CreateDatasetRequest = exports.Tag = exports.DatasetSchema = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- exports.UpdateInferenceSchedulerRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopInferenceSchedulerResponse = exports.StopInferenceSchedulerRequest = exports.StartInferenceSchedulerResponse = exports.StartInferenceSchedulerRequest = exports.StartDataIngestionJobResponse = exports.StartDataIngestionJobRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSensorStatisticsResponse = exports.SensorStatisticsSummary = exports.MultipleOperatingModes = exports.MonotonicValues = exports.Monotonicity = exports.LargeTimestampGaps = exports.CountPercent = exports.CategoricalValues = exports.StatisticalIssueStatus = exports.ListSensorStatisticsRequest = exports.ListModelsResponse = exports.ModelSummary = exports.ListModelsRequest = exports.ListInferenceSchedulersResponse = exports.InferenceSchedulerSummary = exports.ListInferenceSchedulersRequest = exports.ListInferenceExecutionsResponse = exports.InferenceExecutionSummary = exports.ListInferenceExecutionsRequest = exports.InferenceExecutionStatus = exports.ListDatasetsResponse = exports.DatasetSummary = exports.ListDatasetsRequest = exports.ListDataIngestionJobsResponse = exports.DataIngestionJobSummary = exports.ListDataIngestionJobsRequest = exports.DescribeModelResponse = exports.DescribeModelRequest = void 0;
4
+ exports.UpdateInferenceSchedulerRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopInferenceSchedulerResponse = exports.StopInferenceSchedulerRequest = exports.StartInferenceSchedulerResponse = exports.StartInferenceSchedulerRequest = exports.StartDataIngestionJobResponse = exports.StartDataIngestionJobRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSensorStatisticsResponse = exports.SensorStatisticsSummary = exports.MultipleOperatingModes = exports.MonotonicValues = exports.Monotonicity = exports.LargeTimestampGaps = exports.CountPercent = exports.CategoricalValues = exports.StatisticalIssueStatus = exports.ListSensorStatisticsRequest = exports.ListModelsResponse = exports.ModelSummary = exports.ListModelsRequest = exports.ListInferenceSchedulersResponse = exports.InferenceSchedulerSummary = exports.ListInferenceSchedulersRequest = exports.ListInferenceExecutionsResponse = exports.InferenceExecutionSummary = exports.ListInferenceExecutionsRequest = exports.InferenceExecutionStatus = exports.ListInferenceEventsResponse = exports.InferenceEventSummary = exports.ListInferenceEventsRequest = exports.ListDatasetsResponse = exports.DatasetSummary = exports.ListDatasetsRequest = exports.ListDataIngestionJobsResponse = exports.DataIngestionJobSummary = exports.ListDataIngestionJobsRequest = exports.DescribeModelResponse = exports.DescribeModelRequest = void 0;
5
5
  const LookoutEquipmentServiceException_1 = require("./LookoutEquipmentServiceException");
6
6
  class AccessDeniedException extends LookoutEquipmentServiceException_1.LookoutEquipmentServiceException {
7
7
  constructor(opts) {
@@ -418,6 +418,24 @@ var ListDatasetsResponse;
418
418
  ...obj,
419
419
  });
420
420
  })(ListDatasetsResponse = exports.ListDatasetsResponse || (exports.ListDatasetsResponse = {}));
421
+ var ListInferenceEventsRequest;
422
+ (function (ListInferenceEventsRequest) {
423
+ ListInferenceEventsRequest.filterSensitiveLog = (obj) => ({
424
+ ...obj,
425
+ });
426
+ })(ListInferenceEventsRequest = exports.ListInferenceEventsRequest || (exports.ListInferenceEventsRequest = {}));
427
+ var InferenceEventSummary;
428
+ (function (InferenceEventSummary) {
429
+ InferenceEventSummary.filterSensitiveLog = (obj) => ({
430
+ ...obj,
431
+ });
432
+ })(InferenceEventSummary = exports.InferenceEventSummary || (exports.InferenceEventSummary = {}));
433
+ var ListInferenceEventsResponse;
434
+ (function (ListInferenceEventsResponse) {
435
+ ListInferenceEventsResponse.filterSensitiveLog = (obj) => ({
436
+ ...obj,
437
+ });
438
+ })(ListInferenceEventsResponse = exports.ListInferenceEventsResponse || (exports.ListInferenceEventsResponse = {}));
421
439
  var InferenceExecutionStatus;
422
440
  (function (InferenceExecutionStatus) {
423
441
  InferenceExecutionStatus["FAILED"] = "FAILED";
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListInferenceEvents = void 0;
4
+ const ListInferenceEventsCommand_1 = require("../commands/ListInferenceEventsCommand");
5
+ const LookoutEquipment_1 = require("../LookoutEquipment");
6
+ const LookoutEquipmentClient_1 = require("../LookoutEquipmentClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListInferenceEventsCommand_1.ListInferenceEventsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listInferenceEvents(input, ...args);
12
+ };
13
+ async function* paginateListInferenceEvents(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof LookoutEquipment_1.LookoutEquipment) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof LookoutEquipmentClient_1.LookoutEquipmentClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.NextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListInferenceEvents = paginateListInferenceEvents;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListDataIngestionJobsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListDatasetsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListInferenceEventsPaginator"), exports);
7
8
  tslib_1.__exportStar(require("./ListInferenceExecutionsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListInferenceSchedulersPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListModelsPaginator"), exports);
@@ -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_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;
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_0ListInferenceEventsCommand = 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_0ListInferenceEventsCommand = 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");
@@ -126,6 +126,16 @@ const serializeAws_json1_0ListDatasetsCommand = async (input, context) => {
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.serializeAws_json1_0ListDatasetsCommand = serializeAws_json1_0ListDatasetsCommand;
129
+ const serializeAws_json1_0ListInferenceEventsCommand = async (input, context) => {
130
+ const headers = {
131
+ "content-type": "application/x-amz-json-1.0",
132
+ "x-amz-target": "AWSLookoutEquipmentFrontendService.ListInferenceEvents",
133
+ };
134
+ let body;
135
+ body = JSON.stringify(serializeAws_json1_0ListInferenceEventsRequest(input, context));
136
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
+ };
138
+ exports.serializeAws_json1_0ListInferenceEventsCommand = serializeAws_json1_0ListInferenceEventsCommand;
129
139
  const serializeAws_json1_0ListInferenceExecutionsCommand = async (input, context) => {
130
140
  const headers = {
131
141
  "content-type": "application/x-amz-json-1.0",
@@ -815,6 +825,54 @@ const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) =
815
825
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
816
826
  }
817
827
  };
828
+ const deserializeAws_json1_0ListInferenceEventsCommand = async (output, context) => {
829
+ if (output.statusCode >= 300) {
830
+ return deserializeAws_json1_0ListInferenceEventsCommandError(output, context);
831
+ }
832
+ const data = await parseBody(output.body, context);
833
+ let contents = {};
834
+ contents = deserializeAws_json1_0ListInferenceEventsResponse(data, context);
835
+ const response = {
836
+ $metadata: deserializeMetadata(output),
837
+ ...contents,
838
+ };
839
+ return Promise.resolve(response);
840
+ };
841
+ exports.deserializeAws_json1_0ListInferenceEventsCommand = deserializeAws_json1_0ListInferenceEventsCommand;
842
+ const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, context) => {
843
+ const parsedOutput = {
844
+ ...output,
845
+ body: await parseBody(output.body, context),
846
+ };
847
+ let response;
848
+ let errorCode = "UnknownError";
849
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
850
+ switch (errorCode) {
851
+ case "AccessDeniedException":
852
+ case "com.amazonaws.lookoutequipment#AccessDeniedException":
853
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
854
+ case "InternalServerException":
855
+ case "com.amazonaws.lookoutequipment#InternalServerException":
856
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
857
+ case "ResourceNotFoundException":
858
+ case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
859
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
860
+ case "ThrottlingException":
861
+ case "com.amazonaws.lookoutequipment#ThrottlingException":
862
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
863
+ case "ValidationException":
864
+ case "com.amazonaws.lookoutequipment#ValidationException":
865
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
866
+ default:
867
+ const parsedBody = parsedOutput.body;
868
+ response = new LookoutEquipmentServiceException_1.LookoutEquipmentServiceException({
869
+ name: parsedBody.code || parsedBody.Code || errorCode,
870
+ $fault: "client",
871
+ $metadata: deserializeMetadata(output),
872
+ });
873
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
874
+ }
875
+ };
818
876
  const deserializeAws_json1_0ListInferenceExecutionsCommand = async (output, context) => {
819
877
  if (output.statusCode >= 300) {
820
878
  return deserializeAws_json1_0ListInferenceExecutionsCommandError(output, context);
@@ -1632,6 +1690,18 @@ const serializeAws_json1_0ListDatasetsRequest = (input, context) => {
1632
1690
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1633
1691
  };
1634
1692
  };
1693
+ const serializeAws_json1_0ListInferenceEventsRequest = (input, context) => {
1694
+ return {
1695
+ ...(input.InferenceSchedulerName !== undefined &&
1696
+ input.InferenceSchedulerName !== null && { InferenceSchedulerName: input.InferenceSchedulerName }),
1697
+ ...(input.IntervalEndTime !== undefined &&
1698
+ input.IntervalEndTime !== null && { IntervalEndTime: Math.round(input.IntervalEndTime.getTime() / 1000) }),
1699
+ ...(input.IntervalStartTime !== undefined &&
1700
+ input.IntervalStartTime !== null && { IntervalStartTime: Math.round(input.IntervalStartTime.getTime() / 1000) }),
1701
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1702
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1703
+ };
1704
+ };
1635
1705
  const serializeAws_json1_0ListInferenceExecutionsRequest = (input, context) => {
1636
1706
  return {
1637
1707
  ...(input.DataEndTimeBefore !== undefined &&
@@ -2011,6 +2081,31 @@ const deserializeAws_json1_0DuplicateTimestamps = (output, context) => {
2011
2081
  TotalNumberOfDuplicateTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfDuplicateTimestamps),
2012
2082
  };
2013
2083
  };
2084
+ const deserializeAws_json1_0InferenceEventSummaries = (output, context) => {
2085
+ const retVal = (output || [])
2086
+ .filter((e) => e != null)
2087
+ .map((entry) => {
2088
+ if (entry === null) {
2089
+ return null;
2090
+ }
2091
+ return deserializeAws_json1_0InferenceEventSummary(entry, context);
2092
+ });
2093
+ return retVal;
2094
+ };
2095
+ const deserializeAws_json1_0InferenceEventSummary = (output, context) => {
2096
+ return {
2097
+ Diagnostics: (0, smithy_client_1.expectString)(output.Diagnostics),
2098
+ EventDurationInSeconds: (0, smithy_client_1.expectLong)(output.EventDurationInSeconds),
2099
+ EventEndTime: output.EventEndTime !== undefined && output.EventEndTime !== null
2100
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventEndTime)))
2101
+ : undefined,
2102
+ EventStartTime: output.EventStartTime !== undefined && output.EventStartTime !== null
2103
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventStartTime)))
2104
+ : undefined,
2105
+ InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
2106
+ InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
2107
+ };
2108
+ };
2014
2109
  const deserializeAws_json1_0InferenceExecutionSummaries = (output, context) => {
2015
2110
  const retVal = (output || [])
2016
2111
  .filter((e) => e != null)
@@ -2189,6 +2284,14 @@ const deserializeAws_json1_0ListDatasetsResponse = (output, context) => {
2189
2284
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2190
2285
  };
2191
2286
  };
2287
+ const deserializeAws_json1_0ListInferenceEventsResponse = (output, context) => {
2288
+ return {
2289
+ InferenceEventSummaries: output.InferenceEventSummaries !== undefined && output.InferenceEventSummaries !== null
2290
+ ? deserializeAws_json1_0InferenceEventSummaries(output.InferenceEventSummaries, context)
2291
+ : undefined,
2292
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2293
+ };
2294
+ };
2192
2295
  const deserializeAws_json1_0ListInferenceExecutionsResponse = (output, context) => {
2193
2296
  return {
2194
2297
  InferenceExecutionSummaries: output.InferenceExecutionSummaries !== undefined && output.InferenceExecutionSummaries !== null
@@ -11,6 +11,7 @@ import { DescribeInferenceSchedulerCommand, } from "./commands/DescribeInference
11
11
  import { DescribeModelCommand, } from "./commands/DescribeModelCommand";
12
12
  import { ListDataIngestionJobsCommand, } from "./commands/ListDataIngestionJobsCommand";
13
13
  import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
14
+ import { ListInferenceEventsCommand, } from "./commands/ListInferenceEventsCommand";
14
15
  import { ListInferenceExecutionsCommand, } from "./commands/ListInferenceExecutionsCommand";
15
16
  import { ListInferenceSchedulersCommand, } from "./commands/ListInferenceSchedulersCommand";
16
17
  import { ListModelsCommand } from "./commands/ListModelsCommand";
@@ -196,6 +197,20 @@ var LookoutEquipment = (function (_super) {
196
197
  return this.send(command, optionsOrCb);
197
198
  }
198
199
  };
200
+ LookoutEquipment.prototype.listInferenceEvents = function (args, optionsOrCb, cb) {
201
+ var command = new ListInferenceEventsCommand(args);
202
+ if (typeof optionsOrCb === "function") {
203
+ this.send(command, optionsOrCb);
204
+ }
205
+ else if (typeof cb === "function") {
206
+ if (typeof optionsOrCb !== "object")
207
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
208
+ this.send(command, optionsOrCb || {}, cb);
209
+ }
210
+ else {
211
+ return this.send(command, optionsOrCb);
212
+ }
213
+ };
199
214
  LookoutEquipment.prototype.listInferenceExecutions = function (args, optionsOrCb, cb) {
200
215
  var command = new ListInferenceExecutionsCommand(args);
201
216
  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 { ListInferenceEventsRequest, ListInferenceEventsResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_0ListInferenceEventsCommand, serializeAws_json1_0ListInferenceEventsCommand, } from "../protocols/Aws_json1_0";
6
+ var ListInferenceEventsCommand = (function (_super) {
7
+ __extends(ListInferenceEventsCommand, _super);
8
+ function ListInferenceEventsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListInferenceEventsCommand.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 = "ListInferenceEventsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListInferenceEventsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListInferenceEventsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListInferenceEventsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_0ListInferenceEventsCommand(input, context);
33
+ };
34
+ ListInferenceEventsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_0ListInferenceEventsCommand(output, context);
36
+ };
37
+ return ListInferenceEventsCommand;
38
+ }($Command));
39
+ export { ListInferenceEventsCommand };
@@ -10,6 +10,7 @@ export * from "./DescribeInferenceSchedulerCommand";
10
10
  export * from "./DescribeModelCommand";
11
11
  export * from "./ListDataIngestionJobsCommand";
12
12
  export * from "./ListDatasetsCommand";
13
+ export * from "./ListInferenceEventsCommand";
13
14
  export * from "./ListInferenceExecutionsCommand";
14
15
  export * from "./ListInferenceSchedulersCommand";
15
16
  export * from "./ListModelsCommand";
@@ -318,6 +318,18 @@ export var ListDatasetsResponse;
318
318
  (function (ListDatasetsResponse) {
319
319
  ListDatasetsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
320
320
  })(ListDatasetsResponse || (ListDatasetsResponse = {}));
321
+ export var ListInferenceEventsRequest;
322
+ (function (ListInferenceEventsRequest) {
323
+ ListInferenceEventsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
324
+ })(ListInferenceEventsRequest || (ListInferenceEventsRequest = {}));
325
+ export var InferenceEventSummary;
326
+ (function (InferenceEventSummary) {
327
+ InferenceEventSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
328
+ })(InferenceEventSummary || (InferenceEventSummary = {}));
329
+ export var ListInferenceEventsResponse;
330
+ (function (ListInferenceEventsResponse) {
331
+ ListInferenceEventsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
332
+ })(ListInferenceEventsResponse || (ListInferenceEventsResponse = {}));
321
333
  export var InferenceExecutionStatus;
322
334
  (function (InferenceExecutionStatus) {
323
335
  InferenceExecutionStatus["FAILED"] = "FAILED";
@@ -0,0 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListInferenceEventsCommand, } from "../commands/ListInferenceEventsCommand";
3
+ import { LookoutEquipment } from "../LookoutEquipment";
4
+ import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
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 ListInferenceEventsCommand(input)], __read(args), false))];
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.listInferenceEvents.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListInferenceEvents(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 paginateListInferenceEvents_1() {
39
+ var token, hasNext, page, prevToken;
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 LookoutEquipment)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof LookoutEquipmentClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListDataIngestionJobsPaginator";
3
3
  export * from "./ListDatasetsPaginator";
4
+ export * from "./ListInferenceEventsPaginator";
4
5
  export * from "./ListInferenceExecutionsPaginator";
5
6
  export * from "./ListInferenceSchedulersPaginator";
6
7
  export * from "./ListModelsPaginator";