@aws-sdk/client-lookoutequipment 3.379.1 → 3.381.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.
- package/README.md +64 -0
- package/dist-cjs/LookoutEquipment.js +16 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/DescribeModelVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/ImportDatasetCommand.js +46 -0
- package/dist-cjs/commands/ImportModelVersionCommand.js +46 -0
- package/dist-cjs/commands/ListModelVersionsCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateActiveModelVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +16 -1
- package/dist-cjs/pagination/ListModelVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +559 -2
- package/dist-es/LookoutEquipment.js +16 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
- package/dist-es/commands/DescribeModelVersionCommand.js +42 -0
- package/dist-es/commands/DescribeResourcePolicyCommand.js +42 -0
- package/dist-es/commands/ImportDatasetCommand.js +42 -0
- package/dist-es/commands/ImportModelVersionCommand.js +42 -0
- package/dist-es/commands/ListModelVersionsCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/UpdateActiveModelVersionCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/pagination/ListModelVersionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +541 -0
- package/dist-types/LookoutEquipment.d.ts +56 -0
- package/dist-types/LookoutEquipmentClient.d.ts +10 -2
- package/dist-types/commands/CreateDatasetCommand.d.ts +3 -3
- package/dist-types/commands/CreateInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/CreateLabelCommand.d.ts +3 -3
- package/dist-types/commands/CreateLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/CreateModelCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLabelCommand.d.ts +3 -3
- package/dist-types/commands/DeleteLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/DeleteModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +94 -0
- package/dist-types/commands/DescribeDataIngestionJobCommand.d.ts +3 -2
- package/dist-types/commands/DescribeDatasetCommand.d.ts +3 -2
- package/dist-types/commands/DescribeInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLabelCommand.d.ts +3 -3
- package/dist-types/commands/DescribeLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/DescribeModelCommand.d.ts +11 -2
- package/dist-types/commands/DescribeModelVersionCommand.d.ts +128 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +95 -0
- package/dist-types/commands/ImportDatasetCommand.d.ts +111 -0
- package/dist-types/commands/ImportModelVersionCommand.d.ts +121 -0
- package/dist-types/commands/ListDataIngestionJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListDatasetsCommand.d.ts +2 -2
- package/dist-types/commands/ListInferenceEventsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceExecutionsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceSchedulersCommand.d.ts +1 -1
- package/dist-types/commands/ListLabelGroupsCommand.d.ts +3 -3
- package/dist-types/commands/ListLabelsCommand.d.ts +3 -3
- package/dist-types/commands/ListModelVersionsCommand.d.ts +113 -0
- package/dist-types/commands/ListModelsCommand.d.ts +5 -3
- package/dist-types/commands/ListSensorStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +103 -0
- package/dist-types/commands/StartDataIngestionJobCommand.d.ts +2 -2
- package/dist-types/commands/StartInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/StopInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateActiveModelVersionCommand.d.ts +102 -0
- package/dist-types/commands/UpdateInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +732 -141
- package/dist-types/pagination/ListModelVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +72 -0
- package/dist-types/ts3.4/LookoutEquipment.d.ts +136 -0
- package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeModelVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ImportDatasetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ImportModelVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListModelVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateActiveModelVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +154 -0
- package/dist-types/ts3.4/pagination/ListModelVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
- package/package.json +1 -1
|
@@ -9,12 +9,17 @@ import { DeleteInferenceSchedulerCommand, } from "./commands/DeleteInferenceSche
|
|
|
9
9
|
import { DeleteLabelCommand } from "./commands/DeleteLabelCommand";
|
|
10
10
|
import { DeleteLabelGroupCommand, } from "./commands/DeleteLabelGroupCommand";
|
|
11
11
|
import { DeleteModelCommand } from "./commands/DeleteModelCommand";
|
|
12
|
+
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
12
13
|
import { DescribeDataIngestionJobCommand, } from "./commands/DescribeDataIngestionJobCommand";
|
|
13
14
|
import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
|
|
14
15
|
import { DescribeInferenceSchedulerCommand, } from "./commands/DescribeInferenceSchedulerCommand";
|
|
15
16
|
import { DescribeLabelCommand, } from "./commands/DescribeLabelCommand";
|
|
16
17
|
import { DescribeLabelGroupCommand, } from "./commands/DescribeLabelGroupCommand";
|
|
17
18
|
import { DescribeModelCommand, } from "./commands/DescribeModelCommand";
|
|
19
|
+
import { DescribeModelVersionCommand, } from "./commands/DescribeModelVersionCommand";
|
|
20
|
+
import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
|
|
21
|
+
import { ImportDatasetCommand, } from "./commands/ImportDatasetCommand";
|
|
22
|
+
import { ImportModelVersionCommand, } from "./commands/ImportModelVersionCommand";
|
|
18
23
|
import { ListDataIngestionJobsCommand, } from "./commands/ListDataIngestionJobsCommand";
|
|
19
24
|
import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
|
|
20
25
|
import { ListInferenceEventsCommand, } from "./commands/ListInferenceEventsCommand";
|
|
@@ -23,13 +28,16 @@ import { ListInferenceSchedulersCommand, } from "./commands/ListInferenceSchedul
|
|
|
23
28
|
import { ListLabelGroupsCommand, } from "./commands/ListLabelGroupsCommand";
|
|
24
29
|
import { ListLabelsCommand } from "./commands/ListLabelsCommand";
|
|
25
30
|
import { ListModelsCommand } from "./commands/ListModelsCommand";
|
|
31
|
+
import { ListModelVersionsCommand, } from "./commands/ListModelVersionsCommand";
|
|
26
32
|
import { ListSensorStatisticsCommand, } from "./commands/ListSensorStatisticsCommand";
|
|
27
33
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
34
|
+
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
28
35
|
import { StartDataIngestionJobCommand, } from "./commands/StartDataIngestionJobCommand";
|
|
29
36
|
import { StartInferenceSchedulerCommand, } from "./commands/StartInferenceSchedulerCommand";
|
|
30
37
|
import { StopInferenceSchedulerCommand, } from "./commands/StopInferenceSchedulerCommand";
|
|
31
38
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
32
39
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
40
|
+
import { UpdateActiveModelVersionCommand, } from "./commands/UpdateActiveModelVersionCommand";
|
|
33
41
|
import { UpdateInferenceSchedulerCommand, } from "./commands/UpdateInferenceSchedulerCommand";
|
|
34
42
|
import { UpdateLabelGroupCommand, } from "./commands/UpdateLabelGroupCommand";
|
|
35
43
|
import { LookoutEquipmentClient } from "./LookoutEquipmentClient";
|
|
@@ -44,12 +52,17 @@ const commands = {
|
|
|
44
52
|
DeleteLabelCommand,
|
|
45
53
|
DeleteLabelGroupCommand,
|
|
46
54
|
DeleteModelCommand,
|
|
55
|
+
DeleteResourcePolicyCommand,
|
|
47
56
|
DescribeDataIngestionJobCommand,
|
|
48
57
|
DescribeDatasetCommand,
|
|
49
58
|
DescribeInferenceSchedulerCommand,
|
|
50
59
|
DescribeLabelCommand,
|
|
51
60
|
DescribeLabelGroupCommand,
|
|
52
61
|
DescribeModelCommand,
|
|
62
|
+
DescribeModelVersionCommand,
|
|
63
|
+
DescribeResourcePolicyCommand,
|
|
64
|
+
ImportDatasetCommand,
|
|
65
|
+
ImportModelVersionCommand,
|
|
53
66
|
ListDataIngestionJobsCommand,
|
|
54
67
|
ListDatasetsCommand,
|
|
55
68
|
ListInferenceEventsCommand,
|
|
@@ -58,13 +71,16 @@ const commands = {
|
|
|
58
71
|
ListLabelGroupsCommand,
|
|
59
72
|
ListLabelsCommand,
|
|
60
73
|
ListModelsCommand,
|
|
74
|
+
ListModelVersionsCommand,
|
|
61
75
|
ListSensorStatisticsCommand,
|
|
62
76
|
ListTagsForResourceCommand,
|
|
77
|
+
PutResourcePolicyCommand,
|
|
63
78
|
StartDataIngestionJobCommand,
|
|
64
79
|
StartInferenceSchedulerCommand,
|
|
65
80
|
StopInferenceSchedulerCommand,
|
|
66
81
|
TagResourceCommand,
|
|
67
82
|
UntagResourceCommand,
|
|
83
|
+
UpdateActiveModelVersionCommand,
|
|
68
84
|
UpdateInferenceSchedulerCommand,
|
|
69
85
|
UpdateLabelGroupCommand,
|
|
70
86
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteResourcePolicyCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "DeleteResourcePolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DeleteResourcePolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DeleteResourcePolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_DescribeModelVersionCommand, se_DescribeModelVersionCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeModelVersionCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeModelVersionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "DescribeModelVersionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DescribeModelVersionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DescribeModelVersionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_DescribeResourcePolicyCommand, se_DescribeResourcePolicyCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeResourcePolicyCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "DescribeResourcePolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DescribeResourcePolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DescribeResourcePolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ImportDatasetCommand, se_ImportDatasetCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ImportDatasetCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ImportDatasetCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "ImportDatasetCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ImportDatasetCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ImportDatasetCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ImportModelVersionCommand, se_ImportModelVersionCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ImportModelVersionCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ImportModelVersionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "ImportModelVersionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ImportModelVersionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ImportModelVersionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ListModelVersionsCommand, se_ListModelVersionsCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListModelVersionsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListModelVersionsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "ListModelVersionsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListModelVersionsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListModelVersionsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class PutResourcePolicyCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "PutResourcePolicyCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_PutResourcePolicyCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_PutResourcePolicyCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_UpdateActiveModelVersionCommand, se_UpdateActiveModelVersionCommand } from "../protocols/Aws_json1_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateActiveModelVersionCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateActiveModelVersionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "LookoutEquipmentClient";
|
|
25
|
+
const commandName = "UpdateActiveModelVersionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_UpdateActiveModelVersionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_UpdateActiveModelVersionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -8,12 +8,17 @@ export * from "./DeleteInferenceSchedulerCommand";
|
|
|
8
8
|
export * from "./DeleteLabelCommand";
|
|
9
9
|
export * from "./DeleteLabelGroupCommand";
|
|
10
10
|
export * from "./DeleteModelCommand";
|
|
11
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
11
12
|
export * from "./DescribeDataIngestionJobCommand";
|
|
12
13
|
export * from "./DescribeDatasetCommand";
|
|
13
14
|
export * from "./DescribeInferenceSchedulerCommand";
|
|
14
15
|
export * from "./DescribeLabelCommand";
|
|
15
16
|
export * from "./DescribeLabelGroupCommand";
|
|
16
17
|
export * from "./DescribeModelCommand";
|
|
18
|
+
export * from "./DescribeModelVersionCommand";
|
|
19
|
+
export * from "./DescribeResourcePolicyCommand";
|
|
20
|
+
export * from "./ImportDatasetCommand";
|
|
21
|
+
export * from "./ImportModelVersionCommand";
|
|
17
22
|
export * from "./ListDataIngestionJobsCommand";
|
|
18
23
|
export * from "./ListDatasetsCommand";
|
|
19
24
|
export * from "./ListInferenceEventsCommand";
|
|
@@ -21,13 +26,16 @@ export * from "./ListInferenceExecutionsCommand";
|
|
|
21
26
|
export * from "./ListInferenceSchedulersCommand";
|
|
22
27
|
export * from "./ListLabelGroupsCommand";
|
|
23
28
|
export * from "./ListLabelsCommand";
|
|
29
|
+
export * from "./ListModelVersionsCommand";
|
|
24
30
|
export * from "./ListModelsCommand";
|
|
25
31
|
export * from "./ListSensorStatisticsCommand";
|
|
26
32
|
export * from "./ListTagsForResourceCommand";
|
|
33
|
+
export * from "./PutResourcePolicyCommand";
|
|
27
34
|
export * from "./StartDataIngestionJobCommand";
|
|
28
35
|
export * from "./StartInferenceSchedulerCommand";
|
|
29
36
|
export * from "./StopInferenceSchedulerCommand";
|
|
30
37
|
export * from "./TagResourceCommand";
|
|
31
38
|
export * from "./UntagResourceCommand";
|
|
39
|
+
export * from "./UpdateActiveModelVersionCommand";
|
|
32
40
|
export * from "./UpdateInferenceSchedulerCommand";
|
|
33
41
|
export * from "./UpdateLabelGroupCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://lookoutequipment-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://lookoutequipment-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://lookoutequipment.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://lookoutequipment.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -28,6 +28,7 @@ export class ConflictException extends __BaseException {
|
|
|
28
28
|
export const DatasetStatus = {
|
|
29
29
|
ACTIVE: "ACTIVE",
|
|
30
30
|
CREATED: "CREATED",
|
|
31
|
+
IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
|
|
31
32
|
INGESTION_IN_PROGRESS: "INGESTION_IN_PROGRESS",
|
|
32
33
|
};
|
|
33
34
|
export class InternalServerException extends __BaseException {
|
|
@@ -128,11 +129,13 @@ export const TargetSamplingRate = {
|
|
|
128
129
|
};
|
|
129
130
|
export const ModelStatus = {
|
|
130
131
|
FAILED: "FAILED",
|
|
132
|
+
IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
|
|
131
133
|
IN_PROGRESS: "IN_PROGRESS",
|
|
132
134
|
SUCCESS: "SUCCESS",
|
|
133
135
|
};
|
|
134
136
|
export const IngestionJobStatus = {
|
|
135
137
|
FAILED: "FAILED",
|
|
138
|
+
IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
|
|
136
139
|
IN_PROGRESS: "IN_PROGRESS",
|
|
137
140
|
SUCCESS: "SUCCESS",
|
|
138
141
|
};
|
|
@@ -140,6 +143,18 @@ export const LatestInferenceResult = {
|
|
|
140
143
|
ANOMALOUS: "ANOMALOUS",
|
|
141
144
|
NORMAL: "NORMAL",
|
|
142
145
|
};
|
|
146
|
+
export const ModelVersionSourceType = {
|
|
147
|
+
IMPORT: "IMPORT",
|
|
148
|
+
RETRAINING: "RETRAINING",
|
|
149
|
+
TRAINING: "TRAINING",
|
|
150
|
+
};
|
|
151
|
+
export const ModelVersionStatus = {
|
|
152
|
+
CANCELED: "CANCELED",
|
|
153
|
+
FAILED: "FAILED",
|
|
154
|
+
IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
|
|
155
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
156
|
+
SUCCESS: "SUCCESS",
|
|
157
|
+
};
|
|
143
158
|
export const InferenceExecutionStatus = {
|
|
144
159
|
FAILED: "FAILED",
|
|
145
160
|
IN_PROGRESS: "IN_PROGRESS",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListModelVersionsCommand, } from "../commands/ListModelVersionsCommand";
|
|
2
|
+
import { LookoutEquipmentClient } from "../LookoutEquipmentClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListModelVersionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListModelVersions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof LookoutEquipmentClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected LookoutEquipment | LookoutEquipmentClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -6,5 +6,6 @@ export * from "./ListInferenceExecutionsPaginator";
|
|
|
6
6
|
export * from "./ListInferenceSchedulersPaginator";
|
|
7
7
|
export * from "./ListLabelGroupsPaginator";
|
|
8
8
|
export * from "./ListLabelsPaginator";
|
|
9
|
+
export * from "./ListModelVersionsPaginator";
|
|
9
10
|
export * from "./ListModelsPaginator";
|
|
10
11
|
export * from "./ListSensorStatisticsPaginator";
|