@aws-sdk/client-sagemaker-featurestore-runtime 3.1075.0 → 3.1076.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.
Files changed (54) hide show
  1. package/README.md +21 -7
  2. package/dist-cjs/index.js +571 -21
  3. package/dist-es/SageMakerFeatureStoreRuntime.js +9 -1
  4. package/dist-es/commands/BatchWriteRecordCommand.js +16 -0
  5. package/dist-es/commands/ListRecordsCommand.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/index.js +1 -0
  8. package/dist-es/models/enums.js +4 -4
  9. package/dist-es/pagination/Interfaces.js +1 -0
  10. package/dist-es/pagination/ListRecordsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +64 -0
  13. package/dist-types/SageMakerFeatureStoreRuntime.d.ts +22 -1
  14. package/dist-types/SageMakerFeatureStoreRuntimeClient.d.ts +4 -2
  15. package/dist-types/commands/BatchWriteRecordCommand.d.ts +197 -0
  16. package/dist-types/commands/DeleteRecordCommand.d.ts +1 -1
  17. package/dist-types/commands/ListRecordsCommand.d.ts +120 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/index.d.ts +1 -0
  20. package/dist-types/models/enums.d.ts +12 -12
  21. package/dist-types/models/models_0.d.ts +139 -10
  22. package/dist-types/pagination/Interfaces.d.ts +8 -0
  23. package/dist-types/pagination/ListRecordsPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +2 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/dist-types/schemas/schemas_0.d.ts +8 -0
  29. package/dist-types/ts3.4/SageMakerFeatureStoreRuntime.d.ts +46 -1
  30. package/dist-types/ts3.4/SageMakerFeatureStoreRuntimeClient.d.ts +12 -0
  31. package/dist-types/ts3.4/commands/BatchWriteRecordCommand.d.ts +52 -0
  32. package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +49 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/index.d.ts +1 -0
  35. package/dist-types/ts3.4/models/enums.d.ts +5 -5
  36. package/dist-types/ts3.4/models/models_0.d.ts +32 -3
  37. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  38. package/dist-types/ts3.4/pagination/ListRecordsPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  44. package/package.json +8 -8
  45. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  46. package/dist-cjs/endpoint/bdd.js +0 -46
  47. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  48. package/dist-cjs/models/SageMakerFeatureStoreRuntimeServiceException.js +0 -8
  49. package/dist-cjs/models/errors.js +0 -71
  50. package/dist-cjs/runtimeConfig.browser.js +0 -32
  51. package/dist-cjs/runtimeConfig.js +0 -45
  52. package/dist-cjs/runtimeConfig.native.js +0 -12
  53. package/dist-cjs/runtimeConfig.shared.js +0 -38
  54. package/dist-cjs/schemas/schemas_0.js +0 -198
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListRecords$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListRecordsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonSageMakerFeatureStoreRuntime", "ListRecords", {})
13
+ .n("SageMakerFeatureStoreRuntimeClient", "ListRecordsCommand")
14
+ .sc(ListRecords$)
15
+ .build() {
16
+ }
@@ -1,4 +1,6 @@
1
1
  export * from "./BatchGetRecordCommand";
2
+ export * from "./BatchWriteRecordCommand";
2
3
  export * from "./DeleteRecordCommand";
3
4
  export * from "./GetRecordCommand";
5
+ export * from "./ListRecordsCommand";
4
6
  export * from "./PutRecordCommand";
package/dist-es/index.js CHANGED
@@ -2,6 +2,7 @@ export * from "./SageMakerFeatureStoreRuntimeClient";
2
2
  export * from "./SageMakerFeatureStoreRuntime";
3
3
  export * from "./commands";
4
4
  export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
7
8
  export * from "./models/models_0";
@@ -2,10 +2,6 @@ export const ExpirationTimeResponse = {
2
2
  DISABLED: "Disabled",
3
3
  ENABLED: "Enabled",
4
4
  };
