@aws-sdk/client-sagemaker-featurestore-runtime 3.360.0 → 3.362.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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceNotFound = exports.TargetStore = exports.DeletionMode = exports.ValidationError = exports.ServiceUnavailable = exports.InternalFailure = exports.AccessForbidden = void 0;
3
+ exports.TtlDurationUnit = exports.ResourceNotFound = exports.TargetStore = exports.DeletionMode = exports.ValidationError = exports.ServiceUnavailable = exports.InternalFailure = exports.ExpirationTimeResponse = exports.AccessForbidden = void 0;
4
4
  const SageMakerFeatureStoreRuntimeServiceException_1 = require("./SageMakerFeatureStoreRuntimeServiceException");
5
5
  class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
6
6
  constructor(opts) {
@@ -16,6 +16,10 @@ class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.Sag
16
16
  }
17
17
  }
18
18
  exports.AccessForbidden = AccessForbidden;
19
+ exports.ExpirationTimeResponse = {
20
+ DISABLED: "Disabled",
21
+ ENABLED: "Enabled",
22
+ };
19
23
  class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
20
24
  constructor(opts) {
21
25
  super({
@@ -80,3 +84,10 @@ class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.Sa
80
84
  }
81
85
  }
82
86
  exports.ResourceNotFound = ResourceNotFound;
87
+ exports.TtlDurationUnit = {
88
+ DAYS: "Days",
89
+ HOURS: "Hours",
90
+ MINUTES: "Minutes",
91
+ SECONDS: "Seconds",
92
+ WEEKS: "Weeks",
93
+ };
@@ -13,6 +13,7 @@ const se_BatchGetRecordCommand = async (input, context) => {
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord";
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ ExpirationTimeResponse: [],
16
17
  Identifiers: (_) => (0, smithy_client_1._json)(_),
17
18
  }));
18
19
  return new protocol_http_1.HttpRequest({
@@ -70,6 +71,7 @@ const se_GetRecordCommand = async (input, context) => {
70
71
  () => input.FeatureNames !== void 0,
71
72
  () => (input.FeatureNames || []).map((_entry) => _entry),
72
73
  ],
74
+ ExpirationTimeResponse: [, input.ExpirationTimeResponse],
73
75
  });
74
76
  let body;
75
77
  return new protocol_http_1.HttpRequest({
@@ -95,6 +97,7 @@ const se_PutRecordCommand = async (input, context) => {
95
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
96
98
  Record: (_) => (0, smithy_client_1._json)(_),
97
99
  TargetStores: (_) => (0, smithy_client_1._json)(_),
100
+ TtlDuration: (_) => (0, smithy_client_1._json)(_),
98
101
  }));
99
102
  return new protocol_http_1.HttpRequest({
100
103
  protocol,
@@ -200,6 +203,7 @@ const de_GetRecordCommand = async (output, context) => {
200
203
  });
201
204
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
202
205
  const doc = (0, smithy_client_1.take)(data, {
206
+ ExpiresAt: smithy_client_1.expectString,
203
207
  Record: smithy_client_1._json,
204
208
  });
205
209
  Object.assign(contents, doc);
@@ -12,6 +12,10 @@ export class AccessForbidden extends __BaseException {
12
12
  this.Message = opts.Message;
13
13
  }
14
14
  }
