@aws-sdk/middleware-sdk-s3 3.774.0 → 3.796.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 +16 -9
- package/dist-es/s3Configuration.js +9 -9
- package/dist-types/s3Configuration.d.ts +6 -4
- package/package.json +11 -11
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
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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:
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
forcePathStyle:
|
|
7
|
-
useAccelerateEndpoint:
|
|
8
|
-
disableMultiregionAccessPoints:
|
|
9
|
-
followRegionRedirects:
|
|
10
|
-
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:
|
|
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.
|
|
3
|
+
"version": "3.796.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.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/core": "3.796.0",
|
|
31
|
+
"@aws-sdk/types": "3.775.0",
|
|
32
32
|
"@aws-sdk/util-arn-parser": "3.723.0",
|
|
33
|
-
"@smithy/core": "^3.
|
|
34
|
-
"@smithy/node-config-provider": "^4.0.
|
|
35
|
-
"@smithy/protocol-http": "^5.0
|
|
36
|
-
"@smithy/signature-v4": "^5.0
|
|
37
|
-
"@smithy/smithy-client": "^4.
|
|
38
|
-
"@smithy/types": "^4.
|
|
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.1.0",
|
|
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.
|
|
41
|
-
"@smithy/util-stream": "^4.
|
|
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
|
},
|