@aws-sdk/client-sagemaker-featurestore-runtime 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/BatchGetRecordCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecordCommand.js +1 -1
- package/dist-cjs/commands/GetRecordCommand.js +2 -2
- package/dist-cjs/commands/PutRecordCommand.js +1 -1
- package/dist-cjs/models/models_0.js +41 -61
- package/dist-cjs/protocols/Aws_restJson1.js +61 -116
- package/dist-es/commands/BatchGetRecordCommand.js +3 -3
- package/dist-es/commands/DeleteRecordCommand.js +2 -2
- package/dist-es/commands/GetRecordCommand.js +3 -3
- package/dist-es/commands/PutRecordCommand.js +2 -2
- package/dist-es/models/models_0.js +10 -40
- package/dist-es/protocols/Aws_restJson1.js +77 -114
- package/dist-types/models/models_0.d.ts +40 -60
- package/dist-types/ts3.4/models/models_0.d.ts +20 -40
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
# [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
|
|
7
40
|
|
|
8
41
|
**Note:** Version bump only for package @aws-sdk/client-sagemaker-featurestore-runtime
|
package/README.md
CHANGED
|
@@ -197,7 +197,7 @@ try {
|
|
|
197
197
|
const data = await client.send(command);
|
|
198
198
|
// process data.
|
|
199
199
|
} catch (error) {
|
|
200
|
-
const { requestId, cfId, extendedRequestId } = error
|
|
200
|
+
const { requestId, cfId, extendedRequestId } = error.$$metadata;
|
|
201
201
|
console.log({ requestId, cfId, extendedRequestId });
|
|
202
202
|
/**
|
|
203
203
|
* The keys within exceptions are also parsed.
|
|
@@ -20,8 +20,8 @@ class BatchGetRecordCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.BatchGetRecordRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.BatchGetRecordResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,7 +20,7 @@ class DeleteRecordCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteRecordRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -20,8 +20,8 @@ class GetRecordCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetRecordRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetRecordResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,7 +20,7 @@ class PutRecordCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutRecordRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PutRecordRequestFilterSensitiveLog = exports.GetRecordResponseFilterSensitiveLog = exports.GetRecordRequestFilterSensitiveLog = exports.DeleteRecordRequestFilterSensitiveLog = exports.BatchGetRecordResponseFilterSensitiveLog = exports.BatchGetRecordResultDetailFilterSensitiveLog = exports.FeatureValueFilterSensitiveLog = exports.BatchGetRecordErrorFilterSensitiveLog = exports.BatchGetRecordRequestFilterSensitiveLog = exports.BatchGetRecordIdentifierFilterSensitiveLog = exports.ResourceNotFound = exports.ValidationError = exports.ServiceUnavailable = exports.InternalFailure = exports.AccessForbidden = void 0;
|
|
4
4
|
const SageMakerFeatureStoreRuntimeServiceException_1 = require("./SageMakerFeatureStoreRuntimeServiceException");
|
|
5
5
|
class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -16,42 +16,6 @@ class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.Sag
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.AccessForbidden = AccessForbidden;
|
|
19
|
-
var BatchGetRecordIdentifier;
|
|
20
|
-
(function (BatchGetRecordIdentifier) {
|
|
21
|
-
BatchGetRecordIdentifier.filterSensitiveLog = (obj) => ({
|
|
22
|
-
...obj,
|
|
23
|
-
});
|
|
24
|
-
})(BatchGetRecordIdentifier = exports.BatchGetRecordIdentifier || (exports.BatchGetRecordIdentifier = {}));
|
|
25
|
-
var BatchGetRecordRequest;
|
|
26
|
-
(function (BatchGetRecordRequest) {
|
|
27
|
-
BatchGetRecordRequest.filterSensitiveLog = (obj) => ({
|
|
28
|
-
...obj,
|
|
29
|
-
});
|
|
30
|
-
})(BatchGetRecordRequest = exports.BatchGetRecordRequest || (exports.BatchGetRecordRequest = {}));
|
|
31
|
-
var BatchGetRecordError;
|
|
32
|
-
(function (BatchGetRecordError) {
|
|
33
|
-
BatchGetRecordError.filterSensitiveLog = (obj) => ({
|
|
34
|
-
...obj,
|
|
35
|
-
});
|
|
36
|
-
})(BatchGetRecordError = exports.BatchGetRecordError || (exports.BatchGetRecordError = {}));
|
|
37
|
-
var FeatureValue;
|
|
38
|
-
(function (FeatureValue) {
|
|
39
|
-
FeatureValue.filterSensitiveLog = (obj) => ({
|
|
40
|
-
...obj,
|
|
41
|
-
});
|
|
42
|
-
})(FeatureValue = exports.FeatureValue || (exports.FeatureValue = {}));
|
|
43
|
-
var BatchGetRecordResultDetail;
|
|
44
|
-
(function (BatchGetRecordResultDetail) {
|
|
45
|
-
BatchGetRecordResultDetail.filterSensitiveLog = (obj) => ({
|
|
46
|
-
...obj,
|
|
47
|
-
});
|
|
48
|
-
})(BatchGetRecordResultDetail = exports.BatchGetRecordResultDetail || (exports.BatchGetRecordResultDetail = {}));
|
|
49
|
-
var BatchGetRecordResponse;
|
|
50
|
-
(function (BatchGetRecordResponse) {
|
|
51
|
-
BatchGetRecordResponse.filterSensitiveLog = (obj) => ({
|
|
52
|
-
...obj,
|
|
53
|
-
});
|
|
54
|
-
})(BatchGetRecordResponse = exports.BatchGetRecordResponse || (exports.BatchGetRecordResponse = {}));
|
|
55
19
|
class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
56
20
|
constructor(opts) {
|
|
57
21
|
super({
|
|
@@ -94,24 +58,6 @@ class ValidationError extends SageMakerFeatureStoreRuntimeServiceException_1.Sag
|
|
|
94
58
|
}
|
|
95
59
|
}
|
|
96
60
|
exports.ValidationError = ValidationError;
|
|
97
|
-
var DeleteRecordRequest;
|
|
98
|
-
(function (DeleteRecordRequest) {
|
|
99
|
-
DeleteRecordRequest.filterSensitiveLog = (obj) => ({
|
|
100
|
-
...obj,
|
|
101
|
-
});
|
|
102
|
-
})(DeleteRecordRequest = exports.DeleteRecordRequest || (exports.DeleteRecordRequest = {}));
|
|
103
|
-
var GetRecordRequest;
|
|
104
|
-
(function (GetRecordRequest) {
|
|
105
|
-
GetRecordRequest.filterSensitiveLog = (obj) => ({
|
|
106
|
-
...obj,
|
|
107
|
-
});
|
|
108
|
-
})(GetRecordRequest = exports.GetRecordRequest || (exports.GetRecordRequest = {}));
|
|
109
|
-
var GetRecordResponse;
|
|
110
|
-
(function (GetRecordResponse) {
|
|
111
|
-
GetRecordResponse.filterSensitiveLog = (obj) => ({
|
|
112
|
-
...obj,
|
|
113
|
-
});
|
|
114
|
-
})(GetRecordResponse = exports.GetRecordResponse || (exports.GetRecordResponse = {}));
|
|
115
61
|
class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
116
62
|
constructor(opts) {
|
|
117
63
|
super({
|
|
@@ -126,9 +72,43 @@ class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.Sa
|
|
|
126
72
|
}
|
|
127
73
|
}
|
|
128
74
|
exports.ResourceNotFound = ResourceNotFound;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
75
|
+
const BatchGetRecordIdentifierFilterSensitiveLog = (obj) => ({
|
|
76
|
+
...obj,
|
|
77
|
+
});
|
|
78
|
+
exports.BatchGetRecordIdentifierFilterSensitiveLog = BatchGetRecordIdentifierFilterSensitiveLog;
|
|
79
|
+
const BatchGetRecordRequestFilterSensitiveLog = (obj) => ({
|
|
80
|
+
...obj,
|
|
81
|
+
});
|
|
82
|
+
exports.BatchGetRecordRequestFilterSensitiveLog = BatchGetRecordRequestFilterSensitiveLog;
|
|
83
|
+
const BatchGetRecordErrorFilterSensitiveLog = (obj) => ({
|
|
84
|
+
...obj,
|
|
85
|
+
});
|
|
86
|
+
exports.BatchGetRecordErrorFilterSensitiveLog = BatchGetRecordErrorFilterSensitiveLog;
|
|
87
|
+
const FeatureValueFilterSensitiveLog = (obj) => ({
|
|
88
|
+
...obj,
|
|
89
|
+
});
|
|
90
|
+
exports.FeatureValueFilterSensitiveLog = FeatureValueFilterSensitiveLog;
|
|
91
|
+
const BatchGetRecordResultDetailFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
94
|
+
exports.BatchGetRecordResultDetailFilterSensitiveLog = BatchGetRecordResultDetailFilterSensitiveLog;
|
|
95
|
+
const BatchGetRecordResponseFilterSensitiveLog = (obj) => ({
|
|
96
|
+
...obj,
|
|
97
|
+
});
|
|
98
|
+
exports.BatchGetRecordResponseFilterSensitiveLog = BatchGetRecordResponseFilterSensitiveLog;
|
|
99
|
+
const DeleteRecordRequestFilterSensitiveLog = (obj) => ({
|
|
100
|
+
...obj,
|
|
101
|
+
});
|
|
102
|
+
exports.DeleteRecordRequestFilterSensitiveLog = DeleteRecordRequestFilterSensitiveLog;
|
|
103
|
+
const GetRecordRequestFilterSensitiveLog = (obj) => ({
|
|
104
|
+
...obj,
|
|
105
|
+
});
|
|
106
|
+
exports.GetRecordRequestFilterSensitiveLog = GetRecordRequestFilterSensitiveLog;
|
|
107
|
+
const GetRecordResponseFilterSensitiveLog = (obj) => ({
|
|
108
|
+
...obj,
|
|
109
|
+
});
|
|
110
|
+
exports.GetRecordResponseFilterSensitiveLog = GetRecordResponseFilterSensitiveLog;
|
|
111
|
+
const PutRecordRequestFilterSensitiveLog = (obj) => ({
|
|
112
|
+
...obj,
|
|
113
|
+
});
|
|
114
|
+
exports.PutRecordRequestFilterSensitiveLog = PutRecordRequestFilterSensitiveLog;
|
|
@@ -32,22 +32,11 @@ const serializeAws_restJson1DeleteRecordCommand = async (input, context) => {
|
|
|
32
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
33
|
const headers = {};
|
|
34
34
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resolvedPath = resolvedPath.replace("{FeatureGroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
throw new Error("No value provided for input HTTP label: FeatureGroupName.");
|
|
44
|
-
}
|
|
45
|
-
const query = {
|
|
46
|
-
...(input.RecordIdentifierValueAsString !== undefined && {
|
|
47
|
-
RecordIdentifierValueAsString: input.RecordIdentifierValueAsString,
|
|
48
|
-
}),
|
|
49
|
-
...(input.EventTime !== undefined && { EventTime: input.EventTime }),
|
|
50
|
-
};
|
|
35
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
36
|
+
const query = map({
|
|
37
|
+
RecordIdentifierValueAsString: [, input.RecordIdentifierValueAsString],
|
|
38
|
+
EventTime: [, input.EventTime],
|
|
39
|
+
});
|
|
51
40
|
let body;
|
|
52
41
|
return new protocol_http_1.HttpRequest({
|
|
53
42
|
protocol,
|
|
@@ -65,22 +54,14 @@ const serializeAws_restJson1GetRecordCommand = async (input, context) => {
|
|
|
65
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
66
55
|
const headers = {};
|
|
67
56
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
throw new Error("No value provided for input HTTP label: FeatureGroupName.");
|
|
77
|
-
}
|
|
78
|
-
const query = {
|
|
79
|
-
...(input.RecordIdentifierValueAsString !== undefined && {
|
|
80
|
-
RecordIdentifierValueAsString: input.RecordIdentifierValueAsString,
|
|
81
|
-
}),
|
|
82
|
-
...(input.FeatureNames !== undefined && { FeatureName: (input.FeatureNames || []).map((_entry) => _entry) }),
|
|
83
|
-
};
|
|
57
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
58
|
+
const query = map({
|
|
59
|
+
RecordIdentifierValueAsString: [, input.RecordIdentifierValueAsString],
|
|
60
|
+
FeatureName: [
|
|
61
|
+
() => input.FeatureNames !== void 0,
|
|
62
|
+
() => (input.FeatureNames || []).map((_entry) => _entry),
|
|
63
|
+
],
|
|
64
|
+
});
|
|
84
65
|
let body;
|
|
85
66
|
return new protocol_http_1.HttpRequest({
|
|
86
67
|
protocol,
|
|
@@ -100,16 +81,7 @@ const serializeAws_restJson1PutRecordCommand = async (input, context) => {
|
|
|
100
81
|
"content-type": "application/json",
|
|
101
82
|
};
|
|
102
83
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/FeatureGroup/{FeatureGroupName}";
|
|
103
|
-
|
|
104
|
-
const labelValue = input.FeatureGroupName;
|
|
105
|
-
if (labelValue.length <= 0) {
|
|
106
|
-
throw new Error("Empty value provided for input HTTP label: FeatureGroupName.");
|
|
107
|
-
}
|
|
108
|
-
resolvedPath = resolvedPath.replace("{FeatureGroupName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
throw new Error("No value provided for input HTTP label: FeatureGroupName.");
|
|
112
|
-
}
|
|
84
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
113
85
|
let body;
|
|
114
86
|
body = JSON.stringify({
|
|
115
87
|
...(input.Record != null && { Record: serializeAws_restJson1Record(input.Record, context) }),
|
|
@@ -129,23 +101,20 @@ const deserializeAws_restJson1BatchGetRecordCommand = async (output, context) =>
|
|
|
129
101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
130
102
|
return deserializeAws_restJson1BatchGetRecordCommandError(output, context);
|
|
131
103
|
}
|
|
132
|
-
const contents = {
|
|
104
|
+
const contents = map({
|
|
133
105
|
$metadata: deserializeMetadata(output),
|
|
134
|
-
|
|
135
|
-
Records: undefined,
|
|
136
|
-
UnprocessedIdentifiers: undefined,
|
|
137
|
-
};
|
|
106
|
+
});
|
|
138
107
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
139
|
-
if (data.Errors
|
|
108
|
+
if (data.Errors != null) {
|
|
140
109
|
contents.Errors = deserializeAws_restJson1BatchGetRecordErrors(data.Errors, context);
|
|
141
110
|
}
|
|
142
|
-
if (data.Records
|
|
111
|
+
if (data.Records != null) {
|
|
143
112
|
contents.Records = deserializeAws_restJson1BatchGetRecordResultDetails(data.Records, context);
|
|
144
113
|
}
|
|
145
|
-
if (data.UnprocessedIdentifiers
|
|
114
|
+
if (data.UnprocessedIdentifiers != null) {
|
|
146
115
|
contents.UnprocessedIdentifiers = deserializeAws_restJson1UnprocessedIdentifiers(data.UnprocessedIdentifiers, context);
|
|
147
116
|
}
|
|
148
|
-
return
|
|
117
|
+
return contents;
|
|
149
118
|
};
|
|
150
119
|
exports.deserializeAws_restJson1BatchGetRecordCommand = deserializeAws_restJson1BatchGetRecordCommand;
|
|
151
120
|
const deserializeAws_restJson1BatchGetRecordCommandError = async (output, context) => {
|
|
@@ -153,7 +122,6 @@ const deserializeAws_restJson1BatchGetRecordCommandError = async (output, contex
|
|
|
153
122
|
...output,
|
|
154
123
|
body: await parseBody(output.body, context),
|
|
155
124
|
};
|
|
156
|
-
let response;
|
|
157
125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
158
126
|
switch (errorCode) {
|
|
159
127
|
case "AccessForbidden":
|
|
@@ -170,25 +138,23 @@ const deserializeAws_restJson1BatchGetRecordCommandError = async (output, contex
|
|
|
170
138
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
171
139
|
default:
|
|
172
140
|
const parsedBody = parsedOutput.body;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
$metadata,
|
|
141
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
142
|
+
output,
|
|
143
|
+
parsedBody,
|
|
144
|
+
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
145
|
+
errorCode,
|
|
179
146
|
});
|
|
180
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
181
147
|
}
|
|
182
148
|
};
|
|
183
149
|
const deserializeAws_restJson1DeleteRecordCommand = async (output, context) => {
|
|
184
150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
185
151
|
return deserializeAws_restJson1DeleteRecordCommandError(output, context);
|
|
186
152
|
}
|
|
187
|
-
const contents = {
|
|
153
|
+
const contents = map({
|
|
188
154
|
$metadata: deserializeMetadata(output),
|
|
189
|
-
};
|
|
155
|
+
});
|
|
190
156
|
await collectBody(output.body, context);
|
|
191
|
-
return
|
|
157
|
+
return contents;
|
|
192
158
|
};
|
|
193
159
|
exports.deserializeAws_restJson1DeleteRecordCommand = deserializeAws_restJson1DeleteRecordCommand;
|
|
194
160
|
const deserializeAws_restJson1DeleteRecordCommandError = async (output, context) => {
|
|
@@ -196,7 +162,6 @@ const deserializeAws_restJson1DeleteRecordCommandError = async (output, context)
|
|
|
196
162
|
...output,
|
|
197
163
|
body: await parseBody(output.body, context),
|
|
198
164
|
};
|
|
199
|
-
let response;
|
|
200
165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
201
166
|
switch (errorCode) {
|
|
202
167
|
case "AccessForbidden":
|
|
@@ -213,29 +178,26 @@ const deserializeAws_restJson1DeleteRecordCommandError = async (output, context)
|
|
|
213
178
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
214
179
|
default:
|
|
215
180
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
$metadata,
|
|
181
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
182
|
+
output,
|
|
183
|
+
parsedBody,
|
|
184
|
+
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
185
|
+
errorCode,
|
|
222
186
|
});
|
|
223
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
224
187
|
}
|
|
225
188
|
};
|
|
226
189
|
const deserializeAws_restJson1GetRecordCommand = async (output, context) => {
|
|
227
190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
191
|
return deserializeAws_restJson1GetRecordCommandError(output, context);
|
|
229
192
|
}
|
|
230
|
-
const contents = {
|
|
193
|
+
const contents = map({
|
|
231
194
|
$metadata: deserializeMetadata(output),
|
|
232
|
-
|
|
233
|
-
};
|
|
195
|
+
});
|
|
234
196
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
235
|
-
if (data.Record
|
|
197
|
+
if (data.Record != null) {
|
|
236
198
|
contents.Record = deserializeAws_restJson1Record(data.Record, context);
|
|
237
199
|
}
|
|
238
|
-
return
|
|
200
|
+
return contents;
|
|
239
201
|
};
|
|
240
202
|
exports.deserializeAws_restJson1GetRecordCommand = deserializeAws_restJson1GetRecordCommand;
|
|
241
203
|
const deserializeAws_restJson1GetRecordCommandError = async (output, context) => {
|
|
@@ -243,7 +205,6 @@ const deserializeAws_restJson1GetRecordCommandError = async (output, context) =>
|
|
|
243
205
|
...output,
|
|
244
206
|
body: await parseBody(output.body, context),
|
|
245
207
|
};
|
|
246
|
-
let response;
|
|
247
208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
248
209
|
switch (errorCode) {
|
|
249
210
|
case "AccessForbidden":
|
|
@@ -263,25 +224,23 @@ const deserializeAws_restJson1GetRecordCommandError = async (output, context) =>
|
|
|
263
224
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
264
225
|
default:
|
|
265
226
|
const parsedBody = parsedOutput.body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
$metadata,
|
|
227
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
228
|
+
output,
|
|
229
|
+
parsedBody,
|
|
230
|
+
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
231
|
+
errorCode,
|
|
272
232
|
});
|
|
273
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
274
233
|
}
|
|
275
234
|
};
|
|
276
235
|
const deserializeAws_restJson1PutRecordCommand = async (output, context) => {
|
|
277
236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
237
|
return deserializeAws_restJson1PutRecordCommandError(output, context);
|
|
279
238
|
}
|
|
280
|
-
const contents = {
|
|
239
|
+
const contents = map({
|
|
281
240
|
$metadata: deserializeMetadata(output),
|
|
282
|
-
};
|
|
241
|
+
});
|
|
283
242
|
await collectBody(output.body, context);
|
|
284
|
-
return
|
|
243
|
+
return contents;
|
|
285
244
|
};
|
|
286
245
|
exports.deserializeAws_restJson1PutRecordCommand = deserializeAws_restJson1PutRecordCommand;
|
|
287
246
|
const deserializeAws_restJson1PutRecordCommandError = async (output, context) => {
|
|
@@ -289,7 +248,6 @@ const deserializeAws_restJson1PutRecordCommandError = async (output, context) =>
|
|
|
289
248
|
...output,
|
|
290
249
|
body: await parseBody(output.body, context),
|
|
291
250
|
};
|
|
292
|
-
let response;
|
|
293
251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
252
|
switch (errorCode) {
|
|
295
253
|
case "AccessForbidden":
|
|
@@ -306,20 +264,19 @@ const deserializeAws_restJson1PutRecordCommandError = async (output, context) =>
|
|
|
306
264
|
throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
|
|
307
265
|
default:
|
|
308
266
|
const parsedBody = parsedOutput.body;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
$metadata,
|
|
267
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
268
|
+
output,
|
|
269
|
+
parsedBody,
|
|
270
|
+
exceptionCtor: SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException,
|
|
271
|
+
errorCode,
|
|
315
272
|
});
|
|
316
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
317
273
|
}
|
|
318
274
|
};
|
|
275
|
+
const map = smithy_client_1.map;
|
|
319
276
|
const deserializeAws_restJson1AccessForbiddenResponse = async (parsedOutput, context) => {
|
|
320
|
-
const contents = {};
|
|
277
|
+
const contents = map({});
|
|
321
278
|
const data = parsedOutput.body;
|
|
322
|
-
if (data.Message
|
|
279
|
+
if (data.Message != null) {
|
|
323
280
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
324
281
|
}
|
|
325
282
|
const exception = new models_0_1.AccessForbidden({
|
|
@@ -329,9 +286,9 @@ const deserializeAws_restJson1AccessForbiddenResponse = async (parsedOutput, con
|
|
|
329
286
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
330
287
|
};
|
|
331
288
|
const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
|
|
332
|
-
const contents = {};
|
|
289
|
+
const contents = map({});
|
|
333
290
|
const data = parsedOutput.body;
|
|
334
|
-
if (data.Message
|
|
291
|
+
if (data.Message != null) {
|
|
335
292
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
336
293
|
}
|
|
337
294
|
const exception = new models_0_1.InternalFailure({
|
|
@@ -341,9 +298,9 @@ const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, con
|
|
|
341
298
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
342
299
|
};
|
|
343
300
|
const deserializeAws_restJson1ResourceNotFoundResponse = async (parsedOutput, context) => {
|
|
344
|
-
const contents = {};
|
|
301
|
+
const contents = map({});
|
|
345
302
|
const data = parsedOutput.body;
|
|
346
|
-
if (data.Message
|
|
303
|
+
if (data.Message != null) {
|
|
347
304
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
348
305
|
}
|
|
349
306
|
const exception = new models_0_1.ResourceNotFound({
|
|
@@ -353,9 +310,9 @@ const deserializeAws_restJson1ResourceNotFoundResponse = async (parsedOutput, co
|
|
|
353
310
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
354
311
|
};
|
|
355
312
|
const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
|
|
356
|
-
const contents = {};
|
|
313
|
+
const contents = map({});
|
|
357
314
|
const data = parsedOutput.body;
|
|
358
|
-
if (data.Message
|
|
315
|
+
if (data.Message != null) {
|
|
359
316
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
360
317
|
}
|
|
361
318
|
const exception = new models_0_1.ServiceUnavailable({
|
|
@@ -365,9 +322,9 @@ const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput,
|
|
|
365
322
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
366
323
|
};
|
|
367
324
|
const deserializeAws_restJson1ValidationErrorResponse = async (parsedOutput, context) => {
|
|
368
|
-
const contents = {};
|
|
325
|
+
const contents = map({});
|
|
369
326
|
const data = parsedOutput.body;
|
|
370
|
-
if (data.Message
|
|
327
|
+
if (data.Message != null) {
|
|
371
328
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
372
329
|
}
|
|
373
330
|
const exception = new models_0_1.ValidationError({
|
|
@@ -391,9 +348,6 @@ const serializeAws_restJson1BatchGetRecordIdentifiers = (input, context) => {
|
|
|
391
348
|
return input
|
|
392
349
|
.filter((e) => e != null)
|
|
393
350
|
.map((entry) => {
|
|
394
|
-
if (entry === null) {
|
|
395
|
-
return null;
|
|
396
|
-
}
|
|
397
351
|
return serializeAws_restJson1BatchGetRecordIdentifier(entry, context);
|
|
398
352
|
});
|
|
399
353
|
};
|
|
@@ -401,9 +355,6 @@ const serializeAws_restJson1FeatureNames = (input, context) => {
|
|
|
401
355
|
return input
|
|
402
356
|
.filter((e) => e != null)
|
|
403
357
|
.map((entry) => {
|
|
404
|
-
if (entry === null) {
|
|
405
|
-
return null;
|
|
406
|
-
}
|
|
407
358
|
return entry;
|
|
408
359
|
});
|
|
409
360
|
};
|
|
@@ -417,9 +368,6 @@ const serializeAws_restJson1Record = (input, context) => {
|
|
|
417
368
|
return input
|
|
418
369
|
.filter((e) => e != null)
|
|
419
370
|
.map((entry) => {
|
|
420
|
-
if (entry === null) {
|
|
421
|
-
return null;
|
|
422
|
-
}
|
|
423
371
|
return serializeAws_restJson1FeatureValue(entry, context);
|
|
424
372
|
});
|
|
425
373
|
};
|
|
@@ -427,9 +375,6 @@ const serializeAws_restJson1RecordIdentifiers = (input, context) => {
|
|
|
427
375
|
return input
|
|
428
376
|
.filter((e) => e != null)
|
|
429
377
|
.map((entry) => {
|
|
430
|
-
if (entry === null) {
|
|
431
|
-
return null;
|
|
432
|
-
}
|
|
433
378
|
return entry;
|
|
434
379
|
});
|
|
435
380
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { BatchGetRecordRequestFilterSensitiveLog, BatchGetRecordResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1BatchGetRecordCommand, serializeAws_restJson1BatchGetRecordCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var BatchGetRecordCommand = (function (_super) {
|
|
7
7
|
__extends(BatchGetRecordCommand, _super);
|
|
@@ -20,8 +20,8 @@ var BatchGetRecordCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: BatchGetRecordRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetRecordResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteRecordRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteRecordCommand, serializeAws_restJson1DeleteRecordCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteRecordCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteRecordCommand, _super);
|
|
@@ -20,7 +20,7 @@ var DeleteRecordCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteRecordRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetRecordRequestFilterSensitiveLog, GetRecordResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetRecordCommand, serializeAws_restJson1GetRecordCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetRecordCommand = (function (_super) {
|
|
7
7
|
__extends(GetRecordCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetRecordCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetRecordRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetRecordResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { PutRecordRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1PutRecordCommand, serializeAws_restJson1PutRecordCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var PutRecordCommand = (function (_super) {
|
|
7
7
|
__extends(PutRecordCommand, _super);
|
|
@@ -20,7 +20,7 @@ var PutRecordCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: PutRecordRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|