15
+ export const ExpirationTimeResponse = {
16
+ DISABLED: "Disabled",
17
+ ENABLED: "Enabled",
18
+ };
15
19
  export class InternalFailure extends __BaseException {
16
20
  constructor(opts) {
17
21
  super({
@@ -72,3 +76,10 @@ export class ResourceNotFound extends __BaseException {
72
76
  this.Message = opts.Message;
73
77
  }
74
78
  }
79
+ export const TtlDurationUnit = {
80
+ DAYS: "Days",
81
+ HOURS: "Hours",
82
+ MINUTES: "Minutes",
83
+ SECONDS: "Seconds",
84
+ WEEKS: "Weeks",
85
+ };
@@ -10,6 +10,7 @@ export const se_BatchGetRecordCommand = async (input, context) => {
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetRecord";
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
+ ExpirationTimeResponse: [],
13
14
  Identifiers: (_) => _json(_),
14
15
  }));
15
16
  return new __HttpRequest({
@@ -65,6 +66,7 @@ export const se_GetRecordCommand = async (input, context) => {
65
66
  () => input.FeatureNames !== void 0,
66
67
  () => (input.FeatureNames || []).map((_entry) => _entry),
67
68
  ],
69
+ ExpirationTimeResponse: [, input.ExpirationTimeResponse],
68
70
  });
69
71
  let body;
70
72
  return new __HttpRequest({
@@ -89,6 +91,7 @@ export const se_PutRecordCommand = async (input, context) => {
89
91
  body = JSON.stringify(take(input, {
90
92
  Record: (_) => _json(_),
91
93
  TargetStores: (_) => _json(_),
94
+ TtlDuration: (_) => _json(_),
92
95
  }));
93
96
  return new __HttpRequest({
94
97
  protocol,
@@ -191,6 +194,7 @@ export const de_GetRecordCommand = async (output, context) => {
191
194
  });
192
195
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
193
196
  const doc = take(data, {
197
+ ExpiresAt: __expectString,
194
198
  Record: _json,
195
199
  });
196
200
  Object.assign(contents, doc);
@@ -42,6 +42,7 @@ export interface BatchGetRecordCommandOutput extends BatchGetRecordResponse, __M
42
42
  * ],
43
43
  * },
44
44
  * ],
45
+ * ExpirationTimeResponse: "Enabled" || "Disabled",
45
46
  * };
46
47
  * const command = new BatchGetRecordCommand(input);
47
48
  * const response = await client.send(command);
@@ -56,6 +57,7 @@ export interface BatchGetRecordCommandOutput extends BatchGetRecordResponse, __M
56
57
  * // ValueAsString: "STRING_VALUE", // required
57
58
  * // },
58
59
  * // ],
60
+ * // ExpiresAt: "STRING_VALUE",
59
61
  * // },
60
62
  * // ],
61
63
  * // Errors: [ // BatchGetRecordErrors // required
@@ -24,10 +24,10 @@ export interface DeleteRecordCommandOutput extends __MetadataBearer {
24
24
  /**
25
25
  * @public
26
26
  * <p>Deletes a <code>Record</code> from a <code>FeatureGroup</code> in the
27
- * <code>OnlineStore</code>. Feature Store supports both <code>SOFT_DELETE</code> and
28
- * <code>HARD_DELETE</code>. For <code>SOFT_DELETE</code> (default), feature columns are
27
+ * <code>OnlineStore</code>. Feature Store supports both <code>SoftDelete</code> and
28
+ * <code>HardDelete</code>. For <code>SoftDelete</code> (default), feature columns are
29
29
  * set to <code>null</code> and the record is no longer retrievable by <code>GetRecord</code>
30
- * or <code>BatchGetRecord</code>. For<code> HARD_DELETE</code>, the complete
30
+ * or <code>BatchGetRecord</code>. For <code>HardDelete</code>, the complete
31
31
  * <code>Record</code> is removed from the <code>OnlineStore</code>. In both cases, Feature
32
32
  * Store appends the deleted record marker to the <code>OfflineStore</code> with feature
33
33
  * values set to <code>null</code>, <code>is_deleted</code> value set to <code>True</code>,
@@ -38,13 +38,13 @@ export interface DeleteRecordCommandOutput extends __MetadataBearer {
38
38
  * deletion does not occur:</p>
39
39
  * <ul>
40
40
  * <li>
41
- * <p>For <code>SOFT_DELETE</code>, the existing (undeleted) record remains in the
41
+ * <p>For <code>SoftDelete</code>, the existing (undeleted) record remains in the
42
42
  * <code>OnlineStore</code>, though the delete record marker is still written to the
43
43
  * <code>OfflineStore</code>.</p>
44
44
  * </li>
45
45
  * <li>
46
46
  * <p>
47
- * <code>HARD_DELETE</code> returns <code>EventTime</code>: <code>400
47
+ * <code>HardDelete</code> returns <code>EventTime</code>: <code>400
48
48
  * ValidationException</code> to indicate that the delete operation failed. No delete
49
49
  * record marker is written to the <code>OfflineStore</code>.</p>
50
50
  * </li>
@@ -38,6 +38,7 @@ export interface GetRecordCommandOutput extends GetRecordResponse, __MetadataBea
38
38
  * FeatureNames: [ // FeatureNames
39
39
  * "STRING_VALUE",
40
40
  * ],
41
+ * ExpirationTimeResponse: "Enabled" || "Disabled",
41
42
  * };
42
43
  * const command = new GetRecordCommand(input);
43
44
  * const response = await client.send(command);
@@ -48,6 +49,7 @@ export interface GetRecordCommandOutput extends GetRecordResponse, __MetadataBea
48
49
  * // ValueAsString: "STRING_VALUE", // required
49
50
  * // },
50
51
  * // ],
52
+ * // ExpiresAt: "STRING_VALUE",
51
53
  * // };
52
54
  *
53
55
  * ```
@@ -45,6 +45,10 @@ export interface PutRecordCommandOutput extends __MetadataBearer {
45
45
  * TargetStores: [ // TargetStores
46
46
  * "OnlineStore" || "OfflineStore",
47
47
  * ],
48
+ * TtlDuration: { // TtlDuration
49
+ * Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
50
+ * Value: Number("int"), // required
51
+ * },
48
52
  * };
49
53
  * const command = new PutRecordCommand(input);
50
54
  * const response = await client.send(command);
@@ -13,6 +13,18 @@ export declare class AccessForbidden extends __BaseException {
13
13
  */
14
14
  constructor(opts: __ExceptionOptionType<AccessForbidden, __BaseException>);
15
15
  }
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const ExpirationTimeResponse: {
21
+ readonly DISABLED: "Disabled";
22
+ readonly ENABLED: "Enabled";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type ExpirationTimeResponse = (typeof ExpirationTimeResponse)[keyof typeof ExpirationTimeResponse];
16
28
  /**
17
29
  * @public
18
30
  * <p>The identifier that identifies the batch of Records you are retrieving in a
@@ -43,6 +55,13 @@ export interface BatchGetRecordRequest {
43
55
  * retrieved in batch.</p>
44
56
  */
45
57
  Identifiers: BatchGetRecordIdentifier[] | undefined;
58
+ /**
59
+ * <p>Parameter to request <code>ExpiresAt</code> in response. If <code>Enabled</code>,
60
+ * <code>BatchGetRecord</code> will return the value of <code>ExpiresAt</code>, if it is
61
+ * not null. If <code>Disabled</code> and null, <code>BatchGetRecord</code> will return
62
+ * null.</p>
63
+ */
64
+ ExpirationTimeResponse?: ExpirationTimeResponse | string;
46
65
  }
47
66
  /**
48
67
  * @public
@@ -102,6 +121,10 @@ export interface BatchGetRecordResultDetail {
102
121
  * <p>The <code>Record</code> retrieved.</p>
103
122
  */
104
123
  Record: FeatureValue[] | undefined;
124
+ /**
125
+ * <p>The <code>ExpiresAt</code> ISO string of the requested record.</p>
126
+ */
127
+ ExpiresAt?: string;
105
128
  }
