@aws-sdk/client-sagemaker-featurestore-runtime 3.1124.0 → 3.1126.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/README.md CHANGED
@@ -247,3 +247,10 @@ PutRecord
247
247
 
248
248
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-featurestore-runtime/command/PutRecordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-featurestore-runtime/Interface/PutRecordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-featurestore-runtime/Interface/PutRecordCommandOutput/)
249
249
  </details>
250
+ <details>
251
+ <summary>
252
+ UpdateRecord
253
+ </summary>
254
+
255
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sagemaker-featurestore-runtime/command/UpdateRecordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-featurestore-runtime/Interface/UpdateRecordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sagemaker-featurestore-runtime/Interface/UpdateRecordCommandOutput/)
256
+ </details>
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1123.0";
72
+ var version = "3.1125.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -208,6 +208,20 @@ class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException {
208
208
  this.Message = opts.Message;
209
209
  }
210
210
  }
211
+ class ConflictException extends SageMakerFeatureStoreRuntimeServiceException {
212
+ name = "ConflictException";
213
+ $fault = "client";
214
+ Message;
215
+ constructor(opts) {
216
+ super({
217
+ name: "ConflictException",
218
+ $fault: "client",
219
+ ...opts,
220
+ });
221
+ Object.setPrototypeOf(this, ConflictException.prototype);
222
+ this.Message = opts.Message;
223
+ }
224
+ }
211
225
 
212
226
  const _AF = "AccessForbidden";
213
227
  const _BGR = "BatchGetRecord";
@@ -226,6 +240,7 @@ const _BWREat = "BatchWriteRecordEntries";
226
240
  const _BWREatc = "BatchWriteRecordErrors";
227
241
  const _BWRR = "BatchWriteRecordRequest";
228
242
  const _BWRRa = "BatchWriteRecordResponse";
243
+ const _CE = "ConflictException";
229
244
  const _DM = "DeletionMode";
230
245
  const _DR = "DeleteRecord";
231
246
  const _DRR = "DeleteRecordRequest";
@@ -237,6 +252,7 @@ const _ET = "EventTime";
237
252
  const _ETR = "ExpirationTimeResponse";
238
253
  const _En = "Entry";
239
254
  const _Ent = "Entries";
255
+ const _F = "Features";
240
256
  const _FGN = "FeatureGroupName";
241
257
  const _FN = "FeatureNames";
242
258
  const _FNe = "FeatureName";
@@ -268,6 +284,8 @@ const _U = "Unit";
268
284
  const _UBWRE = "UnprocessedBatchWriteRecordEntries";
269
285
  const _UE = "UnprocessedEntries";
270
286
  const _UI = "UnprocessedIdentifiers";
287
+ const _UR = "UpdateRecord";
288
+ const _URR = "UpdateRecordRequest";
271
289
  const _V = "Value";
272
290
  const _VAS = "ValueAsString";
273
291
  const _VASL = "ValueAsStringList";
@@ -290,6 +308,12 @@ var AccessForbidden$ = [-3, n0, _AF,
290
308
  [0]
291
309
  ];
292
310
  n0_registry.registerError(AccessForbidden$, AccessForbidden);
