@aws-sdk/client-s3 3.226.0 → 3.231.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/commands/CreateBucketCommand.js +1 -0
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +1 -2
- package/dist-cjs/runtimeConfig.browser.js +3 -3
- package/dist-cjs/runtimeConfig.js +2 -1
- package/dist-es/commands/CreateBucketCommand.js +1 -0
- package/dist-es/commands/WriteGetObjectResponseCommand.js +1 -2
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -1
- package/package.json +8 -7
|
@@ -14,6 +14,7 @@ class CreateBucketCommand extends smithy_client_1.Command {
|
|
|
14
14
|
}
|
|
15
15
|
static getEndpointParameterInstructions() {
|
|
16
16
|
return {
|
|
17
|
+
DisableAccessPoints: { type: "staticContextParams", value: true },
|
|
17
18
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
18
19
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
19
20
|
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WriteGetObjectResponseCommand = void 0;
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
-
const middleware_sdk_s3_1 = require("@aws-sdk/middleware-sdk-s3");
|
|
6
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
7
|
const models_1_1 = require("../models/models_1");
|
|
@@ -14,6 +13,7 @@ class WriteGetObjectResponseCommand extends smithy_client_1.Command {
|
|
|
14
13
|
}
|
|
15
14
|
static getEndpointParameterInstructions() {
|
|
16
15
|
return {
|
|
16
|
+
UseObjectLambdaEndpoint: { type: "staticContextParams", value: true },
|
|
17
17
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
18
18
|
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
19
19
|
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
@@ -28,7 +28,6 @@ class WriteGetObjectResponseCommand extends smithy_client_1.Command {
|
|
|
28
28
|
resolveMiddleware(clientStack, configuration, options) {
|
|
29
29
|
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
30
30
|
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, WriteGetObjectResponseCommand.getEndpointParameterInstructions()));
|
|
31
|
-
this.middlewareStack.use((0, middleware_sdk_s3_1.getWriteGetObjectResponseEndpointPlugin)(configuration));
|
|
32
31
|
const stack = clientStack.concat(this.middlewareStack);
|
|
33
32
|
const { logger } = configuration;
|
|
34
33
|
const clientName = "S3Client";
|
|
@@ -11,8 +11,8 @@ const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
|
11
11
|
const hash_blob_browser_1 = require("@aws-sdk/hash-blob-browser");
|
|
12
12
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
13
13
|
const md5_js_1 = require("@aws-sdk/md5-js");
|
|
14
|
-
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
15
14
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
15
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
16
16
|
const util_stream_browser_1 = require("@aws-sdk/util-stream-browser");
|
|
17
17
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
18
18
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
@@ -34,11 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
35
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
36
36
|
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? util_stream_browser_1.getAwsChunkedEncodingStream,
|
|
37
|
-
maxAttempts: config?.maxAttempts ??
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
38
38
|
md5: config?.md5 ?? md5_js_1.Md5,
|
|
39
39
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
40
40
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
41
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
41
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
42
42
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
|
|
43
43
|
sha1: config?.sha1 ?? sha1_browser_1.Sha1,
|
|
44
44
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
@@ -14,6 +14,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
14
14
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
15
15
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
16
16
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
17
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
17
18
|
const util_stream_node_1 = require("@aws-sdk/util-stream-node");
|
|
18
19
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
19
20
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
@@ -44,7 +45,7 @@ const getRuntimeConfig = (config) => {
|
|
|
44
45
|
retryMode: config?.retryMode ??
|
|
45
46
|
(0, node_config_provider_1.loadConfig)({
|
|
46
47
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
47
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
48
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
48
49
|
}),
|
|
49
50
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
|
|
50
51
|
sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
|
|
@@ -11,6 +11,7 @@ export class CreateBucketCommand extends $Command {
|
|
|
11
11
|
}
|
|
12
12
|
static getEndpointParameterInstructions() {
|
|
13
13
|
return {
|
|
14
|
+
DisableAccessPoints: { type: "staticContextParams", value: true },
|
|
14
15
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
15
16
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
16
17
|
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
-
import { getWriteGetObjectResponseEndpointPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { WriteGetObjectResponseRequestFilterSensitiveLog } from "../models/models_1";
|
|
@@ -11,6 +10,7 @@ export class WriteGetObjectResponseCommand extends $Command {
|
|
|
11
10
|
}
|
|
12
11
|
static getEndpointParameterInstructions() {
|
|
13
12
|
return {
|
|
13
|
+
UseObjectLambdaEndpoint: { type: "staticContextParams", value: true },
|
|
14
14
|
ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
|
|
15
15
|
UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
|
|
16
16
|
DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
|
|
@@ -25,7 +25,6 @@ export class WriteGetObjectResponseCommand extends $Command {
|
|
|
25
25
|
resolveMiddleware(clientStack, configuration, options) {
|
|
26
26
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
27
27
|
this.middlewareStack.use(getEndpointPlugin(configuration, WriteGetObjectResponseCommand.getEndpointParameterInstructions()));
|
|
28
|
-
this.middlewareStack.use(getWriteGetObjectResponseEndpointPlugin(configuration));
|
|
29
28
|
const stack = clientStack.concat(this.middlewareStack);
|
|
30
29
|
const { logger } = configuration;
|
|
31
30
|
const clientName = "S3Client";
|
|
@@ -7,8 +7,8 @@ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fe
|
|
|
7
7
|
import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser";
|
|
8
8
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
9
9
|
import { Md5 } from "@aws-sdk/md5-js";
|
|
10
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
11
10
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
11
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
12
12
|
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-browser";
|
|
13
13
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
14
14
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,10 +6,11 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
|
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { readableStreamHasher as streamHasher } from "@aws-sdk/hash-stream-node";
|
|
8
8
|
import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint";
|
|
9
|
-
import {
|
|
9
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
10
10
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
12
12
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
13
|
+
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
13
14
|
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-node";
|
|
14
15
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
15
16
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
@@ -40,7 +40,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
40
40
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
41
41
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
42
42
|
tls?: boolean | undefined;
|
|
43
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
43
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
44
44
|
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
45
45
|
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
46
46
|
systemClockOffset?: number | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
41
41
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
42
42
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
43
43
|
tls?: boolean | undefined;
|
|
44
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
44
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
45
45
|
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
46
46
|
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
47
47
|
systemClockOffset?: number | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
39
39
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
40
40
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
41
41
|
tls?: boolean | undefined;
|
|
42
|
-
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
42
|
+
retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
|
|
43
43
|
credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
|
|
44
44
|
signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
|
|
45
45
|
systemClockOffset?: number | undefined;
|
|
@@ -74,7 +74,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
74
74
|
}
|
|
75
75
|
) => import("@aws-sdk/types").EndpointV2;
|
|
76
76
|
tls?: boolean | undefined;
|
|
77
|
-
retryStrategy?:
|
|
77
|
+
retryStrategy?:
|
|
78
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
79
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
80
|
+
| undefined;
|
|
78
81
|
credentials?:
|
|
79
82
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
80
83
|
| import("@aws-sdk/types").Provider<
|
|
@@ -77,7 +77,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
77
77
|
}
|
|
78
78
|
) => import("@aws-sdk/types").EndpointV2;
|
|
79
79
|
tls?: boolean | undefined;
|
|
80
|
-
retryStrategy?:
|
|
80
|
+
retryStrategy?:
|
|
81
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
82
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
83
|
+
| undefined;
|
|
81
84
|
credentials?:
|
|
82
85
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
83
86
|
| import("@aws-sdk/types").Provider<
|
|
@@ -63,7 +63,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
63
63
|
}
|
|
64
64
|
) => import("@aws-sdk/types").EndpointV2;
|
|
65
65
|
tls?: boolean | undefined;
|
|
66
|
-
retryStrategy?:
|
|
66
|
+
retryStrategy?:
|
|
67
|
+
| import("@aws-sdk/types").RetryStrategy
|
|
68
|
+
| import("@aws-sdk/types").RetryStrategyV2
|
|
69
|
+
| undefined;
|
|
67
70
|
credentials?:
|
|
68
71
|
| import("@aws-sdk/types").AwsCredentialIdentity
|
|
69
72
|
| import("@aws-sdk/types").Provider<
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.231.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@aws-crypto/sha1-browser": "2.0.0",
|
|
24
24
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/config-resolver": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.231.0",
|
|
27
|
+
"@aws-sdk/config-resolver": "3.231.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.231.0",
|
|
29
29
|
"@aws-sdk/eventstream-serde-browser": "3.226.0",
|
|
30
30
|
"@aws-sdk/eventstream-serde-config-resolver": "3.226.0",
|
|
31
31
|
"@aws-sdk/eventstream-serde-node": "3.226.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@aws-sdk/middleware-location-constraint": "3.226.0",
|
|
45
45
|
"@aws-sdk/middleware-logger": "3.226.0",
|
|
46
46
|
"@aws-sdk/middleware-recursion-detection": "3.226.0",
|
|
47
|
-
"@aws-sdk/middleware-retry": "3.
|
|
48
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
47
|
+
"@aws-sdk/middleware-retry": "3.229.0",
|
|
48
|
+
"@aws-sdk/middleware-sdk-s3": "3.231.0",
|
|
49
49
|
"@aws-sdk/middleware-serde": "3.226.0",
|
|
50
50
|
"@aws-sdk/middleware-signing": "3.226.0",
|
|
51
51
|
"@aws-sdk/middleware-ssec": "3.226.0",
|
|
@@ -62,8 +62,9 @@
|
|
|
62
62
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
63
63
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
64
64
|
"@aws-sdk/util-defaults-mode-browser": "3.226.0",
|
|
65
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
65
|
+
"@aws-sdk/util-defaults-mode-node": "3.231.0",
|
|
66
66
|
"@aws-sdk/util-endpoints": "3.226.0",
|
|
67
|
+
"@aws-sdk/util-retry": "3.229.0",
|
|
67
68
|
"@aws-sdk/util-stream-browser": "3.226.0",
|
|
68
69
|
"@aws-sdk/util-stream-node": "3.226.0",
|
|
69
70
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|