5
- export const DeletionMode = {
6
- HARD_DELETE: "HardDelete",
7
- SOFT_DELETE: "SoftDelete",
8
- };
9
5
  export const TargetStore = {
10
6
  OFFLINE_STORE: "OfflineStore",
11
7
  ONLINE_STORE: "OnlineStore",
@@ -17,3 +13,7 @@ export const TtlDurationUnit = {
17
13
  SECONDS: "Seconds",
18
14
  WEEKS: "Weeks",
19
15
  };
16
+ export const DeletionMode = {
17
+ HARD_DELETE: "HardDelete",
18
+ SOFT_DELETE: "SoftDelete",
19
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRecordsCommand } from "../commands/ListRecordsCommand";
3
+ import { SageMakerFeatureStoreRuntimeClient } from "../SageMakerFeatureStoreRuntimeClient";
4
+ export const paginateListRecords = createPaginator(SageMakerFeatureStoreRuntimeClient, ListRecordsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRecordsPaginator";
@@ -8,6 +8,13 @@ const _BGRR = "BatchGetRecordRequest";
8
8
  const _BGRRD = "BatchGetRecordResultDetail";
9
9
  const _BGRRDa = "BatchGetRecordResultDetails";
10
10
  const _BGRRa = "BatchGetRecordResponse";
11
+ const _BWR = "BatchWriteRecord";
12
+ const _BWRE = "BatchWriteRecordEntry";
13
+ const _BWREa = "BatchWriteRecordError";
14
+ const _BWREat = "BatchWriteRecordEntries";
15
+ const _BWREatc = "BatchWriteRecordErrors";
16
+ const _BWRR = "BatchWriteRecordRequest";
17
+ const _BWRRa = "BatchWriteRecordResponse";
11
18
  const _DM = "DeletionMode";
12
19
  const _DR = "DeleteRecord";
13
20
  const _DRR = "DeleteRecordRequest";
@@ -17,6 +24,8 @@ const _EC = "ErrorCode";
17
24
  const _EM = "ErrorMessage";
18
25
  const _ET = "EventTime";
19
26
  const _ETR = "ExpirationTimeResponse";
27
+ const _En = "Entry";
28
+ const _Ent = "Entries";
20
29
  const _FGN = "FeatureGroupName";
21
30
  const _FN = "FeatureNames";
22
31
  const _FNe = "FeatureName";
@@ -26,10 +35,17 @@ const _GRR = "GetRecordRequest";
26
35
  const _GRRe = "GetRecordResponse";
27
36
  const _I = "Identifiers";
28
37
  const _IF = "InternalFailure";
38
+ const _ISDR = "IncludeSoftDeletedRecords";
39
+ const _LR = "ListRecords";
40
+ const _LRR = "ListRecordsRequest";
41
+ const _LRRi = "ListRecordsResponse";
29
42
  const _M = "Message";
43
+ const _MR = "MaxResults";
44
+ const _NT = "NextToken";
30
45
  const _PR = "PutRecord";
31
46
  const _PRR = "PutRecordRequest";
32
47
  const _R = "Records";
48
+ const _RI = "RecordIdentifiers";
33
49
  const _RIVAS = "RecordIdentifierValueAsString";
34
50
  const _RIVASe = "RecordIdentifiersValueAsString";
35
51
  const _RNF = "ResourceNotFound";
@@ -38,6 +54,8 @@ const _SU = "ServiceUnavailable";
38
54
  const _TD = "TtlDuration";
39
55
  const _TS = "TargetStores";
40
56
  const _U = "Unit";
57
+ const _UBWRE = "UnprocessedBatchWriteRecordEntries";
58
+ const _UE = "UnprocessedEntries";
41
59
  const _UI = "UnprocessedIdentifiers";
42
60
  const _V = "Value";
43
61
  const _VAS = "ValueAsString";
@@ -117,6 +135,26 @@ export var BatchGetRecordResultDetail$ = [3, n0, _BGRRD,
117
135
  [_FGN, _RIVAS, _Re, _EA],
118
136
  [0, 0, () => _Record, 0], 3
119
137
  ];
138
+ export var BatchWriteRecordEntry$ = [3, n0, _BWRE,
139
+ 0,
140
+ [_FGN, _Re, _TS, _TD],
141
+ [0, () => _Record, 64 | 0, () => TtlDuration$], 2
142
+ ];
143
+ export var BatchWriteRecordError$ = [3, n0, _BWREa,
144
+ 0,
145
+ [_En, _EC, _EM],
146
+ [() => BatchWriteRecordEntry$, 0, 0], 3
147
+ ];
148
+ export var BatchWriteRecordRequest$ = [3, n0, _BWRR,
149
+ 0,
150
+ [_Ent, _TD],
151
+ [() => BatchWriteRecordEntries, () => TtlDuration$], 1
152
+ ];
153
+ export var BatchWriteRecordResponse$ = [3, n0, _BWRRa,
154
+ 0,
155
+ [_E, _UE],
156
+ [() => BatchWriteRecordErrors, () => UnprocessedBatchWriteRecordEntries], 2
157
+ ];
120
158
  export var DeleteRecordRequest$ = [3, n0, _DRR,
121
159
  0,
122
160
  [_FGN, _RIVAS, _ET, _TS, _DM],
@@ -137,6 +175,16 @@ export var GetRecordResponse$ = [3, n0, _GRRe,
137
175
  [_Re, _EA],
138
176
  [() => _Record, 0]
139
177
  ];
178
+ export var ListRecordsRequest$ = [3, n0, _LRR,
179
+ 0,
180
+ [_FGN, _MR, _NT, _ISDR],
181
+ [[0, 1], 1, 0, 2], 1
182
+ ];
183
+ export var ListRecordsResponse$ = [3, n0, _LRRi,
184
+ 0,
185
+ [_RI, _NT],
186
+ [64 | 0, 0], 1
187
+ ];
140
188
  export var PutRecordRequest$ = [3, n0, _PRR,
141
189
  0,
142
190
  [_FGN, _Re, _TS, _TD],
@@ -157,12 +205,22 @@ var BatchGetRecordIdentifiers = [1, n0, _BGRIa,
157
205
  var BatchGetRecordResultDetails = [1, n0, _BGRRDa,
158
206
  0, () => BatchGetRecordResultDetail$
159
207
  ];
208
+ var BatchWriteRecordEntries = [1, n0, _BWREat,
209
+ 0, () => BatchWriteRecordEntry$
210
+ ];
211
+ var BatchWriteRecordErrors = [1, n0, _BWREatc,
212
+ 0, () => BatchWriteRecordError$
213
+ ];
160
214
  var FeatureNames = 64 | 0;
161
215
  var _Record = [1, n0, _Re,
162
216
  0, () => FeatureValue$
163
217
  ];
218
+ var RecordIdentifierList = 64 | 0;
164
219
  var RecordIdentifiers = 64 | 0;
165
220
  var TargetStores = 64 | 0;
221
+ var UnprocessedBatchWriteRecordEntries = [1, n0, _UBWRE,
222
+ 0, () => BatchWriteRecordEntry$
223
+ ];
166
224
  var UnprocessedIdentifiers = [1, n0, _UI,
167
225
  0, () => BatchGetRecordIdentifier$
168
226
  ];
@@ -170,12 +228,18 @@ var ValueAsStringList = 64 | 0;
170
228
  export var BatchGetRecord$ = [9, n0, _BGR,
171
229
  { [_h]: ["POST", "/BatchGetRecord", 200] }, () => BatchGetRecordRequest$, () => BatchGetRecordResponse$
172
230
  ];
231
+ export var BatchWriteRecord$ = [9, n0, _BWR,
232
+ { [_h]: ["POST", "/BatchWriteRecord", 200] }, () => BatchWriteRecordRequest$, () => BatchWriteRecordResponse$
233
+ ];
173
234
  export var DeleteRecord$ = [9, n0, _DR,
174
235
  { [_h]: ["DELETE", "/FeatureGroup/{FeatureGroupName}", 200] }, () => DeleteRecordRequest$, () => __Unit
175
236
  ];
176
237
  export var GetRecord$ = [9, n0, _GR,
177
238
  { [_h]: ["GET", "/FeatureGroup/{FeatureGroupName}", 200] }, () => GetRecordRequest$, () => GetRecordResponse$
178
239
  ];
240
+ export var ListRecords$ = [9, n0, _LR,
241
+ { [_h]: ["POST", "/FeatureGroup/{FeatureGroupName}/ListRecords", 200] }, () => ListRecordsRequest$, () => ListRecordsResponse$
242
+ ];
179
243
  export var PutRecord$ = [9, n0, _PR,
180
244
  { [_h]: ["PUT", "/FeatureGroup/{FeatureGroupName}", 200] }, () => PutRecordRequest$, () => __Unit
181
245
  ];
@@ -1,7 +1,9 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type BatchGetRecordCommandInput, type BatchGetRecordCommandOutput } from "./commands/BatchGetRecordCommand";
3
+ import { type BatchWriteRecordCommandInput, type BatchWriteRecordCommandOutput } from "./commands/BatchWriteRecordCommand";
3
4
  import { type DeleteRecordCommandInput, type DeleteRecordCommandOutput } from "./commands/DeleteRecordCommand";
4
5
  import { type GetRecordCommandInput, type GetRecordCommandOutput } from "./commands/GetRecordCommand";
6
+ import { type ListRecordsCommandInput, type ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
5
7
  import { type PutRecordCommandInput, type PutRecordCommandOutput } from "./commands/PutRecordCommand";
6
8
  import { SageMakerFeatureStoreRuntimeClient } from "./SageMakerFeatureStoreRuntimeClient";
7
9
  export interface SageMakerFeatureStoreRuntime {
@@ -11,6 +13,12 @@ export interface SageMakerFeatureStoreRuntime {
11
13
  batchGetRecord(args: BatchGetRecordCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetRecordCommandOutput>;
12
14
  batchGetRecord(args: BatchGetRecordCommandInput, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
13
15
  batchGetRecord(args: BatchGetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetRecordCommandOutput) => void): void;
16
+ /**
17
+ * @see {@link BatchWriteRecordCommand}
18
+ */
19
+ batchWriteRecord(args: BatchWriteRecordCommandInput, options?: __HttpHandlerOptions): Promise<BatchWriteRecordCommandOutput>;
20
+ batchWriteRecord(args: BatchWriteRecordCommandInput, cb: (err: any, data?: BatchWriteRecordCommandOutput) => void): void;
21
+ batchWriteRecord(args: BatchWriteRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchWriteRecordCommandOutput) => void): void;
14
22
  /**
15
23
  * @see {@link DeleteRecordCommand}
16
24
  */
@@ -23,12 +31,25 @@ export interface SageMakerFeatureStoreRuntime {
23
31
  getRecord(args: GetRecordCommandInput, options?: __HttpHandlerOptions): Promise<GetRecordCommandOutput>;
24
32
  getRecord(args: GetRecordCommandInput, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
25
33
  getRecord(args: GetRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecordCommandOutput) => void): void;
34
+ /**
35
+ * @see {@link ListRecordsCommand}
36
+ */
37
+ listRecords(args: ListRecordsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecordsCommandOutput>;
38
+ listRecords(args: ListRecordsCommandInput, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
39
+ listRecords(args: ListRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecordsCommandOutput) => void): void;
26
40
  /**
27
41
  * @see {@link PutRecordCommand}
28
42
  */
29
43
  putRecord(args: PutRecordCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordCommandOutput>;
30
44
  putRecord(args: PutRecordCommandInput, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
31
45
  putRecord(args: PutRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link ListRecordsCommand}
48
+ * @param args - command input.
49
+ * @param paginationConfig - optional pagination config.
50
+ * @returns AsyncIterable of {@link ListRecordsCommandOutput}.
51
+ */
52
+ paginateListRecords(args: ListRecordsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecordsCommandOutput>;
32
53
  }
33
54
  /**
34
55
  * <p>Contains all data plane API operations and data types for the Amazon SageMaker Feature
@@ -7,8 +7,10 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
7
7
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
9
  import type { BatchGetRecordCommandInput, BatchGetRecordCommandOutput } from "./commands/BatchGetRecordCommand";
10
+ import type { BatchWriteRecordCommandInput, BatchWriteRecordCommandOutput } from "./commands/BatchWriteRecordCommand";
10
11
  import type { DeleteRecordCommandInput, DeleteRecordCommandOutput } from "./commands/DeleteRecordCommand";
11
12
  import type { GetRecordCommandInput, GetRecordCommandOutput } from "./commands/GetRecordCommand";
13
+ import type { ListRecordsCommandInput, ListRecordsCommandOutput } from "./commands/ListRecordsCommand";
12
14
  import type { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
13
15
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
14
16
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -16,11 +18,11 @@ export { __Client };
16
18
  /**
17
19
  * @public
18
20
  */
19
- export type ServiceInputTypes = BatchGetRecordCommandInput | DeleteRecordCommandInput | GetRecordCommandInput | PutRecordCommandInput;
21
+ export type ServiceInputTypes = BatchGetRecordCommandInput | BatchWriteRecordCommandInput | DeleteRecordCommandInput | GetRecordCommandInput | ListRecordsCommandInput | PutRecordCommandInput;
20
22
  /**
21
23
  * @public
22
24
  */
23
- export type ServiceOutputTypes = BatchGetRecordCommandOutput | DeleteRecordCommandOutput | GetRecordCommandOutput | PutRecordCommandOutput;
25
+ export type ServiceOutputTypes = BatchGetRecordCommandOutput | BatchWriteRecordCommandOutput | DeleteRecordCommandOutput | GetRecordCommandOutput | ListRecordsCommandOutput | PutRecordCommandOutput;
24
26
  /**
25
27
  * @public
26
28
  */
@@ -0,0 +1,197 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BatchWriteRecordRequest, BatchWriteRecordResponse } from "../models/models_0";
4
+ import type { SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerFeatureStoreRuntimeClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchWriteRecordCommand}.
14
+ */
15
+ export interface BatchWriteRecordCommandInput extends BatchWriteRecordRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchWriteRecordCommand}.
21
+ */
22
+ export interface BatchWriteRecordCommandOutput extends BatchWriteRecordResponse, __MetadataBearer {
23
+ }
24
+ declare const BatchWriteRecordCommand_base: {
25
+ new (input: BatchWriteRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchWriteRecordCommandInput, BatchWriteRecordCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: BatchWriteRecordCommandInput): import("@smithy/core/client").CommandImpl<BatchWriteRecordCommandInput, BatchWriteRecordCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Writes a batch of <code>Records</code> to one or more <code>FeatureGroup</code>s. Use
33
+ * this API for bulk ingestion of records into the <code>OnlineStore</code> and
34
+ * <code>OfflineStore</code>.</p>
35
+ * <p>You can set the ingested records to expire at a given time to live (TTL) duration after
36
+ * the record's event time by specifying the <code>TtlDuration</code> parameter. A request
37
+ * level <code>TtlDuration</code> applies to all entries that do not specify their own
38
+ * <code>TtlDuration</code>.</p>
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { SageMakerFeatureStoreRuntimeClient, BatchWriteRecordCommand } from "@aws-sdk/client-sagemaker-featurestore-runtime"; // ES Modules import
43
+ * // const { SageMakerFeatureStoreRuntimeClient, BatchWriteRecordCommand } = require("@aws-sdk/client-sagemaker-featurestore-runtime"); // CommonJS import
44
+ * // import type { SageMakerFeatureStoreRuntimeClientConfig } from "@aws-sdk/client-sagemaker-featurestore-runtime";
45
+ * const config = {}; // type is SageMakerFeatureStoreRuntimeClientConfig
46
+ * const client = new SageMakerFeatureStoreRuntimeClient(config);
47
+ * const input = { // BatchWriteRecordRequest
48
+ * Entries: [ // BatchWriteRecordEntries // required
49
+ * { // BatchWriteRecordEntry
50
+ * FeatureGroupName: "STRING_VALUE", // required
51
+ * Record: [ // Record // required
52
+ * { // FeatureValue
53
+ * FeatureName: "STRING_VALUE", // required
54
+ * ValueAsString: "STRING_VALUE",
55
+ * ValueAsStringList: [ // ValueAsStringList
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * },
59
+ * ],
60
+ * TargetStores: [ // TargetStores
61
+ * "OnlineStore" || "OfflineStore",
62
+ * ],
63
+ * TtlDuration: { // TtlDuration
64
+ * Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
65
+ * Value: Number("int"), // required
66
+ * },
67
+ * },
68
+ * ],
69
+ * TtlDuration: {
70
+ * Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
71
+ * Value: Number("int"), // required
72
+ * },
73
+ * };
74
+ * const command = new BatchWriteRecordCommand(input);
75
+ * const response = await client.send(command);
76
+ * // { // BatchWriteRecordResponse
77
+ * // Errors: [ // BatchWriteRecordErrors // required
78
+ * // { // BatchWriteRecordError
79
+ * // Entry: { // BatchWriteRecordEntry
80
+ * // FeatureGroupName: "STRING_VALUE", // required
81
+ * // Record: [ // Record // required
82
+ * // { // FeatureValue
83
+ * // FeatureName: "STRING_VALUE", // required
84
+ * // ValueAsString: "STRING_VALUE",
85
+ * // ValueAsStringList: [ // ValueAsStringList
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // },
89
+ * // ],
90
+ * // TargetStores: [ // TargetStores
91
+ * // "OnlineStore" || "OfflineStore",
92
+ * // ],
93
+ * // TtlDuration: { // TtlDuration
94
+ * // Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
95
+ * // Value: Number("int"), // required
96
+ * // },
97
+ * // },
98
+ * // ErrorCode: "STRING_VALUE", // required
99
+ * // ErrorMessage: "STRING_VALUE", // required
100
+ * // },
101
+ * // ],
102
+ * // UnprocessedEntries: [ // UnprocessedBatchWriteRecordEntries // required
103
+ * // {
104
+ * // FeatureGroupName: "STRING_VALUE", // required
105
+ * // Record: [ // required
106
+ * // {
107
+ * // FeatureName: "STRING_VALUE", // required
108
+ * // ValueAsString: "STRING_VALUE",
109
+ * // ValueAsStringList: [
110
+ * // "STRING_VALUE",
111
+ * // ],
112
+ * // },
113
+ * // ],
114
+ * // TargetStores: [
115
+ * // "OnlineStore" || "OfflineStore",
116
+ * // ],
117
+ * // TtlDuration: {
118
+ * // Unit: "Seconds" || "Minutes" || "Hours" || "Days" || "Weeks", // required
119
+ * // Value: Number("int"), // required
120
+ * // },
121
+ * // },
122
+ * // ],
123
+ * // };
124
+ *
125
+ * ```
126
+ *
127
+ * @param BatchWriteRecordCommandInput - {@link BatchWriteRecordCommandInput}
128
+ * @returns {@link BatchWriteRecordCommandOutput}
129
+ * @see {@link BatchWriteRecordCommandInput} for command's `input` shape.
130
+ * @see {@link BatchWriteRecordCommandOutput} for command's `response` shape.
131
+ * @see {@link SageMakerFeatureStoreRuntimeClientResolvedConfig | config} for SageMakerFeatureStoreRuntimeClient's `config` shape.
132
+ *
133
+ * @throws {@link AccessForbidden} (client fault)
134
+ * <p>You do not have permission to perform an action.</p>
135
+ *
136
+ * @throws {@link InternalFailure} (server fault)
137
+ * <p>An internal failure occurred. Try your request again. If the problem persists, contact
138
+ * Amazon Web Services customer support.</p>
139
+ *
140
+ * @throws {@link ResourceNotFound} (client fault)
141
+ * <p>A resource that is required to perform an action was not found.</p>
142
+ *
143
+ * @throws {@link ServiceUnavailable} (server fault)
144
+ * <p>The service is currently unavailable.</p>
145
+ *
146
+ * @throws {@link ValidationError} (client fault)
147
+ * <p>There was an error validating your request.</p>
148
+ *
149
+ * @throws {@link SageMakerFeatureStoreRuntimeServiceException}
150
+ * <p>Base exception class for all service exceptions from SageMakerFeatureStoreRuntime service.</p>
151
+ *
152
+ *
153
+ * @example Write records to multiple feature groups
154
+ * ```javascript
155
+ * //
156
+ * const input = {
157
+ * Entries: [
158
+ * {
159
+ * FeatureGroupName: "my-feature-group",
160
+ * Record: [
161
+ * {
162
+ * FeatureName: "customer_id",
163
+ * ValueAsString: "cust-001"
164
+ * },
165
+ * {
166
+ * FeatureName: "age",
167
+ * ValueAsString: "25"
168
+ * }
169
+ * ]
170
+ * }
171
+ * ]
172
+ * };
173
+ * const command = new BatchWriteRecordCommand(input);
174
+ * const response = await client.send(command);
175
+ * /* response is
176
+ * {
177
+ * Errors: [],
178
+ * UnprocessedEntries: []
179
+ * }
180
+ * *\/
181
+ * ```
182
+ *
183
+ * @public
184
+ */
185
+ export declare class BatchWriteRecordCommand extends BatchWriteRecordCommand_base {
186
+ /** @internal type navigation helper, not in runtime. */
187
+ protected static __types: {
188
+ api: {
189
+ input: BatchWriteRecordRequest;
190
+ output: BatchWriteRecordResponse;
191
+ };
192
+ sdk: {
193
+ input: BatchWriteRecordCommandInput;
194
+ output: BatchWriteRecordCommandOutput;
195
+ };
196
+ };
197
+ }
@@ -62,7 +62,7 @@ declare const DeleteRecordCommand_base: {
62
62
  * your <code>OfflineStore</code>, you can remove all history of a record from the
63
63
  * <code>OfflineStore</code> using Amazon Athena or Apache Spark. For information on how to
64
64
  * hard delete a record from the <code>OfflineStore</code> with the Iceberg table format
65
- * enabled, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/feature-store-delete-records-offline-store.html#feature-store-delete-records-offline-store">Delete records from the offline store</a>.</p>
65
+ * enabled, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/feature-store-delete-records.html#feature-store-delete-records-offline-store">Delete records from the offline store</a>.</p>
66
66
  * @example
67
67
  * Use a bare-bones client and the command you need to make an API call.
68
68
  * ```javascript
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListRecordsRequest, ListRecordsResponse } from "../models/models_0";
4
+ import type { SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerFeatureStoreRuntimeClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListRecordsCommand}.
14
+ */
15
+ export interface ListRecordsCommandInput extends ListRecordsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRecordsCommand}.
21
+ */
22
+ export interface ListRecordsCommandOutput extends ListRecordsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListRecordsCommand_base: {
25
+ new (input: ListRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListRecordsCommandInput, ListRecordsCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListRecordsCommandInput, ListRecordsCommandOutput, SageMakerFeatureStoreRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Lists the <code>RecordIdentifier</code> values of all records stored in a
33
+ * <code>FeatureGroup</code>'s <code>OnlineStore</code>. This enables you to discover which
34
+ * records exist without retrieving the full record data.</p>
35
+ * @example
36
+ * Use a bare-bones client and the command you need to make an API call.
37
+ * ```javascript
38
+ * import { SageMakerFeatureStoreRuntimeClient, ListRecordsCommand } from "@aws-sdk/client-sagemaker-featurestore-runtime"; // ES Modules import
39
+ * // const { SageMakerFeatureStoreRuntimeClient, ListRecordsCommand } = require("@aws-sdk/client-sagemaker-featurestore-runtime"); // CommonJS import
40
+ * // import type { SageMakerFeatureStoreRuntimeClientConfig } from "@aws-sdk/client-sagemaker-featurestore-runtime";
41
+ * const config = {}; // type is SageMakerFeatureStoreRuntimeClientConfig
42
+ * const client = new SageMakerFeatureStoreRuntimeClient(config);
43
+ * const input = { // ListRecordsRequest
44
+ * FeatureGroupName: "STRING_VALUE", // required
45
+ * MaxResults: Number("int"),
46
+ * NextToken: "STRING_VALUE",
47
+ * IncludeSoftDeletedRecords: true || false,
48
+ * };
49
+ * const command = new ListRecordsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListRecordsResponse
52
+ * // RecordIdentifiers: [ // RecordIdentifierList // required
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // NextToken: "STRING_VALUE",
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListRecordsCommandInput - {@link ListRecordsCommandInput}
61
+ * @returns {@link ListRecordsCommandOutput}
62
+ * @see {@link ListRecordsCommandInput} for command's `input` shape.
63
+ * @see {@link ListRecordsCommandOutput} for command's `response` shape.
64
+ * @see {@link SageMakerFeatureStoreRuntimeClientResolvedConfig | config} for SageMakerFeatureStoreRuntimeClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessForbidden} (client fault)
67
+ * <p>You do not have permission to perform an action.</p>
68
+ *
69
+ * @throws {@link InternalFailure} (server fault)
70
+ * <p>An internal failure occurred. Try your request again. If the problem persists, contact
71
+ * Amazon Web Services customer support.</p>
72
+ *
73
+ * @throws {@link ResourceNotFound} (client fault)
74
+ * <p>A resource that is required to perform an action was not found.</p>
75
+ *
76
+ * @throws {@link ServiceUnavailable} (server fault)
77
+ * <p>The service is currently unavailable.</p>
78
+ *
79
+ * @throws {@link ValidationError} (client fault)
80
+ * <p>There was an error validating your request.</p>
81
+ *
82
+ * @throws {@link SageMakerFeatureStoreRuntimeServiceException}
83
+ * <p>Base exception class for all service exceptions from SageMakerFeatureStoreRuntime service.</p>
84
+ *
85
+ *
86
+ * @example List record identifiers from a feature group
87
+ * ```javascript
88
+ * //
89
+ * const input = {
90
+ * FeatureGroupName: "my-feature-group",
91
+ * MaxResults: 10
92
+ * };
93
+ * const command = new ListRecordsCommand(input);
94
+ * const response = await client.send(command);
95
+ * /* response is
96
+ * {
97
+ * NextToken: "eyJsYXN0RXZhbHVhdGVkS2V5IjoiYWJjMTIzIn0=",
98
+ * RecordIdentifiers: [
99
+ * "record-id-1",
100
+ * "record-id-2"
101
+ * ]
102
+ * }
103
+ * *\/
104
+ * ```
105
+ *
106
+ * @public
107
+ */
108
+ export declare class ListRecordsCommand extends ListRecordsCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: ListRecordsRequest;
113
+ output: ListRecordsResponse;
114
+ };
115
+ sdk: {
116
+ input: ListRecordsCommandInput;
117
+ output: ListRecordsCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -1,4 +1,6 @@
1
1
  export * from "./BatchGetRecordCommand";
2
+ export * from "./BatchWriteRecordCommand";
2
3
  export * from "./DeleteRecordCommand";
3
4
  export * from "./GetRecordCommand";
5
+ export * from "./ListRecordsCommand";
4
6
  export * from "./PutRecordCommand";
@@ -36,6 +36,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
36
36
  export type { SageMakerFeatureStoreRuntimeExtensionConfiguration } from "./extensionConfiguration";
37
37
  export * from "./commands";
38
38
  export * from "./schemas/schemas_0";
39
+ export * from "./pagination";
39
40
  export * from "./models/enums";
40
41
  export * from "./models/errors";
41
42
  export * from "./models/models_0";
@@ -10,18 +10,6 @@ export declare const ExpirationTimeResponse: {
10
10
  * @public
11
11
  */
12
12
  export type ExpirationTimeResponse = (typeof ExpirationTimeResponse)[keyof typeof ExpirationTimeResponse];
13
- /**
14
- * @public
15
- * @enum
16
- */
17
- export declare const DeletionMode: {
18
- readonly HARD_DELETE: "HardDelete";
19
- readonly SOFT_DELETE: "SoftDelete";
20
- };
21
- /**
22
- * @public
23
- */
24
- export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
25
13
  /**
26
14
  * @public
27
15
  * @enum
@@ -49,3 +37,15 @@ export declare const TtlDurationUnit: {
49
37
  * @public
50
38
  */
51
39
  export type TtlDurationUnit = (typeof TtlDurationUnit)[keyof typeof TtlDurationUnit];
40
+ /**
41
+ * @public
42
+ * @enum
43
+ */
44
+ export declare const DeletionMode: {
45
+ readonly HARD_DELETE: "HardDelete";
46
+ readonly SOFT_DELETE: "SoftDelete";
47
+ };
48
+ /**
49
+ * @public
50
+ */
51
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];