@aws-sdk/client-s3outposts 3.504.0 → 3.509.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 +13 -137
- package/dist-es/protocols/Aws_restJson1.js +12 -136
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -367,7 +367,7 @@ var se_ListSharedEndpointsCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
367
367
|
}, "se_ListSharedEndpointsCommand");
|
|
368
368
|
var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
369
369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
371
371
|
}
|
|
372
372
|
const contents = (0, import_smithy_client.map)({
|
|
373
373
|
$metadata: deserializeMetadata(output)
|
|
@@ -379,46 +379,9 @@ var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
379
379
|
Object.assign(contents, doc);
|
|
380
380
|
return contents;
|
|
381
381
|
}, "de_CreateEndpointCommand");
|
|
382
|
-
var de_CreateEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context)
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "AccessDeniedException":
|
|
390
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ConflictException":
|
|
393
|
-
case "com.amazonaws.s3outposts#ConflictException":
|
|
394
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InternalServerException":
|
|
396
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
397
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
|
-
case "OutpostOfflineException":
|
|
399
|
-
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
400
|
-
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ResourceNotFoundException":
|
|
402
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
403
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ThrottlingException":
|
|
405
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
406
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ValidationException":
|
|
408
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
410
|
-
default:
|
|
411
|
-
const parsedBody = parsedOutput.body;
|
|
412
|
-
return throwDefaultError({
|
|
413
|
-
output,
|
|
414
|
-
parsedBody,
|
|
415
|
-
errorCode
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}, "de_CreateEndpointCommandError");
|
|
419
382
|
var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
422
385
|
}
|
|
423
386
|
const contents = (0, import_smithy_client.map)({
|
|
424
387
|
$metadata: deserializeMetadata(output)
|
|
@@ -426,43 +389,9 @@ var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
426
389
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
427
390
|
return contents;
|
|
428
391
|
}, "de_DeleteEndpointCommand");
|
|
429
|
-
var de_DeleteEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
430
|
-
const parsedOutput = {
|
|
431
|
-
...output,
|
|
432
|
-
body: await parseErrorBody(output.body, context)
|
|
433
|
-
};
|
|
434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
-
switch (errorCode) {
|
|
436
|
-
case "AccessDeniedException":
|
|
437
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
438
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
439
|
-
case "InternalServerException":
|
|
440
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
442
|
-
case "OutpostOfflineException":
|
|
443
|
-
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
444
|
-
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ResourceNotFoundException":
|
|
446
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
447
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ThrottlingException":
|
|
449
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ValidationException":
|
|
452
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
}, "de_DeleteEndpointCommandError");
|
|
463
392
|
var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
464
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
466
395
|
}
|
|
467
396
|
const contents = (0, import_smithy_client.map)({
|
|
468
397
|
$metadata: deserializeMetadata(output)
|
|
@@ -475,40 +404,9 @@ var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
475
404
|
Object.assign(contents, doc);
|
|
476
405
|
return contents;
|
|
477
406
|
}, "de_ListEndpointsCommand");
|
|
478
|
-
var de_ListEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
479
|
-
const parsedOutput = {
|
|
480
|
-
...output,
|
|
481
|
-
body: await parseErrorBody(output.body, context)
|
|
482
|
-
};
|
|
483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
-
switch (errorCode) {
|
|
485
|
-
case "AccessDeniedException":
|
|
486
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
488
|
-
case "InternalServerException":
|
|
489
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
490
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ResourceNotFoundException":
|
|
492
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
494
|
-
case "ThrottlingException":
|
|
495
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
496
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ValidationException":
|
|
498
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
499
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
500
|
-
default:
|
|
501
|
-
const parsedBody = parsedOutput.body;
|
|
502
|
-
return throwDefaultError({
|
|
503
|
-
output,
|
|
504
|
-
parsedBody,
|
|
505
|
-
errorCode
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
}, "de_ListEndpointsCommandError");
|
|
509
407
|
var de_ListOutpostsWithS3Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
510
408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
511
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
512
410
|
}
|
|
513
411
|
const contents = (0, import_smithy_client.map)({
|
|
514
412
|
$metadata: deserializeMetadata(output)
|
|
@@ -521,37 +419,9 @@ var de_ListOutpostsWithS3Command = /* @__PURE__ */ __name(async (output, context
|
|
|
521
419
|
Object.assign(contents, doc);
|
|
522
420
|
return contents;
|
|
523
421
|
}, "de_ListOutpostsWithS3Command");
|
|
524
|
-
var de_ListOutpostsWithS3CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context)
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "AccessDeniedException":
|
|
532
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
534
|
-
case "InternalServerException":
|
|
535
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ThrottlingException":
|
|
538
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
539
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
540
|
-
case "ValidationException":
|
|
541
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
542
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
|
-
default:
|
|
544
|
-
const parsedBody = parsedOutput.body;
|
|
545
|
-
return throwDefaultError({
|
|
546
|
-
output,
|
|
547
|
-
parsedBody,
|
|
548
|
-
errorCode
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
}, "de_ListOutpostsWithS3CommandError");
|
|
552
422
|
var de_ListSharedEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
553
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
554
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
555
425
|
}
|
|
556
426
|
const contents = (0, import_smithy_client.map)({
|
|
557
427
|
$metadata: deserializeMetadata(output)
|
|
@@ -564,7 +434,7 @@ var de_ListSharedEndpointsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
564
434
|
Object.assign(contents, doc);
|
|
565
435
|
return contents;
|
|
566
436
|
}, "de_ListSharedEndpointsCommand");
|
|
567
|
-
var
|
|
437
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
568
438
|
const parsedOutput = {
|
|
569
439
|
...output,
|
|
570
440
|
body: await parseErrorBody(output.body, context)
|
|
@@ -574,9 +444,15 @@ var de_ListSharedEndpointsCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
574
444
|
case "AccessDeniedException":
|
|
575
445
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
576
446
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
447
|
+
case "ConflictException":
|
|
448
|
+
case "com.amazonaws.s3outposts#ConflictException":
|
|
449
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
577
450
|
case "InternalServerException":
|
|
578
451
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
579
452
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
453
|
+
case "OutpostOfflineException":
|
|
454
|
+
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
455
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
580
456
|
case "ResourceNotFoundException":
|
|
581
457
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
582
458
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -594,7 +470,7 @@ var de_ListSharedEndpointsCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
594
470
|
errorCode
|
|
595
471
|
});
|
|
596
472
|
}
|
|
597
|
-
}, "
|
|
473
|
+
}, "de_CommandError");
|
|
598
474
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(S3OutpostsServiceException);
|
|
599
475
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
600
476
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -70,7 +70,7 @@ export const se_ListSharedEndpointsCommand = async (input, context) => {
|
|
|
70
70
|
};
|
|
71
71
|
export const de_CreateEndpointCommand = async (output, context) => {
|
|
72
72
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
73
|
-
return
|
|
73
|
+
return de_CommandError(output, context);
|
|
74
74
|
}
|
|
75
75
|
const contents = map({
|
|
76
76
|
$metadata: deserializeMetadata(output),
|
|
@@ -82,46 +82,9 @@ export const de_CreateEndpointCommand = async (output, context) => {
|
|
|
82
82
|
Object.assign(contents, doc);
|
|
83
83
|
return contents;
|
|
84
84
|
};
|
|
85
|
-
const de_CreateEndpointCommandError = async (output, context) => {
|
|
86
|
-
const parsedOutput = {
|
|
87
|
-
...output,
|
|
88
|
-
body: await parseErrorBody(output.body, context),
|
|
89
|
-
};
|
|
90
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
91
|
-
switch (errorCode) {
|
|
92
|
-
case "AccessDeniedException":
|
|
93
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
94
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
95
|
-
case "ConflictException":
|
|
96
|
-
case "com.amazonaws.s3outposts#ConflictException":
|
|
97
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
98
|
-
case "InternalServerException":
|
|
99
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
100
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
101
|
-
case "OutpostOfflineException":
|
|
102
|
-
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
103
|
-
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
104
|
-
case "ResourceNotFoundException":
|
|
105
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
107
|
-
case "ThrottlingException":
|
|
108
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
110
|
-
case "ValidationException":
|
|
111
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
112
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
113
|
-
default:
|
|
114
|
-
const parsedBody = parsedOutput.body;
|
|
115
|
-
return throwDefaultError({
|
|
116
|
-
output,
|
|
117
|
-
parsedBody,
|
|
118
|
-
errorCode,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
85
|
export const de_DeleteEndpointCommand = async (output, context) => {
|
|
123
86
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
124
|
-
return
|
|
87
|
+
return de_CommandError(output, context);
|
|
125
88
|
}
|
|
126
89
|
const contents = map({
|
|
127
90
|
$metadata: deserializeMetadata(output),
|
|
@@ -129,43 +92,9 @@ export const de_DeleteEndpointCommand = async (output, context) => {
|
|
|
129
92
|
await collectBody(output.body, context);
|
|
130
93
|
return contents;
|
|
131
94
|
};
|
|
132
|
-
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
133
|
-
const parsedOutput = {
|
|
134
|
-
...output,
|
|
135
|
-
body: await parseErrorBody(output.body, context),
|
|
136
|
-
};
|
|
137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
-
switch (errorCode) {
|
|
139
|
-
case "AccessDeniedException":
|
|
140
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
142
|
-
case "InternalServerException":
|
|
143
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
145
|
-
case "OutpostOfflineException":
|
|
146
|
-
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
147
|
-
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
148
|
-
case "ResourceNotFoundException":
|
|
149
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
150
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
151
|
-
case "ThrottlingException":
|
|
152
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
153
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
154
|
-
case "ValidationException":
|
|
155
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
157
|
-
default:
|
|
158
|
-
const parsedBody = parsedOutput.body;
|
|
159
|
-
return throwDefaultError({
|
|
160
|
-
output,
|
|
161
|
-
parsedBody,
|
|
162
|
-
errorCode,
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
95
|
export const de_ListEndpointsCommand = async (output, context) => {
|
|
167
96
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
168
|
-
return
|
|
97
|
+
return de_CommandError(output, context);
|
|
169
98
|
}
|
|
170
99
|
const contents = map({
|
|
171
100
|
$metadata: deserializeMetadata(output),
|
|
@@ -178,40 +107,9 @@ export const de_ListEndpointsCommand = async (output, context) => {
|
|
|
178
107
|
Object.assign(contents, doc);
|
|
179
108
|
return contents;
|
|
180
109
|
};
|
|
181
|
-
const de_ListEndpointsCommandError = async (output, context) => {
|
|
182
|
-
const parsedOutput = {
|
|
183
|
-
...output,
|
|
184
|
-
body: await parseErrorBody(output.body, context),
|
|
185
|
-
};
|
|
186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
187
|
-
switch (errorCode) {
|
|
188
|
-
case "AccessDeniedException":
|
|
189
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
190
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
191
|
-
case "InternalServerException":
|
|
192
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
194
|
-
case "ResourceNotFoundException":
|
|
195
|
-
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
197
|
-
case "ThrottlingException":
|
|
198
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
200
|
-
case "ValidationException":
|
|
201
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
203
|
-
default:
|
|
204
|
-
const parsedBody = parsedOutput.body;
|
|
205
|
-
return throwDefaultError({
|
|
206
|
-
output,
|
|
207
|
-
parsedBody,
|
|
208
|
-
errorCode,
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
110
|
export const de_ListOutpostsWithS3Command = async (output, context) => {
|
|
213
111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return
|
|
112
|
+
return de_CommandError(output, context);
|
|
215
113
|
}
|
|
216
114
|
const contents = map({
|
|
217
115
|
$metadata: deserializeMetadata(output),
|
|
@@ -224,37 +122,9 @@ export const de_ListOutpostsWithS3Command = async (output, context) => {
|
|
|
224
122
|
Object.assign(contents, doc);
|
|
225
123
|
return contents;
|
|
226
124
|
};
|
|
227
|
-
const de_ListOutpostsWithS3CommandError = async (output, context) => {
|
|
228
|
-
const parsedOutput = {
|
|
229
|
-
...output,
|
|
230
|
-
body: await parseErrorBody(output.body, context),
|
|
231
|
-
};
|
|
232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
-
switch (errorCode) {
|
|
234
|
-
case "AccessDeniedException":
|
|
235
|
-
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
237
|
-
case "InternalServerException":
|
|
238
|
-
case "com.amazonaws.s3outposts#InternalServerException":
|
|
239
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
240
|
-
case "ThrottlingException":
|
|
241
|
-
case "com.amazonaws.s3outposts#ThrottlingException":
|
|
242
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
243
|
-
case "ValidationException":
|
|
244
|
-
case "com.amazonaws.s3outposts#ValidationException":
|
|
245
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
246
|
-
default:
|
|
247
|
-
const parsedBody = parsedOutput.body;
|
|
248
|
-
return throwDefaultError({
|
|
249
|
-
output,
|
|
250
|
-
parsedBody,
|
|
251
|
-
errorCode,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
125
|
export const de_ListSharedEndpointsCommand = async (output, context) => {
|
|
256
126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
257
|
-
return
|
|
127
|
+
return de_CommandError(output, context);
|
|
258
128
|
}
|
|
259
129
|
const contents = map({
|
|
260
130
|
$metadata: deserializeMetadata(output),
|
|
@@ -267,7 +137,7 @@ export const de_ListSharedEndpointsCommand = async (output, context) => {
|
|
|
267
137
|
Object.assign(contents, doc);
|
|
268
138
|
return contents;
|
|
269
139
|
};
|
|
270
|
-
const
|
|
140
|
+
const de_CommandError = async (output, context) => {
|
|
271
141
|
const parsedOutput = {
|
|
272
142
|
...output,
|
|
273
143
|
body: await parseErrorBody(output.body, context),
|
|
@@ -277,9 +147,15 @@ const de_ListSharedEndpointsCommandError = async (output, context) => {
|
|
|
277
147
|
case "AccessDeniedException":
|
|
278
148
|
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
279
149
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
150
|
+
case "ConflictException":
|
|
151
|
+
case "com.amazonaws.s3outposts#ConflictException":
|
|
152
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
280
153
|
case "InternalServerException":
|
|
281
154
|
case "com.amazonaws.s3outposts#InternalServerException":
|
|
282
155
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
156
|
+
case "OutpostOfflineException":
|
|
157
|
+
case "com.amazonaws.s3outposts#OutpostOfflineException":
|
|
158
|
+
throw await de_OutpostOfflineExceptionRes(parsedOutput, context);
|
|
283
159
|
case "ResourceNotFoundException":
|
|
284
160
|
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
285
161
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3outposts",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3outposts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.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-s3outposts",
|
|
@@ -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.509.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",
|