@aws-sdk/client-sagemaker-featurestore-runtime 3.986.0 → 3.988.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 CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var SageMakerFeatureStoreRuntimeServiceException = require('./models/SageMakerFeatureStoreRuntimeServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,253 +113,6 @@ class SageMakerFeatureStoreRuntimeClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class SageMakerFeatureStoreRuntimeServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, SageMakerFeatureStoreRuntimeServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException {
121
- name = "AccessForbidden";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "AccessForbidden",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, AccessForbidden.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException {
135
- name = "InternalFailure";
136
- $fault = "server";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "InternalFailure",
141
- $fault: "server",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InternalFailure.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class ServiceUnavailable extends SageMakerFeatureStoreRuntimeServiceException {
149
- name = "ServiceUnavailable";
150
- $fault = "server";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "ServiceUnavailable",
155
- $fault: "server",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, ServiceUnavailable.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class ValidationError extends SageMakerFeatureStoreRuntimeServiceException {
163
- name = "ValidationError";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "ValidationError",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, ValidationError.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException {
177
- name = "ResourceNotFound";
178
- $fault = "client";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "ResourceNotFound",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, ResourceNotFound.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
-
191
- const _AF = "AccessForbidden";
192
- const _BGR = "BatchGetRecord";
193
- const _BGRE = "BatchGetRecordError";
194
- const _BGREa = "BatchGetRecordErrors";
195
- const _BGRI = "BatchGetRecordIdentifier";
196
- const _BGRIa = "BatchGetRecordIdentifiers";
197
- const _BGRR = "BatchGetRecordRequest";
198
- const _BGRRD = "BatchGetRecordResultDetail";
199
- const _BGRRDa = "BatchGetRecordResultDetails";
200
- const _BGRRa = "BatchGetRecordResponse";
201
- const _DM = "DeletionMode";
202
- const _DR = "DeleteRecord";
203
- const _DRR = "DeleteRecordRequest";
204
- const _E = "Errors";
205
- const _EA = "ExpiresAt";
206
- const _EC = "ErrorCode";
207
- const _EM = "ErrorMessage";
208
- const _ET = "EventTime";
209
- const _ETR = "ExpirationTimeResponse";
210
- const _FGN = "FeatureGroupName";
211
- const _FN = "FeatureNames";
212
- const _FNe = "FeatureName";
213
- const _FV = "FeatureValue";
214
- const _GR = "GetRecord";
215
- const _GRR = "GetRecordRequest";
216
- const _GRRe = "GetRecordResponse";
217
- const _I = "Identifiers";
218
- const _IF = "InternalFailure";
219
- const _M = "Message";
220
- const _PR = "PutRecord";
221
- const _PRR = "PutRecordRequest";
222
- const _R = "Records";
223
- const _RIVAS = "RecordIdentifierValueAsString";
224
- const _RIVASe = "RecordIdentifiersValueAsString";
225
- const _RNF = "ResourceNotFound";
226
- const _Re = "Record";
227
- const _SU = "ServiceUnavailable";
228
- const _TD = "TtlDuration";
229
- const _TS = "TargetStores";
230
- const _U = "Unit";
231
- const _UI = "UnprocessedIdentifiers";
232
- const _V = "Value";
233
- const _VAS = "ValueAsString";
234
- const _VASL = "ValueAsStringList";
235
- const _VE = "ValidationError";
236
- const _c = "client";
237
- const _e = "error";
238
- const _h = "http";
239
- const _hE = "httpError";
240
- const _hQ = "httpQuery";
241
- const _s = "server";
242
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerfeaturestoreruntime";
243
- const n0 = "com.amazonaws.sagemakerfeaturestoreruntime";
244
- var AccessForbidden$ = [-3, n0, _AF,
245
- { [_e]: _c, [_hE]: 403 },
246
- [_M],
247
- [0]
248
- ];
249
- schema.TypeRegistry.for(n0).registerError(AccessForbidden$, AccessForbidden);
250
- var BatchGetRecordError$ = [3, n0, _BGRE,
251
- 0,
252
- [_FGN, _RIVAS, _EC, _EM],
253
- [0, 0, 0, 0], 4
254
- ];
255
- var BatchGetRecordIdentifier$ = [3, n0, _BGRI,
256
- 0,
257
- [_FGN, _RIVASe, _FN],
258
- [0, 64 | 0, 64 | 0], 2
259
- ];
260
- var BatchGetRecordRequest$ = [3, n0, _BGRR,
261
- 0,
262
- [_I, _ETR],
263
- [() => BatchGetRecordIdentifiers, 0], 1
264
- ];
265
- var BatchGetRecordResponse$ = [3, n0, _BGRRa,
266
- 0,
267
- [_R, _E, _UI],
268
- [() => BatchGetRecordResultDetails, () => BatchGetRecordErrors, () => UnprocessedIdentifiers], 3
269
- ];
270
- var BatchGetRecordResultDetail$ = [3, n0, _BGRRD,
271
- 0,
272
- [_FGN, _RIVAS, _Re, _EA],
273
- [0, 0, () => _Record, 0], 3
274
- ];
275
- var DeleteRecordRequest$ = [3, n0, _DRR,
276
- 0,
277
- [_FGN, _RIVAS, _ET, _TS, _DM],
278
- [[0, 1], [0, { [_hQ]: _RIVAS }], [0, { [_hQ]: _ET }], [64 | 0, { [_hQ]: _TS }], [0, { [_hQ]: _DM }]], 3
279
- ];
280
- var FeatureValue$ = [3, n0, _FV,
281
- 0,
282
- [_FNe, _VAS, _VASL],
283
- [0, 0, 64 | 0], 1
284
- ];
285
- var GetRecordRequest$ = [3, n0, _GRR,
286
- 0,
287
- [_FGN, _RIVAS, _FN, _ETR],
288
- [[0, 1], [0, { [_hQ]: _RIVAS }], [64 | 0, { [_hQ]: _FNe }], [0, { [_hQ]: _ETR }]], 2
289
- ];
290
- var GetRecordResponse$ = [3, n0, _GRRe,
291
- 0,
292
- [_Re, _EA],
293
- [() => _Record, 0]
294
- ];
295
- var InternalFailure$ = [-3, n0, _IF,
296
- { [_e]: _s, [_hE]: 500 },
297
- [_M],
298
- [0]
299
- ];
300
- schema.TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
301
- var PutRecordRequest$ = [3, n0, _PRR,
302
- 0,
303
- [_FGN, _Re, _TS, _TD],
304
- [[0, 1], () => _Record, 64 | 0, () => TtlDuration$], 2
305
- ];
306
- var ResourceNotFound$ = [-3, n0, _RNF,
307
- { [_e]: _c, [_hE]: 404 },
308
- [_M],
309
- [0]
310
- ];
311
- schema.TypeRegistry.for(n0).registerError(ResourceNotFound$, ResourceNotFound);
312
- var ServiceUnavailable$ = [-3, n0, _SU,
313
- { [_e]: _s, [_hE]: 503 },
314
- [_M],
315
- [0]
316
- ];
317
- schema.TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
318
- var TtlDuration$ = [3, n0, _TD,
319
- 0,
320
- [_U, _V],
321
- [0, 1], 2
322
- ];
323
- var ValidationError$ = [-3, n0, _VE,
324
- { [_e]: _c, [_hE]: 400 },
325
- [_M],
326
- [0]
327
- ];
328
- schema.TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
329
- var __Unit = "unit";
330
- var SageMakerFeatureStoreRuntimeServiceException$ = [-3, _sm, "SageMakerFeatureStoreRuntimeServiceException", 0, [], []];
331
- schema.TypeRegistry.for(_sm).registerError(SageMakerFeatureStoreRuntimeServiceException$, SageMakerFeatureStoreRuntimeServiceException);
332
- var BatchGetRecordErrors = [1, n0, _BGREa,
333
- 0, () => BatchGetRecordError$
334
- ];
335
- var BatchGetRecordIdentifiers = [1, n0, _BGRIa,
336
- 0, () => BatchGetRecordIdentifier$
337
- ];
338
- var BatchGetRecordResultDetails = [1, n0, _BGRRDa,
339
- 0, () => BatchGetRecordResultDetail$
340
- ];
341
- var _Record = [1, n0, _Re,
342
- 0, () => FeatureValue$
343
- ];
344
- var UnprocessedIdentifiers = [1, n0, _UI,
345
- 0, () => BatchGetRecordIdentifier$
346
- ];
347
- var BatchGetRecord$ = [9, n0, _BGR,
348
- { [_h]: ["POST", "/BatchGetRecord", 200] }, () => BatchGetRecordRequest$, () => BatchGetRecordResponse$
349
- ];
350
- var DeleteRecord$ = [9, n0, _DR,
351
- { [_h]: ["DELETE", "/FeatureGroup/{FeatureGroupName}", 200] }, () => DeleteRecordRequest$, () => __Unit
352
- ];
353
- var GetRecord$ = [9, n0, _GR,
354
- { [_h]: ["GET", "/FeatureGroup/{FeatureGroupName}", 200] }, () => GetRecordRequest$, () => GetRecordResponse$
355
- ];
356
- var PutRecord$ = [9, n0, _PR,
357
- { [_h]: ["PUT", "/FeatureGroup/{FeatureGroupName}", 200] }, () => PutRecordRequest$, () => __Unit
358
- ];
359
-
360
116
  class BatchGetRecordCommand extends smithyClient.Command
361
117
  .classBuilder()
362
118
  .ep(commonParams)
@@ -365,7 +121,7 @@ class BatchGetRecordCommand extends smithyClient.Command
365
121
  })
366
122
  .s("AmazonSageMakerFeatureStoreRuntime", "BatchGetRecord", {})
367
123
  .n("SageMakerFeatureStoreRuntimeClient", "BatchGetRecordCommand")
368
- .sc(BatchGetRecord$)
124
+ .sc(schemas_0.BatchGetRecord$)
369
125
  .build() {
370
126
  }
371
127
 
@@ -377,7 +133,7 @@ class DeleteRecordCommand extends smithyClient.Command
377
133
  })
378
134
  .s("AmazonSageMakerFeatureStoreRuntime", "DeleteRecord", {})
379
135
  .n("SageMakerFeatureStoreRuntimeClient", "DeleteRecordCommand")
380
- .sc(DeleteRecord$)
136
+ .sc(schemas_0.DeleteRecord$)
381
137
  .build() {
382
138
  }
383
139
 
@@ -389,7 +145,7 @@ class GetRecordCommand extends smithyClient.Command
389
145
  })