106
129
  /**
107
130
  * @public
@@ -233,6 +256,13 @@ export interface GetRecordRequest {
233
256
  * the Features are returned.</p>
234
257
  */
235
258
  FeatureNames?: string[];
259
+ /**
260
+ * <p>Parameter to request <code>ExpiresAt</code> in response. If <code>Enabled</code>,
261
+ * <code>BatchGetRecord</code> will return the value of <code>ExpiresAt</code>, if it is
262
+ * not null. If <code>Disabled</code> and null, <code>BatchGetRecord</code> will return
263
+ * null.</p>
264
+ */
265
+ ExpirationTimeResponse?: ExpirationTimeResponse | string;
236
266
  }
237
267
  /**
238
268
  * @public
@@ -242,6 +272,10 @@ export interface GetRecordResponse {
242
272
  * <p>The record you requested. A list of <code>FeatureValues</code>.</p>
243
273
  */
244
274
  Record?: FeatureValue[];
275
+ /**
276
+ * <p>The <code>ExpiresAt</code> ISO string of the requested record.</p>
277
+ */
278
+ ExpiresAt?: string;
245
279
  }
246
280
  /**
247
281
  * @public
@@ -256,6 +290,39 @@ export declare class ResourceNotFound extends __BaseException {
256
290
  */