311
+ var ConflictException$ = [-3, n0, _CE,
312
+ { [_e]: _c, [_hE]: 409 },
313
+ [_M],
314
+ [0]
315
+ ];
316
+ n0_registry.registerError(ConflictException$, ConflictException);
293
317
  var InternalFailure$ = [-3, n0, _IF,
294
318
  { [_e]: _se, [_hE]: 500 },
295
319
  [_M],
@@ -403,6 +427,11 @@ var TtlDuration$ = [3, n0, _TD,
403
427
  [_U, _V],
404
428
  [0, 1], 2
405
429
  ];
430
+ var UpdateRecordRequest$ = [3, n0, _URR,
431
+ 0,
432
+ [_FGN, _RIVAS, _F, _TS, _TD],
433
+ [[0, 1], 0, () => _Record, 64 | 0, () => TtlDuration$], 3
434
+ ];
406
435
  var __Unit = "unit";
407
436
  var BatchGetRecordErrors = [1, n0, _BGREa,
408
437
  0, () => BatchGetRecordError$
@@ -446,6 +475,9 @@ var ListRecords$ = [9, n0, _LR,
446
475
  var PutRecord$ = [9, n0, _PR,
447
476
  { [_h]: ["PUT", "/FeatureGroup/{FeatureGroupName}", 200] }, () => PutRecordRequest$, () => __Unit
448
477
  ];
478
+ var UpdateRecord$ = [9, n0, _UR,
479
+ { [_h]: ["POST", "/FeatureGroup/{FeatureGroupName}/Record", 200] }, () => UpdateRecordRequest$, () => __Unit
480
+ ];
449
481
 
450
482
  const getRuntimeConfig$1 = (config) => {
451
483
  return {
@@ -615,6 +647,9 @@ class ListRecordsCommand extends command(_ep0, _mw0, "ListRecords", ListRecords$
615
647
  class PutRecordCommand extends command(_ep0, _mw0, "PutRecord", PutRecord$) {
616
648
  }
617
649
 
650
+ class UpdateRecordCommand extends command(_ep0, _mw0, "UpdateRecord", UpdateRecord$) {
651
+ }
652
+
618
653
  const paginateListRecords = createPaginator(SageMakerFeatureStoreRuntimeClient, ListRecordsCommand, "NextToken", "NextToken", "MaxResults");
619
654
 
620
655
  const commands = {
@@ -624,6 +659,7 @@ const commands = {
624
659
  GetRecordCommand,
625
660
  ListRecordsCommand,
626
661
  PutRecordCommand,
662
+ UpdateRecordCommand,
627
663
  };
628
664
  const paginators = {
629
665
  paginateListRecords,
@@ -667,6 +703,8 @@ exports.BatchWriteRecordEntry$ = BatchWriteRecordEntry$;
667
703
  exports.BatchWriteRecordError$ = BatchWriteRecordError$;
668
704
  exports.BatchWriteRecordRequest$ = BatchWriteRecordRequest$;
669
705
  exports.BatchWriteRecordResponse$ = BatchWriteRecordResponse$;
706
+ exports.ConflictException = ConflictException;
707
+ exports.ConflictException$ = ConflictException$;
670
708
  exports.DeleteRecord$ = DeleteRecord$;
671
709
  exports.DeleteRecordCommand = DeleteRecordCommand;
672
710
  exports.DeleteRecordRequest$ = DeleteRecordRequest$;
@@ -697,6 +735,9 @@ exports.ServiceUnavailable$ = ServiceUnavailable$;
697
735
  exports.TargetStore = TargetStore;
698
736
  exports.TtlDuration$ = TtlDuration$;
699
737
  exports.TtlDurationUnit = TtlDurationUnit;
738
+ exports.UpdateRecord$ = UpdateRecord$;
739
+ exports.UpdateRecordCommand = UpdateRecordCommand;
740
+ exports.UpdateRecordRequest$ = UpdateRecordRequest$;
700
741
  exports.ValidationError = ValidationError;
701
742
  exports.ValidationError$ = ValidationError$;
702
743
  exports.errorTypeRegistries = errorTypeRegistries;
@@ -5,6 +5,7 @@ import { DeleteRecordCommand, } from "./commands/DeleteRecordCommand";
5
5
  import { GetRecordCommand } from "./commands/GetRecordCommand";
6
6
  import { ListRecordsCommand, } from "./commands/ListRecordsCommand";
7
7
  import { PutRecordCommand } from "./commands/PutRecordCommand";
8
+ import { UpdateRecordCommand, } from "./commands/UpdateRecordCommand";
8
9
  import { paginateListRecords } from "./pagination/ListRecordsPaginator";
9
10
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
10
11
  const commands = {
@@ -14,6 +15,7 @@ const commands = {
14
15
  GetRecordCommand,
15
16
  ListRecordsCommand,
16
17
  PutRecordCommand,
18
+ UpdateRecordCommand,
17
19
  };
18
20
  const paginators = {
19
21
  paginateListRecords,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateRecord$ } from "../schemas/schemas_0";
3
+ export class UpdateRecordCommand extends command(_ep0, _mw0, "UpdateRecord", UpdateRecord$) {
4
+ }
@@ -4,3 +4,4 @@ export * from "./DeleteRecordCommand";
4
4
  export * from "./GetRecordCommand";
5
5
  export * from "./ListRecordsCommand";
6
6
  export * from "./PutRecordCommand";
7
+ export * from "./UpdateRecordCommand";
@@ -69,3 +69,17 @@ export class ResourceNotFound extends __BaseException {
69
69
  this.Message = opts.Message;
70
70
  }
71
71
  }
72
+ export class ConflictException extends __BaseException {
73
+ name = "ConflictException";
74
+ $fault = "client";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "ConflictException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, ConflictException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
@@ -15,6 +15,7 @@ const _BWREat = "BatchWriteRecordEntries";
15
15
  const _BWREatc = "BatchWriteRecordErrors";
16
16
  const _BWRR = "BatchWriteRecordRequest";
17
17
  const _BWRRa = "BatchWriteRecordResponse";
18
+ const _CE = "ConflictException";
18
19
  const _DM = "DeletionMode";
19
20
  const _DR = "DeleteRecord";
20
21
  const _DRR = "DeleteRecordRequest";
@@ -26,6 +27,7 @@ const _ET = "EventTime";
26
27
  const _ETR = "ExpirationTimeResponse";
27
28
  const _En = "Entry";
28
29
  const _Ent = "Entries";
30
+ const _F = "Features";
29
31
  const _FGN = "FeatureGroupName";
30
32
  const _FN = "FeatureNames";
31
33
  const _FNe = "FeatureName";
@@ -57,6 +59,8 @@ const _U = "Unit";
57
59
  const _UBWRE = "UnprocessedBatchWriteRecordEntries";
58
60
  const _UE = "UnprocessedEntries";
59
61
  const _UI = "UnprocessedIdentifiers";
62
+ const _UR = "UpdateRecord";
63
+ const _URR = "UpdateRecordRequest";
60
64
  const _V = "Value";
61
65
  const _VAS = "ValueAsString";
62
66
  const _VASL = "ValueAsStringList";
@@ -70,7 +74,7 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerfeaturestoreruntime";
70
74
  const _se = "server";
71
75
  const n0 = "com.amazonaws.sagemakerfeaturestoreruntime";
72
76
  import { TypeRegistry } from "@smithy/core/schema";
73
- import { AccessForbidden, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/errors";
77
+ import { AccessForbidden, ConflictException, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/errors";
74
78
  import { SageMakerFeatureStoreRuntimeServiceException } from "../models/SageMakerFeatureStoreRuntimeServiceException";
75
79
  const _s_registry = TypeRegistry.for(_s);
76
80
  export var SageMakerFeatureStoreRuntimeServiceException$ = [-3, _s, "SageMakerFeatureStoreRuntimeServiceException", 0, [], []];
@@ -82,6 +86,12 @@ export var AccessForbidden$ = [-3, n0, _AF,
82
86
  [0]
83
87
  ];
84
88
  n0_registry.registerError(AccessForbidden$, AccessForbidden);
89
+ export var ConflictException$ = [-3, n0, _CE,
90
+ { [_e]: _c, [_hE]: 409 },
91
+ [_M],
92
+ [0]
93
+ ];
94
+ n0_registry.registerError(ConflictException$, ConflictException);
85
95
  export var InternalFailure$ = [-3, n0, _IF,
86
96
  { [_e]: _se, [_hE]: 500 },
87
97
  [_M],
@@ -195,6 +205,11 @@ export var TtlDuration$ = [3, n0, _TD,
195
205
  [_U, _V],
196
206
  [0, 1], 2
197
207
  ];
208
+ export var UpdateRecordRequest$ = [3, n0, _URR,
209
+ 0,
210
+ [_FGN, _RIVAS, _F, _TS, _TD],
211
+ [[0, 1], 0, () => _Record, 64 | 0, () => TtlDuration$], 3
212
+ ];
198
213
  var __Unit = "unit";
199
214
  var BatchGetRecordErrors = [1, n0, _BGREa,
200
215
  0, () => BatchGetRecordError$
@@ -243,3 +258,6 @@ export var ListRecords$ = [9, n0, _LR,
243
258
  export var PutRecord$ = [9, n0, _PR,
244
259
  { [_h]: ["PUT", "/FeatureGroup/{FeatureGroupName}", 200] }, () => PutRecordRequest$, () => __Unit
245
260
  ];
261
+ export var UpdateRecord$ = [9, n0, _UR,
262
+ { [_h]: ["POST", "/FeatureGroup/{FeatureGroupName}/Record", 200] }, () => UpdateRecordRequest$, () => __Unit
263
+ ];
@@ -5,6 +5,7 @@ import { type DeleteRecordCommandInput, type DeleteRecordCommandOutput } from ".
5
5
  import { type GetRecordCommandInput, type GetRecordCommandOutput } from "./commands/GetRecordCommand";
6
6
  import { type ListRecordsCommandInput, type ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
7
7
  import { type PutRecordCommandInput, type PutRecordCommandOutput } from "./commands/PutRecordCommand";
8
+ import { type UpdateRecordCommandInput, type UpdateRecordCommandOutput } from "./commands/UpdateRecordCommand";
8
9
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
9
10
  export interface SageMakerFeatureStoreRuntime {
10
11
  /**
@@ -43,6 +44,12 @@ export interface SageMakerFeatureStoreRuntime {
43
44
  putRecord(args: PutRecordCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordCommandOutput>;
44
45
  putRecord(args: PutRecordCommandInput, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
45
46
  putRecord(args: PutRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
47
+ /**
48
+ * @see {@link UpdateRecordCommand}
49
+ */
50
+ updateRecord(args: UpdateRecordCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecordCommandOutput>;
51
+ updateRecord(args: UpdateRecordCommandInput, cb: (err: any, data?: UpdateRecordCommandOutput) => void): void;
52
+ updateRecord(args: UpdateRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecordCommandOutput) => void): void;
46
53
  /**
47
54
  * @see {@link ListRecordsCommand}
48
55
  * @param args - command input.
@@ -12,17 +12,18 @@ import type { DeleteRecordCommandInput, DeleteRecordCommandOutput } from "./comm
12
12
  import type { GetRecordCommandInput, GetRecordCommandOutput } from "./commands/GetRecordCommand";
13
13
  import type { ListRecordsCommandInput, ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
14
14
  import type { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
15
+ import type { UpdateRecordCommandInput, UpdateRecordCommandOutput } from "./commands/UpdateRecordCommand";
15
16
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
16
17
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
17
18
  export { __Client };
18
19
  /**
19
20
  * @public
20
21
  */
21
- export type ServiceInputTypes = BatchGetRecordCommandInput | BatchWriteRecordCommandInput | DeleteRecordCommandInput | GetRecordCommandInput | ListRecordsCommandInput | PutRecordCommandInput;
22
+ export type ServiceInputTypes = BatchGetRecordCommandInput | BatchWriteRecordCommandInput | DeleteRecordCommandInput | GetRecordCommandInput | ListRecordsCommandInput | PutRecordCommandInput | UpdateRecordCommandInput;
22
23
  /**
23
24
  * @public
24
25
  */
25
- export type ServiceOutputTypes = BatchGetRecordCommandOutput | BatchWriteRecordCommandOutput | DeleteRecordCommandOutput | GetRecordCommandOutput | ListRecordsCommandOutput | PutRecordCommandOutput;
26
+ export type ServiceOutputTypes = BatchGetRecordCommandOutput | BatchWriteRecordCommandOutput | DeleteRecordCommandOutput | GetRecordCommandOutput | ListRecordsCommandOutput | PutRecordCommandOutput | UpdateRecordCommandOutput;
26
27
  /**
27
28
  * @public
28
29
  */
@@ -0,0 +1,182 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateRecordRequest } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateRecordCommand}.
11
+ */
12
+ export interface UpdateRecordCommandInput extends UpdateRecordRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateRecordCommand}.
18
+ */
19
+ export interface UpdateRecordCommandOutput extends __MetadataBearer {
20
+ }
21
+ declare const UpdateRecordCommand_base: {
22
+ new (input: UpdateRecordCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecordCommandInput, UpdateRecordCommandOutput, import("..").SageMakerFeatureStoreRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateRecordCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecordCommandInput, UpdateRecordCommandOutput, import("..").SageMakerFeatureStoreRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates one or more feature values for an existing record in the specified
28
+ * feature group. Features that you do not include in the request remain unchanged.
29
+ * You can update up to 100 features per call.</p>
30
+ * <important>
31
+ * <p>This operation is available only for feature groups that use the
32
+ * <code>Standard_V2</code> or <code>InMemory</code> online store type.</p>
33
+ * </important>
34
+ * <p>The record must already exist. If the record does not exist or has been
35
+ * soft-deleted, the operation returns a <code>ResourceNotFound</code> error. To create
36
+ * a record, use <code>PutRecord</code>.</p>
37
+ * <p>If you provide an <code>EventTime</code> that is older than the record's current
38
+ * <code>EventTime</code>, the service rejects the update with a
39
+ * <code>ConflictException</code>. If the <code>EventTime</code> is equal to or newer
40
+ * than the current value, the service applies the update. If you omit
41
+ * <code>EventTime</code>, the service keeps the record's existing
42
+ * <code>EventTime</code> and applies the update.</p>
43
+ * <p>If you specify a <code>TtlDuration</code>, you must also provide an
44
+ * <code>EventTime</code> in the request. Otherwise, the operation returns a
45
+ * <code>ValidationError</code>.</p>
46
+ * @example
47
+ * Use a bare-bones client and the command you need to make an API call.
48
+ * ```javascript
49
+ * import { SageMakerFeatureStoreRuntimeClient, UpdateRecordCommand } from "@aws-sdk/client-sagemaker-featurestore-runtime"; // ES Modules import
50
+ * // const { SageMakerFeatureStoreRuntimeClient, UpdateRecordCommand } = require("@aws-sdk/client-sagemaker-featurestore-runtime"); // CommonJS import
51
+ * // import type { SageMakerFeatureStoreRuntimeClientConfig } from "@aws-sdk/client-sagemaker-featurestore-runtime";
52
+ * const config = {}; // type is SageMakerFeatureStoreRuntimeClientConfig
53
+ * const client = new SageMakerFeatureStoreRuntimeClient(config);
54
+ * const input = { // UpdateRecordRequest
55
+ * FeatureGroupName: "STRING_VALUE", // required
56
+ * RecordIdentifierValueAsString: "STRING_VALUE", // required
57
+ * Features: [ // Record // required
58
+ * { // FeatureValue
59
+ * FeatureName: "STRING_VALUE", // required
60
+ * ValueAsString: "STRING_VALUE",
61
+ * ValueAsStringList: [ // ValueAsStringList
62
+ * "STRING_VALUE",
63
+ * ],
64
+ * },
65
+ * ],
66
+ * TargetStores: [ // TargetStores
67
+ * "OnlineStore" || "OfflineStore",
68
+ * ],
69
+ * TtlDuration: { // TtlDuration
70
+ * Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
71
+ * Value: Number("int"), // required
72
+ * },
73
+ * };
74
+ * const command = new UpdateRecordCommand(input);
75
+ * const response = await client.send(command);
76
+ * // {};
77
+ *
78
+ * ```
79
+ *
80
+ * @param UpdateRecordCommandInput - {@link UpdateRecordCommandInput}
81
+ * @returns {@link UpdateRecordCommandOutput}
82
+ * @see {@link UpdateRecordCommandInput} for command's `input` shape.
83
+ * @see {@link UpdateRecordCommandOutput} for command's `response` shape.
84
+ * @see {@link SageMakerFeatureStoreRuntimeClientResolvedConfig | config} for SageMakerFeatureStoreRuntimeClient's `config` shape.
85
+ *
86
+ * @throws {@link AccessForbidden} (client fault)
87
+ * <p>You do not have permission to perform an action.</p>
88
+ *
89
+ * @throws {@link ConflictException} (client fault)
90
+ * <p>The service rejected the update because the provided <code>EventTime</code> is
91
+ * older than the record's current <code>EventTime</code>. To persist the update, retrieve
92
+ * the record's latest <code>EventTime</code> and resubmit the request with an
93
+ * <code>EventTime</code> that is equal to or newer than the current value.</p>
94
+ *
95
+ * @throws {@link InternalFailure} (server fault)
96
+ * <p>An internal failure occurred. Try your request again. If the problem persists, contact
97
+ * Amazon Web Services customer support.</p>
98
+ *
99
+ * @throws {@link ResourceNotFound} (client fault)
100
+ * <p>A resource that is required to perform an action was not found.</p>
101
+ *
102
+ * @throws {@link ServiceUnavailable} (server fault)
103
+ * <p>The service is currently unavailable.</p>
104
+ *
105
+ * @throws {@link ValidationError} (client fault)
106
+ * <p>There was an error validating your request.</p>
107
+ *
108
+ * @throws {@link SageMakerFeatureStoreRuntimeServiceException}
109
+ * <p>Base exception class for all service exceptions from SageMakerFeatureStoreRuntime service.</p>
110
+ *
111
+ *
112
+ * @example Update specific features in a record
113
+ * ```javascript
114
+ * //
115
+ * const input = {
116
+ * FeatureGroupName: "my-feature-group",
117
+ * Features: [
118
+ * {
119
+ * FeatureName: "age",
120
+ * ValueAsString: "26"
121
+ * },
122
+ * {
123
+ * FeatureName: "membership_tier",
124
+ * ValueAsString: "gold"
125
+ * },
126
+ * {
127
+ * FeatureName: "event_time",
128
+ * ValueAsString: "2026-07-26T12:00:00Z"
129
+ * }
130
+ * ],
131
+ * RecordIdentifierValueAsString: "cust-001"
132
+ * };
133
+ * const command = new UpdateRecordCommand(input);
134
+ * const response = await client.send(command);
135
+ * /* response is
136
+ * { /* empty *\/ }
137
+ * *\/
138
+ * ```
139
+ *
140
+ * @example Update features and set a time-to-live (TTL) duration
141
+ * ```javascript
142
+ * //
143
+ * const input = {
144
+ * FeatureGroupName: "my-feature-group",
145
+ * Features: [
146
+ * {
147
+ * FeatureName: "age",
148
+ * ValueAsString: "26"
149
+ * },
150
+ * {
151
+ * FeatureName: "event_time",
152
+ * ValueAsString: "2026-07-26T12:00:00Z"
153
+ * }
154
+ * ],
155
+ * RecordIdentifierValueAsString: "cust-001",
156
+ * TtlDuration: {
157
+ * Unit: "Weeks",
158
+ * Value: 4
159
+ * }
160
+ * };
161
+ * const command = new UpdateRecordCommand(input);
162
+ * const response = await client.send(command);
163
+ * /* response is
164
+ * { /* empty *\/ }
165
+ * *\/
166
+ * ```
167
+ *
168
+ * @public
169
+ */
170
+ export declare class UpdateRecordCommand extends UpdateRecordCommand_base {
171
+ /** @internal type navigation helper, not in runtime. */
172
+ protected static __types: {
173
+ api: {
174
+ input: UpdateRecordRequest;
175
+ output: {};
176
+ };
177
+ sdk: {
178
+ input: UpdateRecordCommandInput;
179
+ output: UpdateRecordCommandOutput;
180
+ };
181
+ };
182
+ }
@@ -4,3 +4,4 @@ export * from "./DeleteRecordCommand";
4
4
  export * from "./GetRecordCommand";
5
5
  export * from "./ListRecordsCommand";
6
6
  export * from "./PutRecordCommand";
7
+ export * from "./UpdateRecordCommand";
@@ -66,3 +66,19 @@ export declare class ResourceNotFound extends __BaseException {
66
66
  */
67
67
  constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
68
68
  }
69
+ /**
70
+ * <p>The service rejected the update because the provided <code>EventTime</code> is
71
+ * older than the record's current <code>EventTime</code>. To persist the update, retrieve
72
+ * the record's latest <code>EventTime</code> and resubmit the request with an
73
+ * <code>EventTime</code> that is equal to or newer than the current value.</p>
74
+ * @public
75
+ */
76
+ export declare class ConflictException extends __BaseException {
77
+ readonly name: "ConflictException";
78
+ readonly $fault: "client";
79
+ Message?: string | undefined;
80
+ /**
81
+ * @internal
82
+ */
83
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
84
+ }
@@ -419,3 +419,48 @@ export interface PutRecordRequest {
419
419
  */
420
420
  TtlDuration?: TtlDuration | undefined;
421
421
  }
422
+ /**
423
+ * @public
424
+ */
425
+ export interface UpdateRecordRequest {
426
+ /**
427
+ * <p>The identifier for the feature group that contains the record to update. You can
428
+ * specify one of the following:</p>
429
+ * <ul>
430
+ * <li>
431
+ * <p>The feature group name.</p>
432
+ * </li>
433
+ * <li>
434
+ * <p>The feature group Amazon Resource Name (ARN).</p>
435
+ * </li>
436
+ * </ul>
437
+ * @public
438
+ */
439
+ FeatureGroupName: string | undefined;
440
+ /**
441
+ * <p>The value that uniquely identifies the record in the feature group. This must
442
+ * match the value defined by the feature group's record identifier feature.</p>
443
+ * @public
444
+ */
445
+ RecordIdentifierValueAsString: string | undefined;
446
+ /**
447
+ * <p>The feature values to write to the record.</p>
448
+ * @public
449
+ */
450
+ Features: FeatureValue[] | undefined;
451
+ /**
452
+ * <p>The target stores for the record update. By default, Amazon SageMaker Feature
453
+ * Store updates the record in all stores associated with the
454
+ * <code>FeatureGroup</code>.</p>
455
+ * @public
456
+ */
457
+ TargetStores?: TargetStore[] | undefined;
458
+ /**
459
+ * <p>The time-to-live (TTL) duration for the record. Amazon SageMaker Feature Store
460
+ * deletes the record when <code>EventTime</code> + <code>TtlDuration</code>
461
+ * elapses. If you omit this parameter, the record's existing TTL setting remains
462
+ * unchanged. For information about <code>HardDelete</code>, see the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_DeleteRecord.html">DeleteRecord</a> operation in the Amazon SageMaker API Reference.</p>
463
+ * @public
464
+ */
465
+ TtlDuration?: TtlDuration | undefined;
466
+ }
@@ -2,6 +2,7 @@ import { TypeRegistry } from "@smithy/core/schema";
2
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
3
  export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
4
4
  export declare var AccessForbidden$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
5
6
  export declare var InternalFailure$: StaticErrorSchema;
6
7
  export declare var ResourceNotFound$: StaticErrorSchema;
7
8
  export declare var ServiceUnavailable$: StaticErrorSchema;
@@ -29,9 +30,11 @@ export declare var ListRecordsRequest$: StaticStructureSchema;
29
30
  export declare var ListRecordsResponse$: StaticStructureSchema;
30
31
  export declare var PutRecordRequest$: StaticStructureSchema;
31
32
  export declare var TtlDuration$: StaticStructureSchema;
33
+ export declare var UpdateRecordRequest$: StaticStructureSchema;
32
34
  export declare var BatchGetRecord$: StaticOperationSchema;
33
35
  export declare var BatchWriteRecord$: StaticOperationSchema;
34
36
  export declare var DeleteRecord$: StaticOperationSchema;
35
37
  export declare var GetRecord$: StaticOperationSchema;
36
38
  export declare var ListRecords$: StaticOperationSchema;
37
39
  export declare var PutRecord$: StaticOperationSchema;
40
+ export declare var UpdateRecord$: StaticOperationSchema;
@@ -18,6 +18,10 @@ import {
18
18
  import { GetRecordCommandInput, GetRecordCommandOutput } from "./commands/GetRecordCommand";
19
19
  import { ListRecordsCommandInput, ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
20
20
  import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
21
+ import {
22
+ UpdateRecordCommandInput,
23
+ UpdateRecordCommandOutput,
24
+ } from "./commands/UpdateRecordCommand";
21
25
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
22
26
  export interface SageMakerFeatureStoreRuntime {
23
27
  batchGetRecord(
@@ -98,6 +102,19 @@ export interface SageMakerFeatureStoreRuntime {
98
102
  options: __HttpHandlerOptions,
99
103
  cb: (err: any, data?: PutRecordCommandOutput) => void,
100
104
  ): void;
105
+ updateRecord(
106
+ args: UpdateRecordCommandInput,
107
+ options?: __HttpHandlerOptions,
108
+ ): Promise<UpdateRecordCommandOutput>;
109
+ updateRecord(
110
+ args: UpdateRecordCommandInput,
111
+ cb: (err: any, data?: UpdateRecordCommandOutput) => void,
112
+ ): void;
113
+ updateRecord(
114
+ args: UpdateRecordCommandInput,
115
+ options: __HttpHandlerOptions,
116
+ cb: (err: any, data?: UpdateRecordCommandOutput) => void,
117
+ ): void;
101
118
  paginateListRecords(
102
119
  args: ListRecordsCommandInput,
103
120
  paginationConfig?: Pick<
@@ -48,6 +48,10 @@ import {
48
48
  import { GetRecordCommandInput, GetRecordCommandOutput } from "./commands/GetRecordCommand";
49
49
  import { ListRecordsCommandInput, ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
50
50
  import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
51
+ import {
52
+ UpdateRecordCommandInput,
53
+ UpdateRecordCommandOutput,
54
+ } from "./commands/UpdateRecordCommand";
51
55
  import {
52
56
  ClientInputEndpointParameters,
53
57
  ClientResolvedEndpointParameters,
@@ -61,14 +65,16 @@ export type ServiceInputTypes =
61
65
  | DeleteRecordCommandInput
62
66
  | GetRecordCommandInput
63
67
  | ListRecordsCommandInput
64
- | PutRecordCommandInput;
68
+ | PutRecordCommandInput
69
+ | UpdateRecordCommandInput;
65
70
  export type ServiceOutputTypes =
66
71
  | BatchGetRecordCommandOutput
67
72
  | BatchWriteRecordCommandOutput
68
73
  | DeleteRecordCommandOutput
69
74
  | GetRecordCommandOutput
70
75
  | ListRecordsCommandOutput
71
- | PutRecordCommandOutput;
76
+ | PutRecordCommandOutput
77
+ | UpdateRecordCommandOutput;
72
78
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
73
79
  requestHandler?: __HttpHandlerUserInput;
74
80
  sha256?: __ChecksumConstructor | __HashConstructor;
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdateRecordRequest } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface UpdateRecordCommandInput extends UpdateRecordRequest {}
5
+ export interface UpdateRecordCommandOutput extends __MetadataBearer {}
6
+ declare const UpdateRecordCommand_base: {
7
+ new (
8
+ input: UpdateRecordCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ UpdateRecordCommandInput,
11
+ UpdateRecordCommandOutput,
12
+ import("..").SageMakerFeatureStoreRuntimeClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: UpdateRecordCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ UpdateRecordCommandInput,
20
+ UpdateRecordCommandOutput,
21
+ import("..").SageMakerFeatureStoreRuntimeClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class UpdateRecordCommand extends UpdateRecordCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: UpdateRecordRequest;
31
+ output: {};
32
+ };
33
+ sdk: {
34
+ input: UpdateRecordCommandInput;
35
+ output: UpdateRecordCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -4,3 +4,4 @@ export * from "./DeleteRecordCommand";
4
4
  export * from "./GetRecordCommand";
5
5
  export * from "./ListRecordsCommand";
6
6
  export * from "./PutRecordCommand";
7
+ export * from "./UpdateRecordCommand";
@@ -30,3 +30,9 @@ export declare class ResourceNotFound extends __BaseException {
30
30
  Message?: string | undefined;
31
31
  constructor(opts: __ExceptionOptionType<ResourceNotFound, __BaseException>);
32
32
  }
33
+ export declare class ConflictException extends __BaseException {
34
+ readonly name: "ConflictException";
35
+ readonly $fault: "client";
36
+ Message?: string | undefined;
37
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
38
+ }
@@ -86,3 +86,10 @@ export interface PutRecordRequest {
86
86
  TargetStores?: TargetStore[] | undefined;
87
87
  TtlDuration?: TtlDuration | undefined;
88
88
  }
89
+ export interface UpdateRecordRequest {
90
+ FeatureGroupName: string | undefined;
91
+ RecordIdentifierValueAsString: string | undefined;
92
+ Features: FeatureValue[] | undefined;
93
+ TargetStores?: TargetStore[] | undefined;
94
+ TtlDuration?: TtlDuration | undefined;
95
+ }
@@ -2,6 +2,7 @@ import { TypeRegistry } from "@smithy/core/schema";
2
2
  import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
3
  export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
4
4
  export declare var AccessForbidden$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
5
6
  export declare var InternalFailure$: StaticErrorSchema;
6
7
  export declare var ResourceNotFound$: StaticErrorSchema;
7
8
  export declare var ServiceUnavailable$: StaticErrorSchema;
@@ -24,9 +25,11 @@ export declare var ListRecordsRequest$: StaticStructureSchema;
24
25
  export declare var ListRecordsResponse$: StaticStructureSchema;
25
26
  export declare var PutRecordRequest$: StaticStructureSchema;
26
27
  export declare var TtlDuration$: StaticStructureSchema;
28
+ export declare var UpdateRecordRequest$: StaticStructureSchema;
27
29
  export declare var BatchGetRecord$: StaticOperationSchema;
28
30
  export declare var BatchWriteRecord$: StaticOperationSchema;
29
31
  export declare var DeleteRecord$: StaticOperationSchema;
30
32
  export declare var GetRecord$: StaticOperationSchema;
31
33
  export declare var ListRecords$: StaticOperationSchema;
32
34
  export declare var PutRecord$: StaticOperationSchema;
35
+ export declare var UpdateRecord$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-featurestore-runtime",
3
- "version": "3.1124.0",
3
+ "version": "3.1126.0",
4
4
  "description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sagemaker-featurestore-runtime",
6
6
  "license": "Apache-2.0",