@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
@@ -148,6 +148,112 @@ export interface BatchGetRecordResponse {
148
148
  */
149
149
  UnprocessedIdentifiers: BatchGetRecordIdentifier[] | undefined;
150
150
  }
151
+ /**
152
+ * <p>Time to live duration, where the record is hard deleted after the expiration time is
153
+ * reached; <code>ExpiresAt</code> = <code>EventTime</code> + <code>TtlDuration</code>. For
154
+ * 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>
155
+ * @public
156
+ */
157
+ export interface TtlDuration {
158
+ /**
159
+ * <p>
160
+ * <code>TtlDuration</code> time unit.</p>
161
+ * @public
162
+ */
163
+ Unit: TtlDurationUnit | undefined;
164
+ /**
165
+ * <p>
166
+ * <code>TtlDuration</code> time value.</p>
167
+ * @public
168
+ */
169
+ Value: number | undefined;
170
+ }
171
+ /**
172
+ * <p>An entry to write as part of a <code>BatchWriteRecord</code> request.</p>
173
+ * @public
174
+ */
175
+ export interface BatchWriteRecordEntry {
176
+ /**
177
+ * <p>The name or Amazon Resource Name (ARN) of the <code>FeatureGroup</code> to write the
178
+ * record to.</p>
179
+ * @public
180
+ */
181
+ FeatureGroupName: string | undefined;
182
+ /**
183
+ * <p>List of FeatureValues to be inserted. This will be a full over-write.</p>
184
+ * @public
185
+ */
186
+ Record: FeatureValue[] | undefined;
187
+ /**
188
+ * <p>A list of stores to which you're adding the record. By default, Feature Store adds the
189
+ * record to all of the stores that you're using for the
190
+ * <code>FeatureGroup</code>.</p>
191
+ * @public
192
+ */
193
+ TargetStores?: TargetStore[] | undefined;
194
+ /**
195
+ * <p>Time to live duration for this entry, where the record is hard deleted after the
196
+ * expiration time is reached; <code>ExpiresAt</code> = <code>EventTime</code> +
197
+ * <code>TtlDuration</code>. This overrides the request level
198
+ * <code>TtlDuration</code>.</p>
199
+ * @public
200
+ */
201
+ TtlDuration?: TtlDuration | undefined;
202
+ }
203
+ /**
204
+ * @public
205
+ */
206
+ export interface BatchWriteRecordRequest {
207
+ /**
208
+ * <p>A list of records to write. Each entry specifies the <code>FeatureGroup</code>, the
209
+ * record data, and optionally target stores and a TTL duration.</p>
210
+ * @public
211
+ */
212
+ Entries: BatchWriteRecordEntry[] | undefined;
213
+ /**
214
+ * <p>Time to live duration applied to all entries in the batch that do not specify their own
215
+ * <code>TtlDuration</code>; <code>ExpiresAt</code> = <code>EventTime</code> +
216
+ * <code>TtlDuration</code>. For 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>
217
+ * @public
218
+ */
219
+ TtlDuration?: TtlDuration | undefined;
220
+ }
221
+ /**
222
+ * <p>The error that has occurred when attempting to write a record in a batch.</p>
223
+ * @public
224
+ */
225
+ export interface BatchWriteRecordError {
226
+ /**
227
+ * <p>The entry that failed to be written.</p>
228
+ * @public
229
+ */
230
+ Entry: BatchWriteRecordEntry | undefined;
231
+ /**
232
+ * <p>The error code for the failed record write.</p>
233
+ * @public
234
+ */
235
+ ErrorCode: string | undefined;
236
+ /**
237
+ * <p>The error message for the failed record write.</p>
238
+ * @public
239
+ */
240
+ ErrorMessage: string | undefined;
241
+ }
242
+ /**
243
+ * @public
244
+ */
245
+ export interface BatchWriteRecordResponse {
246
+ /**
247
+ * <p>A list of errors that occurred when writing records in the batch.</p>
248
+ * @public
249
+ */
250
+ Errors: BatchWriteRecordError[] | undefined;
251
+ /**
252
+ * <p>A list of entries that were not processed. These entries can be retried.</p>
253
+ * @public
254
+ */
255
+ UnprocessedEntries: BatchWriteRecordEntry[] | undefined;
256
+ }
151
257
  /**
152
258
  * @public
153
259
  */