257
291
  constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
258
292
  }
293
+ /**
294
+ * @public
295
+ * @enum
296
+ */
297
+ export declare const TtlDurationUnit: {
298
+ readonly DAYS: "Days";
299
+ readonly HOURS: "Hours";
300
+ readonly MINUTES: "Minutes";
301
+ readonly SECONDS: "Seconds";
302
+ readonly WEEKS: "Weeks";
303
+ };
304
+ /**
305
+ * @public
306
+ */
307
+ export type TtlDurationUnit = (typeof TtlDurationUnit)[keyof typeof TtlDurationUnit];
308
+ /**
309
+ * @public
310
+ * <p>Time to live duration, where the record is hard deleted after the expiration time is
311
+ * reached; <code>ExpiresAt</code> = <code>EventTime</code> + <code>TtlDuration</code>. For
312
+ * information on HardDelete, see the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_DeleteRecord.html">DeleteRecord</a> API in the Amazon SageMaker API Reference guide.</p>
313
+ */
314
+ export interface TtlDuration {
315
+ /**
316
+ * <p>
317
+ * <code>TtlDuration</code> time unit.</p>
318
+ */
319
+ Unit: TtlDurationUnit | string | undefined;
320
+ /**
321
+ * <p>
322
+ * <code>TtlDuration</code> time value.</p>
323
+ */
324
+ Value: number | undefined;
325
+ }
259
326
  /**
260
327
  * @public
261
328
  */
@@ -285,4 +352,10 @@ export interface PutRecordRequest {
285
352
  * record to all of the stores that you're using for the <code>FeatureGroup</code>.</p>
286
353
  */
287
354
  TargetStores?: (TargetStore | string)[];
355
+ /**
356
+ * <p>Time to live duration, where the record is hard deleted after the expiration time is
357
+ * reached; <code>ExpiresAt</code> = <code>EventTime</code> + <code>TtlDuration</code>. For
358
+ * information on HardDelete, see the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_DeleteRecord.html">DeleteRecord</a> API in the Amazon SageMaker API Reference guide.</p>
359
+ */
360
+ TtlDuration?: TtlDuration;
288
361
  }
@@ -6,6 +6,12 @@ export declare class AccessForbidden extends __BaseException {
6
6
  Message?: string;
7
7
  constructor(opts: __ExceptionOptionType<AccessForbidden, __BaseException>);
8
8
  }
