@aws-sdk/client-s3outposts 3.928.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class S3OutpostsClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class S3OutpostsClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class S3OutpostsServiceException extends smithyClient.ServiceException {
113
+ let S3OutpostsServiceException$1 = class S3OutpostsServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, S3OutpostsServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends S3OutpostsServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends S3OutpostsServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,8 +130,8 @@ class AccessDeniedException extends S3OutpostsServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
134
- class ConflictException extends S3OutpostsServiceException {
133
+ };
134
+ let ConflictException$1 = class ConflictException extends S3OutpostsServiceException$1 {
135
135
  name = "ConflictException";
136
136
  $fault = "client";
137
137
  Message;
@@ -144,12 +144,12 @@ class ConflictException extends S3OutpostsServiceException {
144
144
  Object.setPrototypeOf(this, ConflictException.prototype);
145
145
  this.Message = opts.Message;
146
146
  }
147
- }
147
+ };
148
148
  const EndpointAccessType = {
149
149
  CUSTOMER_OWNED_IP: "CustomerOwnedIp",
150
150
  PRIVATE: "Private",
151
151
  };
152
- class InternalServerException extends S3OutpostsServiceException {
152
+ let InternalServerException$1 = class InternalServerException extends S3OutpostsServiceException$1 {
153
153
  name = "InternalServerException";
154
154
  $fault = "server";
155
155
  Message;
@@ -162,8 +162,8 @@ class InternalServerException extends S3OutpostsServiceException {
162
162
  Object.setPrototypeOf(this, InternalServerException.prototype);
163
163
  this.Message = opts.Message;
164
164
  }
165
- }
166
- class OutpostOfflineException extends S3OutpostsServiceException {
165
+ };
166
+ let OutpostOfflineException$1 = class OutpostOfflineException extends S3OutpostsServiceException$1 {
167
167
  name = "OutpostOfflineException";
168
168
  $fault = "client";
169
169
  Message;
@@ -176,8 +176,8 @@ class OutpostOfflineException extends S3OutpostsServiceException {
176
176
  Object.setPrototypeOf(this, OutpostOfflineException.prototype);
177
177
  this.Message = opts.Message;
178
178
  }
179
- }
180
- class ResourceNotFoundException extends S3OutpostsServiceException {
179
+ };
180
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends S3OutpostsServiceException$1 {
181
181
  name = "ResourceNotFoundException";
182
182
  $fault = "client";
183
183
  Message;
@@ -190,8 +190,8 @@ class ResourceNotFoundException extends S3OutpostsServiceException {
190
190
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
191
191
  this.Message = opts.Message;
192
192
  }
193
- }
194
- class ThrottlingException extends S3OutpostsServiceException {
193
+ };
194
+ let ThrottlingException$1 = class ThrottlingException extends S3OutpostsServiceException$1 {
195
195
  name = "ThrottlingException";
196
196
  $fault = "client";
197
197
  Message;
@@ -204,8 +204,8 @@ class ThrottlingException extends S3OutpostsServiceException {
204
204
  Object.setPrototypeOf(this, ThrottlingException.prototype);
205
205
  this.Message = opts.Message;
206
206
  }
207
- }
208
- class ValidationException extends S3OutpostsServiceException {
207
+ };
208
+ let ValidationException$1 = class ValidationException extends S3OutpostsServiceException$1 {
209
209
  name = "ValidationException";
210
210
  $fault = "client";
211
211
  Message;
@@ -218,7 +218,7 @@ class ValidationException extends S3OutpostsServiceException {
218
218
  Object.setPrototypeOf(this, ValidationException.prototype);
219
219
  this.Message = opts.Message;
220
220
  }
221
- }
221
+ };
222
222
  const EndpointStatus = {
223
223
  AVAILABLE: "Available",
224
224
  CREATE_FAILED: "Create_Failed",
@@ -227,323 +227,330 @@ const EndpointStatus = {
227
227
  PENDING: "Pending",
228
228
  };
229
229
 
230
- const se_CreateEndpointCommand = async (input, context) => {
231
- const b = core.requestBuilder(input, context);
232
- const headers = {
233
- "content-type": "application/json",
234
- };
235
- b.bp("/S3Outposts/CreateEndpoint");
236
- let body;
237
- body = JSON.stringify(smithyClient.take(input, {
238
- AccessType: [],
239
- CustomerOwnedIpv4Pool: [],
240
- OutpostId: [],
241
- SecurityGroupId: [],
242
- SubnetId: [],
243
- }));
244
- b.m("POST").h(headers).b(body);
245
- return b.build();
246
- };
247
- const se_DeleteEndpointCommand = async (input, context) => {
248
- const b = core.requestBuilder(input, context);
249
- const headers = {};
250
- b.bp("/S3Outposts/DeleteEndpoint");
251
- const query = smithyClient.map({
252
- [_eI]: [, smithyClient.expectNonNull(input[_EI], `EndpointId`)],
253
- [_oI]: [, smithyClient.expectNonNull(input[_OI], `OutpostId`)],
254
- });
255
- let body;
256
- b.m("DELETE").h(headers).q(query).b(body);
257
- return b.build();
258
- };
259
- const se_ListEndpointsCommand = async (input, context) => {
260
- const b = core.requestBuilder(input, context);
261
- const headers = {};
262
- b.bp("/S3Outposts/ListEndpoints");
263
- const query = smithyClient.map({
264
- [_nT]: [, input[_NT]],
265
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
266
- });
267
- let body;
268
- b.m("GET").h(headers).q(query).b(body);
269
- return b.build();
270
- };
271
- const se_ListOutpostsWithS3Command = async (input, context) => {
272
- const b = core.requestBuilder(input, context);
273
- const headers = {};
274
- b.bp("/S3Outposts/ListOutpostsWithS3");
275
- const query = smithyClient.map({
276
- [_nT]: [, input[_NT]],
277
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
278
- });
279
- let body;
280
- b.m("GET").h(headers).q(query).b(body);
281
- return b.build();
282
- };
283
- const se_ListSharedEndpointsCommand = async (input, context) => {
284
- const b = core.requestBuilder(input, context);
285
- const headers = {};
286
- b.bp("/S3Outposts/ListSharedEndpoints");
287
- const query = smithyClient.map({
288
- [_nT]: [, input[_NT]],
289
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
290
- [_oI]: [, smithyClient.expectNonNull(input[_OI], `OutpostId`)],
291
- });
292
- let body;
293
- b.m("GET").h(headers).q(query).b(body);
294
- return b.build();
295
- };
296
- const de_CreateEndpointCommand = async (output, context) => {
297
- if (output.statusCode !== 200 && output.statusCode >= 300) {
298
- return de_CommandError(output, context);
299
- }
300
- const contents = smithyClient.map({
301
- $metadata: deserializeMetadata(output),
302
- });
303
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
304
- const doc = smithyClient.take(data, {
305
- EndpointArn: smithyClient.expectString,
306
- });
307
- Object.assign(contents, doc);
308
- return contents;
309
- };
310
- const de_DeleteEndpointCommand = async (output, context) => {
311
- if (output.statusCode !== 200 && output.statusCode >= 300) {
312
- return de_CommandError(output, context);
313
- }
314
- const contents = smithyClient.map({
315
- $metadata: deserializeMetadata(output),
316
- });
317
- await smithyClient.collectBody(output.body, context);
318
- return contents;
319
- };
320
- const de_ListEndpointsCommand = async (output, context) => {
321
- if (output.statusCode !== 200 && output.statusCode >= 300) {
322
- return de_CommandError(output, context);
323
- }
324
- const contents = smithyClient.map({
325
- $metadata: deserializeMetadata(output),
326
- });
327
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
328
- const doc = smithyClient.take(data, {
329
- Endpoints: (_) => de_Endpoints(_),
330
- NextToken: smithyClient.expectString,
331
- });
332
- Object.assign(contents, doc);
333
- return contents;
334
- };
335
- const de_ListOutpostsWithS3Command = async (output, context) => {
336
- if (output.statusCode !== 200 && output.statusCode >= 300) {
337
- return de_CommandError(output, context);
338
- }
339
- const contents = smithyClient.map({
340
- $metadata: deserializeMetadata(output),
341
- });
342
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
343
- const doc = smithyClient.take(data, {
344
- NextToken: smithyClient.expectString,
345
- Outposts: smithyClient._json,
346
- });
347
- Object.assign(contents, doc);
348
- return contents;
349
- };
350
- const de_ListSharedEndpointsCommand = async (output, context) => {
351
- if (output.statusCode !== 200 && output.statusCode >= 300) {
352
- return de_CommandError(output, context);
353
- }
354
- const contents = smithyClient.map({
355
- $metadata: deserializeMetadata(output),
356
- });
357
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
358
- const doc = smithyClient.take(data, {
359
- Endpoints: (_) => de_Endpoints(_),
360
- NextToken: smithyClient.expectString,
361
- });
362
- Object.assign(contents, doc);
363
- return contents;
364
- };
365
- const de_CommandError = async (output, context) => {
366
- const parsedOutput = {
367
- ...output,
368
- body: await core$1.parseJsonErrorBody(output.body, context),
369
- };
370
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
371
- switch (errorCode) {
372
- case "AccessDeniedException":
373
- case "com.amazonaws.s3outposts#AccessDeniedException":
374
- throw await de_AccessDeniedExceptionRes(parsedOutput);
375
- case "ConflictException":
376
- case "com.amazonaws.s3outposts#ConflictException":
377
- throw await de_ConflictExceptionRes(parsedOutput);
378
- case "InternalServerException":
379
- case "com.amazonaws.s3outposts#InternalServerException":
380
- throw await de_InternalServerExceptionRes(parsedOutput);
381
- case "OutpostOfflineException":
382
- case "com.amazonaws.s3outposts#OutpostOfflineException":
383
- throw await de_OutpostOfflineExceptionRes(parsedOutput);
384
- case "ResourceNotFoundException":
385
- case "com.amazonaws.s3outposts#ResourceNotFoundException":
386
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
387
- case "ThrottlingException":
388
- case "com.amazonaws.s3outposts#ThrottlingException":
389
- throw await de_ThrottlingExceptionRes(parsedOutput);
390
- case "ValidationException":
391
- case "com.amazonaws.s3outposts#ValidationException":
392
- throw await de_ValidationExceptionRes(parsedOutput);
393
- default:
394
- const parsedBody = parsedOutput.body;
395
- return throwDefaultError({
396
- output,
397
- parsedBody,
398
- errorCode,
399
- });
400
- }
401
- };
402
- const throwDefaultError = smithyClient.withBaseException(S3OutpostsServiceException);
403
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
404
- const contents = smithyClient.map({});
405
- const data = parsedOutput.body;
406
- const doc = smithyClient.take(data, {
407
- Message: smithyClient.expectString,
408
- });
409
- Object.assign(contents, doc);
410
- const exception = new AccessDeniedException({
411
- $metadata: deserializeMetadata(parsedOutput),
412
- ...contents,
413
- });
414
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
415
- };
416
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
417
- const contents = smithyClient.map({});
418
- const data = parsedOutput.body;
419
- const doc = smithyClient.take(data, {
420
- Message: smithyClient.expectString,
421
- });
422
- Object.assign(contents, doc);
423
- const exception = new ConflictException({
424
- $metadata: deserializeMetadata(parsedOutput),
425
- ...contents,
426
- });
427
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
428
- };
429
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
430
- const contents = smithyClient.map({});
431
- const data = parsedOutput.body;
432
- const doc = smithyClient.take(data, {
433
- Message: smithyClient.expectString,
434
- });
435
- Object.assign(contents, doc);
436
- const exception = new InternalServerException({
437
- $metadata: deserializeMetadata(parsedOutput),
438
- ...contents,
439
- });
440
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
441
- };
442
- const de_OutpostOfflineExceptionRes = async (parsedOutput, context) => {
443
- const contents = smithyClient.map({});
444
- const data = parsedOutput.body;
445
- const doc = smithyClient.take(data, {
446
- Message: smithyClient.expectString,
447
- });
448
- Object.assign(contents, doc);
449
- const exception = new OutpostOfflineException({
450
- $metadata: deserializeMetadata(parsedOutput),
451
- ...contents,
452
- });
453
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
454
- };
455
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
456
- const contents = smithyClient.map({});
457
- const data = parsedOutput.body;
458
- const doc = smithyClient.take(data, {
459
- Message: smithyClient.expectString,
460
- });
461
- Object.assign(contents, doc);
462
- const exception = new ResourceNotFoundException({
463
- $metadata: deserializeMetadata(parsedOutput),
464
- ...contents,
465
- });
466
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
467
- };
468
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
469
- const contents = smithyClient.map({});
470
- const data = parsedOutput.body;
471
- const doc = smithyClient.take(data, {
472
- Message: smithyClient.expectString,
473
- });
474
- Object.assign(contents, doc);
475
- const exception = new ThrottlingException({
476
- $metadata: deserializeMetadata(parsedOutput),
477
- ...contents,
478
- });
479
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
480
- };
481
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
482
- const contents = smithyClient.map({});
483
- const data = parsedOutput.body;
484
- const doc = smithyClient.take(data, {
485
- Message: smithyClient.expectString,
486
- });
487
- Object.assign(contents, doc);
488
- const exception = new ValidationException({
489
- $metadata: deserializeMetadata(parsedOutput),
490
- ...contents,
491
- });
492
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
493
- };
494
- const de_Endpoint = (output, context) => {
495
- return smithyClient.take(output, {
496
- AccessType: smithyClient.expectString,
497
- CidrBlock: smithyClient.expectString,
498
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
499
- CustomerOwnedIpv4Pool: smithyClient.expectString,
500
- EndpointArn: smithyClient.expectString,
501
- FailedReason: smithyClient._json,
502
- NetworkInterfaces: smithyClient._json,
503
- OutpostsId: smithyClient.expectString,
504
- SecurityGroupId: smithyClient.expectString,
505
- Status: smithyClient.expectString,
506
- SubnetId: smithyClient.expectString,
507
- VpcId: smithyClient.expectString,
508
- });
509
- };
510
- const de_Endpoints = (output, context) => {
511
- const retVal = (output || [])
512
- .filter((e) => e != null)
513
- .map((entry) => {
514
- return de_Endpoint(entry);
515
- });
516
- return retVal;
517
- };
518
- const deserializeMetadata = (output) => ({
519
- httpStatusCode: output.statusCode,
520
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
521
- extendedRequestId: output.headers["x-amz-id-2"],
522
- cfId: output.headers["x-amz-cf-id"],
523
- });
230
+ const _ADE = "AccessDeniedException";
231
+ const _AT = "AccessType";
232
+ const _CB = "CidrBlock";
233
+ const _CE = "ConflictException";
234
+ const _CER = "CreateEndpointRequest";
235
+ const _CERr = "CreateEndpointResult";
236
+ const _CEr = "CreateEndpoint";
237
+ const _CIB = "CapacityInBytes";
238
+ const _COIP = "CustomerOwnedIpv4Pool";
239
+ const _CT = "CreationTime";
240
+ const _DE = "DeleteEndpoint";
241
+ const _DER = "DeleteEndpointRequest";
242
+ const _E = "Endpoint";
243
+ const _EA = "EndpointArn";
244
+ const _EC = "ErrorCode";
524
245
  const _EI = "EndpointId";