390
146
  .s("AmazonSageMakerFeatureStoreRuntime", "GetRecord", {})
391
147
  .n("SageMakerFeatureStoreRuntimeClient", "GetRecordCommand")
392
- .sc(GetRecord$)
148
+ .sc(schemas_0.GetRecord$)
393
149
  .build() {
394
150
  }
395
151
 
@@ -401,7 +157,7 @@ class PutRecordCommand extends smithyClient.Command
401
157
  })
402
158
  .s("AmazonSageMakerFeatureStoreRuntime", "PutRecord", {})
403
159
  .n("SageMakerFeatureStoreRuntimeClient", "PutRecordCommand")
404
- .sc(PutRecord$)
160
+ .sc(schemas_0.PutRecord$)
405
161
  .build() {
406
162
  }
407
163
 
@@ -443,40 +199,29 @@ Object.defineProperty(exports, "__Client", {
443
199
  enumerable: true,
444
200
  get: function () { return smithyClient.Client; }
445
201
  });
446
- exports.AccessForbidden = AccessForbidden;
447
- exports.AccessForbidden$ = AccessForbidden$;
448
- exports.BatchGetRecord$ = BatchGetRecord$;
202
+ Object.defineProperty(exports, "SageMakerFeatureStoreRuntimeServiceException", {
203
+ enumerable: true,
204
+ get: function () { return SageMakerFeatureStoreRuntimeServiceException.SageMakerFeatureStoreRuntimeServiceException; }
205
+ });
449
206
  exports.BatchGetRecordCommand = BatchGetRecordCommand;