9
+ export declare const ExpirationTimeResponse: {
10
+ readonly DISABLED: "Disabled";
11
+ readonly ENABLED: "Enabled";
12
+ };
13
+ export type ExpirationTimeResponse =
14
+ (typeof ExpirationTimeResponse)[keyof typeof ExpirationTimeResponse];
9
15
  export interface BatchGetRecordIdentifier {
10
16
  FeatureGroupName: string | undefined;
11
17
  RecordIdentifiersValueAsString: string[] | undefined;
@@ -13,6 +19,7 @@ export interface BatchGetRecordIdentifier {
13
19
  }
14
20
  export interface BatchGetRecordRequest {
15
21
  Identifiers: BatchGetRecordIdentifier[] | undefined;
22
+ ExpirationTimeResponse?: ExpirationTimeResponse | string;
16
23
  }
17
24
  export interface BatchGetRecordError {
18
25
  FeatureGroupName: string | undefined;
@@ -28,6 +35,7 @@ export interface BatchGetRecordResultDetail {
28
35
  FeatureGroupName: string | undefined;
29
36
  RecordIdentifierValueAsString: string | undefined;
30
37
  Record: FeatureValue[] | undefined;
38
+ ExpiresAt?: string;
31
39
  }
32
40
  export interface BatchGetRecordResponse {
33
41
  Records: BatchGetRecordResultDetail[] | undefined;
@@ -73,9 +81,11 @@ export interface GetRecordRequest {
73
81
  FeatureGroupName: string | undefined;
74
82
  RecordIdentifierValueAsString: string | undefined;
75
83
  FeatureNames?: string[];
84
+ ExpirationTimeResponse?: ExpirationTimeResponse | string;
76
85
  }
77
86
  export interface GetRecordResponse {
78
87
  Record?: FeatureValue[];
88
+ ExpiresAt?: string;
79
89
  }
80
90
  export declare class ResourceNotFound extends __BaseException {
81
91
  readonly name: "ResourceNotFound";
@@ -83,8 +93,22 @@ export declare class ResourceNotFound extends __BaseException {
83
93
  Message?: string;
84
94
  constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
85
95
  }
96
+ export declare const TtlDurationUnit: {
97
+ readonly DAYS: "Days";
98
+ readonly HOURS: "Hours";
99
+ readonly MINUTES: "Minutes";
100
+ readonly SECONDS: "Seconds";
101
+ readonly WEEKS: "Weeks";
102
+ };
103
+ export type TtlDurationUnit =
104
+ (typeof TtlDurationUnit)[keyof typeof TtlDurationUnit];
105
+ export interface TtlDuration {
106
+ Unit: TtlDurationUnit | string | undefined;
107
+ Value: number | undefined;
108
+ }
86
109
  export interface PutRecordRequest {
87
110
  FeatureGroupName: string | undefined;
88
111
  Record: FeatureValue[] | undefined;
89
112
  TargetStores?: (TargetStore | string)[];
113
+ TtlDuration?: TtlDuration;
90
114
  }
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.360.0",
4
+ "version": "3.362.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.360.0",
24
+ "@aws-sdk/client-sts": "3.362.0",
25
25
  "@aws-sdk/config-resolver": "3.357.0",
26
- "@aws-sdk/credential-provider-node": "3.360.0",
26
+ "@aws-sdk/credential-provider-node": "3.362.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.357.0",
28
28
  "@aws-sdk/hash-node": "3.357.0",
29
29
  "@aws-sdk/invalid-dependency": "3.357.0",
@@ -32,7 +32,7 @@
32
32
  "@aws-sdk/middleware-host-header": "3.357.0",
33
33
  "@aws-sdk/middleware-logger": "3.357.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
- "@aws-sdk/middleware-retry": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.362.0",
36
36
  "@aws-sdk/middleware-serde": "3.357.0",
37
37
  "@aws-sdk/middleware-signing": "3.357.0",
38
38
  "@aws-sdk/middleware-stack": "3.357.0",
@@ -48,7 +48,7 @@
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.360.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.360.0",
50
50
  "@aws-sdk/util-endpoints": "3.357.0",
51
- "@aws-sdk/util-retry": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.362.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.357.0",
53
53
  "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",