246
+ const _En = "Endpoints";
247
+ const _FR = "FailedReason";
248
+ const _ISE = "InternalServerException";
249
+ const _LE = "ListEndpoints";
250
+ const _LER = "ListEndpointsRequest";
251
+ const _LERi = "ListEndpointsResult";
252
+ const _LOWS = "ListOutpostsWithS3";
253
+ const _LOWSR = "ListOutpostsWithS3Request";
254
+ const _LOWSRi = "ListOutpostsWithS3Result";
255
+ const _LSE = "ListSharedEndpoints";
256
+ const _LSER = "ListSharedEndpointsRequest";
257
+ const _LSERi = "ListSharedEndpointsResult";
258
+ const _M = "Message";
525
259
  const _MR = "MaxResults";
260
+ const _NI = "NetworkInterfaces";
261
+ const _NII = "NetworkInterfaceId";
262
+ const _NIe = "NetworkInterface";
526
263
  const _NT = "NextToken";
264
+ const _O = "Outposts";
265
+ const _OA = "OutpostArn";
527
266
  const _OI = "OutpostId";
267
+ const _OIu = "OutpostsId";
268
+ const _OIw = "OwnerId";
269
+ const _OOE = "OutpostOfflineException";
270
+ const _Ou = "Outpost";
271
+ const _RNFE = "ResourceNotFoundException";
272
+ const _S = "Status";
273
+ const _SGI = "SecurityGroupId";
274
+ const _SI = "SubnetId";
275
+ const _SOA = "S3OutpostArn";
276
+ const _TE = "ThrottlingException";
277
+ const _VE = "ValidationException";
278
+ const _VI = "VpcId";
279
+ const _c = "client";
280
+ const _e = "error";
528
281
  const _eI = "endpointId";