450
- exports.BatchGetRecordError$ = BatchGetRecordError$;
451
- exports.BatchGetRecordIdentifier$ = BatchGetRecordIdentifier$;
452
- exports.BatchGetRecordRequest$ = BatchGetRecordRequest$;
453
- exports.BatchGetRecordResponse$ = BatchGetRecordResponse$;
454
- exports.BatchGetRecordResultDetail$ = BatchGetRecordResultDetail$;
455
- exports.DeleteRecord$ = DeleteRecord$;
456
207
  exports.DeleteRecordCommand = DeleteRecordCommand;
457
- exports.DeleteRecordRequest$ = DeleteRecordRequest$;
458
208
  exports.DeletionMode = DeletionMode;
459
209
  exports.ExpirationTimeResponse = ExpirationTimeResponse;
460
- exports.FeatureValue$ = FeatureValue$;
461
- exports.GetRecord$ = GetRecord$;
462
210
  exports.GetRecordCommand = GetRecordCommand;
463
- exports.GetRecordRequest$ = GetRecordRequest$;
464
- exports.GetRecordResponse$ = GetRecordResponse$;
465
- exports.InternalFailure = InternalFailure;
466
- exports.InternalFailure$ = InternalFailure$;
467
- exports.PutRecord$ = PutRecord$;
468
211
  exports.PutRecordCommand = PutRecordCommand;
