@aws-sdk/client-cloudfront-keyvaluestore 3.987.0 → 3.989.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 +25 -334
- package/dist-cjs/models/CloudFrontKeyValueStoreServiceException.js +12 -0
- package/dist-cjs/models/errors.js +94 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +212 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +37 -31
- package/dist-types/schemas/schemas_0.d.ts +12 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/package.json +14 -14
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 CloudFrontKeyValueStoreServiceException = require('./models/CloudFrontKeyValueStoreServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -109,299 +112,6 @@ class CloudFrontKeyValueStoreClient extends smithyClient.Client {
|
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
class CloudFrontKeyValueStoreServiceException extends smithyClient.ServiceException {
|
|
113
|
-
constructor(options) {
|
|
114
|
-
super(options);
|
|
115
|
-
Object.setPrototypeOf(this, CloudFrontKeyValueStoreServiceException.prototype);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
class AccessDeniedException extends CloudFrontKeyValueStoreServiceException {
|
|
120
|
-
name = "AccessDeniedException";
|
|
121
|
-
$fault = "client";
|
|
122
|
-
Message;
|
|
123
|
-
constructor(opts) {
|
|
124
|
-
super({
|
|
125
|
-
name: "AccessDeniedException",
|
|
126
|
-
$fault: "client",
|
|
127
|
-
...opts,
|
|
128
|
-
});
|
|
129
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
-
this.Message = opts.Message;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
class ConflictException extends CloudFrontKeyValueStoreServiceException {
|
|
134
|
-
name = "ConflictException";
|
|
135
|
-
$fault = "client";
|
|
136
|
-
Message;
|
|
137
|
-
constructor(opts) {
|
|
138
|
-
super({
|
|
139
|
-
name: "ConflictException",
|
|
140
|
-
$fault: "client",
|
|
141
|
-
...opts,
|
|
142
|
-
});
|
|
143
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
144
|
-
this.Message = opts.Message;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
class InternalServerException extends CloudFrontKeyValueStoreServiceException {
|
|
148
|
-
name = "InternalServerException";
|
|
149
|
-
$fault = "server";
|
|
150
|
-
Message;
|
|
151
|
-
constructor(opts) {
|
|
152
|
-
super({
|
|
153
|
-
name: "InternalServerException",
|
|
154
|
-
$fault: "server",
|
|
155
|
-
...opts,
|
|
156
|
-
});
|
|
157
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
158
|
-
this.Message = opts.Message;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException {
|
|
162
|
-
name = "ResourceNotFoundException";
|
|
163
|
-
$fault = "client";
|
|
164
|
-
Message;
|
|
165
|
-
constructor(opts) {
|
|
166
|
-
super({
|
|
167
|
-
name: "ResourceNotFoundException",
|
|
168
|
-
$fault: "client",
|
|
169
|
-
...opts,
|
|
170
|
-
});
|
|
171
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
172
|
-
this.Message = opts.Message;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException {
|
|
176
|
-
name = "ServiceQuotaExceededException";
|
|
177
|
-
$fault = "client";
|
|
178
|
-
Message;
|
|
179
|
-
constructor(opts) {
|
|
180
|
-
super({
|
|
181
|
-
name: "ServiceQuotaExceededException",
|
|
182
|
-
$fault: "client",
|
|
183
|
-
...opts,
|
|
184
|
-
});
|
|
185
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
186
|
-
this.Message = opts.Message;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
class ValidationException extends CloudFrontKeyValueStoreServiceException {
|
|
190
|
-
name = "ValidationException";
|
|
191
|
-
$fault = "client";
|
|
192
|
-
Message;
|
|
193
|
-
constructor(opts) {
|
|
194
|
-
super({
|
|
195
|
-
name: "ValidationException",
|
|
196
|
-
$fault: "client",
|
|
197
|
-
...opts,
|
|
198
|
-
});
|
|
199
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
200
|
-
this.Message = opts.Message;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const _ADE = "AccessDeniedException";
|
|
205
|
-
const _C = "Created";
|
|
206
|
-
const _CE = "ConflictException";
|
|
207
|
-
const _D = "Deletes";
|
|
208
|
-
const _DK = "DeleteKey";
|
|
209
|
-
const _DKR = "DeleteKeyRequest";
|
|
210
|
-
const _DKRL = "DeleteKeyRequestsList";
|
|
211
|
-
const _DKRLI = "DeleteKeyRequestListItem";
|
|
212
|
-
const _DKRe = "DeleteKeyResponse";
|
|
213
|
-
const _DKVS = "DescribeKeyValueStore";
|
|
214
|
-
const _DKVSR = "DescribeKeyValueStoreRequest";
|
|
215
|
-
const _DKVSRe = "DescribeKeyValueStoreResponse";
|
|
216
|
-
const _ET = "ETag";
|
|
217
|
-
const _FR = "FailureReason";
|
|
218
|
-
const _GK = "GetKey";
|
|
219
|
-
const _GKR = "GetKeyRequest";
|
|
220
|
-
const _GKRe = "GetKeyResponse";
|
|
221
|
-
const _I = "Items";
|
|
222
|
-
const _IC = "ItemCount";
|
|
223
|
-
const _IM = "IfMatch";
|
|
224
|
-
const _IM_ = "If-Match";
|
|
225
|
-
const _ISE = "InternalServerException";
|
|
226
|
-
const _K = "Key";
|
|
227
|
-
const _KARN = "KvsARN";
|
|
228
|
-
const _LK = "ListKeys";
|
|
229
|
-
const _LKR = "ListKeysRequest";
|
|
230
|
-
const _LKRL = "ListKeysResponseList";
|
|
231
|
-
const _LKRLI = "ListKeysResponseListItem";
|
|
232
|
-
const _LKRi = "ListKeysResponse";
|
|
233
|
-
const _LM = "LastModified";
|
|
234
|
-
const _M = "Message";
|
|
235
|
-
const _MR = "MaxResults";
|
|
236
|
-
const _NT = "NextToken";
|
|
237
|
-
const _P = "Puts";
|
|
238
|
-
const _PK = "PutKey";
|
|
239
|
-
const _PKR = "PutKeyRequest";
|
|
240
|
-
const _PKRL = "PutKeyRequestsList";
|
|
241
|
-
const _PKRLI = "PutKeyRequestListItem";
|
|
242
|
-
const _PKRu = "PutKeyResponse";
|
|
243
|
-
const _RNFE = "ResourceNotFoundException";
|
|
244
|
-
const _S = "Status";
|
|
245
|
-
const _SQEE = "ServiceQuotaExceededException";
|
|
246
|
-
const _TSIB = "TotalSizeInBytes";
|
|
247
|
-
const _UK = "UpdateKeys";
|
|
248
|
-
const _UKR = "UpdateKeysRequest";
|
|
249
|
-
const _UKRp = "UpdateKeysResponse";
|
|
250
|
-
const _V = "Value";
|
|
251
|
-
const _VE = "ValidationException";
|
|
252
|
-
const _c = "client";
|
|
253
|
-
const _e = "error";
|
|
254
|
-
const _h = "http";
|
|
255
|
-
const _hE = "httpError";
|
|
256
|
-
const _hH = "httpHeader";
|
|
257
|
-
const _hQ = "httpQuery";
|
|
258
|
-
const _s = "server";
|
|
259
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudfrontkeyvaluestore";
|
|
260
|
-
const n0 = "com.amazonaws.cloudfrontkeyvaluestore";
|
|
261
|
-
var Value = [0, n0, _V, 8, 0];
|
|
262
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
263
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
264
|
-
[_M],
|
|
265
|
-
[0]
|
|
266
|
-
];
|
|
267
|
-
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
268
|
-
var ConflictException$ = [-3, n0, _CE,
|
|
269
|
-
{ [_e]: _c, [_hE]: 409 },
|
|
270
|
-
[_M],
|
|
271
|
-
[0]
|
|
272
|
-
];
|
|
273
|
-
schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
274
|
-
var DeleteKeyRequest$ = [3, n0, _DKR,
|
|
275
|
-
0,
|
|
276
|
-
[_KARN, _K, _IM],
|
|
277
|
-
[[0, 1], [0, 1], [0, { [_hH]: _IM_ }]], 3
|
|
278
|
-
];
|
|
279
|
-
var DeleteKeyRequestListItem$ = [3, n0, _DKRLI,
|
|
280
|
-
0,
|
|
281
|
-
[_K],
|
|
282
|
-
[0], 1
|
|
283
|
-
];
|
|
284
|
-
var DeleteKeyResponse$ = [3, n0, _DKRe,
|
|
285
|
-
0,
|
|
286
|
-
[_IC, _TSIB, _ET],
|
|
287
|
-
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
288
|
-
];
|
|
289
|
-
var DescribeKeyValueStoreRequest$ = [3, n0, _DKVSR,
|
|
290
|
-
0,
|
|
291
|
-
[_KARN],
|
|
292
|
-
[[0, 1]], 1
|
|
293
|
-
];
|
|
294
|
-
var DescribeKeyValueStoreResponse$ = [3, n0, _DKVSRe,
|
|
295
|
-
0,
|
|
296
|
-
[_IC, _TSIB, _KARN, _C, _ET, _LM, _S, _FR],
|
|
297
|
-
[1, 1, 0, 4, [0, { [_hH]: _ET }], 4, 0, 0], 5
|
|
298
|
-
];
|
|
299
|
-
var GetKeyRequest$ = [3, n0, _GKR,
|
|
300
|
-
0,
|
|
301
|
-
[_KARN, _K],
|
|
302
|
-
[[0, 1], [0, 1]], 2
|
|
303
|
-
];
|
|
304
|
-
var GetKeyResponse$ = [3, n0, _GKRe,
|
|
305
|
-
0,
|
|
306
|
-
[_K, _V, _IC, _TSIB],
|
|
307
|
-
[0, [() => Value, 0], 1, 1], 4
|
|
308
|
-
];
|
|
309
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
310
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
311
|
-
[_M],
|
|
312
|
-
[0]
|
|
313
|
-
];
|
|
314
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
315
|
-
var ListKeysRequest$ = [3, n0, _LKR,
|
|
316
|
-
0,
|
|
317
|
-
[_KARN, _NT, _MR],
|
|
318
|
-
[[0, 1], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]], 1
|
|
319
|
-
];
|
|
320
|
-
var ListKeysResponse$ = [3, n0, _LKRi,
|
|
321
|
-
0,
|
|
322
|
-
[_NT, _I],
|
|
323
|
-
[0, [() => ListKeysResponseList, 0]]
|
|
324
|
-
];
|
|
325
|
-
var ListKeysResponseListItem$ = [3, n0, _LKRLI,
|
|
326
|
-
0,
|
|
327
|
-
[_K, _V],
|
|
328
|
-
[0, [() => Value, 0]], 2
|
|
329
|
-
];
|
|
330
|
-
var PutKeyRequest$ = [3, n0, _PKR,
|
|
331
|
-
0,
|
|
332
|
-
[_K, _V, _KARN, _IM],
|
|
333
|
-
[[0, 1], [() => Value, 0], [0, 1], [0, { [_hH]: _IM_ }]], 4
|
|
334
|
-
];
|
|
335
|
-
var PutKeyRequestListItem$ = [3, n0, _PKRLI,
|
|
336
|
-
0,
|
|
337
|
-
[_K, _V],
|
|
338
|
-
[0, [() => Value, 0]], 2
|
|
339
|
-
];
|
|
340
|
-
var PutKeyResponse$ = [3, n0, _PKRu,
|
|
341
|
-
0,
|
|
342
|
-
[_IC, _TSIB, _ET],
|
|
343
|
-
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
344
|
-
];
|
|
345
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
346
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
347
|
-
[_M],
|
|
348
|
-
[0]
|
|
349
|
-
];
|
|
350
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
351
|
-
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
352
|
-
{ [_e]: _c, [_hE]: 402 },
|
|
353
|
-
[_M],
|
|
354
|
-
[0]
|
|
355
|
-
];
|
|
356
|
-
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
357
|
-
var UpdateKeysRequest$ = [3, n0, _UKR,
|
|
358
|
-
0,
|
|
359
|
-
[_KARN, _IM, _P, _D],
|
|
360
|
-
[[0, 1], [0, { [_hH]: _IM_ }], [() => PutKeyRequestsList, 0], () => DeleteKeyRequestsList], 2
|
|
361
|
-
];
|
|
362
|
-
var UpdateKeysResponse$ = [3, n0, _UKRp,
|
|
363
|
-
0,
|
|
364
|
-
[_IC, _TSIB, _ET],
|
|
365
|
-
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
366
|
-
];
|
|
367
|
-
var ValidationException$ = [-3, n0, _VE,
|
|
368
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
369
|
-
[_M],
|
|
370
|
-
[0]
|
|
371
|
-
];
|
|
372
|
-
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
373
|
-
var CloudFrontKeyValueStoreServiceException$ = [-3, _sm, "CloudFrontKeyValueStoreServiceException", 0, [], []];
|
|
374
|
-
schema.TypeRegistry.for(_sm).registerError(CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException);
|
|
375
|
-
var DeleteKeyRequestsList = [1, n0, _DKRL,
|
|
376
|
-
0, () => DeleteKeyRequestListItem$
|
|
377
|
-
];
|
|
378
|
-
var ListKeysResponseList = [1, n0, _LKRL,
|
|
379
|
-
0, [() => ListKeysResponseListItem$,
|
|
380
|
-
0]
|
|
381
|
-
];
|
|
382
|
-
var PutKeyRequestsList = [1, n0, _PKRL,
|
|
383
|
-
0, [() => PutKeyRequestListItem$,
|
|
384
|
-
0]
|
|
385
|
-
];
|
|
386
|
-
var DeleteKey$ = [9, n0, _DK,
|
|
387
|
-
{ [_h]: ["DELETE", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => DeleteKeyRequest$, () => DeleteKeyResponse$
|
|
388
|
-
];
|
|
389
|
-
var DescribeKeyValueStore$ = [9, n0, _DKVS,
|
|
390
|
-
{ [_h]: ["GET", "/key-value-stores/{KvsARN}", 200] }, () => DescribeKeyValueStoreRequest$, () => DescribeKeyValueStoreResponse$
|
|
391
|
-
];
|
|
392
|
-
var GetKey$ = [9, n0, _GK,
|
|
393
|
-
{ [_h]: ["GET", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => GetKeyRequest$, () => GetKeyResponse$
|
|
394
|
-
];
|
|
395
|
-
var ListKeys$ = [9, n0, _LK,
|
|
396
|
-
{ [_h]: ["GET", "/key-value-stores/{KvsARN}/keys", 200] }, () => ListKeysRequest$, () => ListKeysResponse$
|
|
397
|
-
];
|
|
398
|
-
var PutKey$ = [9, n0, _PK,
|
|
399
|
-
{ [_h]: ["PUT", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => PutKeyRequest$, () => PutKeyResponse$
|
|
400
|
-
];
|
|
401
|
-
var UpdateKeys$ = [9, n0, _UK,
|
|
402
|
-
{ [_h]: ["POST", "/key-value-stores/{KvsARN}/keys", 200] }, () => UpdateKeysRequest$, () => UpdateKeysResponse$
|
|
403
|
-
];
|
|
404
|
-
|
|
405
115
|
class DeleteKeyCommand extends smithyClient.Command
|
|
406
116
|
.classBuilder()
|
|
407
117
|
.ep({
|
|
@@ -413,7 +123,7 @@ class DeleteKeyCommand extends smithyClient.Command
|
|
|
413
123
|
})
|
|
414
124
|
.s("CloudFrontKeyValueStore", "DeleteKey", {})
|
|
415
125
|
.n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand")
|
|
416
|
-
.sc(DeleteKey$)
|
|
126
|
+
.sc(schemas_0.DeleteKey$)
|
|
417
127
|
.build() {
|
|
418
128
|
}
|
|
419
129
|
|
|
@@ -428,7 +138,7 @@ class DescribeKeyValueStoreCommand extends smithyClient.Command
|
|
|
428
138
|
})
|
|
429
139
|
.s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {})
|
|
430
140
|
.n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand")
|
|
431
|
-
.sc(DescribeKeyValueStore$)
|
|
141
|
+
.sc(schemas_0.DescribeKeyValueStore$)
|
|
432
142
|
.build() {
|
|
433
143
|
}
|
|
434
144
|
|
|
@@ -443,7 +153,7 @@ class GetKeyCommand extends smithyClient.Command
|
|
|
443
153
|
})
|
|
444
154
|
.s("CloudFrontKeyValueStore", "GetKey", {})
|
|
445
155
|
.n("CloudFrontKeyValueStoreClient", "GetKeyCommand")
|
|
446
|
-
.sc(GetKey$)
|
|
156
|
+
.sc(schemas_0.GetKey$)
|
|
447
157
|
.build() {
|
|
448
158
|
}
|
|
449
159
|
|
|
@@ -458,7 +168,7 @@ class ListKeysCommand extends smithyClient.Command
|
|
|
458
168
|
})
|
|
459
169
|
.s("CloudFrontKeyValueStore", "ListKeys", {})
|
|
460
170
|
.n("CloudFrontKeyValueStoreClient", "ListKeysCommand")
|
|
461
|
-
.sc(ListKeys$)
|
|
171
|
+
.sc(schemas_0.ListKeys$)
|
|
462
172
|
.build() {
|
|
463
173
|
}
|
|
464
174
|
|
|
@@ -473,7 +183,7 @@ class PutKeyCommand extends smithyClient.Command
|
|
|
473
183
|
})
|
|
474
184
|
.s("CloudFrontKeyValueStore", "PutKey", {})
|
|
475
185
|
.n("CloudFrontKeyValueStoreClient", "PutKeyCommand")
|
|
476
|
-
.sc(PutKey$)
|
|
186
|
+
.sc(schemas_0.PutKey$)
|
|
477
187
|
.build() {
|
|
478
188
|
}
|
|
479
189
|
|
|
@@ -488,7 +198,7 @@ class UpdateKeysCommand extends smithyClient.Command
|
|
|
488
198
|
})
|
|
489
199
|
.s("CloudFrontKeyValueStore", "UpdateKeys", {})
|
|
490
200
|
.n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand")
|
|
491
|
-
.sc(UpdateKeys$)
|
|
201
|
+
.sc(schemas_0.UpdateKeys$)
|
|
492
202
|
.build() {
|
|
493
203
|
}
|
|
494
204
|
|
|
@@ -517,47 +227,28 @@ Object.defineProperty(exports, "__Client", {
|
|
|
517
227
|
enumerable: true,
|
|
518
228
|
get: function () { return smithyClient.Client; }
|
|
519
229
|
});
|
|
520
|
-
exports
|
|
521
|
-
|
|
230
|
+
Object.defineProperty(exports, "CloudFrontKeyValueStoreServiceException", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return CloudFrontKeyValueStoreServiceException.CloudFrontKeyValueStoreServiceException; }
|
|
233
|
+
});
|
|
522
234
|
exports.CloudFrontKeyValueStore = CloudFrontKeyValueStore;
|
|
523
235
|
exports.CloudFrontKeyValueStoreClient = CloudFrontKeyValueStoreClient;
|
|
524
|
-
exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
|
|
525
|
-
exports.CloudFrontKeyValueStoreServiceException$ = CloudFrontKeyValueStoreServiceException$;
|
|
526
|
-
exports.ConflictException = ConflictException;
|
|
527
|
-
exports.ConflictException$ = ConflictException$;
|
|
528
|
-
exports.DeleteKey$ = DeleteKey$;
|
|
529
236
|
exports.DeleteKeyCommand = DeleteKeyCommand;
|
|
530
|
-
exports.DeleteKeyRequest$ = DeleteKeyRequest$;
|
|
531
|
-
exports.DeleteKeyRequestListItem$ = DeleteKeyRequestListItem$;
|
|
532
|
-
exports.DeleteKeyResponse$ = DeleteKeyResponse$;
|
|
533
|
-
exports.DescribeKeyValueStore$ = DescribeKeyValueStore$;
|
|
534
237
|
exports.DescribeKeyValueStoreCommand = DescribeKeyValueStoreCommand;
|
|
535
|
-
exports.DescribeKeyValueStoreRequest$ = DescribeKeyValueStoreRequest$;
|
|
536
|
-
exports.DescribeKeyValueStoreResponse$ = DescribeKeyValueStoreResponse$;
|
|
537
|
-
exports.GetKey$ = GetKey$;
|
|
538
238
|
exports.GetKeyCommand = GetKeyCommand;
|
|
539
|
-
exports.GetKeyRequest$ = GetKeyRequest$;
|
|
540
|
-
exports.GetKeyResponse$ = GetKeyResponse$;
|
|
541
|
-
exports.InternalServerException = InternalServerException;
|
|
542
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
543
|
-
exports.ListKeys$ = ListKeys$;
|
|
544
239
|
exports.ListKeysCommand = ListKeysCommand;
|
|
545
|
-
exports.ListKeysRequest$ = ListKeysRequest$;
|
|
546
|
-
exports.ListKeysResponse$ = ListKeysResponse$;
|
|
547
|
-
exports.ListKeysResponseListItem$ = ListKeysResponseListItem$;
|
|
548
|
-
exports.PutKey$ = PutKey$;
|
|
549
240
|
exports.PutKeyCommand = PutKeyCommand;
|
|
550
|
-
exports.PutKeyRequest$ = PutKeyRequest$;
|
|
551
|
-
exports.PutKeyRequestListItem$ = PutKeyRequestListItem$;
|
|
552
|
-
exports.PutKeyResponse$ = PutKeyResponse$;
|
|
553
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
554
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
555
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
556
|
-
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
557
|
-
exports.UpdateKeys$ = UpdateKeys$;
|
|
558
241
|
exports.UpdateKeysCommand = UpdateKeysCommand;
|
|
559
|
-
exports.UpdateKeysRequest$ = UpdateKeysRequest$;
|
|
560
|
-
exports.UpdateKeysResponse$ = UpdateKeysResponse$;
|
|
561
|
-
exports.ValidationException = ValidationException;
|
|
562
|
-
exports.ValidationException$ = ValidationException$;
|
|
563
242
|
exports.paginateListKeys = paginateListKeys;
|
|
243
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
244
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () { return schemas_0[k]; }
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
Object.keys(errors).forEach(function (k) {
|
|
250
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return errors[k]; }
|
|
253
|
+
});
|
|
254
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudFrontKeyValueStoreServiceException = 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 CloudFrontKeyValueStoreServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, CloudFrontKeyValueStoreServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CloudFrontKeyValueStoreServiceException = CloudFrontKeyValueStoreServiceException;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const CloudFrontKeyValueStoreServiceException_1 = require("./CloudFrontKeyValueStoreServiceException");
|
|
5
|
+
class AccessDeniedException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConflictException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConflictException = ConflictException;
|
|
35
|
+
class InternalServerException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
36
|
+
name = "InternalServerException";
|
|
37
|
+
$fault = "server";
|
|
38
|
+
Message;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "InternalServerException",
|
|
42
|
+
$fault: "server",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
46
|
+
this.Message = opts.Message;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.InternalServerException = InternalServerException;
|
|
50
|
+
class ResourceNotFoundException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
51
|
+
name = "ResourceNotFoundException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ResourceNotFoundException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
65
|
+
class ServiceQuotaExceededException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
66
|
+
name = "ServiceQuotaExceededException";
|
|
67
|
+
$fault = "client";
|
|
68
|
+
Message;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "ServiceQuotaExceededException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
76
|
+
this.Message = opts.Message;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
80
|
+
class ValidationException extends CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException {
|
|
81
|
+
name = "ValidationException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
Message;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ValidationException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ValidationException = ValidationException;
|
|
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
10
10
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
11
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
12
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
14
|
const getRuntimeConfig = (config) => {
|
|
14
15
|
return {
|
|
15
16
|
apiVersion: "2022-07-26",
|
|
@@ -35,6 +36,7 @@ const getRuntimeConfig = (config) => {
|
|
|
35
36
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
36
37
|
protocolSettings: config?.protocolSettings ?? {
|
|
37
38
|
defaultNamespace: "com.amazonaws.cloudfrontkeyvaluestore",
|
|
39
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
38
40
|
version: "2022-07-26",
|
|
39
41
|
serviceTarget: "CloudFrontKeyValueStore",
|
|
40
42
|
},
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateKeys$ = exports.PutKey$ = exports.ListKeys$ = exports.GetKey$ = exports.DescribeKeyValueStore$ = exports.DeleteKey$ = exports.UpdateKeysResponse$ = exports.UpdateKeysRequest$ = exports.PutKeyResponse$ = exports.PutKeyRequestListItem$ = exports.PutKeyRequest$ = exports.ListKeysResponseListItem$ = exports.ListKeysResponse$ = exports.ListKeysRequest$ = exports.GetKeyResponse$ = exports.GetKeyRequest$ = exports.DescribeKeyValueStoreResponse$ = exports.DescribeKeyValueStoreRequest$ = exports.DeleteKeyResponse$ = exports.DeleteKeyRequestListItem$ = exports.DeleteKeyRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.CloudFrontKeyValueStoreServiceException$ = void 0;
|
|
4
|
+
const _ADE = "AccessDeniedException";
|
|
5
|
+
const _C = "Created";
|
|
6
|
+
const _CE = "ConflictException";
|
|
7
|
+
const _D = "Deletes";
|
|
8
|
+
const _DK = "DeleteKey";
|
|
9
|
+
const _DKR = "DeleteKeyRequest";
|
|
10
|
+
const _DKRL = "DeleteKeyRequestsList";
|
|
11
|
+
const _DKRLI = "DeleteKeyRequestListItem";
|
|
12
|
+
const _DKRe = "DeleteKeyResponse";
|
|
13
|
+
const _DKVS = "DescribeKeyValueStore";
|
|
14
|
+
const _DKVSR = "DescribeKeyValueStoreRequest";
|
|
15
|
+
const _DKVSRe = "DescribeKeyValueStoreResponse";
|
|
16
|
+
const _ET = "ETag";
|
|
17
|
+
const _FR = "FailureReason";
|
|
18
|
+
const _GK = "GetKey";
|
|
19
|
+
const _GKR = "GetKeyRequest";
|
|
20
|
+
const _GKRe = "GetKeyResponse";
|
|
21
|
+
const _I = "Items";
|
|
22
|
+
const _IC = "ItemCount";
|
|
23
|
+
const _IM = "IfMatch";
|
|
24
|
+
const _IM_ = "If-Match";
|
|
25
|
+
const _ISE = "InternalServerException";
|
|
26
|
+
const _K = "Key";
|
|
27
|
+
const _KARN = "KvsARN";
|
|
28
|
+
const _LK = "ListKeys";
|
|
29
|
+
const _LKR = "ListKeysRequest";
|
|
30
|
+
const _LKRL = "ListKeysResponseList";
|
|
31
|
+
const _LKRLI = "ListKeysResponseListItem";
|
|
32
|
+
const _LKRi = "ListKeysResponse";
|
|
33
|
+
const _LM = "LastModified";
|
|
34
|
+
const _M = "Message";
|
|
35
|
+
const _MR = "MaxResults";
|
|
36
|
+
const _NT = "NextToken";
|
|
37
|
+
const _P = "Puts";
|
|
38
|
+
const _PK = "PutKey";
|
|
39
|
+
const _PKR = "PutKeyRequest";
|
|
40
|
+
const _PKRL = "PutKeyRequestsList";
|
|
41
|
+
const _PKRLI = "PutKeyRequestListItem";
|
|
42
|
+
const _PKRu = "PutKeyResponse";
|
|
43
|
+
const _RNFE = "ResourceNotFoundException";
|
|
44
|
+
const _S = "Status";
|
|
45
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
46
|
+
const _TSIB = "TotalSizeInBytes";
|
|
47
|
+
const _UK = "UpdateKeys";
|
|
48
|
+
const _UKR = "UpdateKeysRequest";
|
|
49
|
+
const _UKRp = "UpdateKeysResponse";
|
|
50
|
+
const _V = "Value";
|
|
51
|
+
const _VE = "ValidationException";
|
|
52
|
+
const _c = "client";
|
|
53
|
+
const _e = "error";
|
|
54
|
+
const _h = "http";
|
|
55
|
+
const _hE = "httpError";
|
|
56
|
+
const _hH = "httpHeader";
|
|
57
|
+
const _hQ = "httpQuery";
|
|
58
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudfrontkeyvaluestore";
|
|
59
|
+
const _se = "server";
|
|
60
|
+
const n0 = "com.amazonaws.cloudfrontkeyvaluestore";
|
|
61
|
+
const schema_1 = require("@smithy/core/schema");
|
|
62
|
+
const CloudFrontKeyValueStoreServiceException_1 = require("../models/CloudFrontKeyValueStoreServiceException");
|
|
63
|
+
const errors_1 = require("../models/errors");
|
|
64
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
65
|
+
exports.CloudFrontKeyValueStoreServiceException$ = [-3, _s, "CloudFrontKeyValueStoreServiceException", 0, [], []];
|
|
66
|
+
_s_registry.registerError(exports.CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException_1.CloudFrontKeyValueStoreServiceException);
|
|
67
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
68
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
69
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
70
|
+
[_M],
|
|
71
|
+
[0]
|
|
72
|
+
];
|
|
73
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
74
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
75
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
76
|
+
[_M],
|
|
77
|
+
[0]
|
|
78
|
+
];
|
|
79
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
80
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
81
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
82
|
+
[_M],
|
|
83
|
+
[0]
|
|
84
|
+
];
|
|
85
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
86
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
87
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
88
|
+
[_M],
|
|
89
|
+
[0]
|
|
90
|
+
];
|
|
91
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
92
|
+
exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
93
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
94
|
+
[_M],
|
|
95
|
+
[0]
|
|
96
|
+
];
|
|
97
|
+
n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
|
|
98
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
99
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
100
|
+
[_M],
|
|
101
|
+
[0]
|
|
102
|
+
];
|
|
103
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
104
|
+
exports.errorTypeRegistries = [
|
|
105
|
+
_s_registry,
|
|
106
|
+
n0_registry,
|
|
107
|
+
];
|
|
108
|
+
var Value = [0, n0, _V, 8, 0];
|
|
109
|
+
exports.DeleteKeyRequest$ = [3, n0, _DKR,
|
|
110
|
+
0,
|
|
111
|
+
[_KARN, _K, _IM],
|
|
112
|
+
[[0, 1], [0, 1], [0, { [_hH]: _IM_ }]], 3
|
|
113
|
+
];
|
|
114
|
+
exports.DeleteKeyRequestListItem$ = [3, n0, _DKRLI,
|
|
115
|
+
0,
|
|
116
|
+
[_K],
|
|
117
|
+
[0], 1
|
|
118
|
+
];
|
|
119
|
+
exports.DeleteKeyResponse$ = [3, n0, _DKRe,
|
|
120
|
+
0,
|
|
121
|
+
[_IC, _TSIB, _ET],
|
|
122
|
+
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
123
|
+
];
|
|
124
|
+
exports.DescribeKeyValueStoreRequest$ = [3, n0, _DKVSR,
|
|
125
|
+
0,
|
|
126
|
+
[_KARN],
|
|
127
|
+
[[0, 1]], 1
|
|
128
|
+
];
|
|
129
|
+
exports.DescribeKeyValueStoreResponse$ = [3, n0, _DKVSRe,
|
|
130
|
+
0,
|
|
131
|
+
[_IC, _TSIB, _KARN, _C, _ET, _LM, _S, _FR],
|
|
132
|
+
[1, 1, 0, 4, [0, { [_hH]: _ET }], 4, 0, 0], 5
|
|
133
|
+
];
|
|
134
|
+
exports.GetKeyRequest$ = [3, n0, _GKR,
|
|
135
|
+
0,
|
|
136
|
+
[_KARN, _K],
|
|
137
|
+
[[0, 1], [0, 1]], 2
|
|
138
|
+
];
|
|
139
|
+
exports.GetKeyResponse$ = [3, n0, _GKRe,
|
|
140
|
+
0,
|
|
141
|
+
[_K, _V, _IC, _TSIB],
|
|
142
|
+
[0, [() => Value, 0], 1, 1], 4
|
|
143
|
+
];
|
|
144
|
+
exports.ListKeysRequest$ = [3, n0, _LKR,
|
|
145
|
+
0,
|
|
146
|
+
[_KARN, _NT, _MR],
|
|
147
|
+
[[0, 1], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]], 1
|
|
148
|
+
];
|
|
149
|
+
exports.ListKeysResponse$ = [3, n0, _LKRi,
|
|
150
|
+
0,
|
|
151
|
+
[_NT, _I],
|
|
152
|
+
[0, [() => ListKeysResponseList, 0]]
|
|
153
|
+
];
|
|
154
|
+
exports.ListKeysResponseListItem$ = [3, n0, _LKRLI,
|
|
155
|
+
0,
|
|
156
|
+
[_K, _V],
|
|
157
|
+
[0, [() => Value, 0]], 2
|
|
158
|
+
];
|
|
159
|
+
exports.PutKeyRequest$ = [3, n0, _PKR,
|
|
160
|
+
0,
|
|
161
|
+
[_K, _V, _KARN, _IM],
|
|
162
|
+
[[0, 1], [() => Value, 0], [0, 1], [0, { [_hH]: _IM_ }]], 4
|
|
163
|
+
];
|
|
164
|
+
exports.PutKeyRequestListItem$ = [3, n0, _PKRLI,
|
|
165
|
+
0,
|
|
166
|
+
[_K, _V],
|
|
167
|
+
[0, [() => Value, 0]], 2
|
|
168
|
+
];
|
|
169
|
+
exports.PutKeyResponse$ = [3, n0, _PKRu,
|
|
170
|
+
0,
|
|
171
|
+
[_IC, _TSIB, _ET],
|
|
172
|
+
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
173
|
+
];
|
|
174
|
+
exports.UpdateKeysRequest$ = [3, n0, _UKR,
|
|
175
|
+
0,
|
|
176
|
+
[_KARN, _IM, _P, _D],
|
|
177
|
+
[[0, 1], [0, { [_hH]: _IM_ }], [() => PutKeyRequestsList, 0], () => DeleteKeyRequestsList], 2
|
|
178
|
+
];
|
|
179
|
+
exports.UpdateKeysResponse$ = [3, n0, _UKRp,
|
|
180
|
+
0,
|
|
181
|
+
[_IC, _TSIB, _ET],
|
|
182
|
+
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
183
|
+
];
|
|
184
|
+
var DeleteKeyRequestsList = [1, n0, _DKRL,
|
|
185
|
+
0, () => exports.DeleteKeyRequestListItem$
|
|
186
|
+
];
|
|
187
|
+
var ListKeysResponseList = [1, n0, _LKRL,
|
|
188
|
+
0, [() => exports.ListKeysResponseListItem$,
|
|
189
|
+
0]
|
|
190
|
+
];
|
|
191
|
+
var PutKeyRequestsList = [1, n0, _PKRL,
|
|
192
|
+
0, [() => exports.PutKeyRequestListItem$,
|
|
193
|
+
0]
|
|
194
|
+
];
|
|
195
|
+
exports.DeleteKey$ = [9, n0, _DK,
|
|
196
|
+
{ [_h]: ["DELETE", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.DeleteKeyRequest$, () => exports.DeleteKeyResponse$
|
|
197
|
+
];
|
|
198
|
+
exports.DescribeKeyValueStore$ = [9, n0, _DKVS,
|
|
199
|
+
{ [_h]: ["GET", "/key-value-stores/{KvsARN}", 200] }, () => exports.DescribeKeyValueStoreRequest$, () => exports.DescribeKeyValueStoreResponse$
|
|
200
|
+
];
|
|
201
|
+
exports.GetKey$ = [9, n0, _GK,
|
|
202
|
+
{ [_h]: ["GET", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.GetKeyRequest$, () => exports.GetKeyResponse$
|
|
203
|
+
];
|
|
204
|
+
exports.ListKeys$ = [9, n0, _LK,
|
|
205
|
+
{ [_h]: ["GET", "/key-value-stores/{KvsARN}/keys", 200] }, () => exports.ListKeysRequest$, () => exports.ListKeysResponse$
|
|
206
|
+
];
|
|
207
|
+
exports.PutKey$ = [9, n0, _PK,
|
|
208
|
+
{ [_h]: ["PUT", "/key-value-stores/{KvsARN}/keys/{Key}", 200] }, () => exports.PutKeyRequest$, () => exports.PutKeyResponse$
|
|
209
|
+
];
|
|
210
|
+
exports.UpdateKeys$ = [9, n0, _UK,
|
|
211
|
+
{ [_h]: ["POST", "/key-value-stores/{KvsARN}/keys", 200] }, () => exports.UpdateKeysRequest$, () => exports.UpdateKeysResponse$
|
|
212
|
+
];
|
|
@@ -7,6 +7,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
7
7
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
8
|
import { defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
11
|
export const getRuntimeConfig = (config) => {
|
|
11
12
|
return {
|
|
12
13
|
apiVersion: "2022-07-26",
|
|
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
33
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
33
34
|
protocolSettings: config?.protocolSettings ?? {
|
|
34
35
|
defaultNamespace: "com.amazonaws.cloudfrontkeyvaluestore",
|
|
36
|
+
errorTypeRegistries,
|
|
35
37
|
version: "2022-07-26",
|
|
36
38
|
serviceTarget: "CloudFrontKeyValueStore",
|
|
37
39
|
},
|
|
@@ -52,25 +52,57 @@ const _h = "http";
|
|
|
52
52
|
const _hE = "httpError";
|
|
53
53
|
const _hH = "httpHeader";
|
|
54
54
|
const _hQ = "httpQuery";
|
|
55
|
-
const _s = "
|
|
56
|
-
const
|
|
55
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudfrontkeyvaluestore";
|
|
56
|
+
const _se = "server";
|
|
57
57
|
const n0 = "com.amazonaws.cloudfrontkeyvaluestore";
|
|
58
58
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
59
59
|
import { CloudFrontKeyValueStoreServiceException } from "../models/CloudFrontKeyValueStoreServiceException";
|
|
60
60
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/errors";
|
|
61
|
-
|
|
61
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
62
|
+
export var CloudFrontKeyValueStoreServiceException$ = [-3, _s, "CloudFrontKeyValueStoreServiceException", 0, [], []];
|
|
63
|
+
_s_registry.registerError(CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException);
|
|
64
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
62
65
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
63
66
|
{ [_e]: _c, [_hE]: 403 },
|
|
64
67
|
[_M],
|
|
65
68
|
[0]
|
|
66
69
|
];
|
|
67
|
-
|
|
70
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
68
71
|
export var ConflictException$ = [-3, n0, _CE,
|
|
69
72
|
{ [_e]: _c, [_hE]: 409 },
|
|
70
73
|
[_M],
|
|
71
74
|
[0]
|
|
72
75
|
];
|
|
73
|
-
|
|
76
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
77
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
78
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
79
|
+
[_M],
|
|
80
|
+
[0]
|
|
81
|
+
];
|
|
82
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
83
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
84
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
85
|
+
[_M],
|
|
86
|
+
[0]
|
|
87
|
+
];
|
|
88
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
89
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
90
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
91
|
+
[_M],
|
|
92
|
+
[0]
|
|
93
|
+
];
|
|
94
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
95
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
96
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
97
|
+
[_M],
|
|
98
|
+
[0]
|
|
99
|
+
];
|
|
100
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
101
|
+
export const errorTypeRegistries = [
|
|
102
|
+
_s_registry,
|
|
103
|
+
n0_registry,
|
|
104
|
+
];
|
|
105
|
+
var Value = [0, n0, _V, 8, 0];
|
|
74
106
|
export var DeleteKeyRequest$ = [3, n0, _DKR,
|
|
75
107
|
0,
|
|
76
108
|
[_KARN, _K, _IM],
|
|
@@ -106,12 +138,6 @@ export var GetKeyResponse$ = [3, n0, _GKRe,
|
|
|
106
138
|
[_K, _V, _IC, _TSIB],
|
|
107
139
|
[0, [() => Value, 0], 1, 1], 4
|
|
108
140
|
];
|
|
109
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
110
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
111
|
-
[_M],
|
|
112
|
-
[0]
|
|
113
|
-
];
|
|
114
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
115
141
|
export var ListKeysRequest$ = [3, n0, _LKR,
|
|
116
142
|
0,
|
|
117
143
|
[_KARN, _NT, _MR],
|
|
@@ -142,18 +168,6 @@ export var PutKeyResponse$ = [3, n0, _PKRu,
|
|
|
142
168
|
[_IC, _TSIB, _ET],
|
|
143
169
|
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
144
170
|
];
|
|
145
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
146
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
147
|
-
[_M],
|
|
148
|
-
[0]
|
|
149
|
-
];
|
|
150
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
151
|
-
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
152
|
-
{ [_e]: _c, [_hE]: 402 },
|
|
153
|
-
[_M],
|
|
154
|
-
[0]
|
|
155
|
-
];
|
|
156
|
-
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
157
171
|
export var UpdateKeysRequest$ = [3, n0, _UKR,
|
|
158
172
|
0,
|
|
159
173
|
[_KARN, _IM, _P, _D],
|
|
@@ -164,14 +178,6 @@ export var UpdateKeysResponse$ = [3, n0, _UKRp,
|
|
|
164
178
|
[_IC, _TSIB, _ET],
|
|
165
179
|
[1, 1, [0, { [_hH]: _ET }]], 3
|
|
166
180
|
];
|
|
167
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
168
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
169
|
-
[_M],
|
|
170
|
-
[0]
|
|
171
|
-
];
|
|
172
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
173
|
-
export var CloudFrontKeyValueStoreServiceException$ = [-3, _sm, "CloudFrontKeyValueStoreServiceException", 0, [], []];
|
|
174
|
-
TypeRegistry.for(_sm).registerError(CloudFrontKeyValueStoreServiceException$, CloudFrontKeyValueStoreServiceException);
|
|
175
181
|
var DeleteKeyRequestsList = [1, n0, _DKRL,
|
|
176
182
|
0, () => DeleteKeyRequestListItem$
|
|
177
183
|
];
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var CloudFrontKeyValueStoreServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
3
5
|
export declare var ConflictException$: StaticErrorSchema;
|
|
6
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
7
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
8
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
9
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
10
|
+
/**
|
|
11
|
+
* TypeRegistry instances containing modeled errors.
|
|
12
|
+
* @internal
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
4
16
|
export declare var DeleteKeyRequest$: StaticStructureSchema;
|
|
5
17
|
export declare var DeleteKeyRequestListItem$: StaticStructureSchema;
|
|
6
18
|
export declare var DeleteKeyResponse$: StaticStructureSchema;
|
|
@@ -8,19 +20,14 @@ export declare var DescribeKeyValueStoreRequest$: StaticStructureSchema;
|
|
|
8
20
|
export declare var DescribeKeyValueStoreResponse$: StaticStructureSchema;
|
|
9
21
|
export declare var GetKeyRequest$: StaticStructureSchema;
|
|
10
22
|
export declare var GetKeyResponse$: StaticStructureSchema;
|
|
11
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
12
23
|
export declare var ListKeysRequest$: StaticStructureSchema;
|
|
13
24
|
export declare var ListKeysResponse$: StaticStructureSchema;
|
|
14
25
|
export declare var ListKeysResponseListItem$: StaticStructureSchema;
|
|
15
26
|
export declare var PutKeyRequest$: StaticStructureSchema;
|
|
16
27
|
export declare var PutKeyRequestListItem$: StaticStructureSchema;
|
|
17
28
|
export declare var PutKeyResponse$: StaticStructureSchema;
|
|
18
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
19
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
20
29
|
export declare var UpdateKeysRequest$: StaticStructureSchema;
|
|
21
30
|
export declare var UpdateKeysResponse$: StaticStructureSchema;
|
|
22
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
23
|
-
export declare var CloudFrontKeyValueStoreServiceException$: StaticErrorSchema;
|
|
24
31
|
export declare var DeleteKey$: StaticOperationSchema;
|
|
25
32
|
export declare var DescribeKeyValueStore$: StaticOperationSchema;
|
|
26
33
|
export declare var GetKey$: StaticOperationSchema;
|
|
@@ -1,10 +1,17 @@
|
|
|
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 CloudFrontKeyValueStoreServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
7
9
|
export declare var ConflictException$: StaticErrorSchema;
|
|
10
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
11
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
|
+
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
13
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
8
15
|
export declare var DeleteKeyRequest$: StaticStructureSchema;
|
|
9
16
|
export declare var DeleteKeyRequestListItem$: StaticStructureSchema;
|
|
10
17
|
export declare var DeleteKeyResponse$: StaticStructureSchema;
|
|
@@ -12,19 +19,14 @@ export declare var DescribeKeyValueStoreRequest$: StaticStructureSchema;
|
|
|
12
19
|
export declare var DescribeKeyValueStoreResponse$: StaticStructureSchema;
|
|
13
20
|
export declare var GetKeyRequest$: StaticStructureSchema;
|
|
14
21
|
export declare var GetKeyResponse$: StaticStructureSchema;
|
|
15
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
16
22
|
export declare var ListKeysRequest$: StaticStructureSchema;
|
|
17
23
|
export declare var ListKeysResponse$: StaticStructureSchema;
|
|
18
24
|
export declare var ListKeysResponseListItem$: StaticStructureSchema;
|
|
19
25
|
export declare var PutKeyRequest$: StaticStructureSchema;
|
|
20
26
|
export declare var PutKeyRequestListItem$: StaticStructureSchema;
|
|
21
27
|
export declare var PutKeyResponse$: StaticStructureSchema;
|
|
22
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
23
|
-
export declare var ServiceQuotaExceededException$: StaticErrorSchema;
|
|
24
28
|
export declare var UpdateKeysRequest$: StaticStructureSchema;
|
|
25
29
|
export declare var UpdateKeysResponse$: StaticStructureSchema;
|
|
26
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
27
|
-
export declare var CloudFrontKeyValueStoreServiceException$: StaticErrorSchema;
|
|
28
30
|
export declare var DeleteKey$: StaticOperationSchema;
|
|
29
31
|
export declare var DescribeKeyValueStore$: StaticOperationSchema;
|
|
30
32
|
export declare var GetKey$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudfront-keyvaluestore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudfront Keyvaluestore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.989.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-cloudfront-keyvaluestore",
|
|
@@ -21,39 +21,39 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.8",
|
|
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.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
31
|
+
"@aws-sdk/signature-v4-multi-region": "3.989.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.1",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
36
36
|
"@smithy/config-resolver": "^4.4.6",
|
|
37
|
-
"@smithy/core": "^3.
|
|
37
|
+
"@smithy/core": "^3.23.0",
|
|
38
38
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
39
39
|
"@smithy/hash-node": "^4.2.8",
|
|
40
40
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
41
41
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
42
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
43
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
43
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
44
44
|
"@smithy/middleware-serde": "^4.2.9",
|
|
45
45
|
"@smithy/middleware-stack": "^4.2.8",
|
|
46
46
|
"@smithy/node-config-provider": "^4.3.8",
|
|
47
|
-
"@smithy/node-http-handler": "^4.4.
|
|
47
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
48
48
|
"@smithy/protocol-http": "^5.3.8",
|
|
49
|
-
"@smithy/smithy-client": "^4.11.
|
|
49
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
50
50
|
"@smithy/types": "^4.12.0",
|
|
51
51
|
"@smithy/url-parser": "^4.2.8",
|
|
52
52
|
"@smithy/util-base64": "^4.3.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
57
57
|
"@smithy/util-endpoints": "^3.2.8",
|
|
58
58
|
"@smithy/util-middleware": "^4.2.8",
|
|
59
59
|
"@smithy/util-retry": "^4.2.8",
|