282
+ const _h = "http";
283
+ const _hE = "httpError";
284
+ const _hQ = "httpQuery";
529
285
  const _mR = "maxResults";
530
286
  const _nT = "nextToken";
531
287
  const _oI = "outpostId";
288
+ const _s = "server";
289
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.s3outposts";
290
+ const n0 = "com.amazonaws.s3outposts";
291
+ var AccessDeniedException = [
292
+ -3,
293
+ n0,
294
+ _ADE,
295
+ {
296
+ [_e]: _c,
297
+ [_hE]: 403,
298
+ },
299
+ [_M],
300
+ [0],
301
+ ];
302
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
303
+ var ConflictException = [
304
+ -3,
305
+ n0,
306
+ _CE,
307
+ {
308
+ [_e]: _c,
309
+ [_hE]: 409,
310
+ },
311
+ [_M],
312
+ [0],
313
+ ];
314
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
315
+ var CreateEndpointRequest = [
316
+ 3,
317
+ n0,
318
+ _CER,
319
+ 0,
320
+ [_OI, _SI, _SGI, _AT, _COIP],
321
+ [0, 0, 0, 0, 0],
322
+ ];
323
+ var CreateEndpointResult = [3, n0, _CERr, 0, [_EA], [0]];
324
+ var DeleteEndpointRequest = [
325
+ 3,
326
+ n0,
327
+ _DER,
328
+ 0,
329
+ [_EI, _OI],
330
+ [
331
+ [
332
+ 0,
333
+ {
334
+ [_hQ]: _eI,
335
+ },
336
+ ],
337
+ [
338
+ 0,
339
+ {
340
+ [_hQ]: _oI,
341
+ },
342
+ ],
343
+ ],
344
+ ];
345
+ var Endpoint = [
346
+ 3,
347
+ n0,
348
+ _E,
349
+ 0,
350
+ [_EA, _OIu, _CB, _S, _CT, _NI, _VI, _SI, _SGI, _AT, _COIP, _FR],
351
+ [0, 0, 0, 0, 4, () => NetworkInterfaces, 0, 0, 0, 0, 0, () => FailedReason],
352
+ ];
353
+ var FailedReason = [3, n0, _FR, 0, [_EC, _M], [0, 0]];
354
+ var InternalServerException = [
355
+ -3,
356
+ n0,
357
+ _ISE,
358
+ {
359
+ [_e]: _s,
360
+ [_hE]: 500,
361
+ },
362
+ [_M],
363
+ [0],
364
+ ];
365
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
366
+ var ListEndpointsRequest = [
367
+ 3,
368
+ n0,
369
+ _LER,
370
+ 0,
371
+ [_NT, _MR],
372
+ [
373
+ [
374
+ 0,
375
+ {
376
+ [_hQ]: _nT,
377
+ },
378
+ ],
379
+ [
380
+ 1,
381
+ {
382
+ [_hQ]: _mR,
383
+ },
384
+ ],
385
+ ],
386
+ ];
387
+ var ListEndpointsResult = [3, n0, _LERi, 0, [_En, _NT], [() => Endpoints, 0]];
388
+ var ListOutpostsWithS3Request = [
389
+ 3,
390
+ n0,
391
+ _LOWSR,
392
+ 0,
393
+ [_NT, _MR],
394
+ [
395
+ [
396
+ 0,
397
+ {
398
+ [_hQ]: _nT,
399
+ },
400
+ ],
401
+ [
402
+ 1,
403
+ {
404
+ [_hQ]: _mR,
405
+ },
406
+ ],
407
+ ],
408
+ ];
409
+ var ListOutpostsWithS3Result = [3, n0, _LOWSRi, 0, [_O, _NT], [() => Outposts, 0]];
410
+ var ListSharedEndpointsRequest = [
411
+ 3,
412
+ n0,
413
+ _LSER,
414
+ 0,
415
+ [_NT, _MR, _OI],
416
+ [
417
+ [
418
+ 0,
419
+ {
420
+ [_hQ]: _nT,
421
+ },
422
+ ],
423
+ [
424
+ 1,
425
+ {
426
+ [_hQ]: _mR,
427
+ },
428
+ ],
429
+ [
430
+ 0,
431
+ {
432
+ [_hQ]: _oI,
433
+ },
434
+ ],
435
+ ],
436
+ ];
437
+ var ListSharedEndpointsResult = [3, n0, _LSERi, 0, [_En, _NT], [() => Endpoints, 0]];
438
+ var NetworkInterface = [3, n0, _NIe, 0, [_NII], [0]];
439
+ var Outpost = [3, n0, _Ou, 0, [_OA, _SOA, _OI, _OIw, _CIB], [0, 0, 0, 0, 1]];
440
+ var OutpostOfflineException = [
441
+ -3,
442
+ n0,
443
+ _OOE,
444
+ {
445
+ [_e]: _c,
446
+ [_hE]: 400,
447
+ },
448
+ [_M],
449
+ [0],
450
+ ];
451
+ schema.TypeRegistry.for(n0).registerError(OutpostOfflineException, OutpostOfflineException$1);
452
+ var ResourceNotFoundException = [
453
+ -3,
454
+ n0,
455
+ _RNFE,
456
+ {
457
+ [_e]: _c,
458
+ [_hE]: 404,
459
+ },
460
+ [_M],
461
+ [0],
462
+ ];
463
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
464
+ var ThrottlingException = [
465
+ -3,
466
+ n0,
467
+ _TE,
468
+ {
469
+ [_e]: _c,
470
+ [_hE]: 429,
471
+ },
472
+ [_M],
473
+ [0],
474
+ ];
475
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
476
+ var ValidationException = [
477
+ -3,
478
+ n0,
479
+ _VE,
480
+ {
481
+ [_e]: _c,
482
+ [_hE]: 400,
483
+ },
484
+ [_M],
485
+ [0],
486
+ ];
487
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
488
+ var __Unit = "unit";
489
+ var S3OutpostsServiceException = [-3, _sm, "S3OutpostsServiceException", 0, [], []];
490
+ schema.TypeRegistry.for(_sm).registerError(S3OutpostsServiceException, S3OutpostsServiceException$1);
491
+ var Endpoints = [1, n0, _En, 0, () => Endpoint];
492
+ var NetworkInterfaces = [1, n0, _NI, 0, () => NetworkInterface];
493
+ var Outposts = [1, n0, _O, 0, () => Outpost];
494
+ var CreateEndpoint = [
495
+ 9,
496
+ n0,
497
+ _CEr,
498
+ {
499
+ [_h]: ["POST", "/S3Outposts/CreateEndpoint", 200],
500
+ },
501
+ () => CreateEndpointRequest,
502
+ () => CreateEndpointResult,
503
+ ];
504
+ var DeleteEndpoint = [
505
+ 9,
506
+ n0,
507
+ _DE,
508
+ {
509
+ [_h]: ["DELETE", "/S3Outposts/DeleteEndpoint", 200],
510
+ },
511
+ () => DeleteEndpointRequest,
512
+ () => __Unit,
513
+ ];
514
+ var ListEndpoints = [
515
+ 9,
516
+ n0,
517
+ _LE,
518
+ {
519
+ [_h]: ["GET", "/S3Outposts/ListEndpoints", 200],
520
+ },
521
+ () => ListEndpointsRequest,
522
+ () => ListEndpointsResult,
523
+ ];
524
+ var ListOutpostsWithS3 = [
525
+ 9,
526
+ n0,
527
+ _LOWS,
528
+ {
529
+ [_h]: ["GET", "/S3Outposts/ListOutpostsWithS3", 200],
530
+ },
531
+ () => ListOutpostsWithS3Request,
532
+ () => ListOutpostsWithS3Result,
533
+ ];
534
+ var ListSharedEndpoints = [
535
+ 9,
536
+ n0,
537
+ _LSE,
538
+ {
539
+ [_h]: ["GET", "/S3Outposts/ListSharedEndpoints", 200],
540
+ },
541
+ () => ListSharedEndpointsRequest,
542
+ () => ListSharedEndpointsResult,
543
+ ];
532
544
 