469
- exports.PutRecordRequest$ = PutRecordRequest$;
470
- exports.ResourceNotFound = ResourceNotFound;
471
- exports.ResourceNotFound$ = ResourceNotFound$;
472
212
  exports.SageMakerFeatureStoreRuntime = SageMakerFeatureStoreRuntime;
473
213
  exports.SageMakerFeatureStoreRuntimeClient = SageMakerFeatureStoreRuntimeClient;
474
- exports.SageMakerFeatureStoreRuntimeServiceException = SageMakerFeatureStoreRuntimeServiceException;
475
- exports.SageMakerFeatureStoreRuntimeServiceException$ = SageMakerFeatureStoreRuntimeServiceException$;
476
- exports.ServiceUnavailable = ServiceUnavailable;
477
- exports.ServiceUnavailable$ = ServiceUnavailable$;
478
214
  exports.TargetStore = TargetStore;
479
- exports.TtlDuration$ = TtlDuration$;
480
215
  exports.TtlDurationUnit = TtlDurationUnit;
481
- exports.ValidationError = ValidationError;
482
- exports.ValidationError$ = ValidationError$;
216
+ Object.keys(schemas_0).forEach(function (k) {
217
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
218
+ enumerable: true,
219
+ get: function () { return schemas_0[k]; }
220
+ });
221
+ });
222
+ Object.keys(errors).forEach(function (k) {
223
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
224
+ enumerable: true,
225
+ get: function () { return errors[k]; }
226
+ });
227
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SageMakerFeatureStoreRuntimeServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class SageMakerFeatureStoreRuntimeServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, SageMakerFeatureStoreRuntimeServiceException.prototype);
10
+ }
11
+ }
12
+ exports.SageMakerFeatureStoreRuntimeServiceException = SageMakerFeatureStoreRuntimeServiceException;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFound = exports.ValidationError = exports.ServiceUnavailable = exports.InternalFailure = exports.AccessForbidden = void 0;
4
+ const SageMakerFeatureStoreRuntimeServiceException_1 = require("./SageMakerFeatureStoreRuntimeServiceException");
5
+ class AccessForbidden extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
6
+ name = "AccessForbidden";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessForbidden",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessForbidden.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessForbidden = AccessForbidden;
20
+ class InternalFailure extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
21
+ name = "InternalFailure";
22
+ $fault = "server";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalFailure",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalFailure.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InternalFailure = InternalFailure;
35
+ class ServiceUnavailable extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
36
+ name = "ServiceUnavailable";
37
+ $fault = "server";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ServiceUnavailable",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ServiceUnavailable.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.ServiceUnavailable = ServiceUnavailable;
50
+ class ValidationError extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
51
+ name = "ValidationError";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ValidationError",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ValidationError.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.ValidationError = ValidationError;
65
+ class ResourceNotFound extends SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException {
66
+ name = "ResourceNotFound";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceNotFound",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ResourceNotFound = ResourceNotFound;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2020-07-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.sagemakerfeaturestoreruntime",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2020-07-01",
33
35
  serviceTarget: "AmazonSageMakerFeatureStoreRuntime",
34
36
  },
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutRecord$ = exports.GetRecord$ = exports.DeleteRecord$ = exports.BatchGetRecord$ = exports.TtlDuration$ = exports.PutRecordRequest$ = exports.GetRecordResponse$ = exports.GetRecordRequest$ = exports.FeatureValue$ = exports.DeleteRecordRequest$ = exports.BatchGetRecordResultDetail$ = exports.BatchGetRecordResponse$ = exports.BatchGetRecordRequest$ = exports.BatchGetRecordIdentifier$ = exports.BatchGetRecordError$ = exports.errorTypeRegistries = exports.ValidationError$ = exports.ServiceUnavailable$ = exports.ResourceNotFound$ = exports.InternalFailure$ = exports.AccessForbidden$ = exports.SageMakerFeatureStoreRuntimeServiceException$ = void 0;
4
+ const _AF = "AccessForbidden";
5
+ const _BGR = "BatchGetRecord";
6
+ const _BGRE = "BatchGetRecordError";
7
+ const _BGREa = "BatchGetRecordErrors";
8
+ const _BGRI = "BatchGetRecordIdentifier";
9
+ const _BGRIa = "BatchGetRecordIdentifiers";
10
+ const _BGRR = "BatchGetRecordRequest";
11
+ const _BGRRD = "BatchGetRecordResultDetail";
12
+ const _BGRRDa = "BatchGetRecordResultDetails";
13
+ const _BGRRa = "BatchGetRecordResponse";
14
+ const _DM = "DeletionMode";
15
+ const _DR = "DeleteRecord";
16
+ const _DRR = "DeleteRecordRequest";
17
+ const _E = "Errors";
18
+ const _EA = "ExpiresAt";
19
+ const _EC = "ErrorCode";
20
+ const _EM = "ErrorMessage";
21
+ const _ET = "EventTime";
22
+ const _ETR = "ExpirationTimeResponse";
23
+ const _FGN = "FeatureGroupName";
24
+ const _FN = "FeatureNames";
25
+ const _FNe = "FeatureName";
26
+ const _FV = "FeatureValue";
27
+ const _GR = "GetRecord";
28
+ const _GRR = "GetRecordRequest";
29
+ const _GRRe = "GetRecordResponse";
30
+ const _I = "Identifiers";
31
+ const _IF = "InternalFailure";
32
+ const _M = "Message";
33
+ const _PR = "PutRecord";
34
+ const _PRR = "PutRecordRequest";
35
+ const _R = "Records";
36
+ const _RIVAS = "RecordIdentifierValueAsString";
37
+ const _RIVASe = "RecordIdentifiersValueAsString";
38
+ const _RNF = "ResourceNotFound";
39
+ const _Re = "Record";
40
+ const _SU = "ServiceUnavailable";
41
+ const _TD = "TtlDuration";
42
+ const _TS = "TargetStores";
43
+ const _U = "Unit";
44
+ const _UI = "UnprocessedIdentifiers";
45
+ const _V = "Value";
46
+ const _VAS = "ValueAsString";
47
+ const _VASL = "ValueAsStringList";
48
+ const _VE = "ValidationError";
49
+ const _c = "client";
50
+ const _e = "error";
51
+ const _h = "http";
52
+ const _hE = "httpError";
53
+ const _hQ = "httpQuery";
54
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerfeaturestoreruntime";
55
+ const _se = "server";
56
+ const n0 = "com.amazonaws.sagemakerfeaturestoreruntime";
57
+ const schema_1 = require("@smithy/core/schema");
58
+ const errors_1 = require("../models/errors");
59
+ const SageMakerFeatureStoreRuntimeServiceException_1 = require("../models/SageMakerFeatureStoreRuntimeServiceException");
60
+ const _s_registry = schema_1.TypeRegistry.for(_s);
61
+ exports.SageMakerFeatureStoreRuntimeServiceException$ = [-3, _s, "SageMakerFeatureStoreRuntimeServiceException", 0, [], []];
62
+ _s_registry.registerError(exports.SageMakerFeatureStoreRuntimeServiceException$, SageMakerFeatureStoreRuntimeServiceException_1.SageMakerFeatureStoreRuntimeServiceException);
63
+ const n0_registry = schema_1.TypeRegistry.for(n0);
64
+ exports.AccessForbidden$ = [-3, n0, _AF,
65
+ { [_e]: _c, [_hE]: 403 },
66
+ [_M],
67
+ [0]
68
+ ];
69
+ n0_registry.registerError(exports.AccessForbidden$, errors_1.AccessForbidden);
70
+ exports.InternalFailure$ = [-3, n0, _IF,
71
+ { [_e]: _se, [_hE]: 500 },
72
+ [_M],
73
+ [0]
74
+ ];
75
+ n0_registry.registerError(exports.InternalFailure$, errors_1.InternalFailure);
76
+ exports.ResourceNotFound$ = [-3, n0, _RNF,
77
+ { [_e]: _c, [_hE]: 404 },
78
+ [_M],
79
+ [0]
80
+ ];
81
+ n0_registry.registerError(exports.ResourceNotFound$, errors_1.ResourceNotFound);
82
+ exports.ServiceUnavailable$ = [-3, n0, _SU,
83
+ { [_e]: _se, [_hE]: 503 },
84
+ [_M],
85
+ [0]
86
+ ];
87
+ n0_registry.registerError(exports.ServiceUnavailable$, errors_1.ServiceUnavailable);
88
+ exports.ValidationError$ = [-3, n0, _VE,
89
+ { [_e]: _c, [_hE]: 400 },
90
+ [_M],
91
+ [0]
92
+ ];
93
+ n0_registry.registerError(exports.ValidationError$, errors_1.ValidationError);
94
+ exports.errorTypeRegistries = [
95
+ _s_registry,
96
+ n0_registry,
97
+ ];
98
+ exports.BatchGetRecordError$ = [3, n0, _BGRE,
99
+ 0,
100
+ [_FGN, _RIVAS, _EC, _EM],
101
+ [0, 0, 0, 0], 4
102
+ ];
103
+ exports.BatchGetRecordIdentifier$ = [3, n0, _BGRI,
104
+ 0,
105
+ [_FGN, _RIVASe, _FN],
106
+ [0, 64 | 0, 64 | 0], 2
107
+ ];
108
+ exports.BatchGetRecordRequest$ = [3, n0, _BGRR,
109
+ 0,
110
+ [_I, _ETR],
111
+ [() => BatchGetRecordIdentifiers, 0], 1
112
+ ];
113
+ exports.BatchGetRecordResponse$ = [3, n0, _BGRRa,
114
+ 0,
115
+ [_R, _E, _UI],
116
+ [() => BatchGetRecordResultDetails, () => BatchGetRecordErrors, () => UnprocessedIdentifiers], 3
117
+ ];
118
+ exports.BatchGetRecordResultDetail$ = [3, n0, _BGRRD,
119
+ 0,
120
+ [_FGN, _RIVAS, _Re, _EA],
121
+ [0, 0, () => _Record, 0], 3
122
+ ];
123
+ exports.DeleteRecordRequest$ = [3, n0, _DRR,
124
+ 0,
125
+ [_FGN, _RIVAS, _ET, _TS, _DM],
126
+ [[0, 1], [0, { [_hQ]: _RIVAS }], [0, { [_hQ]: _ET }], [64 | 0, { [_hQ]: _TS }], [0, { [_hQ]: _DM }]], 3
127
+ ];
128
+ exports.FeatureValue$ = [3, n0, _FV,
129
+ 0,
130
+ [_FNe, _VAS, _VASL],
131
+ [0, 0, 64 | 0], 1
132
+ ];
133
+ exports.GetRecordRequest$ = [3, n0, _GRR,
134
+ 0,
135
+ [_FGN, _RIVAS, _FN, _ETR],
136
+ [[0, 1], [0, { [_hQ]: _RIVAS }], [64 | 0, { [_hQ]: _FNe }], [0, { [_hQ]: _ETR }]], 2
137
+ ];
138
+ exports.GetRecordResponse$ = [3, n0, _GRRe,
139
+ 0,
140
+ [_Re, _EA],
141
+ [() => _Record, 0]
142
+ ];
143
+ exports.PutRecordRequest$ = [3, n0, _PRR,
144
+ 0,
145
+ [_FGN, _Re, _TS, _TD],
146
+ [[0, 1], () => _Record, 64 | 0, () => exports.TtlDuration$], 2
147
+ ];
148
+ exports.TtlDuration$ = [3, n0, _TD,
149
+ 0,
150
+ [_U, _V],
151
+ [0, 1], 2
152
+ ];
153
+ var __Unit = "unit";
154
+ var BatchGetRecordErrors = [1, n0, _BGREa,
155
+ 0, () => exports.BatchGetRecordError$
156
+ ];
157
+ var BatchGetRecordIdentifiers = [1, n0, _BGRIa,
158
+ 0, () => exports.BatchGetRecordIdentifier$
159
+ ];
160
+ var BatchGetRecordResultDetails = [1, n0, _BGRRDa,
161
+ 0, () => exports.BatchGetRecordResultDetail$
162
+ ];
163
+ var FeatureNames = 64 | 0;
164
+ var _Record = [1, n0, _Re,
165
+ 0, () => exports.FeatureValue$
166
+ ];
167
+ var RecordIdentifiers = 64 | 0;
168
+ var TargetStores = 64 | 0;
169
+ var UnprocessedIdentifiers = [1, n0, _UI,
170
+ 0, () => exports.BatchGetRecordIdentifier$
171
+ ];
172
+ var ValueAsStringList = 64 | 0;
173
+ exports.BatchGetRecord$ = [9, n0, _BGR,
174
+ { [_h]: ["POST", "/BatchGetRecord", 200] }, () => exports.BatchGetRecordRequest$, () => exports.BatchGetRecordResponse$
175
+ ];
176
+ exports.DeleteRecord$ = [9, n0, _DR,
177
+ { [_h]: ["DELETE", "/FeatureGroup/{FeatureGroupName}", 200] }, () => exports.DeleteRecordRequest$, () => __Unit
178
+ ];
179
+ exports.GetRecord$ = [9, n0, _GR,
180
+ { [_h]: ["GET", "/FeatureGroup/{FeatureGroupName}", 200] }, () => exports.GetRecordRequest$, () => exports.GetRecordResponse$
181
+ ];
182
+ exports.PutRecord$ = [9, n0, _PR,
183
+ { [_h]: ["PUT", "/FeatureGroup/{FeatureGroupName}", 200] }, () => exports.PutRecordRequest$, () => __Unit
184
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultSageMakerFeatureStoreRuntimeHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-07-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.sagemakerfeaturestoreruntime",
30
+ errorTypeRegistries,
29
31
  version: "2020-07-01",
30
32
  serviceTarget: "AmazonSageMakerFeatureStoreRuntime",
31
33
  },
