@aws-sdk/client-sagemaker-featurestore-runtime 3.224.0 → 3.226.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +14 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +14 -0
- package/dist-types/SageMakerFeatureStoreRuntime.d.ts +1 -2
- package/dist-types/commands/DeleteRecordCommand.d.ts +1 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +17 -4
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/package.json +28 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.PutRecordRequestFilterSensitiveLog = exports.GetRecordResponseFilterSensitiveLog = exports.GetRecordRequestFilterSensitiveLog = exports.DeleteRecordRequestFilterSensitiveLog = exports.BatchGetRecordResponseFilterSensitiveLog = exports.BatchGetRecordResultDetailFilterSensitiveLog = exports.FeatureValueFilterSensitiveLog = exports.BatchGetRecordErrorFilterSensitiveLog = exports.BatchGetRecordRequestFilterSensitiveLog = exports.BatchGetRecordIdentifierFilterSensitiveLog = exports.ResourceNotFound = exports.TargetStore = 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) {
|
|
@@ -58,6 +58,11 @@ class ValidationError extends SageMakerFeatureStoreRuntimeServiceException_1.Sag
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
exports.ValidationError = ValidationError;
|
|
61
|
+
var TargetStore;
|
|
62
|
+
(function (TargetStore) {
|
|
63
|
+
TargetStore["OFFLINE_STORE"] = "OfflineStore";
|
|
64
|
+
TargetStore["ONLINE_STORE"] = "OnlineStore";
|
|
65
|
+
})(TargetStore = exports.TargetStore || (exports.TargetStore = {}));
|
|
61
66
|
class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
|
|
62
67
|
constructor(opts) {
|
|
63
68
|
super({
|
|
@@ -39,6 +39,10 @@ const serializeAws_restJson1DeleteRecordCommand = async (input, context) => {
|
|
|
39
39
|
(0, smithy_client_1.expectNonNull)(input.RecordIdentifierValueAsString, `RecordIdentifierValueAsString`),
|
|
40
40
|
],
|
|
41
41
|
EventTime: [, (0, smithy_client_1.expectNonNull)(input.EventTime, `EventTime`)],
|
|
42
|
+
TargetStores: [
|
|
43
|
+
() => input.TargetStores !== void 0,
|
|
44
|
+
() => (input.TargetStores || []).map((_entry) => _entry),
|
|
45
|
+
],
|
|
42
46
|
});
|
|
43
47
|
let body;
|
|
44
48
|
return new protocol_http_1.HttpRequest({
|
|
@@ -91,6 +95,9 @@ const serializeAws_restJson1PutRecordCommand = async (input, context) => {
|
|
|
91
95
|
let body;
|
|
92
96
|
body = JSON.stringify({
|
|
93
97
|
...(input.Record != null && { Record: serializeAws_restJson1Record(input.Record, context) }),
|
|
98
|
+
...(input.TargetStores != null && {
|
|
99
|
+
TargetStores: serializeAws_restJson1TargetStores(input.TargetStores, context),
|
|
100
|
+
}),
|
|
94
101
|
});
|
|
95
102
|
return new protocol_http_1.HttpRequest({
|
|
96
103
|
protocol,
|
|
@@ -384,6 +391,13 @@ const serializeAws_restJson1RecordIdentifiers = (input, context) => {
|
|
|
384
391
|
return entry;
|
|
385
392
|
});
|
|
386
393
|
};
|
|
394
|
+
const serializeAws_restJson1TargetStores = (input, context) => {
|
|
395
|
+
return input
|
|
396
|
+
.filter((e) => e != null)
|
|
397
|
+
.map((entry) => {
|
|
398
|
+
return entry;
|
|
399
|
+
});
|
|
400
|
+
};
|
|
387
401
|
const deserializeAws_restJson1BatchGetRecordError = (output, context) => {
|
|
388
402
|
return {
|
|
389
403
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
@@ -51,6 +51,11 @@ export class ValidationError extends __BaseException {
|
|
|
51
51
|
this.Message = opts.Message;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
export var TargetStore;
|
|
55
|
+
(function (TargetStore) {
|
|
56
|
+
TargetStore["OFFLINE_STORE"] = "OfflineStore";
|
|
57
|
+
TargetStore["ONLINE_STORE"] = "OnlineStore";
|
|
58
|
+
})(TargetStore || (TargetStore = {}));
|
|
54
59
|
export class ResourceNotFound extends __BaseException {
|
|
55
60
|
constructor(opts) {
|
|
56
61
|
super({
|
|
@@ -35,6 +35,10 @@ export const serializeAws_restJson1DeleteRecordCommand = async (input, context)
|
|
|
35
35
|
__expectNonNull(input.RecordIdentifierValueAsString, `RecordIdentifierValueAsString`),
|
|
36
36
|
],
|
|
37
37
|
EventTime: [, __expectNonNull(input.EventTime, `EventTime`)],
|
|
38
|
+
TargetStores: [
|
|
39
|
+
() => input.TargetStores !== void 0,
|
|
40
|
+
() => (input.TargetStores || []).map((_entry) => _entry),
|
|
41
|
+
],
|
|
38
42
|
});
|
|
39
43
|
let body;
|
|
40
44
|
return new __HttpRequest({
|
|
@@ -85,6 +89,9 @@ export const serializeAws_restJson1PutRecordCommand = async (input, context) =>
|
|
|
85
89
|
let body;
|
|
86
90
|
body = JSON.stringify({
|
|
87
91
|
...(input.Record != null && { Record: serializeAws_restJson1Record(input.Record, context) }),
|
|
92
|
+
...(input.TargetStores != null && {
|
|
93
|
+
TargetStores: serializeAws_restJson1TargetStores(input.TargetStores, context),
|
|
94
|
+
}),
|
|
88
95
|
});
|
|
89
96
|
return new __HttpRequest({
|
|
90
97
|
protocol,
|
|
@@ -373,6 +380,13 @@ const serializeAws_restJson1RecordIdentifiers = (input, context) => {
|
|
|
373
380
|
return entry;
|
|
374
381
|
});
|
|
375
382
|
};
|
|
383
|
+
const serializeAws_restJson1TargetStores = (input, context) => {
|
|
384
|
+
return input
|
|
385
|
+
.filter((e) => e != null)
|
|
386
|
+
.map((entry) => {
|
|
387
|
+
return entry;
|
|
388
|
+
});
|
|
389
|
+
};
|
|
376
390
|
const deserializeAws_restJson1BatchGetRecordError = (output, context) => {
|
|
377
391
|
return {
|
|
378
392
|
ErrorCode: __expectString(output.ErrorCode),
|
|
@@ -41,8 +41,7 @@ export declare class SageMakerFeatureStoreRuntime extends SageMakerFeatureStoreR
|
|
|
41
41
|
batchGetRecord(args: BatchGetRecordCommandInput, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
|
|
42
42
|
batchGetRecord(args: BatchGetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
|
|
43
43
|
/**
|
|
44
|
-
* <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>.
|
|
45
|
-
* up in the <code>OfflineStore</code> when the <code>DeleteRecord</code> API is called. This
|
|
44
|
+
* <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>. When the <code>DeleteRecord</code> API is called a new record will be added to the <code>OfflineStore</code> and the <code>Record</code> will be removed from the <code>OnlineStore</code>. This
|
|
46
45
|
* record will have a value of <code>True</code> in the <code>is_deleted</code> column.</p>
|
|
47
46
|
*/
|
|
48
47
|
deleteRecord(args: DeleteRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRecordCommandOutput>;
|
|
@@ -8,8 +8,7 @@ export interface DeleteRecordCommandInput extends DeleteRecordRequest {
|
|
|
8
8
|
export interface DeleteRecordCommandOutput extends __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>.
|
|
12
|
-
* up in the <code>OfflineStore</code> when the <code>DeleteRecord</code> API is called. This
|
|
11
|
+
* <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code>. When the <code>DeleteRecord</code> API is called a new record will be added to the <code>OfflineStore</code> and the <code>Record</code> will be removed from the <code>OnlineStore</code>. This
|
|
13
12
|
* record will have a value of <code>True</code> in the <code>is_deleted</code> column.</p>
|
|
14
13
|
* @example
|
|
15
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -51,7 +51,8 @@ export interface BatchGetRecordError {
|
|
|
51
51
|
*/
|
|
52
52
|
RecordIdentifierValueAsString: string | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* <p>The error code of an error that has occured when attempting to retrieve a batch of
|
|
54
|
+
* <p>The error code of an error that has occured when attempting to retrieve a batch of
|
|
55
|
+
* Records. For more information on errors, see <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_GetRecord.html#API_feature_store_GetRecord_Errors">Errors</a>.</p>
|
|
55
56
|
*/
|
|
56
57
|
ErrorCode: string | undefined;
|
|
57
58
|
/**
|
|
@@ -96,7 +97,7 @@ export interface BatchGetRecordResponse {
|
|
|
96
97
|
*/
|
|
97
98
|
Records: BatchGetRecordResultDetail[] | undefined;
|
|
98
99
|
/**
|
|
99
|
-
* <p>A list of errors that have
|
|
100
|
+
* <p>A list of errors that have occurred when retrieving a batch of Records.</p>
|
|
100
101
|
*/
|
|
101
102
|
Errors: BatchGetRecordError[] | undefined;
|
|
102
103
|
/**
|
|
@@ -107,7 +108,7 @@ export interface BatchGetRecordResponse {
|
|
|
107
108
|
}
|
|
108
109
|
/**
|
|
109
110
|
* <p>An internal failure occurred. Try your request again. If the problem
|
|
110
|
-
*
|
|
111
|
+
* persists, contact Amazon Web Services customer support.</p>
|
|
111
112
|
*/
|
|
112
113
|
export declare class InternalFailure extends __BaseException {
|
|
113
114
|
readonly name: "InternalFailure";
|
|
@@ -142,6 +143,10 @@ export declare class ValidationError extends __BaseException {
|
|
|
142
143
|
*/
|
|
143
144
|
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
144
145
|
}
|
|
146
|
+
export declare enum TargetStore {
|
|
147
|
+
OFFLINE_STORE = "OfflineStore",
|
|
148
|
+
ONLINE_STORE = "OnlineStore"
|
|
149
|
+
}
|
|
145
150
|
export interface DeleteRecordRequest {
|
|
146
151
|
/**
|
|
147
152
|
* <p>The name of the feature group to delete the record from. </p>
|
|
@@ -157,10 +162,14 @@ export interface DeleteRecordRequest {
|
|
|
157
162
|
* used to query data at a certain point in time.</p>
|
|
158
163
|
*/
|
|
159
164
|
EventTime: string | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* <p>A list of stores from which you're deleting the record. By default, Feature Store deletes the record from all of the stores that you're using for the <code>FeatureGroup</code>.</p>
|
|
167
|
+
*/
|
|
168
|
+
TargetStores?: (TargetStore | string)[];
|
|
160
169
|
}
|
|
161
170
|
export interface GetRecordRequest {
|
|
162
171
|
/**
|
|
163
|
-
* <p>The name of the feature group
|
|
172
|
+
* <p>The name of the feature group from which you want to retrieve a record.</p>
|
|
164
173
|
*/
|
|
165
174
|
FeatureGroupName: string | undefined;
|
|
166
175
|
/**
|
|
@@ -213,6 +222,10 @@ export interface PutRecordRequest {
|
|
|
213
222
|
* </ul>
|
|
214
223
|
*/
|
|
215
224
|
Record: FeatureValue[] | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* <p>A list of stores to which you're adding the record. By default, Feature Store adds the record to all of the stores that you're using for the <code>FeatureGroup</code>.</p>
|
|
227
|
+
*/
|
|
228
|
+
TargetStores?: (TargetStore | string)[];
|
|
216
229
|
}
|
|
217
230
|
/**
|
|
218
231
|
* @internal
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -52,10 +52,15 @@ export declare class ValidationError extends __BaseException {
|
|
|
52
52
|
Message?: string;
|
|
53
53
|
constructor(opts: __ExceptionOptionType<ValidationError, __BaseException>);
|
|
54
54
|
}
|
|
55
|
+
export declare enum TargetStore {
|
|
56
|
+
OFFLINE_STORE = "OfflineStore",
|
|
57
|
+
ONLINE_STORE = "OnlineStore",
|
|
58
|
+
}
|
|
55
59
|
export interface DeleteRecordRequest {
|
|
56
60
|
FeatureGroupName: string | undefined;
|
|
57
61
|
RecordIdentifierValueAsString: string | undefined;
|
|
58
62
|
EventTime: string | undefined;
|
|
63
|
+
TargetStores?: (TargetStore | string)[];
|
|
59
64
|
}
|
|
60
65
|
export interface GetRecordRequest {
|
|
61
66
|
FeatureGroupName: string | undefined;
|
|
@@ -74,6 +79,7 @@ export declare class ResourceNotFound extends __BaseException {
|
|
|
74
79
|
export interface PutRecordRequest {
|
|
75
80
|
FeatureGroupName: string | undefined;
|
|
76
81
|
Record: FeatureValue[] | undefined;
|
|
82
|
+
TargetStores?: (TargetStore | string)[];
|
|
77
83
|
}
|
|
78
84
|
export declare const BatchGetRecordIdentifierFilterSensitiveLog: (
|
|
79
85
|
obj: BatchGetRecordIdentifier
|
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.226.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",
|
|
@@ -19,36 +19,36 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.226.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.226.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.226.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.226.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.226.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.226.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.226.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.226.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.226.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.226.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.226.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.226.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.226.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.226.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.226.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.226.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.226.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.226.0",
|
|
42
|
+
"@aws-sdk/types": "3.226.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.226.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.226.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.226.0",
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.226.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.226.0",
|
|
52
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
53
53
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
54
54
|
"tslib": "^2.3.1"
|