@aws-sdk/client-sagemaker-featurestore-runtime 3.927.0 → 3.929.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/dist-cjs/index.js +295 -261
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SageMakerFeatureStoreRuntimeClient.js +2 -0
- package/dist-es/commands/BatchGetRecordCommand.js +3 -9
- package/dist-es/commands/DeleteRecordCommand.js +3 -9
- package/dist-es/commands/GetRecordCommand.js +3 -9
- package/dist-es/commands/PutRecordCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +281 -0
- package/dist-types/SageMakerFeatureStoreRuntimeClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +32 -0
- package/dist-types/ts3.4/SageMakerFeatureStoreRuntimeClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +37 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -226
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-featurestore-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Featurestore Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sagemaker-featurestore-runtime",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessForbidden, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/models_0";
|
|
5
|
-
import { SageMakerFeatureStoreRuntimeServiceException as __BaseException } from "../models/SageMakerFeatureStoreRuntimeServiceException";
|
|
6
|
-
export const se_BatchGetRecordCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/BatchGetRecord");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
ExpirationTimeResponse: [],
|
|
15
|
-
Identifiers: (_) => _json(_),
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_DeleteRecordCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {};
|
|
23
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
24
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
25
|
-
const query = map({
|
|
26
|
-
[_RIVAS]: [, __expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
27
|
-
[_ET]: [, __expectNonNull(input[_ET], `EventTime`)],
|
|
28
|
-
[_TS]: [() => input.TargetStores !== void 0, () => input[_TS] || []],
|
|
29
|
-
[_DM]: [, input[_DM]],
|
|
30
|
-
});
|
|
31
|
-
let body;
|
|
32
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_GetRecordCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = {};
|
|
38
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
39
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
40
|
-
const query = map({
|
|
41
|
-
[_RIVAS]: [, __expectNonNull(input[_RIVAS], `RecordIdentifierValueAsString`)],
|
|
42
|
-
[_FNe]: [() => input.FeatureNames !== void 0, () => input[_FN] || []],
|
|
43
|
-
[_ETR]: [, input[_ETR]],
|
|
44
|
-
});
|
|
45
|
-
let body;
|
|
46
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_PutRecordCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {
|
|
52
|
-
"content-type": "application/json",
|
|
53
|
-
};
|
|
54
|
-
b.bp("/FeatureGroup/{FeatureGroupName}");
|
|
55
|
-
b.p("FeatureGroupName", () => input.FeatureGroupName, "{FeatureGroupName}", false);
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(take(input, {
|
|
58
|
-
Record: (_) => _json(_),
|
|
59
|
-
TargetStores: (_) => _json(_),
|
|
60
|
-
TtlDuration: (_) => _json(_),
|
|
61
|
-
}));
|
|
62
|
-
b.m("PUT").h(headers).b(body);
|
|
63
|
-
return b.build();
|
|
64
|
-
};
|
|
65
|
-
export const de_BatchGetRecordCommand = async (output, context) => {
|
|
66
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
67
|
-
return de_CommandError(output, context);
|
|
68
|
-
}
|
|
69
|
-
const contents = map({
|
|
70
|
-
$metadata: deserializeMetadata(output),
|
|
71
|
-
});
|
|
72
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
73
|
-
const doc = take(data, {
|
|
74
|
-
Errors: _json,
|
|
75
|
-
Records: _json,
|
|
76
|
-
UnprocessedIdentifiers: _json,
|
|
77
|
-
});
|
|
78
|
-
Object.assign(contents, doc);
|
|
79
|
-
return contents;
|
|
80
|
-
};
|
|
81
|
-
export const de_DeleteRecordCommand = async (output, context) => {
|
|
82
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
83
|
-
return de_CommandError(output, context);
|
|
84
|
-
}
|
|
85
|
-
const contents = map({
|
|
86
|
-
$metadata: deserializeMetadata(output),
|
|
87
|
-
});
|
|
88
|
-
await collectBody(output.body, context);
|
|
89
|
-
return contents;
|
|
90
|
-
};
|
|
91
|
-
export const de_GetRecordCommand = async (output, context) => {
|
|
92
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
93
|
-
return de_CommandError(output, context);
|
|
94
|
-
}
|
|
95
|
-
const contents = map({
|
|
96
|
-
$metadata: deserializeMetadata(output),
|
|
97
|
-
});
|
|
98
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
99
|
-
const doc = take(data, {
|
|
100
|
-
ExpiresAt: __expectString,
|
|
101
|
-
Record: _json,
|
|
102
|
-
});
|
|
103
|
-
Object.assign(contents, doc);
|
|
104
|
-
return contents;
|
|
105
|
-
};
|
|
106
|
-
export const de_PutRecordCommand = async (output, context) => {
|
|
107
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
108
|
-
return de_CommandError(output, context);
|
|
109
|
-
}
|
|
110
|
-
const contents = map({
|
|
111
|
-
$metadata: deserializeMetadata(output),
|
|
112
|
-
});
|
|
113
|
-
await collectBody(output.body, context);
|
|
114
|
-
return contents;
|
|
115
|
-
};
|
|
116
|
-
const de_CommandError = async (output, context) => {
|
|
117
|
-
const parsedOutput = {
|
|
118
|
-
...output,
|
|
119
|
-
body: await parseErrorBody(output.body, context),
|
|
120
|
-
};
|
|
121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
122
|
-
switch (errorCode) {
|
|
123
|
-
case "AccessForbidden":
|
|
124
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#AccessForbidden":
|
|
125
|
-
throw await de_AccessForbiddenRes(parsedOutput, context);
|
|
126
|
-
case "InternalFailure":
|
|
127
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#InternalFailure":
|
|
128
|
-
throw await de_InternalFailureRes(parsedOutput, context);
|
|
129
|
-
case "ServiceUnavailable":
|
|
130
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ServiceUnavailable":
|
|
131
|
-
throw await de_ServiceUnavailableRes(parsedOutput, context);
|
|
132
|
-
case "ValidationError":
|
|
133
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ValidationError":
|
|
134
|
-
throw await de_ValidationErrorRes(parsedOutput, context);
|
|
135
|
-
case "ResourceNotFound":
|
|
136
|
-
case "com.amazonaws.sagemakerfeaturestoreruntime#ResourceNotFound":
|
|
137
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
138
|
-
default:
|
|
139
|
-
const parsedBody = parsedOutput.body;
|
|
140
|
-
return throwDefaultError({
|
|
141
|
-
output,
|
|
142
|
-
parsedBody,
|
|
143
|
-
errorCode,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
148
|
-
const de_AccessForbiddenRes = async (parsedOutput, context) => {
|
|
149
|
-
const contents = map({});
|
|
150
|
-
const data = parsedOutput.body;
|
|
151
|
-
const doc = take(data, {
|
|
152
|
-
Message: __expectString,
|
|
153
|
-
});
|
|
154
|
-
Object.assign(contents, doc);
|
|
155
|
-
const exception = new AccessForbidden({
|
|
156
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
157
|
-
...contents,
|
|
158
|
-
});
|
|
159
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
160
|
-
};
|
|
161
|
-
const de_InternalFailureRes = async (parsedOutput, context) => {
|
|
162
|
-
const contents = map({});
|
|
163
|
-
const data = parsedOutput.body;
|
|
164
|
-
const doc = take(data, {
|
|
165
|
-
Message: __expectString,
|
|
166
|
-
});
|
|
167
|
-
Object.assign(contents, doc);
|
|
168
|
-
const exception = new InternalFailure({
|
|
169
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
170
|
-
...contents,
|
|
171
|
-
});
|
|
172
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
173
|
-
};
|
|
174
|
-
const de_ResourceNotFoundRes = async (parsedOutput, context) => {
|
|
175
|
-
const contents = map({});
|
|
176
|
-
const data = parsedOutput.body;
|
|
177
|
-
const doc = take(data, {
|
|
178
|
-
Message: __expectString,
|
|
179
|
-
});
|
|
180
|
-
Object.assign(contents, doc);
|
|
181
|
-
const exception = new ResourceNotFound({
|
|
182
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
183
|
-
...contents,
|
|
184
|
-
});
|
|
185
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
186
|
-
};
|
|
187
|
-
const de_ServiceUnavailableRes = async (parsedOutput, context) => {
|
|
188
|
-
const contents = map({});
|
|
189
|
-
const data = parsedOutput.body;
|
|
190
|
-
const doc = take(data, {
|
|
191
|
-
Message: __expectString,
|
|
192
|
-
});
|
|
193
|
-
Object.assign(contents, doc);
|
|
194
|
-
const exception = new ServiceUnavailable({
|
|
195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
196
|
-
...contents,
|
|
197
|
-
});
|
|
198
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
199
|
-
};
|
|
200
|
-
const de_ValidationErrorRes = async (parsedOutput, context) => {
|
|
201
|
-
const contents = map({});
|
|
202
|
-
const data = parsedOutput.body;
|
|
203
|
-
const doc = take(data, {
|
|
204
|
-
Message: __expectString,
|
|
205
|
-
});
|
|
206
|
-
Object.assign(contents, doc);
|
|
207
|
-
const exception = new ValidationError({
|
|
208
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
209
|
-
...contents,
|
|
210
|
-
});
|
|
211
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
212
|
-
};
|
|
213
|
-
const deserializeMetadata = (output) => ({
|
|
214
|
-
httpStatusCode: output.statusCode,
|
|
215
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
216
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
217
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
218
|
-
});
|
|
219
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
220
|
-
const _DM = "DeletionMode";
|
|
221
|
-
const _ET = "EventTime";
|
|
222
|
-
const _ETR = "ExpirationTimeResponse";
|
|
223
|
-
const _FN = "FeatureNames";
|
|
224
|
-
const _FNe = "FeatureName";
|
|
225
|
-
const _RIVAS = "RecordIdentifierValueAsString";
|
|
226
|
-
const _TS = "TargetStores";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { BatchGetRecordCommandInput, BatchGetRecordCommandOutput } from "../commands/BatchGetRecordCommand";
|
|
4
|
-
import { DeleteRecordCommandInput, DeleteRecordCommandOutput } from "../commands/DeleteRecordCommand";
|
|
5
|
-
import { GetRecordCommandInput, GetRecordCommandOutput } from "../commands/GetRecordCommand";
|
|
6
|
-
import { PutRecordCommandInput, PutRecordCommandOutput } from "../commands/PutRecordCommand";
|
|
7
|
-
/**
|
|
8
|
-
* serializeAws_restJson1BatchGetRecordCommand
|
|
9
|
-
*/
|
|
10
|
-
export declare const se_BatchGetRecordCommand: (input: BatchGetRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
-
/**
|
|
12
|
-
* serializeAws_restJson1DeleteRecordCommand
|
|
13
|
-
*/
|
|
14
|
-
export declare const se_DeleteRecordCommand: (input: DeleteRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1GetRecordCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_GetRecordCommand: (input: GetRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1PutRecordCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_PutRecordCommand: (input: PutRecordCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* deserializeAws_restJson1BatchGetRecordCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const de_BatchGetRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetRecordCommandOutput>;
|
|
27
|
-
/**
|
|
28
|
-
* deserializeAws_restJson1DeleteRecordCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const de_DeleteRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteRecordCommandOutput>;
|
|
31
|
-
/**
|
|
32
|
-
* deserializeAws_restJson1GetRecordCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const de_GetRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRecordCommandOutput>;
|
|
35
|
-
/**
|
|
36
|
-
* deserializeAws_restJson1PutRecordCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const de_PutRecordCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRecordCommandOutput>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
BatchGetRecordCommandInput,
|
|
8
|
-
BatchGetRecordCommandOutput,
|
|
9
|
-
} from "../commands/BatchGetRecordCommand";
|
|
10
|
-
import {
|
|
11
|
-
DeleteRecordCommandInput,
|
|
12
|
-
DeleteRecordCommandOutput,
|
|
13
|
-
} from "../commands/DeleteRecordCommand";
|
|
14
|
-
import {
|
|
15
|
-
GetRecordCommandInput,
|
|
16
|
-
GetRecordCommandOutput,
|
|
17
|
-
} from "../commands/GetRecordCommand";
|
|
18
|
-
import {
|
|
19
|
-
PutRecordCommandInput,
|
|
20
|
-
PutRecordCommandOutput,
|
|
21
|
-
} from "../commands/PutRecordCommand";
|
|
22
|
-
export declare const se_BatchGetRecordCommand: (
|
|
23
|
-
input: BatchGetRecordCommandInput,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const se_DeleteRecordCommand: (
|
|
27
|
-
input: DeleteRecordCommandInput,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const se_GetRecordCommand: (
|
|
31
|
-
input: GetRecordCommandInput,
|
|
32
|
-
context: __SerdeContext
|
|
33
|
-
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const se_PutRecordCommand: (
|
|
35
|
-
input: PutRecordCommandInput,
|
|
36
|
-
context: __SerdeContext
|
|
37
|
-
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const de_BatchGetRecordCommand: (
|
|
39
|
-
output: __HttpResponse,
|
|
40
|
-
context: __SerdeContext
|
|
41
|
-
) => Promise<BatchGetRecordCommandOutput>;
|
|
42
|
-
export declare const de_DeleteRecordCommand: (
|
|
43
|
-
output: __HttpResponse,
|
|
44
|
-
context: __SerdeContext
|
|
45
|
-
) => Promise<DeleteRecordCommandOutput>;
|
|
46
|
-
export declare const de_GetRecordCommand: (
|
|
47
|
-
output: __HttpResponse,
|
|
48
|
-
context: __SerdeContext
|
|
49
|
-
) => Promise<GetRecordCommandOutput>;
|
|
50
|
-
export declare const de_PutRecordCommand: (
|
|
51
|
-
output: __HttpResponse,
|
|
52
|
-
context: __SerdeContext
|
|
53
|
-
) => Promise<PutRecordCommandOutput>;
|