@aws-sdk/client-sagemaker-edge 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SagemakerEdgeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +16 -1
- package/dist-cjs/protocols/Aws_restJson1.js +18 -39
- package/dist-es/index.js +1 -0
- package/dist-es/models/SagemakerEdgeServiceException.js +12 -0
- package/dist-es/models/models_0.js +15 -1
- package/dist-es/protocols/Aws_restJson1.js +35 -49
- package/dist-types/SagemakerEdgeClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SagemakerEdgeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +9 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SagemakerEdgeClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SagemakerEdgeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-edge
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-sagemaker-edge
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-edge
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SagemakerEdgeServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./SagemakerEdge"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./SagemakerEdgeClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var SagemakerEdgeServiceException_1 = require("./models/SagemakerEdgeServiceException");
|
|
10
|
+
Object.defineProperty(exports, "SagemakerEdgeServiceException", { enumerable: true, get: function () { return SagemakerEdgeServiceException_1.SagemakerEdgeServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SagemakerEdgeServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class SagemakerEdgeServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, SagemakerEdgeServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SagemakerEdgeServiceException = SagemakerEdgeServiceException;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendHeartbeatRequest = exports.Model = exports.EdgeMetric = exports.GetDeviceRegistrationResult = exports.GetDeviceRegistrationRequest = void 0;
|
|
3
|
+
exports.SendHeartbeatRequest = exports.Model = exports.EdgeMetric = exports.InternalServiceException = exports.GetDeviceRegistrationResult = exports.GetDeviceRegistrationRequest = void 0;
|
|
4
|
+
const SagemakerEdgeServiceException_1 = require("./SagemakerEdgeServiceException");
|
|
4
5
|
var GetDeviceRegistrationRequest;
|
|
5
6
|
(function (GetDeviceRegistrationRequest) {
|
|
6
7
|
GetDeviceRegistrationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,6 +14,20 @@ var GetDeviceRegistrationResult;
|
|
|
13
14
|
...obj,
|
|
14
15
|
});
|
|
15
16
|
})(GetDeviceRegistrationResult = exports.GetDeviceRegistrationResult || (exports.GetDeviceRegistrationResult = {}));
|
|
17
|
+
class InternalServiceException extends SagemakerEdgeServiceException_1.SagemakerEdgeServiceException {
|
|
18
|
+
constructor(opts) {
|
|
19
|
+
super({
|
|
20
|
+
name: "InternalServiceException",
|
|
21
|
+
$fault: "client",
|
|
22
|
+
...opts,
|
|
23
|
+
});
|
|
24
|
+
this.name = "InternalServiceException";
|
|
25
|
+
this.$fault = "client";
|
|
26
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.InternalServiceException = InternalServiceException;
|
|
16
31
|
var EdgeMetric;
|
|
17
32
|
(function (EdgeMetric) {
|
|
18
33
|
EdgeMetric.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1SendHeartbeatCommand = exports.deserializeAws_restJson1GetDeviceRegistrationCommand = exports.serializeAws_restJson1SendHeartbeatCommand = exports.serializeAws_restJson1GetDeviceRegistrationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const SagemakerEdgeServiceException_1 = require("../models/SagemakerEdgeServiceException");
|
|
6
8
|
const serializeAws_restJson1GetDeviceRegistrationCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -84,27 +86,16 @@ const deserializeAws_restJson1GetDeviceRegistrationCommandError = async (output,
|
|
|
84
86
|
switch (errorCode) {
|
|
85
87
|
case "InternalServiceException":
|
|
86
88
|
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
87
|
-
|
|
88
|
-
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
89
|
-
name: errorCode,
|
|
90
|
-
$metadata: deserializeMetadata(output),
|
|
91
|
-
};
|
|
92
|
-
break;
|
|
89
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
93
90
|
default:
|
|
94
91
|
const parsedBody = parsedOutput.body;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
...parsedBody,
|
|
98
|
-
name: `${errorCode}`,
|
|
99
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
92
|
+
response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
|
|
93
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
100
94
|
$fault: "client",
|
|
101
95
|
$metadata: deserializeMetadata(output),
|
|
102
|
-
};
|
|
96
|
+
});
|
|
97
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
103
98
|
}
|
|
104
|
-
const message = response.message || response.Message || errorCode;
|
|
105
|
-
response.message = message;
|
|
106
|
-
delete response.Message;
|
|
107
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
108
99
|
};
|
|
109
100
|
const deserializeAws_restJson1SendHeartbeatCommand = async (output, context) => {
|
|
110
101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -128,40 +119,28 @@ const deserializeAws_restJson1SendHeartbeatCommandError = async (output, context
|
|
|
128
119
|
switch (errorCode) {
|
|
129
120
|
case "InternalServiceException":
|
|
130
121
|
case "com.amazonaws.sagemakeredge#InternalServiceException":
|
|
131
|
-
|
|
132
|
-
...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
133
|
-
name: errorCode,
|
|
134
|
-
$metadata: deserializeMetadata(output),
|
|
135
|
-
};
|
|
136
|
-
break;
|
|
122
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
137
123
|
default:
|
|
138
124
|
const parsedBody = parsedOutput.body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
...parsedBody,
|
|
142
|
-
name: `${errorCode}`,
|
|
143
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
125
|
+
response = new SagemakerEdgeServiceException_1.SagemakerEdgeServiceException({
|
|
126
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
144
127
|
$fault: "client",
|
|
145
128
|
$metadata: deserializeMetadata(output),
|
|
146
|
-
};
|
|
129
|
+
});
|
|
130
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
147
131
|
}
|
|
148
|
-
const message = response.message || response.Message || errorCode;
|
|
149
|
-
response.message = message;
|
|
150
|
-
delete response.Message;
|
|
151
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
152
132
|
};
|
|
153
133
|
const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
154
|
-
const contents = {
|
|
155
|
-
name: "InternalServiceException",
|
|
156
|
-
$fault: "client",
|
|
157
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
158
|
-
Message: undefined,
|
|
159
|
-
};
|
|
134
|
+
const contents = {};
|
|
160
135
|
const data = parsedOutput.body;
|
|
161
136
|
if (data.Message !== undefined && data.Message !== null) {
|
|
162
137
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
163
138
|
}
|
|
164
|
-
|
|
139
|
+
const exception = new models_0_1.InternalServiceException({
|
|
140
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
141
|
+
...contents,
|
|
142
|
+
});
|
|
143
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
165
144
|
};
|
|
166
145
|
const serializeAws_restJson1EdgeMetric = (input, context) => {
|
|
167
146
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var SagemakerEdgeServiceException = (function (_super) {
|
|
4
|
+
__extends(SagemakerEdgeServiceException, _super);
|
|
5
|
+
function SagemakerEdgeServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, SagemakerEdgeServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return SagemakerEdgeServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { SagemakerEdgeServiceException };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
|
|
2
3
|
export var GetDeviceRegistrationRequest;
|
|
3
4
|
(function (GetDeviceRegistrationRequest) {
|
|
4
5
|
GetDeviceRegistrationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -7,6 +8,19 @@ export var GetDeviceRegistrationResult;
|
|
|
7
8
|
(function (GetDeviceRegistrationResult) {
|
|
8
9
|
GetDeviceRegistrationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
10
|
})(GetDeviceRegistrationResult || (GetDeviceRegistrationResult = {}));
|
|
11
|
+
var InternalServiceException = (function (_super) {
|
|
12
|
+
__extends(InternalServiceException, _super);
|
|
13
|
+
function InternalServiceException(opts) {
|
|
14
|
+
var _this = _super.call(this, __assign({ name: "InternalServiceException", $fault: "client" }, opts)) || this;
|
|
15
|
+
_this.name = "InternalServiceException";
|
|
16
|
+
_this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(_this, InternalServiceException.prototype);
|
|
18
|
+
_this.Message = opts.Message;
|
|
19
|
+
return _this;
|
|
20
|
+
}
|
|
21
|
+
return InternalServiceException;
|
|
22
|
+
}(__BaseException));
|
|
23
|
+
export { InternalServiceException };
|
|
10
24
|
export var EdgeMetric;
|
|
11
25
|
(function (EdgeMetric) {
|
|
12
26
|
EdgeMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { InternalServiceException } from "../models/models_0";
|
|
5
|
+
import { SagemakerEdgeServiceException as __BaseException } from "../models/SagemakerEdgeServiceException";
|
|
4
6
|
export var serializeAws_restJson1GetDeviceRegistrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -82,16 +84,16 @@ export var deserializeAws_restJson1GetDeviceRegistrationCommand = function (outp
|
|
|
82
84
|
});
|
|
83
85
|
}); };
|
|
84
86
|
var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
86
|
-
var
|
|
87
|
-
return __generator(this, function (
|
|
88
|
-
switch (
|
|
87
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
88
|
+
var _c;
|
|
89
|
+
return __generator(this, function (_d) {
|
|
90
|
+
switch (_d.label) {
|
|
89
91
|
case 0:
|
|
90
92
|
_a = [__assign({}, output)];
|
|
91
|
-
|
|
93
|
+
_c = {};
|
|
92
94
|
return [4, parseBody(output.body, context)];
|
|
93
95
|
case 1:
|
|
94
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
96
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
95
97
|
errorCode = "UnknownError";
|
|
96
98
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
97
99
|
_b = errorCode;
|
|
@@ -100,22 +102,16 @@ var deserializeAws_restJson1GetDeviceRegistrationCommandError = function (output
|
|
|
100
102
|
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3, 2];
|
|
101
103
|
}
|
|
102
104
|
return [3, 4];
|
|
103
|
-
case 2:
|
|
104
|
-
|
|
105
|
-
return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
106
|
-
case 3:
|
|
107
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
108
|
-
return [3, 5];
|
|
105
|
+
case 2: return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
106
|
+
case 3: throw _d.sent();
|
|
109
107
|
case 4:
|
|
110
108
|
parsedBody = parsedOutput.body;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
response
|
|
117
|
-
delete response.Message;
|
|
118
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
109
|
+
response = new __BaseException({
|
|
110
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
111
|
+
$fault: "client",
|
|
112
|
+
$metadata: deserializeMetadata(output),
|
|
113
|
+
});
|
|
114
|
+
throw __decorateServiceException(response, parsedBody);
|
|
119
115
|
}
|
|
120
116
|
});
|
|
121
117
|
}); };
|
|
@@ -138,16 +134,16 @@ export var deserializeAws_restJson1SendHeartbeatCommand = function (output, cont
|
|
|
138
134
|
});
|
|
139
135
|
}); };
|
|
140
136
|
var deserializeAws_restJson1SendHeartbeatCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
141
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
142
|
-
var
|
|
143
|
-
return __generator(this, function (
|
|
144
|
-
switch (
|
|
137
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
138
|
+
var _c;
|
|
139
|
+
return __generator(this, function (_d) {
|
|
140
|
+
switch (_d.label) {
|
|
145
141
|
case 0:
|
|
146
142
|
_a = [__assign({}, output)];
|
|
147
|
-
|
|
143
|
+
_c = {};
|
|
148
144
|
return [4, parseBody(output.body, context)];
|
|
149
145
|
case 1:
|
|
150
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
146
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
151
147
|
errorCode = "UnknownError";
|
|
152
148
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
153
149
|
_b = errorCode;
|
|
@@ -156,39 +152,29 @@ var deserializeAws_restJson1SendHeartbeatCommandError = function (output, contex
|
|
|
156
152
|
case "com.amazonaws.sagemakeredge#InternalServiceException": return [3, 2];
|
|
157
153
|
}
|
|
158
154
|
return [3, 4];
|
|
159
|
-
case 2:
|
|
160
|
-
|
|
161
|
-
return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
162
|
-
case 3:
|
|
163
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
164
|
-
return [3, 5];
|
|
155
|
+
case 2: return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
156
|
+
case 3: throw _d.sent();
|
|
165
157
|
case 4:
|
|
166
158
|
parsedBody = parsedOutput.body;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
response
|
|
173
|
-
delete response.Message;
|
|
174
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
159
|
+
response = new __BaseException({
|
|
160
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
161
|
+
$fault: "client",
|
|
162
|
+
$metadata: deserializeMetadata(output),
|
|
163
|
+
});
|
|
164
|
+
throw __decorateServiceException(response, parsedBody);
|
|
175
165
|
}
|
|
176
166
|
});
|
|
177
167
|
}); };
|
|
178
168
|
var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
179
|
-
var contents, data;
|
|
169
|
+
var contents, data, exception;
|
|
180
170
|
return __generator(this, function (_a) {
|
|
181
|
-
contents = {
|
|
182
|
-
name: "InternalServiceException",
|
|
183
|
-
$fault: "client",
|
|
184
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
185
|
-
Message: undefined,
|
|
186
|
-
};
|
|
171
|
+
contents = {};
|
|
187
172
|
data = parsedOutput.body;
|
|
188
173
|
if (data.Message !== undefined && data.Message !== null) {
|
|
189
174
|
contents.Message = __expectString(data.Message);
|
|
190
175
|
}
|
|
191
|
-
|
|
176
|
+
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
177
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
192
178
|
});
|
|
193
179
|
}); };
|
|
194
180
|
var serializeAws_restJson1EdgeMetric = function (input, context) {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, 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";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
10
10
|
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
30
30
|
* A function that can calculate the length of a request body.
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
|
-
bodyLengthChecker?:
|
|
33
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
34
34
|
/**
|
|
35
35
|
* A function that converts a stream into an array of bytes.
|
|
36
36
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from SagemakerEdge service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SagemakerEdgeServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
|
|
2
3
|
export interface GetDeviceRegistrationRequest {
|
|
3
4
|
/**
|
|
4
5
|
* <p>The unique name of the device you want to get the registration status from.</p>
|
|
@@ -35,10 +36,14 @@ export declare namespace GetDeviceRegistrationResult {
|
|
|
35
36
|
* <p>An internal failure occurred. Try your request again. If the problem
|
|
36
37
|
* persists, contact AWS customer support.</p>
|
|
37
38
|
*/
|
|
38
|
-
export
|
|
39
|
-
name: "InternalServiceException";
|
|
40
|
-
$fault: "client";
|
|
39
|
+
export declare class InternalServiceException extends __BaseException {
|
|
40
|
+
readonly name: "InternalServiceException";
|
|
41
|
+
readonly $fault: "client";
|
|
41
42
|
Message?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
44
49
|
* <p>Information required for edge device metrics.</p>
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, 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";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { GetDeviceRegistrationCommandInput, GetDeviceRegistrationCommandOutput } from "./commands/GetDeviceRegistrationCommand";
|
|
10
10
|
import { SendHeartbeatCommandInput, SendHeartbeatCommandOutput } from "./commands/SendHeartbeatCommand";
|
|
11
11
|
export declare type ServiceInputTypes = GetDeviceRegistrationCommandInput | SendHeartbeatCommandInput;
|
|
@@ -18,7 +18,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
18
18
|
|
|
19
19
|
urlParser?: __UrlParser;
|
|
20
20
|
|
|
21
|
-
bodyLengthChecker?:
|
|
21
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
22
22
|
|
|
23
23
|
streamCollector?: __StreamCollector;
|
|
24
24
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class SagemakerEdgeServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { SagemakerEdgeServiceException as __BaseException } from "./SagemakerEdgeServiceException";
|
|
2
3
|
export interface GetDeviceRegistrationRequest {
|
|
3
4
|
|
|
4
5
|
DeviceName: string | undefined;
|
|
@@ -20,10 +21,12 @@ export declare namespace GetDeviceRegistrationResult {
|
|
|
20
21
|
const filterSensitiveLog: (obj: GetDeviceRegistrationResult) => any;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
export
|
|
24
|
-
name: "InternalServiceException";
|
|
25
|
-
$fault: "client";
|
|
24
|
+
export declare class InternalServiceException extends __BaseException {
|
|
25
|
+
readonly name: "InternalServiceException";
|
|
26
|
+
readonly $fault: "client";
|
|
26
27
|
Message?: string;
|
|
28
|
+
|
|
29
|
+
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
export interface EdgeMetric {
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: SagemakerEdgeClientConfig) => {
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.54.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "rimraf ./dist-*"
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -18,40 +18,40 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.0",
|
|
39
|
+
"@aws-sdk/types": "3.54.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.52.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|