@aws-sdk/client-cloudfront-keyvaluestore 3.503.1 → 3.507.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 +8 -163
- package/dist-es/protocols/Aws_restJson1.js +7 -162
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -375,7 +375,7 @@ var se_UpdateKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
375
375
|
}, "se_UpdateKeysCommand");
|
|
376
376
|
var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
377
377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
378
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
379
379
|
}
|
|
380
380
|
const contents = (0, import_smithy_client.map)({
|
|
381
381
|
$metadata: deserializeMetadata(output),
|
|
@@ -389,43 +389,9 @@ var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
389
389
|
Object.assign(contents, doc);
|
|
390
390
|
return contents;
|
|
391
391
|
}, "de_DeleteKeyCommand");
|
|
392
|
-
var de_DeleteKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
393
|
-
const parsedOutput = {
|
|
394
|
-
...output,
|
|
395
|
-
body: await parseErrorBody(output.body, context)
|
|
396
|
-
};
|
|
397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
-
switch (errorCode) {
|
|
399
|
-
case "AccessDeniedException":
|
|
400
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
401
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ConflictException":
|
|
403
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
404
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
405
|
-
case "InternalServerException":
|
|
406
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
407
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
408
|
-
case "ResourceNotFoundException":
|
|
409
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
411
|
-
case "ServiceQuotaExceededException":
|
|
412
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
413
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ValidationException":
|
|
415
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
417
|
-
default:
|
|
418
|
-
const parsedBody = parsedOutput.body;
|
|
419
|
-
return throwDefaultError({
|
|
420
|
-
output,
|
|
421
|
-
parsedBody,
|
|
422
|
-
errorCode
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
}, "de_DeleteKeyCommandError");
|
|
426
392
|
var de_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
427
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
429
395
|
}
|
|
430
396
|
const contents = (0, import_smithy_client.map)({
|
|
431
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -444,37 +410,9 @@ var de_DescribeKeyValueStoreCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
444
410
|
Object.assign(contents, doc);
|
|
445
411
|
return contents;
|
|
446
412
|
}, "de_DescribeKeyValueStoreCommand");
|
|
447
|
-
var de_DescribeKeyValueStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
448
|
-
const parsedOutput = {
|
|
449
|
-
...output,
|
|
450
|
-
body: await parseErrorBody(output.body, context)
|
|
451
|
-
};
|
|
452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
-
switch (errorCode) {
|
|
454
|
-
case "AccessDeniedException":
|
|
455
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
457
|
-
case "ConflictException":
|
|
458
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
459
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
460
|
-
case "InternalServerException":
|
|
461
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
462
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ResourceNotFoundException":
|
|
464
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
|
-
default:
|
|
467
|
-
const parsedBody = parsedOutput.body;
|
|
468
|
-
return throwDefaultError({
|
|
469
|
-
output,
|
|
470
|
-
parsedBody,
|
|
471
|
-
errorCode
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
}, "de_DescribeKeyValueStoreCommandError");
|
|
475
413
|
var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
476
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
477
|
-
return
|
|
415
|
+
return de_CommandError(output, context);
|
|
478
416
|
}
|
|
479
417
|
const contents = (0, import_smithy_client.map)({
|
|
480
418
|
$metadata: deserializeMetadata(output)
|
|
@@ -489,37 +427,9 @@ var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
489
427
|
Object.assign(contents, doc);
|
|
490
428
|
return contents;
|
|
491
429
|
}, "de_GetKeyCommand");
|
|
492
|
-
var de_GetKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
493
|
-
const parsedOutput = {
|
|
494
|
-
...output,
|
|
495
|
-
body: await parseErrorBody(output.body, context)
|
|
496
|
-
};
|
|
497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "AccessDeniedException":
|
|
500
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
501
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
502
|
-
case "ConflictException":
|
|
503
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
504
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
|
-
case "InternalServerException":
|
|
506
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ResourceNotFoundException":
|
|
509
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
511
|
-
default:
|
|
512
|
-
const parsedBody = parsedOutput.body;
|
|
513
|
-
return throwDefaultError({
|
|
514
|
-
output,
|
|
515
|
-
parsedBody,
|
|
516
|
-
errorCode
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
}, "de_GetKeyCommandError");
|
|
520
430
|
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
521
431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
432
|
+
return de_CommandError(output, context);
|
|
523
433
|
}
|
|
524
434
|
const contents = (0, import_smithy_client.map)({
|
|
525
435
|
$metadata: deserializeMetadata(output)
|
|
@@ -532,40 +442,9 @@ var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
532
442
|
Object.assign(contents, doc);
|
|
533
443
|
return contents;
|
|
534
444
|
}, "de_ListKeysCommand");
|
|
535
|
-
var de_ListKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context)
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "AccessDeniedException":
|
|
543
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ConflictException":
|
|
546
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
547
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
548
|
-
case "InternalServerException":
|
|
549
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ResourceNotFoundException":
|
|
552
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
553
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ValidationException":
|
|
555
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
556
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
557
|
-
default:
|
|
558
|
-
const parsedBody = parsedOutput.body;
|
|
559
|
-
return throwDefaultError({
|
|
560
|
-
output,
|
|
561
|
-
parsedBody,
|
|
562
|
-
errorCode
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
}, "de_ListKeysCommandError");
|
|
566
445
|
var de_PutKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
567
446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return
|
|
447
|
+
return de_CommandError(output, context);
|
|
569
448
|
}
|
|
570
449
|
const contents = (0, import_smithy_client.map)({
|
|
571
450
|
$metadata: deserializeMetadata(output),
|
|
@@ -579,43 +458,9 @@ var de_PutKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
579
458
|
Object.assign(contents, doc);
|
|
580
459
|
return contents;
|
|
581
460
|
}, "de_PutKeyCommand");
|
|
582
|
-
var de_PutKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context)
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "AccessDeniedException":
|
|
590
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ConflictException":
|
|
593
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
594
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
595
|
-
case "InternalServerException":
|
|
596
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
597
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ResourceNotFoundException":
|
|
599
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ServiceQuotaExceededException":
|
|
602
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
603
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ValidationException":
|
|
605
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
606
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
607
|
-
default:
|
|
608
|
-
const parsedBody = parsedOutput.body;
|
|
609
|
-
return throwDefaultError({
|
|
610
|
-
output,
|
|
611
|
-
parsedBody,
|
|
612
|
-
errorCode
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
|
-
}, "de_PutKeyCommandError");
|
|
616
461
|
var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
617
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
619
464
|
}
|
|
620
465
|
const contents = (0, import_smithy_client.map)({
|
|
621
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -629,7 +474,7 @@ var de_UpdateKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
629
474
|
Object.assign(contents, doc);
|
|
630
475
|
return contents;
|
|
631
476
|
}, "de_UpdateKeysCommand");
|
|
632
|
-
var
|
|
477
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
478
|
const parsedOutput = {
|
|
634
479
|
...output,
|
|
635
480
|
body: await parseErrorBody(output.body, context)
|
|
@@ -662,7 +507,7 @@ var de_UpdateKeysCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
662
507
|
errorCode
|
|
663
508
|
});
|
|
664
509
|
}
|
|
665
|
-
}, "
|
|
510
|
+
}, "de_CommandError");
|
|
666
511
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudFrontKeyValueStoreServiceException);
|
|
667
512
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
668
513
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -80,7 +80,7 @@ export const se_UpdateKeysCommand = async (input, context) => {
|
|
|
80
80
|
};
|
|
81
81
|
export const de_DeleteKeyCommand = async (output, context) => {
|
|
82
82
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
83
|
-
return
|
|
83
|
+
return de_CommandError(output, context);
|
|
84
84
|
}
|
|
85
85
|
const contents = map({
|
|
86
86
|
$metadata: deserializeMetadata(output),
|
|
@@ -94,43 +94,9 @@ export const de_DeleteKeyCommand = async (output, context) => {
|
|
|
94
94
|
Object.assign(contents, doc);
|
|
95
95
|
return contents;
|
|
96
96
|
};
|
|
97
|
-
const de_DeleteKeyCommandError = async (output, context) => {
|
|
98
|
-
const parsedOutput = {
|
|
99
|
-
...output,
|
|
100
|
-
body: await parseErrorBody(output.body, context),
|
|
101
|
-
};
|
|
102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
103
|
-
switch (errorCode) {
|
|
104
|
-
case "AccessDeniedException":
|
|
105
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
107
|
-
case "ConflictException":
|
|
108
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
109
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
110
|
-
case "InternalServerException":
|
|
111
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
112
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
113
|
-
case "ResourceNotFoundException":
|
|
114
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
116
|
-
case "ServiceQuotaExceededException":
|
|
117
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
118
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
119
|
-
case "ValidationException":
|
|
120
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
121
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
122
|
-
default:
|
|
123
|
-
const parsedBody = parsedOutput.body;
|
|
124
|
-
return throwDefaultError({
|
|
125
|
-
output,
|
|
126
|
-
parsedBody,
|
|
127
|
-
errorCode,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
97
|
export const de_DescribeKeyValueStoreCommand = async (output, context) => {
|
|
132
98
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
133
|
-
return
|
|
99
|
+
return de_CommandError(output, context);
|
|
134
100
|
}
|
|
135
101
|
const contents = map({
|
|
136
102
|
$metadata: deserializeMetadata(output),
|
|
@@ -149,37 +115,9 @@ export const de_DescribeKeyValueStoreCommand = async (output, context) => {
|
|
|
149
115
|
Object.assign(contents, doc);
|
|
150
116
|
return contents;
|
|
151
117
|
};
|
|
152
|
-
const de_DescribeKeyValueStoreCommandError = async (output, context) => {
|
|
153
|
-
const parsedOutput = {
|
|
154
|
-
...output,
|
|
155
|
-
body: await parseErrorBody(output.body, context),
|
|
156
|
-
};
|
|
157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
158
|
-
switch (errorCode) {
|
|
159
|
-
case "AccessDeniedException":
|
|
160
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
161
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
162
|
-
case "ConflictException":
|
|
163
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
164
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
165
|
-
case "InternalServerException":
|
|
166
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
167
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
168
|
-
case "ResourceNotFoundException":
|
|
169
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
171
|
-
default:
|
|
172
|
-
const parsedBody = parsedOutput.body;
|
|
173
|
-
return throwDefaultError({
|
|
174
|
-
output,
|
|
175
|
-
parsedBody,
|
|
176
|
-
errorCode,
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
118
|
export const de_GetKeyCommand = async (output, context) => {
|
|
181
119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
182
|
-
return
|
|
120
|
+
return de_CommandError(output, context);
|
|
183
121
|
}
|
|
184
122
|
const contents = map({
|
|
185
123
|
$metadata: deserializeMetadata(output),
|
|
@@ -194,37 +132,9 @@ export const de_GetKeyCommand = async (output, context) => {
|
|
|
194
132
|
Object.assign(contents, doc);
|
|
195
133
|
return contents;
|
|
196
134
|
};
|
|
197
|
-
const de_GetKeyCommandError = async (output, context) => {
|
|
198
|
-
const parsedOutput = {
|
|
199
|
-
...output,
|
|
200
|
-
body: await parseErrorBody(output.body, context),
|
|
201
|
-
};
|
|
202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
203
|
-
switch (errorCode) {
|
|
204
|
-
case "AccessDeniedException":
|
|
205
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ConflictException":
|
|
208
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
209
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
210
|
-
case "InternalServerException":
|
|
211
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
213
|
-
case "ResourceNotFoundException":
|
|
214
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
216
|
-
default:
|
|
217
|
-
const parsedBody = parsedOutput.body;
|
|
218
|
-
return throwDefaultError({
|
|
219
|
-
output,
|
|
220
|
-
parsedBody,
|
|
221
|
-
errorCode,
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
135
|
export const de_ListKeysCommand = async (output, context) => {
|
|
226
136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
227
|
-
return
|
|
137
|
+
return de_CommandError(output, context);
|
|
228
138
|
}
|
|
229
139
|
const contents = map({
|
|
230
140
|
$metadata: deserializeMetadata(output),
|
|
@@ -237,40 +147,9 @@ export const de_ListKeysCommand = async (output, context) => {
|
|
|
237
147
|
Object.assign(contents, doc);
|
|
238
148
|
return contents;
|
|
239
149
|
};
|
|
240
|
-
const de_ListKeysCommandError = async (output, context) => {
|
|
241
|
-
const parsedOutput = {
|
|
242
|
-
...output,
|
|
243
|
-
body: await parseErrorBody(output.body, context),
|
|
244
|
-
};
|
|
245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
246
|
-
switch (errorCode) {
|
|
247
|
-
case "AccessDeniedException":
|
|
248
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
249
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
250
|
-
case "ConflictException":
|
|
251
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
252
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
253
|
-
case "InternalServerException":
|
|
254
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
256
|
-
case "ResourceNotFoundException":
|
|
257
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
258
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
259
|
-
case "ValidationException":
|
|
260
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
262
|
-
default:
|
|
263
|
-
const parsedBody = parsedOutput.body;
|
|
264
|
-
return throwDefaultError({
|
|
265
|
-
output,
|
|
266
|
-
parsedBody,
|
|
267
|
-
errorCode,
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
150
|
export const de_PutKeyCommand = async (output, context) => {
|
|
272
151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
273
|
-
return
|
|
152
|
+
return de_CommandError(output, context);
|
|
274
153
|
}
|
|
275
154
|
const contents = map({
|
|
276
155
|
$metadata: deserializeMetadata(output),
|
|
@@ -284,43 +163,9 @@ export const de_PutKeyCommand = async (output, context) => {
|
|
|
284
163
|
Object.assign(contents, doc);
|
|
285
164
|
return contents;
|
|
286
165
|
};
|
|
287
|
-
const de_PutKeyCommandError = async (output, context) => {
|
|
288
|
-
const parsedOutput = {
|
|
289
|
-
...output,
|
|
290
|
-
body: await parseErrorBody(output.body, context),
|
|
291
|
-
};
|
|
292
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
293
|
-
switch (errorCode) {
|
|
294
|
-
case "AccessDeniedException":
|
|
295
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#AccessDeniedException":
|
|
296
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
297
|
-
case "ConflictException":
|
|
298
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ConflictException":
|
|
299
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
300
|
-
case "InternalServerException":
|
|
301
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#InternalServerException":
|
|
302
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
303
|
-
case "ResourceNotFoundException":
|
|
304
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ResourceNotFoundException":
|
|
305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
306
|
-
case "ServiceQuotaExceededException":
|
|
307
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ServiceQuotaExceededException":
|
|
308
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
309
|
-
case "ValidationException":
|
|
310
|
-
case "com.amazonaws.cloudfrontkeyvaluestore#ValidationException":
|
|
311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
312
|
-
default:
|
|
313
|
-
const parsedBody = parsedOutput.body;
|
|
314
|
-
return throwDefaultError({
|
|
315
|
-
output,
|
|
316
|
-
parsedBody,
|
|
317
|
-
errorCode,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
166
|
export const de_UpdateKeysCommand = async (output, context) => {
|
|
322
167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
323
|
-
return
|
|
168
|
+
return de_CommandError(output, context);
|
|
324
169
|
}
|
|
325
170
|
const contents = map({
|
|
326
171
|
$metadata: deserializeMetadata(output),
|
|
@@ -334,7 +179,7 @@ export const de_UpdateKeysCommand = async (output, context) => {
|
|
|
334
179
|
Object.assign(contents, doc);
|
|
335
180
|
return contents;
|
|
336
181
|
};
|
|
337
|
-
const
|
|
182
|
+
const de_CommandError = async (output, context) => {
|
|
338
183
|
const parsedOutput = {
|
|
339
184
|
...output,
|
|
340
185
|
body: await parseErrorBody(output.body, context),
|
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.507.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-cloudfront-keyvaluestore",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|