@aws-sdk/client-sagemaker-edge 3.33.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 +47 -0
- package/{dist/cjs → dist-cjs}/SagemakerEdge.js +1 -5
- package/{dist/cjs → dist-cjs}/SagemakerEdgeClient.js +8 -17
- package/{dist/cjs → dist-cjs}/commands/GetDeviceRegistrationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/SendHeartbeatCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -19
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/SagemakerEdge.js +2 -6
- package/{dist/es → dist-es}/SagemakerEdgeClient.js +2 -11
- package/{dist/es → dist-es}/commands/GetDeviceRegistrationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/SendHeartbeatCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -19
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +25 -31
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SagemakerEdge.d.ts +2 -2
- package/{dist/types → dist-types}/SagemakerEdgeClient.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDeviceRegistrationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/SendHeartbeatCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SagemakerEdge.d.ts +5 -11
- package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +69 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetDeviceRegistrationCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/SendHeartbeatCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +79 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/SagemakerEdge.ts +0 -81
- package/SagemakerEdgeClient.ts +0 -240
- package/commands/GetDeviceRegistrationCommand.ts +0 -94
- package/commands/SendHeartbeatCommand.ts +0 -94
- package/dist/cjs/SagemakerEdge.js.map +0 -1
- package/dist/cjs/SagemakerEdgeClient.js.map +0 -1
- package/dist/cjs/commands/GetDeviceRegistrationCommand.js.map +0 -1
- package/dist/cjs/commands/SendHeartbeatCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SagemakerEdge.js.map +0 -1
- package/dist/es/SagemakerEdgeClient.js.map +0 -1
- package/dist/es/commands/GetDeviceRegistrationCommand.js.map +0 -1
- package/dist/es/commands/SendHeartbeatCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -6
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/SagemakerEdgeClient.d.ts +0 -134
- package/dist/types/ts3.4/commands/SendHeartbeatCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -134
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -171
- package/protocols/Aws_restJson1.ts +0 -316
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1GetDeviceRegistrationCommand = function (input,
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1GetDeviceRegistrationCommand = function (input,
|
|
|
14
14
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetDeviceRegistration";
|
|
15
15
|
body = JSON.stringify(__assign(__assign({}, (input.DeviceFleetName !== undefined &&
|
|
16
16
|
input.DeviceFleetName !== null && { DeviceFleetName: input.DeviceFleetName })), (input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName })));
|
|
17
|
-
return [2
|
|
17
|
+
return [2, new __HttpRequest({
|
|
18
18
|
protocol: protocol,
|
|
19
19
|
hostname: hostname,
|
|
20
20
|
port: port,
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1SendHeartbeatCommand = function (input, context
|
|
|
30
30
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
31
31
|
return __generator(this, function (_c) {
|
|
32
32
|
switch (_c.label) {
|
|
33
|
-
case 0: return [4
|
|
33
|
+
case 0: return [4, context.endpoint()];
|
|
34
34
|
case 1:
|
|
35
35
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
36
36
|
headers = {
|
|
@@ -41,7 +41,7 @@ export var serializeAws_restJson1SendHeartbeatCommand = function (input, context
|
|
|
41
41
|
input.AgentMetrics !== null && { AgentMetrics: serializeAws_restJson1EdgeMetrics(input.AgentMetrics, context) })), (input.AgentVersion !== undefined && input.AgentVersion !== null && { AgentVersion: input.AgentVersion })), (input.DeviceFleetName !== undefined &&
|
|
42
42
|
input.DeviceFleetName !== null && { DeviceFleetName: input.DeviceFleetName })), (input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName })), (input.Models !== undefined &&
|
|
43
43
|
input.Models !== null && { Models: serializeAws_restJson1Models(input.Models, context) })));
|
|
44
|
-
return [2
|
|
44
|
+
return [2, new __HttpRequest({
|
|
45
45
|
protocol: protocol,
|
|
46
46
|
hostname: hostname,
|
|
47
47
|
port: port,
|
|
@@ -59,7 +59,7 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
|
|
|
59
59
|
switch (_c.label) {
|
|
60
60
|
case 0:
|
|
61
61
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
62
|
-
return [2
|
|
62
|
+
return [2, deserializeAws_restJson1GetDeviceRegistrationCommandError(output, context)];
|
|
63
63
|
}
|
|
64
64
|
contents = {
|
|
65
65
|
$metadata: deserializeMetadata(output),
|
|
@@ -68,7 +68,7 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
|
|
|
68
68
|
};
|
|
69
69
|
_a = __expectNonNull;
|
|
70
70
|
_b = __expectObject;
|
|
71
|
-
return [4
|
|
71
|
+
return [4, parseBody(output.body, context)];
|
|
72
72
|
case 1:
|
|
73
73
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
74
74
|
if (data.CacheTTL !== undefined && data.CacheTTL !== null) {
|
|
@@ -77,7 +77,7 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
|
|
|
77
77
|
if (data.DeviceRegistration !== undefined && data.DeviceRegistration !== null) {
|
|
78
78
|
contents.DeviceRegistration = __expectString(data.DeviceRegistration);
|
|
79
79
|
}
|
|
80
|
-
return [2
|
|
80
|
+
return [2, Promise.resolve(contents)];
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}); };
|
|
@@ -89,23 +89,23 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
|
|
|
89
89
|
case 0:
|
|
90
90
|
_a = [__assign({}, output)];
|
|
91
91
|
_d = {};
|
|
92
|
-
return [4
|
|
92
|
+
return [4, parseBody(output.body, context)];
|
|
93
93
|
case 1:
|
|
94
94
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
95
95
|
errorCode = "UnknownError";
|
|
96
96
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
97
97
|
_b = errorCode;
|
|
98
98
|
switch (_b) {
|
|
99
|
-
case "InternalServiceException": return [3
|
|
100
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3
|
|
99
|
+
case "InternalServiceException": return [3, 2];
|
|
100
|
+
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3, 2];
|
|
101
101
|
}
|
|
102
|
-
return [3
|
|
102
|
+
return [3, 4];
|
|
103
103
|
case 2:
|
|
104
104
|
_c = [{}];
|
|
105
|
-
return [4
|
|
105
|
+
return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
106
106
|
case 3:
|
|
107
107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
108
|
-
return [3
|
|
108
|
+
return [3, 5];
|
|
109
109
|
case 4:
|
|
110
110
|
parsedBody = parsedOutput.body;
|
|
111
111
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -115,7 +115,7 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
|
|
|
115
115
|
message = response.message || response.Message || errorCode;
|
|
116
116
|
response.message = message;
|
|
117
117
|
delete response.Message;
|
|
118
|
-
return [2
|
|
118
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}); };
|
|
@@ -125,15 +125,15 @@ export var deserializeAws_restJson1SendHeartbeatCommand = function (output, cont
|
|
|
125
125
|
switch (_a.label) {
|
|
126
126
|
case 0:
|
|
127
127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
128
|
-
return [2
|
|
128
|
+
return [2, deserializeAws_restJson1SendHeartbeatCommandError(output, context)];
|
|
129
129
|
}
|
|
130
130
|
contents = {
|
|
131
131
|
$metadata: deserializeMetadata(output),
|
|
132
132
|
};
|
|
133
|
-
return [4
|
|
133
|
+
return [4, collectBody(output.body, context)];
|
|
134
134
|
case 1:
|
|
135
135
|
_a.sent();
|
|
136
|
-
return [2
|
|
136
|
+
return [2, Promise.resolve(contents)];
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
}); };
|
|
@@ -145,23 +145,23 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
|
|
|
145
145
|
case 0:
|
|
146
146
|
_a = [__assign({}, output)];
|
|
147
147
|
_d = {};
|
|
148
|
-
return [4
|
|
148
|
+
return [4, parseBody(output.body, context)];
|
|
149
149
|
case 1:
|
|
150
150
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
151
151
|
errorCode = "UnknownError";
|
|
152
152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
153
153
|
_b = errorCode;
|
|
154
154
|
switch (_b) {
|
|
155
|
-
case "InternalServiceException": return [3
|
|
156
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3
|
|
155
|
+
case "InternalServiceException": return [3, 2];
|
|
156
|
+
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3, 2];
|
|
157
157
|
}
|
|
158
|
-
return [3
|
|
158
|
+
return [3, 4];
|
|
159
159
|
case 2:
|
|
160
160
|
_c = [{}];
|
|
161
|
-
return [4
|
|
161
|
+
return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
162
162
|
case 3:
|
|
163
163
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
164
|
-
return [3
|
|
164
|
+
return [3, 5];
|
|
165
165
|
case 4:
|
|
166
166
|
parsedBody = parsedOutput.body;
|
|
167
167
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -171,7 +171,7 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
|
|
|
171
171
|
message = response.message || response.Message || errorCode;
|
|
172
172
|
response.message = message;
|
|
173
173
|
delete response.Message;
|
|
174
|
-
return [2
|
|
174
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
}); };
|
|
@@ -188,7 +188,7 @@ var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedO
|
|
|
188
188
|
if (data.Message !== undefined && data.Message !== null) {
|
|
189
189
|
contents.Message = __expectString(data.Message);
|
|
190
190
|
}
|
|
191
|
-
return [2
|
|
191
|
+
return [2, contents];
|
|
192
192
|
});
|
|
193
193
|
}); };
|
|
194
194
|
var serializeAws_restJson1EdgeMetric = function (input, context) {
|
|
@@ -230,7 +230,6 @@ var deserializeMetadata = function (output) {
|
|
|
230
230
|
cfId: output.headers["x-amz-cf-id"],
|
|
231
231
|
});
|
|
232
232
|
};
|
|
233
|
-
// Collect low-level response body stream to Uint8Array.
|
|
234
233
|
var collectBody = function (streamBody, context) {
|
|
235
234
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
236
235
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -238,7 +237,6 @@ var collectBody = function (streamBody, context) {
|
|
|
238
237
|
}
|
|
239
238
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
240
239
|
};
|
|
241
|
-
// Encode Uint8Array data into string with utf-8.
|
|
242
240
|
var collectBodyString = function (streamBody, context) {
|
|
243
241
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
244
242
|
};
|
|
@@ -257,9 +255,6 @@ var parseBody = function (streamBody, context) {
|
|
|
257
255
|
return {};
|
|
258
256
|
});
|
|
259
257
|
};
|
|
260
|
-
/**
|
|
261
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
262
|
-
*/
|
|
263
258
|
var loadRestJsonErrorCode = function (output, data) {
|
|
264
259
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
265
260
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -284,4 +279,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
284
279
|
}
|
|
285
280
|
return "";
|
|
286
281
|
};
|
|
287
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
9
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
12
|
export var getRuntimeConfig = function (config) {
|
|
16
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
15
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
19
16
|
};
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import packageInfo from "
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -13,13 +13,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
16
|
export var getRuntimeConfig = function (config) {
|
|
20
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
22
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
23
20
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
24
21
|
};
|
|
25
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
export var getRuntimeConfig = function (config) {
|
|
8
5
|
var _a;
|
|
9
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
10
7
|
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
11
8
|
};
|
|
12
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defaultRegionInfoProvider } from "./endpoints";
|
|
2
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
6
3
|
export var getRuntimeConfig = function (config) {
|
|
7
4
|
var _a, _b, _c, _d, _e;
|
|
8
5
|
return ({
|
|
@@ -14,4 +11,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
14
11
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
15
12
|
});
|
|
16
13
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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
|
-
import {
|
|
4
|
+
import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
|
|
5
5
|
/**
|
|
6
6
|
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
7
7
|
*/
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
2
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
3
1
|
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
4
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
5
3
|
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
@@ -7,7 +5,9 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
7
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
8
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
9
7
|
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
10
|
+
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
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>> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
2
|
-
import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
|
|
4
|
+
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
5
5
|
export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistrationRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface GetDeviceRegistrationCommandOutput extends GetDeviceRegistrationResult, __MetadataBearer {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
2
|
-
import { SendHeartbeatRequest } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { SendHeartbeatRequest } from "../models/models_0";
|
|
4
|
+
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
5
5
|
export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
|
|
6
6
|
}
|
|
7
7
|
export interface SendHeartbeatCommandOutput extends __MetadataBearer {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
2
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
3
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
4
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
4
|
+
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
5
5
|
export declare const serializeAws_restJson1GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
6
6
|
export declare const serializeAws_restJson1SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const deserializeAws_restJson1GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
8
8
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
9
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
10
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/client-sts/dist
|
|
11
|
+
credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
13
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
14
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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
|
-
import {
|
|
5
|
-
|
|
6
|
-
* <p>SageMaker Edge Manager dataplane service for communicating with active agents.</p>
|
|
7
|
-
*/
|
|
4
|
+
import { SagemakerEdgeClient } from "./SagemakerEdgeClient";
|
|
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;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
10
|
+
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
11
|
+
export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
12
|
+
export declare type ServiceOutputTypes = GetDeviceRegistrationCommandOutput | SendHeartbeatCommandOutput;
|
|
13
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
14
|
+
|
|
15
|
+
requestHandler?: __HttpHandler;
|
|
16
|
+
|
|
17
|
+
sha256?: __HashConstructor;
|
|
18
|
+
|
|
19
|
+
urlParser?: __UrlParser;
|
|
20
|
+
|
|
21
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
22
|
+
|
|
23
|
+
streamCollector?: __StreamCollector;
|
|
24
|
+
|
|
25
|
+
base64Decoder?: __Decoder;
|
|
26
|
+
|
|
27
|
+
base64Encoder?: __Encoder;
|
|
28
|
+
|
|
29
|
+
utf8Decoder?: __Decoder;
|
|
30
|
+
|
|
31
|
+
utf8Encoder?: __Encoder;
|
|
32
|
+
|
|
33
|
+
runtime?: string;
|
|
34
|
+
|
|
35
|
+
disableHostPrefix?: boolean;
|
|
36
|
+
|
|
37
|
+
maxAttempts?: number | __Provider<number>;
|
|
38
|
+
|
|
39
|
+
retryMode?: string | __Provider<string>;
|
|
40
|
+
|
|
41
|
+
logger?: __Logger;
|
|
42
|
+
|
|
43
|
+
serviceId?: string;
|
|
44
|
+
|
|
45
|
+
region?: string | __Provider<string>;
|
|
46
|
+
|
|
47
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
48
|
+
|
|
49
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
50
|
+
|
|
51
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
52
|
+
}
|
|
53
|
+
declare type SagemakerEdgeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
54
|
+
|
|
55
|
+
export interface SagemakerEdgeClientConfig extends SagemakerEdgeClientConfigType {
|
|
56
|
+
}
|
|
57
|
+
declare type SagemakerEdgeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
58
|
+
|
|
59
|
+
export interface SagemakerEdgeClientResolvedConfig extends SagemakerEdgeClientResolvedConfigType {
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export declare class SagemakerEdgeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SagemakerEdgeClientResolvedConfig> {
|
|
63
|
+
|
|
64
|
+
readonly config: SagemakerEdgeClientResolvedConfig;
|
|
65
|
+
constructor(configuration: SagemakerEdgeClientConfig);
|
|
66
|
+
|
|
67
|
+
destroy(): void;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
2
|
-
import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
|
|
3
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler,
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeviceRegistrationRequest, GetDeviceRegistrationResult } from "../models/models_0";
|
|
4
|
+
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
5
5
|
export interface GetDeviceRegistrationCommandInput extends GetDeviceRegistrationRequest {
|
|
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;
|
|
@@ -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 { SendHeartbeatRequest } from "../models/models_0";
|
|
4
|
+
import { SagemakerEdgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SagemakerEdgeClient";
|
|
5
|
+
export interface SendHeartbeatCommandInput extends SendHeartbeatRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface SendHeartbeatCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class SendHeartbeatCommand extends $Command<SendHeartbeatCommandInput, SendHeartbeatCommandOutput, SagemakerEdgeClientResolvedConfig> {
|
|
11
|
+
readonly input: SendHeartbeatCommandInput;
|
|
12
|
+
constructor(input: SendHeartbeatCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SagemakerEdgeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendHeartbeatCommandInput, SendHeartbeatCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
+
export interface GetDeviceRegistrationRequest {
|
|
3
|
+
|
|
4
|
+
DeviceName: string | undefined;
|
|
5
|
+
|
|
6
|
+
DeviceFleetName: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace GetDeviceRegistrationRequest {
|
|
9
|
+
|
|
10
|
+
const filterSensitiveLog: (obj: GetDeviceRegistrationRequest) => any;
|
|
11
|
+
}
|
|
12
|
+
export interface GetDeviceRegistrationResult {
|
|
13
|
+
|
|
14
|
+
DeviceRegistration?: string;
|
|
15
|
+
|
|
16
|
+
CacheTTL?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace GetDeviceRegistrationResult {
|
|
19
|
+
|
|
20
|
+
const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface InternalServiceException extends __SmithyException, $MetadataBearer {
|
|
24
|
+
name: "InternalServiceException";
|
|
25
|
+
$fault: "client";
|
|
26
|
+
Message?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace InternalServiceException {
|
|
29
|
+
|
|
30
|
+
const filterSensitiveLog: (obj: InternalServiceException) => any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface EdgeMetric {
|
|
34
|
+
|
|
35
|
+
Dimension?: string;
|
|
36
|
+
|
|
37
|
+
MetricName?: string;
|
|
38
|
+
|
|
39
|
+
Value?: number;
|
|
40
|
+
|
|
41
|
+
Timestamp?: Date;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace EdgeMetric {
|
|
44
|
+
|
|
45
|
+
const filterSensitiveLog: (obj: EdgeMetric) => any;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface Model {
|
|
49
|
+
|
|
50
|
+
ModelName?: string;
|
|
51
|
+
|
|
52
|
+
ModelVersion?: string;
|
|
53
|
+
|
|
54
|
+
LatestSampleTime?: Date;
|
|
55
|
+
|
|
56
|
+
LatestInference?: Date;
|
|
57
|
+
|
|
58
|
+
ModelMetrics?: EdgeMetric[];
|
|
59
|
+
}
|
|
60
|
+
export declare namespace Model {
|
|
61
|
+
|
|
62
|
+
const filterSensitiveLog: (obj: Model) => any;
|
|
63
|
+
}
|
|
64
|
+
export interface SendHeartbeatRequest {
|
|
65
|
+
|
|
66
|
+
AgentMetrics?: EdgeMetric[];
|
|
67
|
+
|
|
68
|
+
Models?: Model[];
|
|
69
|
+
|
|
70
|
+
AgentVersion: string | undefined;
|
|
71
|
+
|
|
72
|
+
DeviceName: string | undefined;
|
|
73
|
+
|
|
74
|
+
DeviceFleetName: string | undefined;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace SendHeartbeatRequest {
|
|
77
|
+
|
|
78
|
+
const filterSensitiveLog: (obj: SendHeartbeatRequest) => any;
|
|
79
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
2
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
3
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
4
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
4
|
+
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
5
5
|
export declare const serializeAws_restJson1GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
6
6
|
export declare const serializeAws_restJson1SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const deserializeAws_restJson1GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
|
|
@@ -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;
|