@aws-sdk/client-sagemaker-edge 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +154 -194
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SagemakerEdgeClient.js +2 -0
- package/dist-es/commands/GetDeploymentsCommand.js +3 -9
- package/dist-es/commands/GetDeviceRegistrationCommand.js +3 -9
- package/dist-es/commands/SendHeartbeatCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +143 -0
- package/dist-types/SagemakerEdgeClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -171
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -29
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -41
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class SagemakerEdgeClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,12 +110,12 @@ class SagemakerEdgeClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class SagemakerEdgeServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let SagemakerEdgeServiceException$1 = class SagemakerEdgeServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, SagemakerEdgeServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const ChecksumType = {
|
|
121
121
|
Sha1: "SHA1",
|
|
@@ -131,7 +131,7 @@ const FailureHandlingPolicy = {
|
|
|
131
131
|
const DeploymentType = {
|
|
132
132
|
Model: "Model",
|
|
133
133
|
};
|
|
134
|
-
class InternalServiceException extends SagemakerEdgeServiceException {
|
|
134
|
+
let InternalServiceException$1 = class InternalServiceException extends SagemakerEdgeServiceException$1 {
|
|
135
135
|
name = "InternalServiceException";
|
|
136
136
|
$fault = "client";
|
|
137
137
|
Message;
|
|
@@ -144,192 +144,162 @@ class InternalServiceException extends SagemakerEdgeServiceException {
|
|
|
144
144
|
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
145
145
|
this.Message = opts.Message;
|
|
146
146
|
}
|
|
147
|
-
}
|
|
147
|
+
};
|
|
148
148
|
const DeploymentStatus = {
|
|
149
149
|
Fail: "FAIL",
|
|
150
150
|
Success: "SUCCESS",
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return se_EdgeMetric(entry);
|
|
294
|
-
});
|
|
295
|
-
};
|
|
296
|
-
const se_Model = (input, context) => {
|
|
297
|
-
return smithyClient.take(input, {
|
|
298
|
-
LatestInference: (_) => _.getTime() / 1_000,
|
|
299
|
-
LatestSampleTime: (_) => _.getTime() / 1_000,
|
|
300
|
-
ModelMetrics: (_) => se_EdgeMetrics(_),
|
|
301
|
-
ModelName: [],
|
|
302
|
-
ModelVersion: [],
|
|
303
|
-
});
|
|
304
|
-
};
|
|
305
|
-
const se_Models = (input, context) => {
|
|
306
|
-
return input
|
|
307
|
-
.filter((e) => e != null)
|
|
308
|
-
.map((entry) => {
|
|
309
|
-
return se_Model(entry);
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
const deserializeMetadata = (output) => ({
|
|
313
|
-
httpStatusCode: output.statusCode,
|
|
314
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
315
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
316
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
317
|
-
});
|
|
153
|
+
const _AM = "AgentMetrics";
|
|
154
|
+
const _AV = "AgentVersion";
|
|
155
|
+
const _C = "Checksum";
|
|
156
|
+
const _CTTL = "CacheTTL";
|
|
157
|
+
const _D = "Definition";
|
|
158
|
+
const _DET = "DeploymentEndTime";
|
|
159
|
+
const _DFN = "DeviceFleetName";
|
|
160
|
+
const _DM = "DeploymentModel";
|
|
161
|
+
const _DMe = "DeploymentModels";
|
|
162
|
+
const _DN = "DeploymentName";
|
|
163
|
+
const _DNe = "DeviceName";
|
|
164
|
+
const _DR = "DeploymentResult";
|
|
165
|
+
const _DRe = "DeviceRegistration";
|
|
166
|
+
const _DS = "DesiredState";
|
|
167
|
+
const _DSM = "DeploymentStatusMessage";
|
|
168
|
+
const _DST = "DeploymentStartTime";
|
|
169
|
+
const _DSe = "DeploymentStatus";
|
|
170
|
+
const _De = "Definitions";
|
|
171
|
+
const _Dep = "Deployments";
|
|
172
|
+
const _Di = "Dimension";
|
|
173
|
+
const _ED = "EdgeDeployment";
|
|
174
|
+
const _EDd = "EdgeDeployments";
|
|
175
|
+
const _EM = "EdgeMetric";
|
|
176
|
+
const _EMd = "EdgeMetrics";
|
|
177
|
+
const _FHP = "FailureHandlingPolicy";
|
|
178
|
+
const _GD = "GetDeployments";
|
|
179
|
+
const _GDR = "GetDeploymentsRequest";
|
|
180
|
+
const _GDRR = "GetDeviceRegistrationRequest";
|
|
181
|
+
const _GDRRe = "GetDeviceRegistrationResult";
|
|
182
|
+
const _GDRe = "GetDeploymentsResult";
|
|
183
|
+
const _GDRet = "GetDeviceRegistration";
|
|
184
|
+
const _ISE = "InternalServiceException";
|
|
185
|
+
const _LI = "LatestInference";
|
|
186
|
+
const _LST = "LatestSampleTime";
|
|
187
|
+
const _M = "Message";
|
|
188
|
+
const _MH = "ModelHandle";
|
|
189
|
+
const _MM = "ModelMetrics";
|
|
190
|
+
const _MN = "ModelName";
|
|
191
|
+
const _MNe = "MetricName";
|
|
192
|
+
const _MV = "ModelVersion";
|
|
193
|
+
const _Mo = "Model";
|
|
194
|
+
const _Mod = "Models";
|
|
195
|
+
const _RFR = "RollbackFailureReason";
|
|
196
|
+
const _S = "Sum";
|
|
197
|
+
const _SH = "SendHeartbeat";
|
|
198
|
+
const _SHR = "SendHeartbeatRequest";
|
|
199
|
+
const _SR = "StatusReason";
|
|
200
|
+
const _SU = "S3Url";
|
|
201
|
+
const _St = "State";
|
|
202
|
+
const _Sta = "Status";
|
|
203
|
+
const _T = "Type";
|
|
204
|
+
const _Ti = "Timestamp";
|
|
205
|
+
const _V = "Value";
|
|
206
|
+
const _c = "client";
|
|
207
|
+
const _e = "error";
|
|
208
|
+
const _h = "http";
|
|
209
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakeredge";
|
|
210
|
+
const n0 = "com.amazonaws.sagemakeredge";
|
|
211
|
+
var Checksum = [3, n0, _C, 0, [_T, _S], [0, 0]];
|
|
212
|
+
var Definition = [3, n0, _D, 0, [_MH, _SU, _C, _St], [0, 0, () => Checksum, 0]];
|
|
213
|
+
var DeploymentModel = [
|
|
214
|
+
3,
|
|
215
|
+
n0,
|
|
216
|
+
_DM,
|
|
217
|
+
0,
|
|
218
|
+
[_MH, _MN, _MV, _DS, _St, _Sta, _SR, _RFR],
|
|
219
|
+
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
220
|
+
];
|
|
221
|
+
var DeploymentResult = [
|
|
222
|
+
3,
|
|
223
|
+
n0,
|
|
224
|
+
_DR,
|
|
225
|
+
0,
|
|
226
|
+
[_DN, _DSe, _DSM, _DST, _DET, _DMe],
|
|
227
|
+
[0, 0, 0, 4, 4, () => DeploymentModels],
|
|
228
|
+
];
|
|
229
|
+
var EdgeDeployment = [3, n0, _ED, 0, [_DN, _T, _FHP, _De], [0, 0, 0, () => Definitions]];
|
|
230
|
+
var EdgeMetric = [3, n0, _EM, 0, [_Di, _MNe, _V, _Ti], [0, 0, 1, 4]];
|
|
231
|
+
var GetDeploymentsRequest = [3, n0, _GDR, 0, [_DNe, _DFN], [0, 0]];
|
|
232
|
+
var GetDeploymentsResult = [3, n0, _GDRe, 0, [_Dep], [() => EdgeDeployments]];
|
|
233
|
+
var GetDeviceRegistrationRequest = [3, n0, _GDRR, 0, [_DNe, _DFN], [0, 0]];
|
|
234
|
+
var GetDeviceRegistrationResult = [3, n0, _GDRRe, 0, [_DRe, _CTTL], [0, 0]];
|
|
235
|
+
var InternalServiceException = [
|
|
236
|
+
-3,
|
|
237
|
+
n0,
|
|
238
|
+
_ISE,
|
|
239
|
+
{
|
|
240
|
+
[_e]: _c,
|
|
241
|
+
},
|
|
242
|
+
[_M],
|
|
243
|
+
[0],
|
|
244
|
+
];
|
|
245
|
+
schema.TypeRegistry.for(n0).registerError(InternalServiceException, InternalServiceException$1);
|
|
246
|
+
var Model = [3, n0, _Mo, 0, [_MN, _MV, _LST, _LI, _MM], [0, 0, 4, 4, () => EdgeMetrics]];
|
|
247
|
+
var SendHeartbeatRequest = [
|
|
248
|
+
3,
|
|
249
|
+
n0,
|
|
250
|
+
_SHR,
|
|
251
|
+
0,
|
|
252
|
+
[_AM, _Mod, _AV, _DNe, _DFN, _DR],
|
|
253
|
+
[() => EdgeMetrics, () => Models, 0, 0, 0, () => DeploymentResult],
|
|
254
|
+
];
|
|
255
|
+
var __Unit = "unit";
|
|
256
|
+
var SagemakerEdgeServiceException = [-3, _s, "SagemakerEdgeServiceException", 0, [], []];
|
|
257
|
+
schema.TypeRegistry.for(_s).registerError(SagemakerEdgeServiceException, SagemakerEdgeServiceException$1);
|
|
258
|
+
var Definitions = [1, n0, _De, 0, () => Definition];
|
|
259
|
+
var DeploymentModels = [1, n0, _DMe, 0, () => DeploymentModel];
|
|
260
|
+
var EdgeDeployments = [1, n0, _EDd, 0, () => EdgeDeployment];
|
|
261
|
+
var EdgeMetrics = [1, n0, _EMd, 0, () => EdgeMetric];
|
|
262
|
+
var Models = [1, n0, _Mod, 0, () => Model];
|
|
263
|
+
var GetDeployments = [
|
|
264
|
+
9,
|
|
265
|
+
n0,
|
|
266
|
+
_GD,
|
|
267
|
+
{
|
|
268
|
+
[_h]: ["POST", "/GetDeployments", 200],
|
|
269
|
+
},
|
|
270
|
+
() => GetDeploymentsRequest,
|
|
271
|
+
() => GetDeploymentsResult,
|
|
272
|
+
];
|
|
273
|
+
var GetDeviceRegistration = [
|
|
274
|
+
9,
|
|
275
|
+
n0,
|
|
276
|
+
_GDRet,
|
|
277
|
+
{
|
|
278
|
+
[_h]: ["POST", "/GetDeviceRegistration", 200],
|
|
279
|
+
},
|
|
280
|
+
() => GetDeviceRegistrationRequest,
|
|
281
|
+
() => GetDeviceRegistrationResult,
|
|
282
|
+
];
|
|
283
|
+
var SendHeartbeat = [
|
|
284
|
+
9,
|
|
285
|
+
n0,
|
|
286
|
+
_SH,
|
|
287
|
+
{
|
|
288
|
+
[_h]: ["POST", "/SendHeartbeat", 200],
|
|
289
|
+
},
|
|
290
|
+
() => SendHeartbeatRequest,
|
|
291
|
+
() => __Unit,
|
|
292
|
+
];
|
|
318
293
|
|
|
319
294
|
class GetDeploymentsCommand extends smithyClient.Command
|
|
320
295
|
.classBuilder()
|
|
321
296
|
.ep(commonParams)
|
|
322
297
|
.m(function (Command, cs, config, o) {
|
|
323
|
-
return [
|
|
324
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
325
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
326
|
-
];
|
|
298
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
327
299
|
})
|
|
328
300
|
.s("AmazonSageMakerEdge", "GetDeployments", {})
|
|
329
301
|
.n("SagemakerEdgeClient", "GetDeploymentsCommand")
|
|
330
|
-
.
|
|
331
|
-
.ser(se_GetDeploymentsCommand)
|
|
332
|
-
.de(de_GetDeploymentsCommand)
|
|
302
|
+
.sc(GetDeployments)
|
|
333
303
|
.build() {
|
|
334
304
|
}
|
|
335
305
|
|
|
@@ -337,16 +307,11 @@ class GetDeviceRegistrationCommand extends smithyClient.Command
|
|
|
337
307
|
.classBuilder()
|
|
338
308
|
.ep(commonParams)
|
|
339
309
|
.m(function (Command, cs, config, o) {
|
|
340
|
-
return [
|
|
341
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
342
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
343
|
-
];
|
|
310
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
344
311
|
})
|
|
345
312
|
.s("AmazonSageMakerEdge", "GetDeviceRegistration", {})
|
|
346
313
|
.n("SagemakerEdgeClient", "GetDeviceRegistrationCommand")
|
|
347
|
-
.
|
|
348
|
-
.ser(se_GetDeviceRegistrationCommand)
|
|
349
|
-
.de(de_GetDeviceRegistrationCommand)
|
|
314
|
+
.sc(GetDeviceRegistration)
|
|
350
315
|
.build() {
|
|
351
316
|
}
|
|
352
317
|
|
|
@@ -354,16 +319,11 @@ class SendHeartbeatCommand extends smithyClient.Command
|
|
|
354
319
|
.classBuilder()
|
|
355
320
|
.ep(commonParams)
|
|
356
321
|
.m(function (Command, cs, config, o) {
|
|
357
|
-
return [
|
|
358
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
359
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
360
|
-
];
|
|
322
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
361
323
|
})
|
|
362
324
|
.s("AmazonSageMakerEdge", "SendHeartbeat", {})
|
|
363
325
|
.n("SagemakerEdgeClient", "SendHeartbeatCommand")
|
|
364
|
-
.
|
|
365
|
-
.ser(se_SendHeartbeatCommand)
|
|
366
|
-
.de(de_SendHeartbeatCommand)
|
|
326
|
+
.sc(SendHeartbeat)
|
|
367
327
|
.build() {
|
|
368
328
|
}
|
|
369
329
|
|
|
@@ -390,9 +350,9 @@ exports.DeploymentType = DeploymentType;
|
|
|
390
350
|
exports.FailureHandlingPolicy = FailureHandlingPolicy;
|
|
391
351
|
exports.GetDeploymentsCommand = GetDeploymentsCommand;
|
|
392
352
|
exports.GetDeviceRegistrationCommand = GetDeviceRegistrationCommand;
|
|
393
|
-
exports.InternalServiceException = InternalServiceException;
|
|
353
|
+
exports.InternalServiceException = InternalServiceException$1;
|
|
394
354
|
exports.ModelState = ModelState;
|
|
395
355
|
exports.SagemakerEdge = SagemakerEdge;
|
|
396
356
|
exports.SagemakerEdgeClient = SagemakerEdgeClient;
|
|
397
|
-
exports.SagemakerEdgeServiceException = SagemakerEdgeServiceException;
|
|
357
|
+
exports.SagemakerEdgeServiceException = SagemakerEdgeServiceException$1;
|
|
398
358
|
exports.SendHeartbeatCommand = SendHeartbeatCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakeredge" }),
|
|
28
30
|
serviceId: config?.serviceId ?? "Sagemaker Edge",
|
|
29
31
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
32
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class SagemakerEdgeClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetDeployments } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetDeploymentsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonSageMakerEdge", "GetDeployments", {})
|
|
17
13
|
.n("SagemakerEdgeClient", "GetDeploymentsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetDeploymentsCommand)
|
|
20
|
-
.de(de_GetDeploymentsCommand)
|
|
14
|
+
.sc(GetDeployments)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { GetDeviceRegistration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class GetDeviceRegistrationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonSageMakerEdge", "GetDeviceRegistration", {})
|
|
17
13
|
.n("SagemakerEdgeClient", "GetDeviceRegistrationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_GetDeviceRegistrationCommand)
|
|
20
|
-
.de(de_GetDeviceRegistrationCommand)
|
|
14
|
+
.sc(GetDeviceRegistration)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { SendHeartbeat } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SendHeartbeatCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonSageMakerEdge", "SendHeartbeat", {})
|
|
17
13
|
.n("SagemakerEdgeClient", "SendHeartbeatCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SendHeartbeatCommand)
|
|
20
|
-
.de(de_SendHeartbeatCommand)
|
|
14
|
+
.sc(SendHeartbeat)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakeredge" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Sagemaker Edge",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const _AM = "AgentMetrics";
|
|
2
|
+
const _AV = "AgentVersion";
|
|
3
|
+
const _C = "Checksum";
|
|
4
|
+
const _CTTL = "CacheTTL";
|
|
5
|
+
const _D = "Definition";
|
|
6
|
+
const _DET = "DeploymentEndTime";
|
|
7
|
+
const _DFN = "DeviceFleetName";
|
|
8
|
+
const _DM = "DeploymentModel";
|
|
9
|
+
const _DMe = "DeploymentModels";
|
|
10
|
+
const _DN = "DeploymentName";
|
|
11
|
+
const _DNe = "DeviceName";
|
|
12
|
+
const _DR = "DeploymentResult";
|
|
13
|
+
const _DRe = "DeviceRegistration";
|
|
14
|
+
const _DS = "DesiredState";
|
|
15
|
+
const _DSM = "DeploymentStatusMessage";
|
|
16
|
+
const _DST = "DeploymentStartTime";
|
|
17
|
+
const _DSe = "DeploymentStatus";
|
|
18
|
+
const _De = "Definitions";
|
|
19
|
+
const _Dep = "Deployments";
|
|
20
|
+
const _Di = "Dimension";
|
|
21
|
+
const _ED = "EdgeDeployment";
|
|
22
|
+
const _EDd = "EdgeDeployments";
|
|
23
|
+
const _EM = "EdgeMetric";
|
|
24
|
+
const _EMd = "EdgeMetrics";
|
|
25
|
+
const _FHP = "FailureHandlingPolicy";
|
|
26
|
+
const _GD = "GetDeployments";
|
|
27
|
+
const _GDR = "GetDeploymentsRequest";
|
|
28
|
+
const _GDRR = "GetDeviceRegistrationRequest";
|
|
29
|
+
const _GDRRe = "GetDeviceRegistrationResult";
|
|
30
|
+
const _GDRe = "GetDeploymentsResult";
|
|
31
|
+
const _GDRet = "GetDeviceRegistration";
|
|
32
|
+
const _ISE = "InternalServiceException";
|
|
33
|
+
const _LI = "LatestInference";
|
|
34
|
+
const _LST = "LatestSampleTime";
|
|
35
|
+
const _M = "Message";
|
|
36
|
+
const _MH = "ModelHandle";
|
|
37
|
+
const _MM = "ModelMetrics";
|
|
38
|
+
const _MN = "ModelName";
|
|
39
|
+
const _MNe = "MetricName";
|
|
40
|
+
const _MV = "ModelVersion";
|
|
41
|
+
const _Mo = "Model";
|
|
42
|
+
const _Mod = "Models";
|
|
43
|
+
const _RFR = "RollbackFailureReason";
|
|
44
|
+
const _S = "Sum";
|
|
45
|
+
const _SH = "SendHeartbeat";
|
|
46
|
+
const _SHR = "SendHeartbeatRequest";
|
|
47
|
+
const _SR = "StatusReason";
|
|
48
|
+
const _SU = "S3Url";
|
|
49
|
+
const _St = "State";
|
|
50
|
+
const _Sta = "Status";
|
|
51
|
+
const _T = "Type";
|
|
52
|
+
const _Ti = "Timestamp";
|
|
53
|
+
const _V = "Value";
|
|
54
|
+
const _c = "client";
|
|
55
|
+
const _e = "error";
|
|
56
|
+
const _h = "http";
|
|
57
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakeredge";
|
|
58
|
+
const n0 = "com.amazonaws.sagemakeredge";
|
|
59
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
60
|
+
import { InternalServiceException as __InternalServiceException } from "../models/index";
|
|
61
|
+
import { SagemakerEdgeServiceException as __SagemakerEdgeServiceException } from "../models/SagemakerEdgeServiceException";
|
|
62
|
+
export var Checksum = [3, n0, _C, 0, [_T, _S], [0, 0]];
|
|
63
|
+
export var Definition = [3, n0, _D, 0, [_MH, _SU, _C, _St], [0, 0, () => Checksum, 0]];
|
|
64
|
+
export var DeploymentModel = [
|
|
65
|
+
3,
|
|
66
|
+
n0,
|
|
67
|
+
_DM,
|
|
68
|
+
0,
|
|
69
|
+
[_MH, _MN, _MV, _DS, _St, _Sta, _SR, _RFR],
|
|
70
|
+
[0, 0, 0, 0, 0, 0, 0, 0],
|
|
71
|
+
];
|
|
72
|
+
export var DeploymentResult = [
|
|
73
|
+
3,
|
|
74
|
+
n0,
|
|
75
|
+
_DR,
|
|
76
|
+
0,
|
|
77
|
+
[_DN, _DSe, _DSM, _DST, _DET, _DMe],
|
|
78
|
+
[0, 0, 0, 4, 4, () => DeploymentModels],
|
|
79
|
+
];
|
|
80
|
+
export var EdgeDeployment = [3, n0, _ED, 0, [_DN, _T, _FHP, _De], [0, 0, 0, () => Definitions]];
|
|
81
|
+
export var EdgeMetric = [3, n0, _EM, 0, [_Di, _MNe, _V, _Ti], [0, 0, 1, 4]];
|
|
82
|
+
export var GetDeploymentsRequest = [3, n0, _GDR, 0, [_DNe, _DFN], [0, 0]];
|
|
83
|
+
export var GetDeploymentsResult = [3, n0, _GDRe, 0, [_Dep], [() => EdgeDeployments]];
|
|
84
|
+
export var GetDeviceRegistrationRequest = [3, n0, _GDRR, 0, [_DNe, _DFN], [0, 0]];
|
|
85
|
+
export var GetDeviceRegistrationResult = [3, n0, _GDRRe, 0, [_DRe, _CTTL], [0, 0]];
|
|
86
|
+
export var InternalServiceException = [
|
|
87
|
+
-3,
|
|
88
|
+
n0,
|
|
89
|
+
_ISE,
|
|
90
|
+
{
|
|
91
|
+
[_e]: _c,
|
|
92
|
+
},
|
|
93
|
+
[_M],
|
|
94
|
+
[0],
|
|
95
|
+
];
|
|
96
|
+
TypeRegistry.for(n0).registerError(InternalServiceException, __InternalServiceException);
|
|
97
|
+
export var Model = [3, n0, _Mo, 0, [_MN, _MV, _LST, _LI, _MM], [0, 0, 4, 4, () => EdgeMetrics]];
|
|
98
|
+
export var SendHeartbeatRequest = [
|
|
99
|
+
3,
|
|
100
|
+
n0,
|
|
101
|
+
_SHR,
|
|
102
|
+
0,
|
|
103
|
+
[_AM, _Mod, _AV, _DNe, _DFN, _DR],
|
|
104
|
+
[() => EdgeMetrics, () => Models, 0, 0, 0, () => DeploymentResult],
|
|
105
|
+
];
|
|
106
|
+
export var __Unit = "unit";
|
|
107
|
+
export var SagemakerEdgeServiceException = [-3, _s, "SagemakerEdgeServiceException", 0, [], []];
|
|
108
|
+
TypeRegistry.for(_s).registerError(SagemakerEdgeServiceException, __SagemakerEdgeServiceException);
|
|
109
|
+
export var Definitions = [1, n0, _De, 0, () => Definition];
|
|
110
|
+
export var DeploymentModels = [1, n0, _DMe, 0, () => DeploymentModel];
|
|
111
|
+
export var EdgeDeployments = [1, n0, _EDd, 0, () => EdgeDeployment];
|
|
112
|
+
export var EdgeMetrics = [1, n0, _EMd, 0, () => EdgeMetric];
|
|
113
|
+
export var Models = [1, n0, _Mod, 0, () => Model];
|
|
114
|
+
export var GetDeployments = [
|
|
115
|
+
9,
|
|
116
|
+
n0,
|
|
117
|
+
_GD,
|
|
118
|
+
{
|
|
119
|
+
[_h]: ["POST", "/GetDeployments", 200],
|
|
120
|
+
},
|
|
121
|
+
() => GetDeploymentsRequest,
|
|
122
|
+
() => GetDeploymentsResult,
|
|
123
|
+
];
|
|
124
|
+
export var GetDeviceRegistration = [
|
|
125
|
+
9,
|
|
126
|
+
n0,
|
|
127
|
+
_GDRet,
|
|
128
|
+
{
|
|
129
|
+
[_h]: ["POST", "/GetDeviceRegistration", 200],
|
|
130
|
+
},
|
|
131
|
+
() => GetDeviceRegistrationRequest,
|
|
132
|
+
() => GetDeviceRegistrationResult,
|
|
133
|
+
];
|
|
134
|
+
export var SendHeartbeat = [
|
|
135
|
+
9,
|
|
136
|
+
n0,
|
|
137
|
+
_SH,
|
|
138
|
+
{
|
|
139
|
+
[_h]: ["POST", "/SendHeartbeat", 200],
|
|
140
|
+
},
|
|
141
|
+
() => SendHeartbeatRequest,
|
|
142
|
+
() => __Unit,
|
|
143
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, 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 "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { GetDeploymentsCommandInput, GetDeploymentsCommandOutput } from "./commands/GetDeploymentsCommand";
|
|
11
11
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
@@ -144,6 +144,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
144
144
|
* Optional extensions
|
|
145
145
|
*/
|
|
146
146
|
extensions?: RuntimeExtension[];
|
|
147
|
+
/**
|
|
148
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
149
|
+
* may be overridden. A default will always be set by the client.
|
|
150
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
151
|
+
* the client.
|
|
152
|
+
* @alpha
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
147
156
|
/**
|
|
148
157
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
149
158
|
*/
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerEdgeHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
17
18
|
serviceId: string;
|
|
18
19
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
20
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
+
export declare var Checksum: StaticStructureSchema;
|
|
3
|
+
export declare var Definition: StaticStructureSchema;
|
|
4
|
+
export declare var DeploymentModel: StaticStructureSchema;
|
|
5
|
+
export declare var DeploymentResult: StaticStructureSchema;
|
|
6
|
+
export declare var EdgeDeployment: StaticStructureSchema;
|
|
7
|
+
export declare var EdgeMetric: StaticStructureSchema;
|
|
8
|
+
export declare var GetDeploymentsRequest: StaticStructureSchema;
|
|
9
|
+
export declare var GetDeploymentsResult: StaticStructureSchema;
|
|
10
|
+
export declare var GetDeviceRegistrationRequest: StaticStructureSchema;
|
|
11
|
+
export declare var GetDeviceRegistrationResult: StaticStructureSchema;
|
|
12
|
+
export declare var InternalServiceException: StaticErrorSchema;
|
|
13
|
+
export declare var Model: StaticStructureSchema;
|
|
14
|
+
export declare var SendHeartbeatRequest: StaticStructureSchema;
|
|
15
|
+
export declare var __Unit: "unit";
|
|
16
|
+
export declare var SagemakerEdgeServiceException: StaticErrorSchema;
|
|
17
|
+
export declare var Definitions: StaticListSchema;
|
|
18
|
+
export declare var DeploymentModels: StaticListSchema;
|
|
19
|
+
export declare var EdgeDeployments: StaticListSchema;
|
|
20
|
+
export declare var EdgeMetrics: StaticListSchema;
|
|
21
|
+
export declare var Models: StaticListSchema;
|
|
22
|
+
export declare var GetDeployments: StaticOperationSchema;
|
|
23
|
+
export declare var GetDeviceRegistration: StaticOperationSchema;
|
|
24
|
+
export declare var SendHeartbeat: StaticOperationSchema;
|
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -96,6 +99,7 @@ export interface ClientDefaults
|
|
|
96
99
|
retryMode?: string | __Provider<string>;
|
|
97
100
|
logger?: __Logger;
|
|
98
101
|
extensions?: RuntimeExtension[];
|
|
102
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
99
103
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
100
104
|
}
|
|
101
105
|
export type SagemakerEdgeClientConfigType = Partial<
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SagemakerEdgeHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var Checksum: StaticStructureSchema;
|
|
8
|
+
export declare var Definition: StaticStructureSchema;
|
|
9
|
+
export declare var DeploymentModel: StaticStructureSchema;
|
|
10
|
+
export declare var DeploymentResult: StaticStructureSchema;
|
|
11
|
+
export declare var EdgeDeployment: StaticStructureSchema;
|
|
12
|
+
export declare var EdgeMetric: StaticStructureSchema;
|
|
13
|
+
export declare var GetDeploymentsRequest: StaticStructureSchema;
|
|
14
|
+
export declare var GetDeploymentsResult: StaticStructureSchema;
|
|
15
|
+
export declare var GetDeviceRegistrationRequest: StaticStructureSchema;
|
|
16
|
+
export declare var GetDeviceRegistrationResult: StaticStructureSchema;
|
|
17
|
+
export declare var InternalServiceException: StaticErrorSchema;
|
|
18
|
+
export declare var Model: StaticStructureSchema;
|
|
19
|
+
export declare var SendHeartbeatRequest: StaticStructureSchema;
|
|
20
|
+
export declare var __Unit: "unit";
|
|
21
|
+
export declare var SagemakerEdgeServiceException: StaticErrorSchema;
|
|
22
|
+
export declare var Definitions: StaticListSchema;
|
|
23
|
+
export declare var DeploymentModels: StaticListSchema;
|
|
24
|
+
export declare var EdgeDeployments: StaticListSchema;
|
|
25
|
+
export declare var EdgeMetrics: StaticListSchema;
|
|
26
|
+
export declare var Models: StaticListSchema;
|
|
27
|
+
export declare var GetDeployments: StaticOperationSchema;
|
|
28
|
+
export declare var GetDeviceRegistration: StaticOperationSchema;
|
|
29
|
+
export declare var SendHeartbeat: StaticOperationSchema;
|
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.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-edge",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { InternalServiceException } from "../models/models_0";
|
|
5
|
-
import { SagemakerEdgeServiceException as __BaseException } from "../models/SagemakerEdgeServiceException";
|
|
6
|
-
export const se_GetDeploymentsCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/GetDeployments");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
DeviceFleetName: [],
|
|
15
|
-
DeviceName: [],
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_GetDeviceRegistrationCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/GetDeviceRegistration");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(take(input, {
|
|
28
|
-
DeviceFleetName: [],
|
|
29
|
-
DeviceName: [],
|
|
30
|
-
}));
|
|
31
|
-
b.m("POST").h(headers).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_SendHeartbeatCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {
|
|
37
|
-
"content-type": "application/json",
|
|
38
|
-
};
|
|
39
|
-
b.bp("/SendHeartbeat");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(take(input, {
|
|
42
|
-
AgentMetrics: (_) => se_EdgeMetrics(_, context),
|
|
43
|
-
AgentVersion: [],
|
|
44
|
-
DeploymentResult: (_) => se_DeploymentResult(_, context),
|
|
45
|
-
DeviceFleetName: [],
|
|
46
|
-
DeviceName: [],
|
|
47
|
-
Models: (_) => se_Models(_, context),
|
|
48
|
-
}));
|
|
49
|
-
b.m("POST").h(headers).b(body);
|
|
50
|
-
return b.build();
|
|
51
|
-
};
|
|
52
|
-
export const de_GetDeploymentsCommand = async (output, context) => {
|
|
53
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
54
|
-
return de_CommandError(output, context);
|
|
55
|
-
}
|
|
56
|
-
const contents = map({
|
|
57
|
-
$metadata: deserializeMetadata(output),
|
|
58
|
-
});
|
|
59
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
60
|
-
const doc = take(data, {
|
|
61
|
-
Deployments: _json,
|
|
62
|
-
});
|
|
63
|
-
Object.assign(contents, doc);
|
|
64
|
-
return contents;
|
|
65
|
-
};
|
|
66
|
-
export const de_GetDeviceRegistrationCommand = async (output, context) => {
|
|
67
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
68
|
-
return de_CommandError(output, context);
|
|
69
|
-
}
|
|
70
|
-
const contents = map({
|
|
71
|
-
$metadata: deserializeMetadata(output),
|
|
72
|
-
});
|
|
73
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
74
|
-
const doc = take(data, {
|
|
75
|
-
CacheTTL: __expectString,
|
|
76
|
-
DeviceRegistration: __expectString,
|
|
77
|
-
});
|
|
78
|
-
Object.assign(contents, doc);
|
|
79
|
-
return contents;
|
|
80
|
-
};
|
|
81
|
-
export const de_SendHeartbeatCommand = async (output, context) => {
|
|
82
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
83
|
-
return de_CommandError(output, context);
|
|
84
|
-
}
|
|
85
|
-
const contents = map({
|
|
86
|
-
$metadata: deserializeMetadata(output),
|
|
87
|
-
});
|
|
88
|
-
await collectBody(output.body, context);
|
|
89
|
-
return contents;
|
|
90
|
-
};
|
|
91
|
-
const de_CommandError = async (output, context) => {
|
|
92
|
-
const parsedOutput = {
|
|
93
|
-
...output,
|
|
94
|
-
body: await parseErrorBody(output.body, context),
|
|
95
|
-
};
|
|
96
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
97
|
-
switch (errorCode) {
|
|
98
|
-
case "InternalServiceException":
|
|
99
|
-
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
100
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
101
|
-
default:
|
|
102
|
-
const parsedBody = parsedOutput.body;
|
|
103
|
-
return throwDefaultError({
|
|
104
|
-
output,
|
|
105
|
-
parsedBody,
|
|
106
|
-
errorCode,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
111
|
-
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
112
|
-
const contents = map({});
|
|
113
|
-
const data = parsedOutput.body;
|
|
114
|
-
const doc = take(data, {
|
|
115
|
-
Message: __expectString,
|
|
116
|
-
});
|
|
117
|
-
Object.assign(contents, doc);
|
|
118
|
-
const exception = new InternalServiceException({
|
|
119
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
120
|
-
...contents,
|
|
121
|
-
});
|
|
122
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
123
|
-
};
|
|
124
|
-
const se_DeploymentResult = (input, context) => {
|
|
125
|
-
return take(input, {
|
|
126
|
-
DeploymentEndTime: (_) => _.getTime() / 1_000,
|
|
127
|
-
DeploymentModels: _json,
|
|
128
|
-
DeploymentName: [],
|
|
129
|
-
DeploymentStartTime: (_) => _.getTime() / 1_000,
|
|
130
|
-
DeploymentStatus: [],
|
|
131
|
-
DeploymentStatusMessage: [],
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
const se_EdgeMetric = (input, context) => {
|
|
135
|
-
return take(input, {
|
|
136
|
-
Dimension: [],
|
|
137
|
-
MetricName: [],
|
|
138
|
-
Timestamp: (_) => _.getTime() / 1_000,
|
|
139
|
-
Value: __serializeFloat,
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
const se_EdgeMetrics = (input, context) => {
|
|
143
|
-
return input
|
|
144
|
-
.filter((e) => e != null)
|
|
145
|
-
.map((entry) => {
|
|
146
|
-
return se_EdgeMetric(entry, context);
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
const se_Model = (input, context) => {
|
|
150
|
-
return take(input, {
|
|
151
|
-
LatestInference: (_) => _.getTime() / 1_000,
|
|
152
|
-
LatestSampleTime: (_) => _.getTime() / 1_000,
|
|
153
|
-
ModelMetrics: (_) => se_EdgeMetrics(_, context),
|
|
154
|
-
ModelName: [],
|
|
155
|
-
ModelVersion: [],
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
const se_Models = (input, context) => {
|
|
159
|
-
return input
|
|
160
|
-
.filter((e) => e != null)
|
|
161
|
-
.map((entry) => {
|
|
162
|
-
return se_Model(entry, context);
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
const deserializeMetadata = (output) => ({
|
|
166
|
-
httpStatusCode: output.statusCode,
|
|
167
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
168
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
169
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
170
|
-
});
|
|
171
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GetDeploymentsCommandInput, GetDeploymentsCommandOutput } from "../commands/GetDeploymentsCommand";
|
|
4
|
-
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "../commands/GetDeviceRegistrationCommand";
|
|
5
|
-
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "../commands/SendHeartbeatCommand";
|
|
6
|
-
/**
|
|
7
|
-
* serializeAws_restJson1GetDeploymentsCommand
|
|
8
|
-
*/
|
|
9
|
-
export declare const se_GetDeploymentsCommand: (input: GetDeploymentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
-
/**
|
|
11
|
-
* serializeAws_restJson1GetDeviceRegistrationCommand
|
|
12
|
-
*/
|
|
13
|
-
export declare const se_GetDeviceRegistrationCommand: (input: GetDeviceRegistrationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
-
/**
|
|
15
|
-
* serializeAws_restJson1SendHeartbeatCommand
|
|
16
|
-
*/
|
|
17
|
-
export declare const se_SendHeartbeatCommand: (input: SendHeartbeatCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
-
/**
|
|
19
|
-
* deserializeAws_restJson1GetDeploymentsCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare const de_GetDeploymentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeploymentsCommandOutput>;
|
|
22
|
-
/**
|
|
23
|
-
* deserializeAws_restJson1GetDeviceRegistrationCommand
|
|
24
|
-
*/
|
|
25
|
-
export declare const de_GetDeviceRegistrationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeviceRegistrationCommandOutput>;
|
|
26
|
-
/**
|
|
27
|
-
* deserializeAws_restJson1SendHeartbeatCommand
|
|
28
|
-
*/
|
|
29
|
-
export declare const de_SendHeartbeatCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendHeartbeatCommandOutput>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
GetDeploymentsCommandInput,
|
|
8
|
-
GetDeploymentsCommandOutput,
|
|
9
|
-
} from "../commands/GetDeploymentsCommand";
|
|
10
|
-
import {
|
|
11
|
-
GetDeviceRegistrationCommandInput,
|
|
12
|
-
GetDeviceRegistrationCommandOutput,
|
|
13
|
-
} from "../commands/GetDeviceRegistrationCommand";
|
|
14
|
-
import {
|
|
15
|
-
SendHeartbeatCommandInput,
|
|
16
|
-
SendHeartbeatCommandOutput,
|
|
17
|
-
} from "../commands/SendHeartbeatCommand";
|
|
18
|
-
export declare const se_GetDeploymentsCommand: (
|
|
19
|
-
input: GetDeploymentsCommandInput,
|
|
20
|
-
context: __SerdeContext
|
|
21
|
-
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const se_GetDeviceRegistrationCommand: (
|
|
23
|
-
input: GetDeviceRegistrationCommandInput,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const se_SendHeartbeatCommand: (
|
|
27
|
-
input: SendHeartbeatCommandInput,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const de_GetDeploymentsCommand: (
|
|
31
|
-
output: __HttpResponse,
|
|
32
|
-
context: __SerdeContext
|
|
33
|
-
) => Promise<GetDeploymentsCommandOutput>;
|
|
34
|
-
export declare const de_GetDeviceRegistrationCommand: (
|
|
35
|
-
output: __HttpResponse,
|
|
36
|
-
context: __SerdeContext
|
|
37
|
-
) => Promise<GetDeviceRegistrationCommandOutput>;
|
|
38
|
-
export declare const de_SendHeartbeatCommand: (
|
|
39
|
-
output: __HttpResponse,
|
|
40
|
-
context: __SerdeContext
|
|
41
|
-
) => Promise<SendHeartbeatCommandOutput>;
|