@aws-sdk/client-sagemaker-featurestore-runtime 3.476.0 → 3.478.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.
|
@@ -1,113 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_PutRecordCommand = exports.de_GetRecordCommand = exports.de_DeleteRecordCommand = exports.de_BatchGetRecordCommand = exports.se_PutRecordCommand = exports.se_GetRecordCommand = exports.se_DeleteRecordCommand = exports.se_BatchGetRecordCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SageMakerFeatureStoreRuntimeServiceException_1 = require("../models/SageMakerFeatureStoreRuntimeServiceException");
|
|
8
8
|
const se_BatchGetRecordCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/BatchGetRecord");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
ExpirationTimeResponse: [],
|
|
17
17
|
Identifiers: (_) => (0, smithy_client_1._json)(_),
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hostname,
|
|
22
|
-
port,
|
|
23
|
-
method: "POST",
|
|
24
|
-
headers,
|
|
25
|
-
path: resolvedPath,
|
|
26
|
-
body,
|
|
27
|
-
});
|
|
19
|
+
b.m("POST").h(headers).b(body);
|
|
20
|
+
return b.build();
|
|
28
21
|
};
|
|
29
22
|
exports.se_BatchGetRecordCommand = se_BatchGetRecordCommand;
|
|
30
23
|
const se_DeleteRecordCommand = async (input, context) => {
|
|
31
|
-
const
|
|
24
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
32
25
|
const headers = {};
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
27
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
35
28
|
const query = (0, smithy_client_1.map)({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
],
|
|
40
|
-
EventTime: [, (0, smithy_client_1.expectNonNull)(input.EventTime, `EventTime`)],
|
|
41
|
-
TargetStores: [
|
|
42
|
-
() => input.TargetStores !== void 0,
|
|
43
|
-
() => (input.TargetStores || []).map((_entry) => _entry),
|
|
44
|
-
],
|
|
45
|
-
DeletionMode: [, input.DeletionMode],
|
|
29
|
+
[_RIVAS]: [, (0, smithy_client_1.expectNonNull)(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
30
|
+
[_ET]: [, (0, smithy_client_1.expectNonNull)(input[_ET], `EventTime`)],
|
|
31
|
+
[_TS]: [() => input.TargetStores !== void 0, () => (input[_TS] || []).map((_entry) => _entry)],
|
|
32
|
+
[_DM]: [, input[_DM]],
|
|
46
33
|
});
|
|
47
34
|
let body;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
hostname,
|
|
51
|
-
port,
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
headers,
|
|
54
|
-
path: resolvedPath,
|
|
55
|
-
query,
|
|
56
|
-
body,
|
|
57
|
-
});
|
|
35
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
36
|
+
return b.build();
|
|
58
37
|
};
|
|
59
38
|
exports.se_DeleteRecordCommand = se_DeleteRecordCommand;
|
|
60
39
|
const se_GetRecordCommand = async (input, context) => {
|
|
61
|
-
const
|
|
40
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
62
41
|
const headers = {};
|
|
63
|
-
|
|
64
|
-
|
|
42
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
43
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
65
44
|
const query = (0, smithy_client_1.map)({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
FeatureName: [
|
|
71
|
-
() => input.FeatureNames !== void 0,
|
|
72
|
-
() => (input.FeatureNames || []).map((_entry) => _entry),
|
|
73
|
-
],
|
|
74
|
-
ExpirationTimeResponse: [, input.ExpirationTimeResponse],
|
|
45
|
+
[_RIVAS]: [, (0, smithy_client_1.expectNonNull)(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
46
|
+
[_FNe]: [() => input.FeatureNames !== void 0, () => (input[_FN] || []).map((_entry) => _entry)],
|
|
47
|
+
[_ETR]: [, input[_ETR]],
|
|
75
48
|
});
|
|
76
49
|
let body;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
hostname,
|
|
80
|
-
port,
|
|
81
|
-
method: "GET",
|
|
82
|
-
headers,
|
|
83
|
-
path: resolvedPath,
|
|
84
|
-
query,
|
|
85
|
-
body,
|
|
86
|
-
});
|
|
50
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
51
|
+
return b.build();
|
|
87
52
|
};
|
|
88
53
|
exports.se_GetRecordCommand = se_GetRecordCommand;
|
|
89
54
|
const se_PutRecordCommand = async (input, context) => {
|
|
90
|
-
const
|
|
55
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
56
|
const headers = {
|
|
92
57
|
"content-type": "application/json",
|
|
93
58
|
};
|
|
94
|
-
|
|
95
|
-
|
|
59
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
60
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
96
61
|
let body;
|
|
97
62
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
63
|
Record: (_) => (0, smithy_client_1._json)(_),
|
|
99
64
|
TargetStores: (_) => (0, smithy_client_1._json)(_),
|
|
100
65
|
TtlDuration: (_) => (0, smithy_client_1._json)(_),
|
|
101
66
|
}));
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
hostname,
|
|
105
|
-
port,
|
|
106
|
-
method: "PUT",
|
|
107
|
-
headers,
|
|
108
|
-
path: resolvedPath,
|
|
109
|
-
body,
|
|
110
|
-
});
|
|
67
|
+
b.m("PUT").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
111
69
|
};
|
|
112
70
|
exports.se_PutRecordCommand = se_PutRecordCommand;
|
|
113
71
|
const de_BatchGetRecordCommand = async (output, context) => {
|
|
@@ -358,6 +316,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
358
316
|
value !== "" &&
|
|
359
317
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
360
318
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
319
|
+
const _DM = "DeletionMode";
|
|
320
|
+
const _ET = "EventTime";
|
|
321
|
+
const _ETR = "ExpirationTimeResponse";
|
|
322
|
+
const _FN = "FeatureNames";
|
|
323
|
+
const _FNe = "FeatureName";
|
|
324
|
+
const _RIVAS = "RecordIdentifierValueAsString";
|
|
325
|
+
const _TS = "TargetStores";
|
|
361
326
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
362
327
|
if (encoded.length) {
|
|
363
328
|
return JSON.parse(encoded);
|
|
@@ -1,107 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { AccessForbidden, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
4
4
|
import { SageMakerFeatureStoreRuntimeServiceException as __BaseException } from "../models/SageMakerFeatureStoreRuntimeServiceException";
|
|
5
5
|
export const se_BatchGetRecordCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/BatchGetRecord");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
ExpirationTimeResponse: [],
|
|
14
14
|
Identifiers: (_) => _json(_),
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "POST",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_DeleteRecordCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {};
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
23
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
31
24
|
const query = map({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
],
|
|
36
|
-
EventTime: [, __expectNonNull(input.EventTime, `EventTime`)],
|
|
37
|
-
TargetStores: [
|
|
38
|
-
() => input.TargetStores !== void 0,
|
|
39
|
-
() => (input.TargetStores || []).map((_entry) => _entry),
|
|
40
|
-
],
|
|
41
|
-
DeletionMode: [, input.DeletionMode],
|
|
25
|
+
[_RIVAS]: [, __expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
26
|
+
[_ET]: [, __expectNonNull(input[_ET], `EventTime`)],
|
|
27
|
+
[_TS]: [() => input.TargetStores !== void 0, () => (input[_TS] || []).map((_entry) => _entry)],
|
|
28
|
+
[_DM]: [, input[_DM]],
|
|
42
29
|
});
|
|
43
30
|
let body;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
hostname,
|
|
47
|
-
port,
|
|
48
|
-
method: "DELETE",
|
|
49
|
-
headers,
|
|
50
|
-
path: resolvedPath,
|
|
51
|
-
query,
|
|
52
|
-
body,
|
|
53
|
-
});
|
|
31
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
32
|
+
return b.build();
|
|
54
33
|
};
|
|
55
34
|
export const se_GetRecordCommand = async (input, context) => {
|
|
56
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
57
36
|
const headers = {};
|
|
58
|
-
|
|
59
|
-
|
|
37
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
38
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
60
39
|
const query = map({
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
],
|
|
65
|
-
FeatureName: [
|
|
66
|
-
() => input.FeatureNames !== void 0,
|
|
67
|
-
() => (input.FeatureNames || []).map((_entry) => _entry),
|
|
68
|
-
],
|
|
69
|
-
ExpirationTimeResponse: [, input.ExpirationTimeResponse],
|
|
40
|
+
[_RIVAS]: [, __expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
41
|
+
[_FNe]: [() => input.FeatureNames !== void 0, () => (input[_FN] || []).map((_entry) => _entry)],
|
|
42
|
+
[_ETR]: [, input[_ETR]],
|
|
70
43
|
});
|
|
71
44
|
let body;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
hostname,
|
|
75
|
-
port,
|
|
76
|
-
method: "GET",
|
|
77
|
-
headers,
|
|
78
|
-
path: resolvedPath,
|
|
79
|
-
query,
|
|
80
|
-
body,
|
|
81
|
-
});
|
|
45
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
46
|
+
return b.build();
|
|
82
47
|
};
|
|
83
48
|
export const se_PutRecordCommand = async (input, context) => {
|
|
84
|
-
const
|
|
49
|
+
const b = rb(input, context);
|
|
85
50
|
const headers = {
|
|
86
51
|
"content-type": "application/json",
|
|
87
52
|
};
|
|
88
|
-
|
|
89
|
-
|
|
53
|
+
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
54
|
+
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
90
55
|
let body;
|
|
91
56
|
body = JSON.stringify(take(input, {
|
|
92
57
|
Record: (_) => _json(_),
|
|
93
58
|
TargetStores: (_) => _json(_),
|
|
94
59
|
TtlDuration: (_) => _json(_),
|
|
95
60
|
}));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
hostname,
|
|
99
|
-
port,
|
|
100
|
-
method: "PUT",
|
|
101
|
-
headers,
|
|
102
|
-
path: resolvedPath,
|
|
103
|
-
body,
|
|
104
|
-
});
|
|
61
|
+
b.m("PUT").h(headers).b(body);
|
|
62
|
+
return b.build();
|
|
105
63
|
};
|
|
106
64
|
export const de_BatchGetRecordCommand = async (output, context) => {
|
|
107
65
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -347,6 +305,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
347
305
|
value !== "" &&
|
|
348
306
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
349
307
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
308
|
+
const _DM = "DeletionMode";
|
|
309
|
+
const _ET = "EventTime";
|
|
310
|
+
const _ETR = "ExpirationTimeResponse";
|
|
311
|
+
const _FN = "FeatureNames";
|
|
312
|
+
const _FNe = "FeatureName";
|
|
313
|
+
const _RIVAS = "RecordIdentifierValueAsString";
|
|
314
|
+
const _TS = "TargetStores";
|
|
350
315
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
351
316
|
if (encoded.length) {
|
|
352
317
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-featurestore-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.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",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|