@@ -230,24 +336,47 @@ export interface GetRecordResponse {
230
336
  ExpiresAt?: string | undefined;
231
337
  }
232
338
  /**
233
- * <p>Time to live duration, where the record is hard deleted after the expiration time is
234
- * reached; <code>ExpiresAt</code> = <code>EventTime</code> + <code>TtlDuration</code>. For
235
- * 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>
236
339
  * @public
237
340
  */
238
- export interface TtlDuration {
341
+ export interface ListRecordsRequest {
239
342
  /**
240
- * <p>
241
- * <code>TtlDuration</code> time unit.</p>
343
+ * <p>The name or Amazon Resource Name (ARN) of the feature group to list records from.</p>
242
344
  * @public
243
345
  */
244
- Unit: TtlDurationUnit | undefined;
346
+ FeatureGroupName: string | undefined;
245
347
  /**
246
- * <p>
247
- * <code>TtlDuration</code> time value.</p>
348
+ * <p>The maximum number of record identifiers to return in a single page of results. For the <code>InMemory</code> tier, this value is a hint and not a strict requirement. The response may contain more or fewer results than the specified <code>MaxResults</code>.</p>
248
349
  * @public
249
350
  */
250
- Value: number | undefined;
351
+ MaxResults?: number | undefined;
352
+ /**
353
+ * <p>A token to resume pagination of <code>ListRecords</code> results.</p>
354
+ * @public
355
+ */
356
+ NextToken?: string | undefined;
357
+ /**
358
+ * <p>If set to <code>true</code>, the result includes records that have been soft
359
+ * deleted.</p>
360
+ * @public
361
+ */
362
+ IncludeSoftDeletedRecords?: boolean | undefined;
363
+ }
364
+ /**
365
+ * @public
366
+ */
367
+ export interface ListRecordsResponse {
368
+ /**
369
+ * <p>A list of record identifier values for the records stored in the
370
+ * <code>OnlineStore</code>.</p>
371
+ * @public
372
+ */
373
+ RecordIdentifiers: string[] | undefined;
374
+ /**
375
+ * <p>A token to resume pagination if the response includes more record identifiers than
376
+ * <code>MaxResults</code>.</p>
377
+ * @public
378
+ */
379
+ NextToken?: string | undefined;
251
380
  }
252
381
  /**
253
382
  * @public
@@ -0,0 +1,8 @@
1
+ import type { PaginationConfiguration } from "@smithy/types";
2
+ import { SageMakerFeatureStoreRuntimeClient } from "../SageMakerFeatureStoreRuntimeClient";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface SageMakerFeatureStoreRuntimePaginationConfiguration extends PaginationConfiguration {
7
+ client: SageMakerFeatureStoreRuntimeClient;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListRecordsCommandInput, ListRecordsCommandOutput } from "../commands/ListRecordsCommand";
3
+ import type { SageMakerFeatureStoreRuntimePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListRecords: (config: SageMakerFeatureStoreRuntimePaginationConfiguration, input: ListRecordsCommandInput, ...rest: any[]) => Paginator<ListRecordsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRecordsPaginator";
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: SageMakerFeatureStoreRuntimeClie
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: SageMakerFeatureStoreRuntimeClie
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: SageMakerFeatureStoreRuntimeClie
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -17,13 +17,21 @@ export declare var BatchGetRecordIdentifier$: StaticStructureSchema;
17
17
  export declare var BatchGetRecordRequest$: StaticStructureSchema;
18
18
  export declare var BatchGetRecordResponse$: StaticStructureSchema;
19
19
  export declare var BatchGetRecordResultDetail$: StaticStructureSchema;
20
+ export declare var BatchWriteRecordEntry$: StaticStructureSchema;
21
+ export declare var BatchWriteRecordError$: StaticStructureSchema;
22
+ export declare var BatchWriteRecordRequest$: StaticStructureSchema;
23
+ export declare var BatchWriteRecordResponse$: StaticStructureSchema;
20
24
  export declare var DeleteRecordRequest$: StaticStructureSchema;
21
25
  export declare var FeatureValue$: StaticStructureSchema;
22
26
  export declare var GetRecordRequest$: StaticStructureSchema;
23
27
  export declare var GetRecordResponse$: StaticStructureSchema;
28
+ export declare var ListRecordsRequest$: StaticStructureSchema;
29
+ export declare var ListRecordsResponse$: StaticStructureSchema;
24
30
  export declare var PutRecordRequest$: StaticStructureSchema;
25
31
  export declare var TtlDuration$: StaticStructureSchema;
26
32
  export declare var BatchGetRecord$: StaticOperationSchema;
33
+ export declare var BatchWriteRecord$: StaticOperationSchema;
27
34
  export declare var DeleteRecord$: StaticOperationSchema;
28
35
  export declare var GetRecord$: StaticOperationSchema;
36
+ export declare var ListRecords$: StaticOperationSchema;
29
37
  export declare var PutRecord$: StaticOperationSchema;
@@ -1,8 +1,16 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  BatchGetRecordCommandInput,
4
8
  BatchGetRecordCommandOutput,
5
9
  } from "./commands/BatchGetRecordCommand";
10
+ import {
11
+ BatchWriteRecordCommandInput,
12
+ BatchWriteRecordCommandOutput,
13
+ } from "./commands/BatchWriteRecordCommand";
6
14
  import {
7
15
  DeleteRecordCommandInput,
8
16
  DeleteRecordCommandOutput,
@@ -11,6 +19,10 @@ import {
11
19
  GetRecordCommandInput,
12
20
  GetRecordCommandOutput,
13
21
  } from "./commands/GetRecordCommand";
22
+ import {
23
+ ListRecordsCommandInput,
24
+ ListRecordsCommandOutput,
25
+ } from "./commands/ListRecordsCommand";
14
26
  import {
15
27
  PutRecordCommandInput,
16
28
  PutRecordCommandOutput,
@@ -30,6 +42,19 @@ export interface SageMakerFeatureStoreRuntime {
30
42
  options: __HttpHandlerOptions,
31
43
  cb: (err: any, data?: BatchGetRecordCommandOutput) => void
32
44
  ): void;
45
+ batchWriteRecord(
46
+ args: BatchWriteRecordCommandInput,
47
+ options?: __HttpHandlerOptions
48
+ ): Promise<BatchWriteRecordCommandOutput>;
49
+ batchWriteRecord(
50
+ args: BatchWriteRecordCommandInput,
51
+ cb: (err: any, data?: BatchWriteRecordCommandOutput) => void
52
+ ): void;
53
+ batchWriteRecord(
54
+ args: BatchWriteRecordCommandInput,
55
+ options: __HttpHandlerOptions,
56
+ cb: (err: any, data?: BatchWriteRecordCommandOutput) => void
57
+ ): void;
33
58
  deleteRecord(
34
59
  args: DeleteRecordCommandInput,
35
60
  options?: __HttpHandlerOptions
@@ -56,6 +81,19 @@ export interface SageMakerFeatureStoreRuntime {
56
81
  options: __HttpHandlerOptions,
57
82
  cb: (err: any, data?: GetRecordCommandOutput) => void
58
83
  ): void;
84
+ listRecords(
85
+ args: ListRecordsCommandInput,
86
+ options?: __HttpHandlerOptions
87
+ ): Promise<ListRecordsCommandOutput>;
88
+ listRecords(
89
+ args: ListRecordsCommandInput,
90
+ cb: (err: any, data?: ListRecordsCommandOutput) => void
91
+ ): void;
92
+ listRecords(
93
+ args: ListRecordsCommandInput,
94
+ options: __HttpHandlerOptions,
95
+ cb: (err: any, data?: ListRecordsCommandOutput) => void
96
+ ): void;
59
97
  putRecord(
60
98
  args: PutRecordCommandInput,
61
99
  options?: __HttpHandlerOptions
@@ -69,6 +107,13 @@ export interface SageMakerFeatureStoreRuntime {
69
107
  options: __HttpHandlerOptions,
70
108
  cb: (err: any, data?: PutRecordCommandOutput) => void
71
109
  ): void;
110
+ paginateListRecords(
111
+ args: ListRecordsCommandInput,
112
+ paginationConfig?: Pick<
113
+ PaginationConfiguration,
114
+ Exclude<keyof PaginationConfiguration, "client">
115
+ >
116
+ ): Paginator<ListRecordsCommandOutput>;
72
117
  }
73
118
  export declare class SageMakerFeatureStoreRuntime
74
119
  extends SageMakerFeatureStoreRuntimeClient
@@ -40,6 +40,10 @@ import {
40
40
  BatchGetRecordCommandInput,
41
41
  BatchGetRecordCommandOutput,
42
42
  } from "./commands/BatchGetRecordCommand";
43
+ import {
44
+ BatchWriteRecordCommandInput,
45
+ BatchWriteRecordCommandOutput,
46
+ } from "./commands/BatchWriteRecordCommand";
43
47
  import {
44
48
  DeleteRecordCommandInput,
45
49
  DeleteRecordCommandOutput,
@@ -48,6 +52,10 @@ import {
48
52
  GetRecordCommandInput,
49
53
  GetRecordCommandOutput,
50
54
  } from "./commands/GetRecordCommand";
55
+ import {
56
+ ListRecordsCommandInput,
57
+ ListRecordsCommandOutput,
58
+ } from "./commands/ListRecordsCommand";
51
59
  import {
52
60
  PutRecordCommandInput,
53
61
  PutRecordCommandOutput,
@@ -61,13 +69,17 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
61
69
  export { __Client };
62
70
  export type ServiceInputTypes =
63
71
  | BatchGetRecordCommandInput
72
+ | BatchWriteRecordCommandInput
64
73
  | DeleteRecordCommandInput
65
74
  | GetRecordCommandInput
75
+ | ListRecordsCommandInput
66
76
  | PutRecordCommandInput;
67
77
  export type ServiceOutputTypes =
68
78
  | BatchGetRecordCommandOutput
79
+ | BatchWriteRecordCommandOutput
69
80
  | DeleteRecordCommandOutput
70
81
  | GetRecordCommandOutput
82
+ | ListRecordsCommandOutput
71
83
  | PutRecordCommandOutput;
72
84
  export interface ClientDefaults
73
85
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,52 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BatchWriteRecordRequest,
5
+ BatchWriteRecordResponse,
6
+ } from "../models/models_0";
7
+ import {
8
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../SageMakerFeatureStoreRuntimeClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface BatchWriteRecordCommandInput extends BatchWriteRecordRequest {}
15
+ export interface BatchWriteRecordCommandOutput
16
+ extends BatchWriteRecordResponse,
17
+ __MetadataBearer {}
18
+ declare const BatchWriteRecordCommand_base: {
19
+ new (
20
+ input: BatchWriteRecordCommandInput
21
+ ): import("@smithy/core/client").CommandImpl<
22
+ BatchWriteRecordCommandInput,
23
+ BatchWriteRecordCommandOutput,
24
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ input: BatchWriteRecordCommandInput
30
+ ): import("@smithy/core/client").CommandImpl<
31
+ BatchWriteRecordCommandInput,
32
+ BatchWriteRecordCommandOutput,
33
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): {
38
+ [x: string]: unknown;
39
+ };
40
+ };
41
+ export declare class BatchWriteRecordCommand extends BatchWriteRecordCommand_base {
42
+ protected static __types: {
43
+ api: {
44
+ input: BatchWriteRecordRequest;
45
+ output: BatchWriteRecordResponse;
46
+ };
47
+ sdk: {
48
+ input: BatchWriteRecordCommandInput;
49
+ output: BatchWriteRecordCommandOutput;
50
+ };
51
+ };
52
+ }
@@ -0,0 +1,49 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListRecordsRequest, ListRecordsResponse } from "../models/models_0";
4
+ import {
5
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../SageMakerFeatureStoreRuntimeClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface ListRecordsCommandInput extends ListRecordsRequest {}
12
+ export interface ListRecordsCommandOutput
13
+ extends ListRecordsResponse,
14
+ __MetadataBearer {}
15
+ declare const ListRecordsCommand_base: {
16
+ new (
17
+ input: ListRecordsCommandInput
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ ListRecordsCommandInput,
20
+ ListRecordsCommandOutput,
21
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: ListRecordsCommandInput
27
+ ): import("@smithy/core/client").CommandImpl<
28
+ ListRecordsCommandInput,
29
+ ListRecordsCommandOutput,
30
+ SageMakerFeatureStoreRuntimeClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): {
35
+ [x: string]: unknown;
36
+ };
37
+ };
38
+ export declare class ListRecordsCommand extends ListRecordsCommand_base {
39
+ protected static __types: {
40
+ api: {
41
+ input: ListRecordsRequest;
42
+ output: ListRecordsResponse;
43
+ };
44
+ sdk: {
45
+ input: ListRecordsCommandInput;
46
+ output: ListRecordsCommandOutput;
47
+ };
48
+ };
49
+ }
@@ -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";
@@ -5,6 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SageMakerFeatureStoreRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./schemas/schemas_0";
8
+ export * from "./pagination";
8
9
  export * from "./models/enums";
9
10
  export * from "./models/errors";
10
11
  export * from "./models/models_0";
@@ -4,11 +4,6 @@ export declare const ExpirationTimeResponse: {
4
4
  };
5
5
  export type ExpirationTimeResponse =
6
6
  (typeof ExpirationTimeResponse)[keyof typeof ExpirationTimeResponse];
7
- export declare const DeletionMode: {
8
- readonly HARD_DELETE: "HardDelete";
9
- readonly SOFT_DELETE: "SoftDelete";
10
- };
11
- export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
12
7
  export declare const TargetStore: {
13
8
  readonly OFFLINE_STORE: "OfflineStore";
14
9
  readonly ONLINE_STORE: "OnlineStore";
@@ -23,3 +18,8 @@ export declare const TtlDurationUnit: {
23
18
  };
24
19
  export type TtlDurationUnit =
25
20
  (typeof TtlDurationUnit)[keyof typeof TtlDurationUnit];
21
+ export declare const DeletionMode: {
22
+ readonly HARD_DELETE: "HardDelete";
23
+ readonly SOFT_DELETE: "SoftDelete";
24
+ };
25
+ export type DeletionMode = (typeof DeletionMode)[keyof typeof DeletionMode];
@@ -35,6 +35,29 @@ export interface BatchGetRecordResponse {
35
35
  Errors: BatchGetRecordError[] | undefined;
36
36
  UnprocessedIdentifiers: BatchGetRecordIdentifier[] | undefined;
37
37
  }
38
+ export interface TtlDuration {
39
+ Unit: TtlDurationUnit | undefined;
40
+ Value: number | undefined;
41
+ }
42
+ export interface BatchWriteRecordEntry {
43
+ FeatureGroupName: string | undefined;
44
+ Record: FeatureValue[] | undefined;
45
+ TargetStores?: TargetStore[] | undefined;
46
+ TtlDuration?: TtlDuration | undefined;
47
+ }
48
+ export interface BatchWriteRecordRequest {
49
+ Entries: BatchWriteRecordEntry[] | undefined;
50
+ TtlDuration?: TtlDuration | undefined;
51
+ }
52
+ export interface BatchWriteRecordError {
53
+ Entry: BatchWriteRecordEntry | undefined;
54
+ ErrorCode: string | undefined;
55
+ ErrorMessage: string | undefined;
56
+ }
57
+ export interface BatchWriteRecordResponse {
58
+ Errors: BatchWriteRecordError[] | undefined;
59
+ UnprocessedEntries: BatchWriteRecordEntry[] | undefined;
60
+ }
38
61
  export interface DeleteRecordRequest {
39
62
  FeatureGroupName: string | undefined;
40
63
  RecordIdentifierValueAsString: string | undefined;
@@ -52,9 +75,15 @@ export interface GetRecordResponse {
52
75
  Record?: FeatureValue[] | undefined;
53
76
  ExpiresAt?: string | undefined;
54
77
  }
55
- export interface TtlDuration {
56
- Unit: TtlDurationUnit | undefined;
57
- Value: number | undefined;
78
+ export interface ListRecordsRequest {
79
+ FeatureGroupName: string | undefined;
80
+ MaxResults?: number | undefined;
81
+ NextToken?: string | undefined;
82
+ IncludeSoftDeletedRecords?: boolean | undefined;
83
+ }
84
+ export interface ListRecordsResponse {
85
+ RecordIdentifiers: string[] | undefined;
86
+ NextToken?: string | undefined;
58
87
  }
59
88
  export interface PutRecordRequest {
60
89
  FeatureGroupName: string | undefined;
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { SageMakerFeatureStoreRuntimeClient } from "../SageMakerFeatureStoreRuntimeClient";
3
+ export interface SageMakerFeatureStoreRuntimePaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: SageMakerFeatureStoreRuntimeClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListRecordsCommandInput,
4
+ ListRecordsCommandOutput,
5
+ } from "../commands/ListRecordsCommand";
6
+ import { SageMakerFeatureStoreRuntimePaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListRecords: (
8
+ config: SageMakerFeatureStoreRuntimePaginationConfiguration,
9
+ input: ListRecordsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListRecordsCommandOutput>;
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRecordsPaginator";
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (
23
23
  | RequestHandler;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
25
  sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
27
33
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
34
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
35
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -24,7 +24,13 @@ export declare const getRuntimeConfig: (
24
24
  | import("@smithy/core/protocols").HttpHandler<any>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  sha256: import("@smithy/types").HashConstructor;
27
- streamCollector: import("@smithy/types").StreamCollector;
27
+ streamCollector: (
28
+ stream:
29
+ | import("stream").Readable
30
+ | import("stream/web").ReadableStream
31
+ | ReadableStream
32
+ | Blob
33
+ ) => Promise<Uint8Array>;
28
34
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
35
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
36
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (
22
22
  apiVersion: string;
23
23
  urlParser: import("@smithy/types").UrlParser;
24
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  base64Decoder: import("@smithy/types").Decoder;
27
33
  base64Encoder: (_input: Uint8Array | string) => string;
28
34
  utf8Decoder: import("@smithy/types").Decoder;
@@ -16,13 +16,21 @@ export declare var BatchGetRecordIdentifier$: StaticStructureSchema;
16
16
  export declare var BatchGetRecordRequest$: StaticStructureSchema;
17
17
  export declare var BatchGetRecordResponse$: StaticStructureSchema;
18
18
  export declare var BatchGetRecordResultDetail$: StaticStructureSchema;
19
+ export declare var BatchWriteRecordEntry$: StaticStructureSchema;
20
+ export declare var BatchWriteRecordError$: StaticStructureSchema;
21
+ export declare var BatchWriteRecordRequest$: StaticStructureSchema;
22
+ export declare var BatchWriteRecordResponse$: StaticStructureSchema;
19
23
  export declare var DeleteRecordRequest$: StaticStructureSchema;
20
24
  export declare var FeatureValue$: StaticStructureSchema;
21
25
  export declare var GetRecordRequest$: StaticStructureSchema;
22
26
  export declare var GetRecordResponse$: StaticStructureSchema;
27
+ export declare var ListRecordsRequest$: StaticStructureSchema;
28
+ export declare var ListRecordsResponse$: StaticStructureSchema;
23
29
  export declare var PutRecordRequest$: StaticStructureSchema;
24
30
  export declare var TtlDuration$: StaticStructureSchema;
25
31
  export declare var BatchGetRecord$: StaticOperationSchema;
32
+ export declare var BatchWriteRecord$: StaticOperationSchema;
26
33
  export declare var DeleteRecord$: StaticOperationSchema;
27
34
  export declare var GetRecord$: StaticOperationSchema;
35
+ export declare var ListRecords$: StaticOperationSchema;
28
36
  export declare var PutRecord$: StaticOperationSchema;