@aws-sdk/middleware-sdk-s3 3.774.0 → 3.775.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
@@ -502,21 +502,28 @@ var resolveS3Config = /* @__PURE__ */ __name((input, {
502
502
  session
503
503
  }) => {
504
504
  const [s3ClientProvider, CreateSessionCommandCtor] = session;
505
- return {
506
- ...input,
507
- forcePathStyle: input.forcePathStyle ?? false,
508
- useAccelerateEndpoint: input.useAccelerateEndpoint ?? false,
509
- disableMultiregionAccessPoints: input.disableMultiregionAccessPoints ?? false,
510
- followRegionRedirects: input.followRegionRedirects ?? false,
511
- s3ExpressIdentityProvider: input.s3ExpressIdentityProvider ?? new S3ExpressIdentityProviderImpl(
505
+ const {
506
+ forcePathStyle,
507
+ useAccelerateEndpoint,
508
+ disableMultiregionAccessPoints,
509
+ followRegionRedirects,
510
+ s3ExpressIdentityProvider,
511
+ bucketEndpoint
512
+ } = input;
513
+ return Object.assign(input, {
514
+ forcePathStyle: forcePathStyle ?? false,
515
+ useAccelerateEndpoint: useAccelerateEndpoint ?? false,
516
+ disableMultiregionAccessPoints: disableMultiregionAccessPoints ?? false,
517
+ followRegionRedirects: followRegionRedirects ?? false,
518
+ s3ExpressIdentityProvider: s3ExpressIdentityProvider ?? new S3ExpressIdentityProviderImpl(
512
519
  async (key) => s3ClientProvider().send(
513
520
  new CreateSessionCommandCtor({
514
521
  Bucket: key
515
522
  })
516
523
  )
517
524
  ),
518
- bucketEndpoint: input.bucketEndpoint ?? false
519
- };
525
+ bucketEndpoint: bucketEndpoint ?? false
526
+ });
520
527
  }, "resolveS3Config");
521
528
 
522
529
  // src/throw-200-exceptions.ts
@@ -1,16 +1,16 @@
1
1
  import { S3ExpressIdentityProviderImpl } from "./s3-express";
2
2
  export const resolveS3Config = (input, { session, }) => {
3
3
  const [s3ClientProvider, CreateSessionCommandCtor] = session;
4
- return {
5
- ...input,
6
- forcePathStyle: input.forcePathStyle ?? false,
7
- useAccelerateEndpoint: input.useAccelerateEndpoint ?? false,
8
- disableMultiregionAccessPoints: input.disableMultiregionAccessPoints ?? false,
9
- followRegionRedirects: input.followRegionRedirects ?? false,
10
- s3ExpressIdentityProvider: input.s3ExpressIdentityProvider ??
4
+ const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, } = input;
5
+ return Object.assign(input, {
6
+ forcePathStyle: forcePathStyle ?? false,
7
+ useAccelerateEndpoint: useAccelerateEndpoint ?? false,
8
+ disableMultiregionAccessPoints: disableMultiregionAccessPoints ?? false,
9
+ followRegionRedirects: followRegionRedirects ?? false,
10
+ s3ExpressIdentityProvider: s3ExpressIdentityProvider ??
11
11
  new S3ExpressIdentityProviderImpl(async (key) => s3ClientProvider().send(new CreateSessionCommandCtor({
12
12
  Bucket: key,
13
13
  }))),
14
- bucketEndpoint: input.bucketEndpoint ?? false,
15
- };
14
+ bucketEndpoint: bucketEndpoint ?? false,
15
+ });
16
16
  };
@@ -1,9 +1,8 @@
1
1
  import type { Client, Command } from "@smithy/types";
2
2
  import { S3ExpressIdentityProvider } from "./s3-express";
3
3
  /**
4
- * @public
5
- *
6
4
  * All endpoint parameters with built-in bindings of AWS::S3::*
5
+ * @public
7
6
  */
8
7
  export interface S3InputConfig {
9
8
  /**
@@ -26,6 +25,9 @@ export interface S3InputConfig {
26
25
  * This feature should only be used as a last resort if you do not know the region of your bucket(s) ahead of time.
27
26
  */
28
27
  followRegionRedirects?: boolean;
28
+ /**
29
+ * Identity provider for an S3 feature.
30
+ */
29
31
  s3ExpressIdentityProvider?: S3ExpressIdentityProvider;
30
32
  /**
31
33
  * Whether to use the bucket name as the endpoint for this client.
@@ -33,15 +35,15 @@ export interface S3InputConfig {
33
35
  bucketEndpoint?: boolean;
34
36
  }
35
37
  /**
36
- * @internal
37
38
  * This is a placeholder for the actual
38
39
  * S3Client type from \@aws-sdk/client-s3. It is not explicitly
39
40
  * imported to avoid a circular dependency.
41
+ * @internal
40
42
  */
41
43
  type PlaceholderS3Client = Client<any, any, any> & any;
42
44
  /**
43
- * @internal
44
45
  * Placeholder for the constructor for CreateSessionCommand.
46
+ * @internal
45
47
  */
46
48
  type PlaceholderCreateSessionCommandCtor = {
47
49
  new (args: any): Command<any, any, any, any, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.774.0",
3
+ "version": "3.775.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3",
@@ -27,18 +27,18 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.774.0",
31
- "@aws-sdk/types": "3.734.0",
30
+ "@aws-sdk/core": "3.775.0",
31
+ "@aws-sdk/types": "3.775.0",
32
32
  "@aws-sdk/util-arn-parser": "3.723.0",
33
- "@smithy/core": "^3.1.5",
34
- "@smithy/node-config-provider": "^4.0.1",
35
- "@smithy/protocol-http": "^5.0.1",
36
- "@smithy/signature-v4": "^5.0.1",
37
- "@smithy/smithy-client": "^4.1.6",
38
- "@smithy/types": "^4.1.0",
33
+ "@smithy/core": "^3.2.0",
34
+ "@smithy/node-config-provider": "^4.0.2",
35
+ "@smithy/protocol-http": "^5.1.0",
36
+ "@smithy/signature-v4": "^5.0.2",
37
+ "@smithy/smithy-client": "^4.2.0",
38
+ "@smithy/types": "^4.2.0",
39
39
  "@smithy/util-config-provider": "^4.0.0",
40
- "@smithy/util-middleware": "^4.0.1",
41
- "@smithy/util-stream": "^4.1.2",
40
+ "@smithy/util-middleware": "^4.0.2",
41
+ "@smithy/util-stream": "^4.2.0",
42
42
  "@smithy/util-utf8": "^4.0.0",
43
43
  "tslib": "^2.6.2"
44
44
  },