533
545
  class CreateEndpointCommand extends smithyClient.Command
534
546
  .classBuilder()
535
547
  .ep(commonParams)
536
548
  .m(function (Command, cs, config, o) {
537
- return [
538
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
539
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
540
- ];
549
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
541
550
  })
542
551
  .s("S3Outposts", "CreateEndpoint", {})
543
552
  .n("S3OutpostsClient", "CreateEndpointCommand")
544
- .f(void 0, void 0)
545
- .ser(se_CreateEndpointCommand)
546
- .de(de_CreateEndpointCommand)
553
+ .sc(CreateEndpoint)
547
554
  .build() {
548
555
  }
549
556
 
@@ -551,16 +558,11 @@ class DeleteEndpointCommand extends smithyClient.Command
551
558
  .classBuilder()
552
559
  .ep(commonParams)
553
560
  .m(function (Command, cs, config, o) {
554
- return [
555
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
556
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
557
- ];
561
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
558
562
  })
559
563
  .s("S3Outposts", "DeleteEndpoint", {})
560
564
  .n("S3OutpostsClient", "DeleteEndpointCommand")
561
- .f(void 0, void 0)
562
- .ser(se_DeleteEndpointCommand)
563
- .de(de_DeleteEndpointCommand)
565
+ .sc(DeleteEndpoint)
564
566
  .build() {
565
567
  }