@@ -48,18 +48,50 @@ const _e = "error";
48
48
  const _h = "http";
49
49
  const _hE = "httpError";
50
50
  const _hQ = "httpQuery";
51
- const _s = "server";
52
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerfeaturestoreruntime";
51
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerfeaturestoreruntime";
52
+ const _se = "server";
53
53
  const n0 = "com.amazonaws.sagemakerfeaturestoreruntime";
54
54
  import { TypeRegistry } from "@smithy/core/schema";
55
55
  import { AccessForbidden, InternalFailure, ResourceNotFound, ServiceUnavailable, ValidationError, } from "../models/errors";
56
56
  import { SageMakerFeatureStoreRuntimeServiceException } from "../models/SageMakerFeatureStoreRuntimeServiceException";
57
+ const _s_registry = TypeRegistry.for(_s);
58
+ export var SageMakerFeatureStoreRuntimeServiceException$ = [-3, _s, "SageMakerFeatureStoreRuntimeServiceException", 0, [], []];
59
+ _s_registry.registerError(SageMakerFeatureStoreRuntimeServiceException$, SageMakerFeatureStoreRuntimeServiceException);
60
+ const n0_registry = TypeRegistry.for(n0);
57
61
  export var AccessForbidden$ = [-3, n0, _AF,
58
62
  { [_e]: _c, [_hE]: 403 },
59
63
  [_M],
60
64
  [0]
61
65
  ];
