@aws-sdk/client-sagemaker-edge 3.131.0 → 3.141.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/CHANGELOG.md +33 -0
- package/README.md +8 -8
- package/dist-cjs/SagemakerEdge.js +15 -0
- package/dist-cjs/commands/GetDeploymentsCommand.js +36 -0
- package/dist-cjs/commands/GetDeviceRegistrationCommand.js +2 -2
- package/dist-cjs/commands/SendHeartbeatCommand.js +1 -1
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +72 -31
- package/dist-cjs/protocols/Aws_restJson1.js +144 -1
- package/dist-es/SagemakerEdge.js +15 -0
- package/dist-es/commands/GetDeploymentsCommand.js +39 -0
- package/dist-es/commands/GetDeviceRegistrationCommand.js +3 -3
- package/dist-es/commands/SendHeartbeatCommand.js +2 -2
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +35 -20
- package/dist-es/protocols/Aws_restJson1.js +149 -2
- package/dist-types/SagemakerEdge.d.ts +7 -0
- package/dist-types/SagemakerEdgeClient.d.ts +3 -2
- package/dist-types/commands/GetDeploymentsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +204 -27
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/SagemakerEdge.d.ts +5 -0
- package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/GetDeploymentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -17
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +6 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeploymentsRequest, GetDeploymentsResult } from "../models/models_0";
|
|
4
|
+
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
5
|
+
export interface GetDeploymentsCommandInput extends GetDeploymentsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetDeploymentsCommandOutput extends GetDeploymentsResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class GetDeploymentsCommand extends $Command<GetDeploymentsCommandInput, GetDeploymentsCommandOutput, SagemakerEdgeClientResolvedConfig> {
|
|
11
|
+
readonly input: GetDeploymentsCommandInput;
|
|
12
|
+
constructor(input: GetDeploymentsCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDeploymentsCommandInput, GetDeploymentsCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -1,24 +1,57 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
|
|
3
|
-
export interface
|
|
3
|
+
export interface GetDeploymentsRequest {
|
|
4
4
|
|
|
5
5
|
DeviceName: string | undefined;
|
|
6
6
|
|
|
7
7
|
DeviceFleetName: string | undefined;
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare enum ChecksumType {
|
|
10
|
+
Sha1 = "SHA1"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface Checksum {
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
Type?: ChecksumType | string;
|
|
16
|
+
|
|
17
|
+
Sum?: string;
|
|
12
18
|
}
|
|
13
|
-
export
|
|
19
|
+
export declare enum ModelState {
|
|
20
|
+
Deploy = "DEPLOY",
|
|
21
|
+
Undeploy = "UNDEPLOY"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface Definition {
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
ModelHandle?: string;
|
|
16
27
|
|
|
17
|
-
|
|
28
|
+
S3Url?: string;
|
|
29
|
+
|
|
30
|
+
Checksum?: Checksum;
|
|
31
|
+
|
|
32
|
+
State?: ModelState | string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum FailureHandlingPolicy {
|
|
35
|
+
DoNothing = "DO_NOTHING",
|
|
36
|
+
RollbackOnFailure = "ROLLBACK_ON_FAILURE"
|
|
37
|
+
}
|
|
38
|
+
export declare enum DeploymentType {
|
|
39
|
+
Model = "Model"
|
|
18
40
|
}
|
|
19
|
-
|
|
41
|
+
|
|
42
|
+
export interface EdgeDeployment {
|
|
43
|
+
|
|
44
|
+
DeploymentName?: string;
|
|
45
|
+
|
|
46
|
+
Type?: DeploymentType | string;
|
|
47
|
+
|
|
48
|
+
FailureHandlingPolicy?: FailureHandlingPolicy | string;
|
|
20
49
|
|
|
21
|
-
|
|
50
|
+
Definitions?: Definition[];
|
|
51
|
+
}
|
|
52
|
+
export interface GetDeploymentsResult {
|
|
53
|
+
|
|
54
|
+
Deployments?: EdgeDeployment[];
|
|
22
55
|
}
|
|
23
56
|
|
|
24
57
|
export declare class InternalServiceException extends __BaseException {
|
|
@@ -28,6 +61,18 @@ export declare class InternalServiceException extends __BaseException {
|
|
|
28
61
|
|
|
29
62
|
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
30
63
|
}
|
|
64
|
+
export interface GetDeviceRegistrationRequest {
|
|
65
|
+
|
|
66
|
+
DeviceName: string | undefined;
|
|
67
|
+
|
|
68
|
+
DeviceFleetName: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface GetDeviceRegistrationResult {
|
|
71
|
+
|
|
72
|
+
DeviceRegistration?: string;
|
|
73
|
+
|
|
74
|
+
CacheTTL?: string;
|
|
75
|
+
}
|
|
31
76
|
|
|
32
77
|
export interface EdgeMetric {
|
|
33
78
|
|
|
@@ -39,9 +84,43 @@ export interface EdgeMetric {
|
|
|
39
84
|
|
|
40
85
|
Timestamp?: Date;
|
|
41
86
|
}
|
|
42
|
-
export declare
|
|
87
|
+
export declare enum DeploymentStatus {
|
|
88
|
+
Fail = "FAIL",
|
|
89
|
+
Success = "SUCCESS"
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface DeploymentModel {
|
|
43
93
|
|
|
44
|
-
|
|
94
|
+
ModelHandle?: string;
|
|
95
|
+
|
|
96
|
+
ModelName?: string;
|
|
97
|
+
|
|
98
|
+
ModelVersion?: string;
|
|
99
|
+
|
|
100
|
+
DesiredState?: ModelState | string;
|
|
101
|
+
|
|
102
|
+
State?: ModelState | string;
|
|
103
|
+
|
|
104
|
+
Status?: DeploymentStatus | string;
|
|
105
|
+
|
|
106
|
+
StatusReason?: string;
|
|
107
|
+
|
|
108
|
+
RollbackFailureReason?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface DeploymentResult {
|
|
112
|
+
|
|
113
|
+
DeploymentName?: string;
|
|
114
|
+
|
|
115
|
+
DeploymentStatus?: string;
|
|
116
|
+
|
|
117
|
+
DeploymentStatusMessage?: string;
|
|
118
|
+
|
|
119
|
+
DeploymentStartTime?: Date;
|
|
120
|
+
|
|
121
|
+
DeploymentEndTime?: Date;
|
|
122
|
+
|
|
123
|
+
DeploymentModels?: DeploymentModel[];
|
|
45
124
|
}
|
|
46
125
|
|
|
47
126
|
export interface Model {
|
|
@@ -56,10 +135,6 @@ export interface Model {
|
|
|
56
135
|
|
|
57
136
|
ModelMetrics?: EdgeMetric[];
|
|
58
137
|
}
|
|
59
|
-
export declare namespace Model {
|
|
60
|
-
|
|
61
|
-
const filterSensitiveLog: (obj: Model) => any;
|
|
62
|
-
}
|
|
63
138
|
export interface SendHeartbeatRequest {
|
|
64
139
|
|
|
65
140
|
AgentMetrics?: EdgeMetric[];
|
|
@@ -71,8 +146,30 @@ export interface SendHeartbeatRequest {
|
|
|
71
146
|
DeviceName: string | undefined;
|
|
72
147
|
|
|
73
148
|
DeviceFleetName: string | undefined;
|
|
74
|
-
}
|
|
75
|
-
export declare namespace SendHeartbeatRequest {
|
|
76
149
|
|
|
77
|
-
|
|
150
|
+
DeploymentResult?: DeploymentResult;
|
|
78
151
|
}
|
|
152
|
+
|
|
153
|
+
export declare const GetDeploymentsRequestFilterSensitiveLog: (obj: GetDeploymentsRequest) => any;
|
|
154
|
+
|
|
155
|
+
export declare const ChecksumFilterSensitiveLog: (obj: Checksum) => any;
|
|
156
|
+
|
|
157
|
+
export declare const DefinitionFilterSensitiveLog: (obj: Definition) => any;
|
|
158
|
+
|
|
159
|
+
export declare const EdgeDeploymentFilterSensitiveLog: (obj: EdgeDeployment) => any;
|
|
160
|
+
|
|
161
|
+
export declare const GetDeploymentsResultFilterSensitiveLog: (obj: GetDeploymentsResult) => any;
|
|
162
|
+
|
|
163
|
+
export declare const GetDeviceRegistrationRequestFilterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
|
|
164
|
+
|
|
165
|
+
export declare const GetDeviceRegistrationResultFilterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
|
|
166
|
+
|
|
167
|
+
export declare const EdgeMetricFilterSensitiveLog: (obj: EdgeMetric) => any;
|
|
168
|
+
|
|
169
|
+
export declare const DeploymentModelFilterSensitiveLog: (obj: DeploymentModel) => any;
|
|
170
|
+
|
|
171
|
+
export declare const DeploymentResultFilterSensitiveLog: (obj: DeploymentResult) => any;
|
|
172
|
+
|
|
173
|
+
export declare const ModelFilterSensitiveLog: (obj: Model) => any;
|
|
174
|
+
|
|
175
|
+
export declare const SendHeartbeatRequestFilterSensitiveLog: (obj: SendHeartbeatRequest) => any;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeploymentsCommandInput, GetDeploymentsCommandOutput } from "../commands/GetDeploymentsCommand";
|
|
3
4
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
4
5
|
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
6
|
+
export declare const serializeAws_restJson1GetDeploymentsCommand: (input: GetDeploymentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
5
7
|
export declare const serializeAws_restJson1GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
6
8
|
export declare const serializeAws_restJson1SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
+
export declare const deserializeAws_restJson1GetDeploymentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeploymentsCommandOutput>;
|
|
7
10
|
export declare const deserializeAws_restJson1GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
|
|
8
11
|
export declare const deserializeAws_restJson1SendHeartbeatCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendHeartbeatCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-edge",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Edge Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.141.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.141.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.141.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.137.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.137.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.137.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|