@aws-sdk/client-s3outposts 3.957.0 → 3.962.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/README.md CHANGED
@@ -9,10 +9,8 @@ AWS SDK for JavaScript S3Outposts Client for Node.js, Browser and React Native.
9
9
  <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
10
10
 
11
11
  ## Installing
12
-
13
12
  To install this package, simply type add or install @aws-sdk/client-s3outposts
14
13
  using your favorite package manager:
15
-
16
14
  - `npm install @aws-sdk/client-s3outposts`
17
15
  - `yarn add @aws-sdk/client-s3outposts`
18
16
  - `pnpm add @aws-sdk/client-s3outposts`
@@ -48,9 +46,7 @@ To send a request, you:
48
46
  // a client can be shared by different commands.
49
47
  const client = new S3OutpostsClient({ region: "REGION" });
50
48
 
51
- const params = {
52
- /** input parameters */
53
- };
49
+ const params = { /** input parameters */ };
54
50
  const command = new ListEndpointsCommand(params);
55
51
  ```
56
52
 
@@ -209,7 +205,6 @@ CreateEndpoint
209
205
  </summary>
210
206
 
211
207
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3outposts/command/CreateEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/CreateEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/CreateEndpointCommandOutput/)
212
-
213
208
  </details>
214
209
  <details>
215
210
  <summary>
@@ -217,7 +212,6 @@ DeleteEndpoint
217
212
  </summary>
218
213
 
219
214
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3outposts/command/DeleteEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/DeleteEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/DeleteEndpointCommandOutput/)
220
-
221
215
  </details>
222
216
  <details>
223
217
  <summary>
@@ -225,7 +219,6 @@ ListEndpoints
225
219
  </summary>
226
220
 
227
221
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3outposts/command/ListEndpointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListEndpointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListEndpointsCommandOutput/)
228
-
229
222
  </details>
230
223
  <details>
231
224
  <summary>
@@ -233,7 +226,6 @@ ListOutpostsWithS3
233
226
  </summary>
234
227
 
235
228
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3outposts/command/ListOutpostsWithS3Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListOutpostsWithS3CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListOutpostsWithS3CommandOutput/)
236
-
237
229
  </details>
238
230
  <details>
239
231
  <summary>
@@ -241,5 +233,4 @@ ListSharedEndpoints
241
233
  </summary>
242
234
 
243
235
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3outposts/command/ListSharedEndpointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListSharedEndpointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-s3outposts/Interface/ListSharedEndpointsCommandOutput/)
244
-
245
236
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultS3OutpostsHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultS3OutpostsHttpAuthSchemeParametersProvider = defaultS3OutpostsHttpAuthSchemeParametersProvider;
package/dist-cjs/index.js CHANGED
@@ -277,133 +277,139 @@ const _oI = "outpostId";
277
277
  const _s = "server";
278
278
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.s3outposts";
279
279
  const n0 = "com.amazonaws.s3outposts";
280
- var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_M], [0]];
280
+ var AccessDeniedException$ = [-3, n0, _ADE,
281
+ { [_e]: _c, [_hE]: 403 },
282
+ [_M],
283
+ [0]
284
+ ];
281
285
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
282
- var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0]];
286
+ var ConflictException$ = [-3, n0, _CE,
287
+ { [_e]: _c, [_hE]: 409 },
288
+ [_M],
289
+ [0]
290
+ ];
283
291
  schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
284
- var CreateEndpointRequest$ = [
285
- 3,
286
- n0,
287
- _CER,
292
+ var CreateEndpointRequest$ = [3, n0, _CER,
288
293
  0,
289
294
  [_OI, _SI, _SGI, _AT, _COIP],
290
- [0, 0, 0, 0, 0],
295
+ [0, 0, 0, 0, 0]
296
+ ];
297
+ var CreateEndpointResult$ = [3, n0, _CERr,
298
+ 0,
299
+ [_EA],
300
+ [0]
291
301
  ];
292
- var CreateEndpointResult$ = [3, n0, _CERr, 0, [_EA], [0]];
293
- var DeleteEndpointRequest$ = [
294
- 3,
295
- n0,
296
- _DER,
302
+ var DeleteEndpointRequest$ = [3, n0, _DER,
297
303
  0,
298
304
  [_EI, _OI],
299
- [
300
- [0, { [_hQ]: _eI }],
301
- [0, { [_hQ]: _oI }],
302
- ],
305
+ [[0, { [_hQ]: _eI }], [0, { [_hQ]: _oI }]]
303
306
  ];
304
- var Endpoint$ = [
305
- 3,
306
- n0,
307
- _E,
307
+ var Endpoint$ = [3, n0, _E,
308
308
  0,
309
309
  [_EA, _OIu, _CB, _S, _CT, _NI, _VI, _SI, _SGI, _AT, _COIP, _FR],
310
- [0, 0, 0, 0, 4, () => NetworkInterfaces, 0, 0, 0, 0, 0, () => FailedReason$],
310
+ [0, 0, 0, 0, 4, () => NetworkInterfaces, 0, 0, 0, 0, 0, () => FailedReason$]
311
+ ];
312
+ var FailedReason$ = [3, n0, _FR,
313
+ 0,
314
+ [_EC, _M],
315
+ [0, 0]
316
+ ];
317
+ var InternalServerException$ = [-3, n0, _ISE,
318
+ { [_e]: _s, [_hE]: 500 },
319
+ [_M],
320
+ [0]
311
321
  ];
312
- var FailedReason$ = [3, n0, _FR, 0, [_EC, _M], [0, 0]];
313
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
314
322
  schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
315
- var ListEndpointsRequest$ = [
316
- 3,
317
- n0,
318
- _LER,
323
+ var ListEndpointsRequest$ = [3, n0, _LER,
319
324
  0,
320
325
  [_NT, _MR],
321
- [
322
- [0, { [_hQ]: _nT }],
323
- [1, { [_hQ]: _mR }],
324
- ],
326
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
327
+ ];
328
+ var ListEndpointsResult$ = [3, n0, _LERi,
329
+ 0,
330
+ [_En, _NT],
331
+ [() => Endpoints, 0]
325
332
  ];
326
- var ListEndpointsResult$ = [3, n0, _LERi, 0, [_En, _NT], [() => Endpoints, 0]];
327
- var ListOutpostsWithS3Request$ = [
328
- 3,
329
- n0,
330
- _LOWSR,
333
+ var ListOutpostsWithS3Request$ = [3, n0, _LOWSR,
331
334
  0,
332
335
  [_NT, _MR],
333
- [
334
- [0, { [_hQ]: _nT }],
335
- [1, { [_hQ]: _mR }],
336
- ],
336
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
337
337
  ];
338
- var ListOutpostsWithS3Result$ = [3, n0, _LOWSRi, 0, [_O, _NT], [() => Outposts, 0]];
339
- var ListSharedEndpointsRequest$ = [
340
- 3,
341
- n0,
342
- _LSER,
338
+ var ListOutpostsWithS3Result$ = [3, n0, _LOWSRi,
339
+ 0,
340
+ [_O, _NT],
341
+ [() => Outposts, 0]
342
+ ];
343
+ var ListSharedEndpointsRequest$ = [3, n0, _LSER,
343
344
  0,
344
345
  [_NT, _MR, _OI],
345
- [
346
- [0, { [_hQ]: _nT }],
347
- [1, { [_hQ]: _mR }],
348
- [0, { [_hQ]: _oI }],
349
- ],
346
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _oI }]]
347
+ ];
348
+ var ListSharedEndpointsResult$ = [3, n0, _LSERi,
349
+ 0,
350
+ [_En, _NT],
351
+ [() => Endpoints, 0]
352
+ ];
353
+ var NetworkInterface$ = [3, n0, _NIe,
354
+ 0,
355
+ [_NII],
356
+ [0]
357
+ ];
358
+ var Outpost$ = [3, n0, _Ou,
359
+ 0,
360
+ [_OA, _SOA, _OI, _OIw, _CIB],
361
+ [0, 0, 0, 0, 1]
362
+ ];
363
+ var OutpostOfflineException$ = [-3, n0, _OOE,
364
+ { [_e]: _c, [_hE]: 400 },
365
+ [_M],
366
+ [0]
350
367
  ];
351
- var ListSharedEndpointsResult$ = [3, n0, _LSERi, 0, [_En, _NT], [() => Endpoints, 0]];
352
- var NetworkInterface$ = [3, n0, _NIe, 0, [_NII], [0]];
353
- var Outpost$ = [3, n0, _Ou, 0, [_OA, _SOA, _OI, _OIw, _CIB], [0, 0, 0, 0, 1]];
354
- var OutpostOfflineException$ = [-3, n0, _OOE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
355
368
  schema.TypeRegistry.for(n0).registerError(OutpostOfflineException$, OutpostOfflineException);
356
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
369
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
370
+ { [_e]: _c, [_hE]: 404 },
371
+ [_M],
372
+ [0]
373
+ ];
357
374
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
358
- var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0]];
375
+ var ThrottlingException$ = [-3, n0, _TE,
376
+ { [_e]: _c, [_hE]: 429 },
377
+ [_M],
378
+ [0]
379
+ ];
359
380
  schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
360
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
381
+ var ValidationException$ = [-3, n0, _VE,
382
+ { [_e]: _c, [_hE]: 400 },
383
+ [_M],
384
+ [0]
385
+ ];
361
386
  schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
362
387
  var __Unit = "unit";
363
388
  var S3OutpostsServiceException$ = [-3, _sm, "S3OutpostsServiceException", 0, [], []];
364
389
  schema.TypeRegistry.for(_sm).registerError(S3OutpostsServiceException$, S3OutpostsServiceException);
365
- var Endpoints = [1, n0, _En, 0, () => Endpoint$];
366
- var NetworkInterfaces = [1, n0, _NI, 0, () => NetworkInterface$];
367
- var Outposts = [1, n0, _O, 0, () => Outpost$];
368
- var CreateEndpoint$ = [
369
- 9,
370
- n0,
371
- _CEr,
372
- { [_h]: ["POST", "/S3Outposts/CreateEndpoint", 200] },
373
- () => CreateEndpointRequest$,
374
- () => CreateEndpointResult$,
390
+ var Endpoints = [1, n0, _En,
391
+ 0, () => Endpoint$
392
+ ];
393
+ var NetworkInterfaces = [1, n0, _NI,
394
+ 0, () => NetworkInterface$
395
+ ];
396
+ var Outposts = [1, n0, _O,
397
+ 0, () => Outpost$
398
+ ];
399
+ var CreateEndpoint$ = [9, n0, _CEr,
400
+ { [_h]: ["POST", "/S3Outposts/CreateEndpoint", 200] }, () => CreateEndpointRequest$, () => CreateEndpointResult$
375
401
  ];
376
- var DeleteEndpoint$ = [
377
- 9,
378
- n0,
379
- _DE,
380
- { [_h]: ["DELETE", "/S3Outposts/DeleteEndpoint", 200] },
381
- () => DeleteEndpointRequest$,
382
- () => __Unit,
402
+ var DeleteEndpoint$ = [9, n0, _DE,
403
+ { [_h]: ["DELETE", "/S3Outposts/DeleteEndpoint", 200] }, () => DeleteEndpointRequest$, () => __Unit
383
404
  ];
384
- var ListEndpoints$ = [
385
- 9,
386
- n0,
387
- _LE,
388
- { [_h]: ["GET", "/S3Outposts/ListEndpoints", 200] },
389
- () => ListEndpointsRequest$,
390
- () => ListEndpointsResult$,
405
+ var ListEndpoints$ = [9, n0, _LE,
406
+ { [_h]: ["GET", "/S3Outposts/ListEndpoints", 200] }, () => ListEndpointsRequest$, () => ListEndpointsResult$
391
407
  ];
392
- var ListOutpostsWithS3$ = [
393
- 9,
394
- n0,
395
- _LOWS,
396
- { [_h]: ["GET", "/S3Outposts/ListOutpostsWithS3", 200] },
397
- () => ListOutpostsWithS3Request$,
398
- () => ListOutpostsWithS3Result$,
408
+ var ListOutpostsWithS3$ = [9, n0, _LOWS,
409
+ { [_h]: ["GET", "/S3Outposts/ListOutpostsWithS3", 200] }, () => ListOutpostsWithS3Request$, () => ListOutpostsWithS3Result$
399
410
  ];
400
- var ListSharedEndpoints$ = [
401
- 9,
402
- n0,
403
- _LSE,
404
- { [_h]: ["GET", "/S3Outposts/ListSharedEndpoints", 200] },
405
- () => ListSharedEndpointsRequest$,
406
- () => ListSharedEndpointsResult$,
411
+ var ListSharedEndpoints$ = [9, n0, _LSE,
412
+ { [_h]: ["GET", "/S3Outposts/ListSharedEndpoints", 200] }, () => ListSharedEndpointsRequest$, () => ListSharedEndpointsResult$
407
413
  ];
408
414
 
409
415
  class CreateEndpointCommand extends smithyClient.Command
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultS3OutpostsHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({
@@ -62,131 +62,137 @@ const n0 = "com.amazonaws.s3outposts";
62
62
  import { TypeRegistry } from "@smithy/core/schema";
63
63
  import { AccessDeniedException, ConflictException, InternalServerException, OutpostOfflineException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
64
64
  import { S3OutpostsServiceException } from "../models/S3OutpostsServiceException";
65
- export var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_M], [0]];
65
+ export var AccessDeniedException$ = [-3, n0, _ADE,
66
+ { [_e]: _c, [_hE]: 403 },
67
+ [_M],
68
+ [0]
69
+ ];
66
70
  TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
67
- export var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0]];
71
+ export var ConflictException$ = [-3, n0, _CE,
72
+ { [_e]: _c, [_hE]: 409 },
73
+ [_M],
74
+ [0]
75
+ ];
68
76
  TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
69
- export var CreateEndpointRequest$ = [
70
- 3,
71
- n0,
72
- _CER,
77
+ export var CreateEndpointRequest$ = [3, n0, _CER,
73
78
  0,
74
79
  [_OI, _SI, _SGI, _AT, _COIP],
75
- [0, 0, 0, 0, 0],
80
+ [0, 0, 0, 0, 0]
81
+ ];
82
+ export var CreateEndpointResult$ = [3, n0, _CERr,
83
+ 0,
84
+ [_EA],
85
+ [0]
76
86
  ];
77
- export var CreateEndpointResult$ = [3, n0, _CERr, 0, [_EA], [0]];
78
- export var DeleteEndpointRequest$ = [
79
- 3,
80
- n0,
81
- _DER,
87
+ export var DeleteEndpointRequest$ = [3, n0, _DER,
82
88
  0,
83
89
  [_EI, _OI],
84
- [
85
- [0, { [_hQ]: _eI }],
86
- [0, { [_hQ]: _oI }],
87
- ],
88
- ];
89
- export var Endpoint$ = [
90
- 3,
91
- n0,
92
- _E,
90
+ [[0, { [_hQ]: _eI }], [0, { [_hQ]: _oI }]]
91
+ ];
92
+ export var Endpoint$ = [3, n0, _E,
93
93
  0,
94
94
  [_EA, _OIu, _CB, _S, _CT, _NI, _VI, _SI, _SGI, _AT, _COIP, _FR],
95
- [0, 0, 0, 0, 4, () => NetworkInterfaces, 0, 0, 0, 0, 0, () => FailedReason$],
95
+ [0, 0, 0, 0, 4, () => NetworkInterfaces, 0, 0, 0, 0, 0, () => FailedReason$]
96
+ ];
97
+ export var FailedReason$ = [3, n0, _FR,
98
+ 0,
99
+ [_EC, _M],
100
+ [0, 0]
101
+ ];
102
+ export var InternalServerException$ = [-3, n0, _ISE,
103
+ { [_e]: _s, [_hE]: 500 },
104
+ [_M],
105
+ [0]
96
106
  ];
97
- export var FailedReason$ = [3, n0, _FR, 0, [_EC, _M], [0, 0]];
98
- export var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
99
107
  TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
100
- export var ListEndpointsRequest$ = [
101
- 3,
102
- n0,
103
- _LER,
108
+ export var ListEndpointsRequest$ = [3, n0, _LER,
104
109
  0,
105
110
  [_NT, _MR],
106
- [
107
- [0, { [_hQ]: _nT }],
108
- [1, { [_hQ]: _mR }],
109
- ],
110
- ];
111
- export var ListEndpointsResult$ = [3, n0, _LERi, 0, [_En, _NT], [() => Endpoints, 0]];
112
- export var ListOutpostsWithS3Request$ = [
113
- 3,
114
- n0,
115
- _LOWSR,
111
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
112
+ ];
113
+ export var ListEndpointsResult$ = [3, n0, _LERi,
114
+ 0,
115
+ [_En, _NT],
116
+ [() => Endpoints, 0]
117
+ ];
118
+ export var ListOutpostsWithS3Request$ = [3, n0, _LOWSR,
116
119
  0,
117
120
  [_NT, _MR],
118
- [
119
- [0, { [_hQ]: _nT }],
120
- [1, { [_hQ]: _mR }],
121
- ],
122
- ];
123
- export var ListOutpostsWithS3Result$ = [3, n0, _LOWSRi, 0, [_O, _NT], [() => Outposts, 0]];
124
- export var ListSharedEndpointsRequest$ = [
125
- 3,
126
- n0,
127
- _LSER,
121
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
122
+ ];
123
+ export var ListOutpostsWithS3Result$ = [3, n0, _LOWSRi,
124
+ 0,
125
+ [_O, _NT],
126
+ [() => Outposts, 0]
127
+ ];
128
+ export var ListSharedEndpointsRequest$ = [3, n0, _LSER,
128
129
  0,
129
130
  [_NT, _MR, _OI],
130
- [
131
- [0, { [_hQ]: _nT }],
132
- [1, { [_hQ]: _mR }],
133
- [0, { [_hQ]: _oI }],
134
- ],
135
- ];
136
- export var ListSharedEndpointsResult$ = [3, n0, _LSERi, 0, [_En, _NT], [() => Endpoints, 0]];
137
- export var NetworkInterface$ = [3, n0, _NIe, 0, [_NII], [0]];
138
- export var Outpost$ = [3, n0, _Ou, 0, [_OA, _SOA, _OI, _OIw, _CIB], [0, 0, 0, 0, 1]];
139
- export var OutpostOfflineException$ = [-3, n0, _OOE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
131
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _oI }]]
132
+ ];
133
+ export var ListSharedEndpointsResult$ = [3, n0, _LSERi,
134
+ 0,
135
+ [_En, _NT],
136
+ [() => Endpoints, 0]
137
+ ];
138
+ export var NetworkInterface$ = [3, n0, _NIe,
139
+ 0,
140
+ [_NII],
141
+ [0]
142
+ ];
143
+ export var Outpost$ = [3, n0, _Ou,
144
+ 0,
145
+ [_OA, _SOA, _OI, _OIw, _CIB],
146
+ [0, 0, 0, 0, 1]
147
+ ];
148
+ export var OutpostOfflineException$ = [-3, n0, _OOE,
149
+ { [_e]: _c, [_hE]: 400 },
150
+ [_M],
151
+ [0]
152
+ ];
140
153
  TypeRegistry.for(n0).registerError(OutpostOfflineException$, OutpostOfflineException);
141
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
154
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
155
+ { [_e]: _c, [_hE]: 404 },
156
+ [_M],
157
+ [0]
158
+ ];
142
159
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
143
- export var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0]];
160
+ export var ThrottlingException$ = [-3, n0, _TE,
161
+ { [_e]: _c, [_hE]: 429 },
162
+ [_M],
163
+ [0]
164
+ ];
144
165
  TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
145
- export var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
166
+ export var ValidationException$ = [-3, n0, _VE,
167
+ { [_e]: _c, [_hE]: 400 },
168
+ [_M],
169
+ [0]
170
+ ];
146
171
  TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
147
172
  var __Unit = "unit";
148
173
  export var S3OutpostsServiceException$ = [-3, _sm, "S3OutpostsServiceException", 0, [], []];
149
174
  TypeRegistry.for(_sm).registerError(S3OutpostsServiceException$, S3OutpostsServiceException);
150
- var Endpoints = [1, n0, _En, 0, () => Endpoint$];
151
- var NetworkInterfaces = [1, n0, _NI, 0, () => NetworkInterface$];
152
- var Outposts = [1, n0, _O, 0, () => Outpost$];
153
- export var CreateEndpoint$ = [
154
- 9,
155
- n0,
156
- _CEr,
157
- { [_h]: ["POST", "/S3Outposts/CreateEndpoint", 200] },
158
- () => CreateEndpointRequest$,
159
- () => CreateEndpointResult$,
160
- ];
161
- export var DeleteEndpoint$ = [
162
- 9,
163
- n0,
164
- _DE,
165
- { [_h]: ["DELETE", "/S3Outposts/DeleteEndpoint", 200] },
166
- () => DeleteEndpointRequest$,
167
- () => __Unit,
168
- ];
169
- export var ListEndpoints$ = [
170
- 9,
171
- n0,
172
- _LE,
173
- { [_h]: ["GET", "/S3Outposts/ListEndpoints", 200] },
174
- () => ListEndpointsRequest$,
175
- () => ListEndpointsResult$,
176
- ];
177
- export var ListOutpostsWithS3$ = [
178
- 9,
179
- n0,
180
- _LOWS,
181
- { [_h]: ["GET", "/S3Outposts/ListOutpostsWithS3", 200] },
182
- () => ListOutpostsWithS3Request$,
183
- () => ListOutpostsWithS3Result$,
184
- ];
185
- export var ListSharedEndpoints$ = [
186
- 9,
187
- n0,
188
- _LSE,
189
- { [_h]: ["GET", "/S3Outposts/ListSharedEndpoints", 200] },
190
- () => ListSharedEndpointsRequest$,
191
- () => ListSharedEndpointsResult$,
175
+ var Endpoints = [1, n0, _En,
176
+ 0, () => Endpoint$
177
+ ];
178
+ var NetworkInterfaces = [1, n0, _NI,
179
+ 0, () => NetworkInterface$
180
+ ];
181
+ var Outposts = [1, n0, _O,
182
+ 0, () => Outpost$
183
+ ];
184
+ export var CreateEndpoint$ = [9, n0, _CEr,
185
+ { [_h]: ["POST", "/S3Outposts/CreateEndpoint", 200] }, () => CreateEndpointRequest$, () => CreateEndpointResult$
186
+ ];
187
+ export var DeleteEndpoint$ = [9, n0, _DE,
188
+ { [_h]: ["DELETE", "/S3Outposts/DeleteEndpoint", 200] }, () => DeleteEndpointRequest$, () => __Unit
189
+ ];
190
+ export var ListEndpoints$ = [9, n0, _LE,
191
+ { [_h]: ["GET", "/S3Outposts/ListEndpoints", 200] }, () => ListEndpointsRequest$, () => ListEndpointsResult$
192
+ ];
193
+ export var ListOutpostsWithS3$ = [9, n0, _LOWS,
194
+ { [_h]: ["GET", "/S3Outposts/ListOutpostsWithS3", 200] }, () => ListOutpostsWithS3Request$, () => ListOutpostsWithS3Result$
195
+ ];
196
+ export var ListSharedEndpoints$ = [9, n0, _LSE,
197
+ { [_h]: ["GET", "/S3Outposts/ListSharedEndpoints", 200] }, () => ListSharedEndpointsRequest$, () => ListSharedEndpointsResult$
192
198
  ];
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.957.0",
4
+ "version": "3.962.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-s3outposts",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
24
  "@aws-sdk/core": "3.957.0",
25
- "@aws-sdk/credential-provider-node": "3.957.0",
25
+ "@aws-sdk/credential-provider-node": "3.962.0",
26
26
  "@aws-sdk/middleware-host-header": "3.957.0",
27
27
  "@aws-sdk/middleware-logger": "3.957.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.957.0",