62
- TypeRegistry.for(n0).registerError(AccessForbidden$, AccessForbidden);
66
+ n0_registry.registerError(AccessForbidden$, AccessForbidden);
67
+ export var InternalFailure$ = [-3, n0, _IF,
68
+ { [_e]: _se, [_hE]: 500 },
69
+ [_M],
70
+ [0]
71
+ ];
72
+ n0_registry.registerError(InternalFailure$, InternalFailure);
73
+ export var ResourceNotFound$ = [-3, n0, _RNF,
74
+ { [_e]: _c, [_hE]: 404 },
75
+ [_M],
76
+ [0]
77
+ ];
78
+ n0_registry.registerError(ResourceNotFound$, ResourceNotFound);
79
+ export var ServiceUnavailable$ = [-3, n0, _SU,
80
+ { [_e]: _se, [_hE]: 503 },
81
+ [_M],
82
+ [0]
83
+ ];
84
+ n0_registry.registerError(ServiceUnavailable$, ServiceUnavailable);
85
+ export var ValidationError$ = [-3, n0, _VE,
86
+ { [_e]: _c, [_hE]: 400 },
87
+ [_M],
88
+ [0]
89
+ ];
90
+ n0_registry.registerError(ValidationError$, ValidationError);
91
+ export const errorTypeRegistries = [
92
+ _s_registry,
93
+ n0_registry,
94
+ ];
63
95
  export var BatchGetRecordError$ = [3, n0, _BGRE,
64
96
  0,
65
97
  [_FGN, _RIVAS, _EC, _EM],
@@ -105,43 +137,17 @@ export var GetRecordResponse$ = [3, n0, _GRRe,
105
137
  [_Re, _EA],
106
138
  [() => _Record, 0]
107
139
  ];
108
- export var InternalFailure$ = [-3, n0, _IF,
109
- { [_e]: _s, [_hE]: 500 },
110
- [_M],
111
- [0]
112
- ];
113
- TypeRegistry.for(n0).registerError(InternalFailure$, InternalFailure);
114
140
  export var PutRecordRequest$ = [3, n0, _PRR,
115
141
  0,
116
142
  [_FGN, _Re, _TS, _TD],
117
143
  [[0, 1], () => _Record, 64 | 0, () => TtlDuration$], 2
118
144
  ];
119
- export var ResourceNotFound$ = [-3, n0, _RNF,
120
- { [_e]: _c, [_hE]: 404 },
121
- [_M],
122
- [0]
123
- ];
124
- TypeRegistry.for(n0).registerError(ResourceNotFound$, ResourceNotFound);
125
- export var ServiceUnavailable$ = [-3, n0, _SU,
126
- { [_e]: _s, [_hE]: 503 },
127
- [_M],
128
- [0]
129
- ];
130
- TypeRegistry.for(n0).registerError(ServiceUnavailable$, ServiceUnavailable);
131
145
  export var TtlDuration$ = [3, n0, _TD,
132
146
  0,
133
147
  [_U, _V],
134
148
  [0, 1], 2
135
149
  ];
136
- export var ValidationError$ = [-3, n0, _VE,
137
- { [_e]: _c, [_hE]: 400 },
138
- [_M],
139
- [0]
140
- ];
141
- TypeRegistry.for(n0).registerError(ValidationError$, ValidationError);
142
150
  var __Unit = "unit";
143
- export var SageMakerFeatureStoreRuntimeServiceException$ = [-3, _sm, "SageMakerFeatureStoreRuntimeServiceException", 0, [], []];
144
- TypeRegistry.for(_sm).registerError(SageMakerFeatureStoreRuntimeServiceException$, SageMakerFeatureStoreRuntimeServiceException);
145
151
  var BatchGetRecordErrors = [1, n0, _BGREa,
146
152
  0, () => BatchGetRecordError$
147
153
  ];
@@ -1,5 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
2
4
  export declare var AccessForbidden$: StaticErrorSchema;
5
+ export declare var InternalFailure$: StaticErrorSchema;
6
+ export declare var ResourceNotFound$: StaticErrorSchema;
7
+ export declare var ServiceUnavailable$: StaticErrorSchema;
8
+ export declare var ValidationError$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
3
15
  export declare var BatchGetRecordError$: StaticStructureSchema;
4
16
  export declare var BatchGetRecordIdentifier$: StaticStructureSchema;
5
17
  export declare var BatchGetRecordRequest$: StaticStructureSchema;
@@ -9,13 +21,8 @@ export declare var DeleteRecordRequest$: StaticStructureSchema;
9
21
  export declare var FeatureValue$: StaticStructureSchema;
10
22
  export declare var GetRecordRequest$: StaticStructureSchema;
11
23
  export declare var GetRecordResponse$: StaticStructureSchema;
12
- export declare var InternalFailure$: StaticErrorSchema;
13
24
  export declare var PutRecordRequest$: StaticStructureSchema;
14
- export declare var ResourceNotFound$: StaticErrorSchema;
15
- export declare var ServiceUnavailable$: StaticErrorSchema;
16
25
  export declare var TtlDuration$: StaticStructureSchema;
17
- export declare var ValidationError$: StaticErrorSchema;
18
- export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
19
26
  export declare var BatchGetRecord$: StaticOperationSchema;
20
27
  export declare var DeleteRecord$: StaticOperationSchema;
21
28
  export declare var GetRecord$: StaticOperationSchema;
@@ -1,9 +1,16 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
6
8
  export declare var AccessForbidden$: StaticErrorSchema;
9
+ export declare var InternalFailure$: StaticErrorSchema;
10
+ export declare var ResourceNotFound$: StaticErrorSchema;
11
+ export declare var ServiceUnavailable$: StaticErrorSchema;
12
+ export declare var ValidationError$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
7
14
  export declare var BatchGetRecordError$: StaticStructureSchema;
8
15
  export declare var BatchGetRecordIdentifier$: StaticStructureSchema;
9
16
  export declare var BatchGetRecordRequest$: StaticStructureSchema;
@@ -13,13 +20,8 @@ export declare var DeleteRecordRequest$: StaticStructureSchema;
13
20
  export declare var FeatureValue$: StaticStructureSchema;
14
21
  export declare var GetRecordRequest$: StaticStructureSchema;
15
22
  export declare var GetRecordResponse$: StaticStructureSchema;
16
- export declare var InternalFailure$: StaticErrorSchema;
17
23
  export declare var PutRecordRequest$: StaticStructureSchema;
18
- export declare var ResourceNotFound$: StaticErrorSchema;
19
- export declare var ServiceUnavailable$: StaticErrorSchema;
20
24
  export declare var TtlDuration$: StaticStructureSchema;
21
- export declare var ValidationError$: StaticErrorSchema;
22
- export declare var SageMakerFeatureStoreRuntimeServiceException$: StaticErrorSchema;
23
25
  export declare var BatchGetRecord$: StaticOperationSchema;
24
26
  export declare var DeleteRecord$: StaticOperationSchema;
25
27
  export declare var GetRecord$: StaticOperationSchema;
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.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-featurestore-runtime",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",