566
568
 
@@ -568,16 +570,11 @@ class ListEndpointsCommand extends smithyClient.Command
568
570
  .classBuilder()
569
571
  .ep(commonParams)
570
572
  .m(function (Command, cs, config, o) {
571
- return [
572
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
573
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
574
- ];
573
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
575
574
  })
576
575
  .s("S3Outposts", "ListEndpoints", {})
577
576
  .n("S3OutpostsClient", "ListEndpointsCommand")
578
- .f(void 0, void 0)
579
- .ser(se_ListEndpointsCommand)
580
- .de(de_ListEndpointsCommand)
577
+ .sc(ListEndpoints)
581
578
  .build() {
582
579
  }
583
580
 
@@ -585,16 +582,11 @@ class ListOutpostsWithS3Command extends smithyClient.Command
585
582
  .classBuilder()
586
583
  .ep(commonParams)
587
584
  .m(function (Command, cs, config, o) {
588
- return [
589
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
590
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
591
- ];
585
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
592
586
  })
593
587
  .s("S3Outposts", "ListOutpostsWithS3", {})
594
588
  .n("S3OutpostsClient", "ListOutpostsWithS3Command")
595
- .f(void 0, void 0)
596
- .ser(se_ListOutpostsWithS3Command)
597
- .de(de_ListOutpostsWithS3Command)
589
+ .sc(ListOutpostsWithS3)
598
590
  .build() {
599
591
  }
