@aws-sdk/client-sagemaker-featurestore-runtime 3.1075.0 → 3.1077.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 +21 -7
- package/dist-cjs/index.js +572 -21
- package/dist-es/SageMakerFeatureStoreRuntime.js +9 -1
- package/dist-es/commands/BatchWriteRecordCommand.js +16 -0
- package/dist-es/commands/ListRecordsCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +4 -4
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRecordsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +64 -0
- package/dist-types/SageMakerFeatureStoreRuntime.d.ts +22 -1
- package/dist-types/SageMakerFeatureStoreRuntimeClient.d.ts +4 -2
- package/dist-types/commands/BatchWriteRecordCommand.d.ts +197 -0
- package/dist-types/commands/DeleteRecordCommand.d.ts +1 -1
- package/dist-types/commands/ListRecordsCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -12
- package/dist-types/models/models_0.d.ts +139 -10
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/SageMakerFeatureStoreRuntime.d.ts +46 -1
- package/dist-types/ts3.4/SageMakerFeatureStoreRuntimeClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchWriteRecordCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +5 -5
- package/dist-types/ts3.4/models/models_0.d.ts +32 -3
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/SageMakerFeatureStoreRuntimeServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -71
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- 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
|
+
}
|
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";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -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");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "AmazonSageMakerFeatureStoreRuntime",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "SageMaker FeatureStore Runtime",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -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
|
|
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
|