@aws-sdk/client-sagemaker-edge 3.252.0 → 3.254.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.
|
@@ -213,15 +213,13 @@ const serializeAws_restJson1DeploymentModels = (input, context) => {
|
|
|
213
213
|
};
|
|
214
214
|
const serializeAws_restJson1DeploymentResult = (input, context) => {
|
|
215
215
|
return {
|
|
216
|
-
...(input.DeploymentEndTime != null && {
|
|
217
|
-
DeploymentEndTime: Math.round(input.DeploymentEndTime.getTime() / 1000).toString(),
|
|
218
|
-
}),
|
|
216
|
+
...(input.DeploymentEndTime != null && { DeploymentEndTime: Math.round(input.DeploymentEndTime.getTime() / 1000) }),
|
|
219
217
|
...(input.DeploymentModels != null && {
|
|
220
218
|
DeploymentModels: serializeAws_restJson1DeploymentModels(input.DeploymentModels, context),
|
|
221
219
|
}),
|
|
222
220
|
...(input.DeploymentName != null && { DeploymentName: input.DeploymentName }),
|
|
223
221
|
...(input.DeploymentStartTime != null && {
|
|
224
|
-
DeploymentStartTime: Math.round(input.DeploymentStartTime.getTime() / 1000)
|
|
222
|
+
DeploymentStartTime: Math.round(input.DeploymentStartTime.getTime() / 1000),
|
|
225
223
|
}),
|
|
226
224
|
...(input.DeploymentStatus != null && { DeploymentStatus: input.DeploymentStatus }),
|
|
227
225
|
...(input.DeploymentStatusMessage != null && { DeploymentStatusMessage: input.DeploymentStatusMessage }),
|
|
@@ -231,7 +229,7 @@ const serializeAws_restJson1EdgeMetric = (input, context) => {
|
|
|
231
229
|
return {
|
|
232
230
|
...(input.Dimension != null && { Dimension: input.Dimension }),
|
|
233
231
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
234
|
-
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000)
|
|
232
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
235
233
|
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
236
234
|
};
|
|
237
235
|
};
|
|
@@ -244,12 +242,8 @@ const serializeAws_restJson1EdgeMetrics = (input, context) => {
|
|
|
244
242
|
};
|
|
245
243
|
const serializeAws_restJson1Model = (input, context) => {
|
|
246
244
|
return {
|
|
247
|
-
...(input.LatestInference != null && {
|
|
248
|
-
|
|
249
|
-
}),
|
|
250
|
-
...(input.LatestSampleTime != null && {
|
|
251
|
-
LatestSampleTime: Math.round(input.LatestSampleTime.getTime() / 1000).toString(),
|
|
252
|
-
}),
|
|
245
|
+
...(input.LatestInference != null && { LatestInference: Math.round(input.LatestInference.getTime() / 1000) }),
|
|
246
|
+
...(input.LatestSampleTime != null && { LatestSampleTime: Math.round(input.LatestSampleTime.getTime() / 1000) }),
|
|
253
247
|
...(input.ModelMetrics != null && { ModelMetrics: serializeAws_restJson1EdgeMetrics(input.ModelMetrics, context) }),
|
|
254
248
|
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
255
249
|
...(input.ModelVersion != null && { ModelVersion: input.ModelVersion }),
|
|
@@ -204,15 +204,13 @@ const serializeAws_restJson1DeploymentModels = (input, context) => {
|
|
|
204
204
|
};
|
|
205
205
|
const serializeAws_restJson1DeploymentResult = (input, context) => {
|
|
206
206
|
return {
|
|
207
|
-
...(input.DeploymentEndTime != null && {
|
|
208
|
-
DeploymentEndTime: Math.round(input.DeploymentEndTime.getTime() / 1000).toString(),
|
|
209
|
-
}),
|
|
207
|
+
...(input.DeploymentEndTime != null && { DeploymentEndTime: Math.round(input.DeploymentEndTime.getTime() / 1000) }),
|
|
210
208
|
...(input.DeploymentModels != null && {
|
|
211
209
|
DeploymentModels: serializeAws_restJson1DeploymentModels(input.DeploymentModels, context),
|
|
212
210
|
}),
|
|
213
211
|
...(input.DeploymentName != null && { DeploymentName: input.DeploymentName }),
|
|
214
212
|
...(input.DeploymentStartTime != null && {
|
|
215
|
-
DeploymentStartTime: Math.round(input.DeploymentStartTime.getTime() / 1000)
|
|
213
|
+
DeploymentStartTime: Math.round(input.DeploymentStartTime.getTime() / 1000),
|
|
216
214
|
}),
|
|
217
215
|
...(input.DeploymentStatus != null && { DeploymentStatus: input.DeploymentStatus }),
|
|
218
216
|
...(input.DeploymentStatusMessage != null && { DeploymentStatusMessage: input.DeploymentStatusMessage }),
|
|
@@ -222,7 +220,7 @@ const serializeAws_restJson1EdgeMetric = (input, context) => {
|
|
|
222
220
|
return {
|
|
223
221
|
...(input.Dimension != null && { Dimension: input.Dimension }),
|
|
224
222
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
225
|
-
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000)
|
|
223
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
226
224
|
...(input.Value != null && { Value: __serializeFloat(input.Value) }),
|
|
227
225
|
};
|
|
228
226
|
};
|
|
@@ -235,12 +233,8 @@ const serializeAws_restJson1EdgeMetrics = (input, context) => {
|
|
|
235
233
|
};
|
|
236
234
|
const serializeAws_restJson1Model = (input, context) => {
|
|
237
235
|
return {
|
|
238
|
-
...(input.LatestInference != null && {
|
|
239
|
-
|
|
240
|
-
}),
|
|
241
|
-
...(input.LatestSampleTime != null && {
|
|
242
|
-
LatestSampleTime: Math.round(input.LatestSampleTime.getTime() / 1000).toString(),
|
|
243
|
-
}),
|
|
236
|
+
...(input.LatestInference != null && { LatestInference: Math.round(input.LatestInference.getTime() / 1000) }),
|
|
237
|
+
...(input.LatestSampleTime != null && { LatestSampleTime: Math.round(input.LatestSampleTime.getTime() / 1000) }),
|
|
244
238
|
...(input.ModelMetrics != null && { ModelMetrics: serializeAws_restJson1EdgeMetrics(input.ModelMetrics, context) }),
|
|
245
239
|
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
246
240
|
...(input.ModelVersion != null && { ModelVersion: input.ModelVersion }),
|
|
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
6
6
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
8
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
10
|
import { GetDeploymentsCommandInput, GetDeploymentsCommandOutput } from "./commands/GetDeploymentsCommand";
|
|
11
11
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
12
12
|
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
@@ -19,11 +19,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
19
19
|
*/
|
|
20
20
|
requestHandler?: __HttpHandler;
|
|
21
21
|
/**
|
|
22
|
-
* A constructor for a class implementing the {@link
|
|
22
|
+
* A constructor for a class implementing the {@link __Checksum} interface
|
|
23
23
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
24
24
|
* @internal
|
|
25
25
|
*/
|
|
26
|
-
sha256?: __HashConstructor;
|
|
26
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
27
27
|
/**
|
|
28
28
|
* The function that will be used to convert strings into HTTP endpoints.
|
|
29
29
|
* @internal
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
} from "@aws-sdk/smithy-client";
|
|
32
32
|
import {
|
|
33
33
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
34
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
34
35
|
Credentials as __Credentials,
|
|
35
36
|
Decoder as __Decoder,
|
|
36
37
|
Encoder as __Encoder,
|
|
@@ -71,7 +72,7 @@ export declare type ServiceOutputTypes =
|
|
|
71
72
|
export interface ClientDefaults
|
|
72
73
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
73
74
|
requestHandler?: __HttpHandler;
|
|
74
|
-
sha256?: __HashConstructor;
|
|
75
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
75
76
|
urlParser?: __UrlParser;
|
|
76
77
|
bodyLengthChecker?: __BodyLengthCalculator;
|
|
77
78
|
streamCollector?: __StreamCollector;
|
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.254.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,39 +18,39 @@
|
|
|
18
18
|
"module": "./dist-es/index.js",
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-crypto/sha256-browser": "
|
|
22
|
-
"@aws-crypto/sha256-js": "
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
+
"@aws-sdk/client-sts": "3.254.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.254.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.254.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.254.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.254.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.254.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.254.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.254.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.254.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.254.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.254.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.254.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.254.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.254.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.254.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.254.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.254.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.254.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.254.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.254.0",
|
|
43
|
+
"@aws-sdk/types": "3.254.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.254.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.254.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.254.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.254.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.254.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.254.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.254.0",
|
|
54
54
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
55
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
56
56
|
"tslib": "^2.3.1"
|