600
592
 
@@ -602,16 +594,11 @@ class ListSharedEndpointsCommand extends smithyClient.Command
602
594
  .classBuilder()
603
595
  .ep(commonParams)
604
596
  .m(function (Command, cs, config, o) {
605
- return [
606
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
607
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
608
- ];
597
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
609
598
  })
610
599
  .s("S3Outposts", "ListSharedEndpoints", {})
611
600
  .n("S3OutpostsClient", "ListSharedEndpointsCommand")
612
- .f(void 0, void 0)
613
- .ser(se_ListSharedEndpointsCommand)
614
- .de(de_ListSharedEndpointsCommand)
601
+ .sc(ListSharedEndpoints)
615
602
  .build() {
616
603
  }
617
604
 
@@ -640,23 +627,23 @@ Object.defineProperty(exports, "__Client", {
640
627
  enumerable: true,
641
628
  get: function () { return smithyClient.Client; }
642
629
  });
643
- exports.AccessDeniedException = AccessDeniedException;
644
- exports.ConflictException = ConflictException;
630
+ exports.AccessDeniedException = AccessDeniedException$1;
631
+ exports.ConflictException = ConflictException$1;
645
632
  exports.CreateEndpointCommand = CreateEndpointCommand;
646
633
  exports.DeleteEndpointCommand = DeleteEndpointCommand;
