@aws-sdk/client-sagemaker-edge 3.36.0 → 3.36.1
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 +11 -0
- package/dist-cjs/SagemakerEdge.js +0 -3
- package/dist-cjs/SagemakerEdgeClient.js +0 -8
- package/dist-cjs/commands/GetDeviceRegistrationCommand.js +0 -24
- package/dist-cjs/commands/SendHeartbeatCommand.js +0 -24
- package/dist-cjs/models/models_0.js +0 -18
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-types/ts3.4/SagemakerEdge.d.ts +3 -9
- package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/GetDeviceRegistrationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SendHeartbeatCommand.d.ts +2 -20
- package/dist-types/ts3.4/models/models_0.d.ts +27 -82
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -4,9 +4,6 @@ exports.SagemakerEdge = void 0;
|
|
|
4
4
|
const GetDeviceRegistrationCommand_1 = require("./commands/GetDeviceRegistrationCommand");
|
|
5
5
|
const SendHeartbeatCommand_1 = require("./commands/SendHeartbeatCommand");
|
|
6
6
|
const SagemakerEdgeClient_1 = require("./SagemakerEdgeClient");
|
|
7
|
-
/**
|
|
8
|
-
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
9
|
-
*/
|
|
10
7
|
class SagemakerEdge extends SagemakerEdgeClient_1.SagemakerEdgeClient {
|
|
11
8
|
getDeviceRegistration(args, optionsOrCb, cb) {
|
|
12
9
|
const command = new GetDeviceRegistrationCommand_1.GetDeviceRegistrationCommand(args);
|
|
@@ -10,9 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
15
|
-
*/
|
|
16
13
|
class SagemakerEdgeClient extends smithy_client_1.Client {
|
|
17
14
|
constructor(configuration) {
|
|
18
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -31,11 +28,6 @@ class SagemakerEdgeClient extends smithy_client_1.Client {
|
|
|
31
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
36
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
37
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
38
|
-
*/
|
|
39
31
|
destroy() {
|
|
40
32
|
super.destroy();
|
|
41
33
|
}
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
|
|
14
|
-
* // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
|
|
15
|
-
* const client = new SagemakerEdgeClient(config);
|
|
16
|
-
* const command = new GetDeviceRegistrationCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class GetDeviceRegistrationCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { SagemakerEdgeClient, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
|
|
14
|
-
* // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
|
|
15
|
-
* const client = new SagemakerEdgeClient(config);
|
|
16
|
-
* const command = new SendHeartbeatCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link SendHeartbeatCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class SendHeartbeatCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -3,54 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SendHeartbeatRequest = exports.Model = exports.EdgeMetric = exports.InternalServiceException = exports.GetDeviceRegistrationResult = exports.GetDeviceRegistrationRequest = void 0;
|
|
4
4
|
var GetDeviceRegistrationRequest;
|
|
5
5
|
(function (GetDeviceRegistrationRequest) {
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
GetDeviceRegistrationRequest.filterSensitiveLog = (obj) => ({
|
|
10
7
|
...obj,
|
|
11
8
|
});
|
|
12
9
|
})(GetDeviceRegistrationRequest = exports.GetDeviceRegistrationRequest || (exports.GetDeviceRegistrationRequest = {}));
|
|
13
10
|
var GetDeviceRegistrationResult;
|
|
14
11
|
(function (GetDeviceRegistrationResult) {
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
12
|
GetDeviceRegistrationResult.filterSensitiveLog = (obj) => ({
|
|
19
13
|
...obj,
|
|
20
14
|
});
|
|
21
15
|
})(GetDeviceRegistrationResult = exports.GetDeviceRegistrationResult || (exports.GetDeviceRegistrationResult = {}));
|
|
22
16
|
var InternalServiceException;
|
|
23
17
|
(function (InternalServiceException) {
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
18
|
InternalServiceException.filterSensitiveLog = (obj) => ({
|
|
28
19
|
...obj,
|
|
29
20
|
});
|
|
30
21
|
})(InternalServiceException = exports.InternalServiceException || (exports.InternalServiceException = {}));
|
|
31
22
|
var EdgeMetric;
|
|
32
23
|
(function (EdgeMetric) {
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
24
|
EdgeMetric.filterSensitiveLog = (obj) => ({
|
|
37
25
|
...obj,
|
|
38
26
|
});
|
|
39
27
|
})(EdgeMetric = exports.EdgeMetric || (exports.EdgeMetric = {}));
|
|
40
28
|
var Model;
|
|
41
29
|
(function (Model) {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
30
|
Model.filterSensitiveLog = (obj) => ({
|
|
46
31
|
...obj,
|
|
47
32
|
});
|
|
48
33
|
})(Model = exports.Model || (exports.Model = {}));
|
|
49
34
|
var SendHeartbeatRequest;
|
|
50
35
|
(function (SendHeartbeatRequest) {
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
36
|
SendHeartbeatRequest.filterSensitiveLog = (obj) => ({
|
|
55
37
|
...obj,
|
|
56
38
|
});
|
|
@@ -213,14 +213,12 @@ const deserializeMetadata = (output) => {
|
|
|
213
213
|
cfId: output.headers["x-amz-cf-id"],
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
// Collect low-level response body stream to Uint8Array.
|
|
217
216
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
218
217
|
if (streamBody instanceof Uint8Array) {
|
|
219
218
|
return Promise.resolve(streamBody);
|
|
220
219
|
}
|
|
221
220
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
222
221
|
};
|
|
223
|
-
// Encode Uint8Array data into string with utf-8.
|
|
224
222
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
225
223
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
226
224
|
value !== null &&
|
|
@@ -233,9 +231,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
233
231
|
}
|
|
234
232
|
return {};
|
|
235
233
|
});
|
|
236
|
-
/**
|
|
237
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
238
|
-
*/
|
|
239
234
|
const loadRestJsonErrorCode = (output, data) => {
|
|
240
235
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
241
236
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
8
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
7
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
8
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
9
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
17
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
18
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -2,19 +2,13 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
|
2
2
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
3
3
|
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
4
4
|
import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
|
|
5
|
-
|
|
6
|
-
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
7
|
-
*/
|
|
5
|
+
|
|
8
6
|
export declare class SagemakerEdge extends SagemakerEdgeClient {
|
|
9
|
-
|
|
10
|
-
* <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
|
|
11
|
-
*/
|
|
7
|
+
|
|
12
8
|
getDeviceRegistration(args: GetDeviceRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceRegistrationCommandOutput>;
|
|
13
9
|
getDeviceRegistration(args: GetDeviceRegistrationCommandInput, cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void): void;
|
|
14
10
|
getDeviceRegistration(args: GetDeviceRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeviceRegistrationCommandOutput) => void): void;
|
|
15
|
-
|
|
16
|
-
* <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
|
|
17
|
-
*/
|
|
11
|
+
|
|
18
12
|
sendHeartbeat(args: SendHeartbeatCommandInput, options?: __HttpHandlerOptions): Promise<SendHeartbeatCommandOutput>;
|
|
19
13
|
sendHeartbeat(args: SendHeartbeatCommandInput, cb: (err: any, data?: SendHeartbeatCommandOutput) => void): void;
|
|
20
14
|
sendHeartbeat(args: SendHeartbeatCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendHeartbeatCommandOutput) => void): void;
|
|
@@ -11,124 +11,59 @@ import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./command
|
|
|
11
11
|
export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
12
12
|
export declare type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
|
|
13
13
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
14
|
-
|
|
15
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
16
|
-
*/
|
|
14
|
+
|
|
17
15
|
requestHandler?: __HttpHandler;
|
|
18
|
-
|
|
19
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
20
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
16
|
+
|
|
23
17
|
sha256?: __HashConstructor;
|
|
24
|
-
|
|
25
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
18
|
+
|
|
28
19
|
urlParser?: __UrlParser;
|
|
29
|
-
|
|
30
|
-
* A function that can calculate the length of a request body.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
20
|
+
|
|
33
21
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
34
|
-
|
|
35
|
-
* A function that converts a stream into an array of bytes.
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
22
|
+
|
|
38
23
|
streamCollector?: __StreamCollector;
|
|
39
|
-
|
|
40
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
24
|
+
|
|
43
25
|
base64Decoder?: __Decoder;
|
|
44
|
-
|
|
45
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
26
|
+
|
|
48
27
|
base64Encoder?: __Encoder;
|
|
49
|
-
|
|
50
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
28
|
+
|
|
53
29
|
utf8Decoder?: __Decoder;
|
|
54
|
-
|
|
55
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
30
|
+
|
|
58
31
|
utf8Encoder?: __Encoder;
|
|
59
|
-
|
|
60
|
-
* The runtime environment.
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
32
|
+
|
|
63
33
|
runtime?: string;
|
|
64
|
-
|
|
65
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
66
|
-
* trait of an operation.
|
|
67
|
-
*/
|
|
34
|
+
|
|
68
35
|
disableHostPrefix?: boolean;
|
|
69
|
-
|
|
70
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
71
|
-
*/
|
|
36
|
+
|
|
72
37
|
maxAttempts?: number | __Provider<number>;
|
|
73
|
-
|
|
74
|
-
* Specifies which retry algorithm to use.
|
|
75
|
-
*/
|
|
38
|
+
|
|
76
39
|
retryMode?: string | __Provider<string>;
|
|
77
|
-
|
|
78
|
-
* Optional logger for logging debug/info/warn/error.
|
|
79
|
-
*/
|
|
40
|
+
|
|
80
41
|
logger?: __Logger;
|
|
81
|
-
|
|
82
|
-
* Unique service identifier.
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
42
|
+
|
|
85
43
|
serviceId?: string;
|
|
86
|
-
|
|
87
|
-
* The AWS region to which this client will send requests
|
|
88
|
-
*/
|
|
44
|
+
|
|
89
45
|
region?: string | __Provider<string>;
|
|
90
|
-
|
|
91
|
-
* Default credentials provider; Not available in browser runtime.
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
46
|
+
|
|
94
47
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
95
|
-
|
|
96
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
48
|
+
|
|
99
49
|
regionInfoProvider?: RegionInfoProvider;
|
|
100
|
-
|
|
101
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
50
|
+
|
|
104
51
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
105
52
|
}
|
|
106
53
|
declare type SagemakerEdgeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
107
|
-
|
|
108
|
-
* The configuration interface of SagemakerEdgeClient class constructor that set the region, credentials and other options.
|
|
109
|
-
*/
|
|
54
|
+
|
|
110
55
|
export interface SagemakerEdgeClientConfig extends SagemakerEdgeClientConfigType {
|
|
111
56
|
}
|
|
112
57
|
declare type SagemakerEdgeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
113
|
-
|
|
114
|
-
* The resolved configuration interface of SagemakerEdgeClient class. This is resolved and normalized from the {@link SagemakerEdgeClientConfig | constructor configuration interface}.
|
|
115
|
-
*/
|
|
58
|
+
|
|
116
59
|
export interface SagemakerEdgeClientResolvedConfig extends SagemakerEdgeClientResolvedConfigType {
|
|
117
60
|
}
|
|
118
|
-
|
|
119
|
-
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
120
|
-
*/
|
|
61
|
+
|
|
121
62
|
export declare class SagemakerEdgeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SagemakerEdgeClientResolvedConfig> {
|
|
122
|
-
|
|
123
|
-
* The resolved configuration of SagemakerEdgeClient class. This is resolved and normalized from the {@link SagemakerEdgeClientConfig | constructor configuration interface}.
|
|
124
|
-
*/
|
|
63
|
+
|
|
125
64
|
readonly config: SagemakerEdgeClientResolvedConfig;
|
|
126
65
|
constructor(configuration: SagemakerEdgeClientConfig);
|
|
127
|
-
|
|
128
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
129
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
130
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
131
|
-
*/
|
|
66
|
+
|
|
132
67
|
destroy(): void;
|
|
133
68
|
}
|
|
134
69
|
export {};
|
|
@@ -6,29 +6,11 @@ export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistration
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetDeviceRegistrationCommandOutput extends GetDeviceRegistrationResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Use to check if a device is registered with SageMaker Edge Manager.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { SagemakerEdgeClient, GetDeviceRegistrationCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
|
|
15
|
-
* // const { SagemakerEdgeClient, GetDeviceRegistrationCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
|
|
16
|
-
* const client = new SagemakerEdgeClient(config);
|
|
17
|
-
* const command = new GetDeviceRegistrationCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetDeviceRegistrationCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetDeviceRegistrationCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class GetDeviceRegistrationCommand extends $Command<GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput, SagemakerEdgeClientResolvedConfig> {
|
|
27
11
|
readonly input: GetDeviceRegistrationCommandInput;
|
|
28
12
|
constructor(input: GetDeviceRegistrationCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface SendHeartbeatCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Use to get the current status of devices registered on SageMaker Edge Manager.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { SagemakerEdgeClient, SendHeartbeatCommand } from "@aws-sdk/client-sagemaker-edge"; // ES Modules import
|
|
15
|
-
* // const { SagemakerEdgeClient, SendHeartbeatCommand } = require("@aws-sdk/client-sagemaker-edge"); // CommonJS import
|
|
16
|
-
* const client = new SagemakerEdgeClient(config);
|
|
17
|
-
* const command = new SendHeartbeatCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link SendHeartbeatCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link SendHeartbeatCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SagemakerEdgeClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class SendHeartbeatCommand extends $Command<SendHeartbeatCommandInput, SendHeartbeatCommandOutput, SagemakerEdgeClientResolvedConfig> {
|
|
27
11
|
readonly input: SendHeartbeatCommandInput;
|
|
28
12
|
constructor(input: SendHeartbeatCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendHeartbeatCommandInput, SendHeartbeatCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -1,134 +1,79 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
2
|
export interface GetDeviceRegistrationRequest {
|
|
3
|
-
|
|
4
|
-
* <p>The unique name of the device you want to get the registration status from.</p>
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
DeviceName: string | undefined;
|
|
7
|
-
|
|
8
|
-
* <p>The name of the fleet that the device belongs to.</p>
|
|
9
|
-
*/
|
|
5
|
+
|
|
10
6
|
DeviceFleetName: string | undefined;
|
|
11
7
|
}
|
|
12
8
|
export declare namespace GetDeviceRegistrationRequest {
|
|
13
|
-
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
9
|
+
|
|
16
10
|
const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
|
|
17
11
|
}
|
|
18
12
|
export interface GetDeviceRegistrationResult {
|
|
19
|
-
|
|
20
|
-
* <p>Describes if the device is currently registered with SageMaker Edge Manager.</p>
|
|
21
|
-
*/
|
|
13
|
+
|
|
22
14
|
DeviceRegistration?: string;
|
|
23
|
-
|
|
24
|
-
* <p>The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.</p>
|
|
25
|
-
*/
|
|
15
|
+
|
|
26
16
|
CacheTTL?: string;
|
|
27
17
|
}
|
|
28
18
|
export declare namespace GetDeviceRegistrationResult {
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
19
|
+
|
|
32
20
|
const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
|
|
33
21
|
}
|
|
34
|
-
|
|
35
|
-
* <p>An internal failure occurred. Try your request again. If the problem
|
|
36
|
-
* persists, contact AWS customer support.</p>
|
|
37
|
-
*/
|
|
22
|
+
|
|
38
23
|
export interface InternalServiceException extends __SmithyException, $MetadataBearer {
|
|
39
24
|
name: "InternalServiceException";
|
|
40
25
|
$fault: "client";
|
|
41
26
|
Message?: string;
|
|
42
27
|
}
|
|
43
28
|
export declare namespace InternalServiceException {
|
|
44
|
-
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
29
|
+
|
|
47
30
|
const filterSensitiveLog: (obj: InternalServiceException) => any;
|
|
48
31
|
}
|
|
49
|
-
|
|
50
|
-
* <p>Information required for edge device metrics.</p>
|
|
51
|
-
*/
|
|
32
|
+
|
|
52
33
|
export interface EdgeMetric {
|
|
53
|
-
|
|
54
|
-
* <p>The dimension of metrics published.</p>
|
|
55
|
-
*/
|
|
34
|
+
|
|
56
35
|
Dimension?: string;
|
|
57
|
-
|
|
58
|
-
* <p>Returns the name of the metric.</p>
|
|
59
|
-
*/
|
|
36
|
+
|
|
60
37
|
MetricName?: string;
|
|
61
|
-
|
|
62
|
-
* <p>Returns the value of the metric.</p>
|
|
63
|
-
*/
|
|
38
|
+
|
|
64
39
|
Value?: number;
|
|
65
|
-
|
|
66
|
-
* <p>Timestamp of when the metric was requested.</p>
|
|
67
|
-
*/
|
|
40
|
+
|
|
68
41
|
Timestamp?: Date;
|
|
69
42
|
}
|
|
70
43
|
export declare namespace EdgeMetric {
|
|
71
|
-
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
44
|
+
|
|
74
45
|
const filterSensitiveLog: (obj: EdgeMetric) => any;
|
|
75
46
|
}
|
|
76
|
-
|
|
77
|
-
* <p>Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.</p>
|
|
78
|
-
*/
|
|
47
|
+
|
|
79
48
|
export interface Model {
|
|
80
|
-
|
|
81
|
-
* <p>The name of the model.</p>
|
|
82
|
-
*/
|
|
49
|
+
|
|
83
50
|
ModelName?: string;
|
|
84
|
-
|
|
85
|
-
* <p>The version of the model.</p>
|
|
86
|
-
*/
|
|
51
|
+
|
|
87
52
|
ModelVersion?: string;
|
|
88
|
-
|
|
89
|
-
* <p>The timestamp of the last data sample taken.</p>
|
|
90
|
-
*/
|
|
53
|
+
|
|
91
54
|
LatestSampleTime?: Date;
|
|
92
|
-
|
|
93
|
-
* <p>The timestamp of the last inference that was made.</p>
|
|
94
|
-
*/
|
|
55
|
+
|
|
95
56
|
LatestInference?: Date;
|
|
96
|
-
|
|
97
|
-
* <p>Information required for model metrics.</p>
|
|
98
|
-
*/
|
|
57
|
+
|
|
99
58
|
ModelMetrics?: EdgeMetric[];
|
|
100
59
|
}
|
|
101
60
|
export declare namespace Model {
|
|
102
|
-
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
61
|
+
|
|
105
62
|
const filterSensitiveLog: (obj: Model) => any;
|
|
106
63
|
}
|
|
107
64
|
export interface SendHeartbeatRequest {
|
|
108
|
-
|
|
109
|
-
* <p>For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.</p>
|
|
110
|
-
*/
|
|
65
|
+
|
|
111
66
|
AgentMetrics?: EdgeMetric[];
|
|
112
|
-
|
|
113
|
-
* <p>Returns a list of models deployed on the the device.</p>
|
|
114
|
-
*/
|
|
67
|
+
|
|
115
68
|
Models?: Model[];
|
|
116
|
-
|
|
117
|
-
* <p>Returns the version of the agent.</p>
|
|
118
|
-
*/
|
|
69
|
+
|
|
119
70
|
AgentVersion: string | undefined;
|
|
120
|
-
|
|
121
|
-
* <p>The unique name of the device.</p>
|
|
122
|
-
*/
|
|
71
|
+
|
|
123
72
|
DeviceName: string | undefined;
|
|
124
|
-
|
|
125
|
-
* <p>The name of the fleet that the device belongs to.</p>
|
|
126
|
-
*/
|
|
73
|
+
|
|
127
74
|
DeviceFleetName: string | undefined;
|
|
128
75
|
}
|
|
129
76
|
export declare namespace SendHeartbeatRequest {
|
|
130
|
-
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
77
|
+
|
|
133
78
|
const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
|
|
134
79
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
2
|
import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
7
5
|
apiVersion: string;
|
|
8
6
|
disableHostPrefix: boolean;
|
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.36.
|
|
4
|
+
"version": "3.36.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.36.
|
|
24
|
+
"@aws-sdk/client-sts": "3.36.1",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.36.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.36.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.36.1",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.36.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.36.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.36.0",
|