647
634
  exports.EndpointAccessType = EndpointAccessType;
648
635
  exports.EndpointStatus = EndpointStatus;
649
- exports.InternalServerException = InternalServerException;
636
+ exports.InternalServerException = InternalServerException$1;
650
637
  exports.ListEndpointsCommand = ListEndpointsCommand;
651
638
  exports.ListOutpostsWithS3Command = ListOutpostsWithS3Command;
652
639
  exports.ListSharedEndpointsCommand = ListSharedEndpointsCommand;
653
- exports.OutpostOfflineException = OutpostOfflineException;
654
- exports.ResourceNotFoundException = ResourceNotFoundException;
640
+ exports.OutpostOfflineException = OutpostOfflineException$1;
641
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
655
642
  exports.S3Outposts = S3Outposts;
656
643
  exports.S3OutpostsClient = S3OutpostsClient;
657
- exports.S3OutpostsServiceException = S3OutpostsServiceException;
658
- exports.ThrottlingException = ThrottlingException;
659
- exports.ValidationException = ValidationException;
644
+ exports.S3OutpostsServiceException = S3OutpostsServiceException$1;
645
+ exports.ThrottlingException = ThrottlingException$1;
646
+ exports.ValidationException = ValidationException$1;
660
647
  exports.paginateListEndpoints = paginateListEndpoints;
661
648
  exports.paginateListOutpostsWithS3 = paginateListOutpostsWithS3;
662
649
  exports.paginateListSharedEndpoints = paginateListSharedEndpoints;