@aws-sdk/client-s3 3.1075.0 → 3.1077.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 +5187 -18
- package/dist-es/S3Client.js +1 -1
- package/dist-es/commands/CreateBucketMetadataConfigurationCommand.js +1 -1
- package/dist-es/commands/CreateBucketMetadataTableConfigurationCommand.js +1 -1
- package/dist-es/commands/DeleteObjectsCommand.js +1 -1
- package/dist-es/commands/GetObjectAnnotationCommand.js +1 -1
- package/dist-es/commands/GetObjectCommand.js +1 -1
- package/dist-es/commands/PutBucketAbacCommand.js +1 -1
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +1 -1
- package/dist-es/commands/PutBucketAclCommand.js +1 -1
- package/dist-es/commands/PutBucketCorsCommand.js +1 -1
- package/dist-es/commands/PutBucketEncryptionCommand.js +1 -1
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +1 -1
- package/dist-es/commands/PutBucketLoggingCommand.js +1 -1
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +1 -1
- package/dist-es/commands/PutBucketPolicyCommand.js +1 -1
- package/dist-es/commands/PutBucketReplicationCommand.js +1 -1
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +1 -1
- package/dist-es/commands/PutBucketTaggingCommand.js +1 -1
- package/dist-es/commands/PutBucketVersioningCommand.js +1 -1
- package/dist-es/commands/PutBucketWebsiteCommand.js +1 -1
- package/dist-es/commands/PutObjectAclCommand.js +1 -1
- package/dist-es/commands/PutObjectAnnotationCommand.js +1 -1
- package/dist-es/commands/PutObjectCommand.js +1 -1
- package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -1
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -1
- package/dist-es/commands/PutObjectRetentionCommand.js +1 -1
- package/dist-es/commands/PutObjectTaggingCommand.js +1 -1
- package/dist-es/commands/PutPublicAccessBlockCommand.js +1 -1
- package/dist-es/commands/RestoreObjectCommand.js +1 -1
- package/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateBucketMetadataInventoryTableConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateBucketMetadataJournalTableConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateObjectEncryptionCommand.js +1 -1
- package/dist-es/commands/UploadPartCommand.js +1 -1
- package/dist-es/runtimeConfig.browser.js +1 -6
- package/dist-es/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +5 -0
- package/dist-types/S3Client.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +6 -6
- package/dist-types/runtimeConfig.d.ts +47 -48
- package/dist-types/runtimeConfig.native.d.ts +4 -4
- package/dist-types/runtimeConfig.shared.d.ts +3 -0
- package/dist-types/ts3.4/S3Client.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -8
- package/dist-types/ts3.4/runtimeConfig.d.ts +70 -74
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +12 -6
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -0
- package/package.json +13 -16
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -122
- package/dist-cjs/endpoint/bdd.js +0 -758
- package/dist-cjs/endpoint/endpointResolver.js +0 -29
- package/dist-cjs/models/S3ServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -257
- package/dist-cjs/runtimeConfig.browser.js +0 -39
- package/dist-cjs/runtimeConfig.js +0 -58
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -50
- package/dist-cjs/schemas/schemas_0.js +0 -3789
package/dist-es/S3Client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { resolveFlexibleChecksumsConfig, } from "@aws-sdk/checksums/flexible-checksums";
|
|
1
2
|
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
-
import { resolveFlexibleChecksumsConfig, } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
3
|
import { getAddExpectContinuePlugin, getRegionRedirectMiddlewarePlugin, getS3ExpressHttpSigningPlugin, getS3ExpressPlugin, getValidateBucketNamePlugin, resolveS3Config, } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
4
4
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
5
5
|
import { Client as __Client, } from "@smithy/core/client";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getS3ExpiresMiddlewarePlugin, getSsecPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getCheckContentLengthHeaderPlugin, getSsecPlugin, getThrow200ExceptionsPlugin, } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { Command as $Command } from "@smithy/core/client";
|
|
3
3
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFlexibleChecksumsPlugin } from "@aws-sdk/
|
|
1
|
+
import { getFlexibleChecksumsPlugin } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
2
|
import { getSsecPlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
3
|
import { Command as $Command } from "@smithy/core/client";
|
|
4
4
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha1 } from "@aws-crypto/sha1-browser";
|
|
3
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
5
|
-
import { blobHasher as streamHasher
|
|
3
|
+
import { blobHasher as streamHasher } from "@smithy/core/checksum";
|
|
6
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
7
5
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
8
6
|
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
@@ -24,12 +22,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
22
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
23
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
26
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
-
md5: config?.md5 ?? Md5,
|
|
28
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
29
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
30
27
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
31
|
-
sha1: config?.sha1 ?? Sha1,
|
|
32
|
-
sha256: config?.sha256 ?? Sha256,
|
|
33
28
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
34
29
|
streamHasher: config?.streamHasher ?? streamHasher,
|
|
35
30
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
+
import { NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, } from "@aws-sdk/checksums/flexible-checksums";
|
|
2
3
|
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
4
|
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
-
import { NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, } from "@aws-sdk/middleware-flexible-checksums";
|
|
6
6
|
import { NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, NODE_USE_ARN_REGION_CONFIG_OPTIONS, } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
7
7
|
import { readableStreamHasher as streamHasher } from "@smithy/core/checksum";
|
|
8
8
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
9
9
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
10
10
|
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
11
11
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
12
|
-
import { calculateBodyLength
|
|
12
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
13
13
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
export const getRuntimeConfig = (config) => {
|
|
@@ -34,7 +34,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
34
34
|
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? loadNodeConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
|
|
35
35
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
36
36
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
-
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
38
37
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
38
|
requestChecksumCalculation: config?.requestChecksumCalculation ?? loadNodeConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig),
|
|
40
39
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -44,8 +43,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
44
43
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
45
44
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
46
45
|
}, config),
|
|
47
|
-
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
48
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
49
46
|
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
50
47
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
51
48
|
streamHasher: config?.streamHasher ?? streamHasher,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Sha1 } from "@aws-sdk/checksums/sha";
|
|
1
2
|
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
3
|
import { S3RestXmlProtocol } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
3
4
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
5
|
+
import { Md5, Sha256 } from "@smithy/core/checksum";
|
|
4
6
|
import { NoOpLogger } from "@smithy/core/client";
|
|
5
7
|
import { parseUrl } from "@smithy/core/protocols";
|
|
6
8
|
import { fromBase64, fromUtf8, getAwsChunkedEncodingStream, sdkStreamMixin, toBase64, toUtf8, } from "@smithy/core/serde";
|
|
@@ -30,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
32
|
},
|
|
31
33
|
],
|
|
32
34
|
logger: config?.logger ?? new NoOpLogger(),
|
|
35
|
+
md5: config?.md5 ?? Md5,
|
|
33
36
|
protocol: config?.protocol ?? S3RestXmlProtocol,
|
|
34
37
|
protocolSettings: config?.protocolSettings ?? {
|
|
35
38
|
defaultNamespace: "com.amazonaws.s3",
|
|
@@ -40,6 +43,8 @@ export const getRuntimeConfig = (config) => {
|
|
|
40
43
|
},
|
|
41
44
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
42
45
|
serviceId: config?.serviceId ?? "S3",
|
|
46
|
+
sha1: config?.sha1 ?? Sha1,
|
|
47
|
+
sha256: config?.sha256 ?? Sha256,
|
|
43
48
|
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
44
49
|
signingEscapePath: config?.signingEscapePath ?? false,
|
|
45
50
|
urlParser: config?.urlParser ?? parseUrl,
|
package/dist-types/S3Client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type FlexibleChecksumsInputConfig, type FlexibleChecksumsResolvedConfig } from "@aws-sdk/checksums/flexible-checksums";
|
|
1
2
|
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
-
import { type FlexibleChecksumsInputConfig, type FlexibleChecksumsResolvedConfig } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
3
|
import { type S3InputConfig, type S3ResolvedConfig } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
4
4
|
import type { GetAwsChunkedEncodingStream } from "@aws-sdk/types";
|
|
5
5
|
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
@@ -11,13 +11,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
11
11
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
14
|
-
md5: import("@smithy/types").HashConstructor;
|
|
15
14
|
region: string | import("@smithy/types").Provider<any>;
|
|
16
15
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
17
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
|
-
|
|
19
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
20
|
-
streamCollector: import("@smithy/types").StreamCollector;
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
21
18
|
streamHasher: import("@smithy/types").StreamHasher<import("stream").Readable> | import("@smithy/types").StreamHasher<Blob>;
|
|
22
19
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
23
20
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -28,6 +25,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
28
25
|
[setting: string]: unknown;
|
|
29
26
|
};
|
|
30
27
|
apiVersion: string;
|
|
28
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
31
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
32
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
33
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -36,6 +34,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
36
34
|
disableHostPrefix: boolean;
|
|
37
35
|
serviceId: string;
|
|
38
36
|
profile?: string;
|
|
37
|
+
md5: import("@smithy/types").HashConstructor;
|
|
38
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
39
39
|
getAwsChunkedEncodingStream: import("@smithy/types").GetAwsChunkedEncodingStream<any> | typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
@@ -44,8 +44,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
44
44
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
45
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
46
46
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
47
|
-
requestChecksumCalculation?: import("@aws-sdk/checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/checksums").RequestChecksumCalculation>;
|
|
48
|
-
responseChecksumValidation?: import("@aws-sdk/checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/checksums").ResponseChecksumValidation>;
|
|
47
|
+
requestChecksumCalculation?: import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation>;
|
|
48
|
+
responseChecksumValidation?: import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation>;
|
|
49
49
|
requestStreamBufferSize?: number | false;
|
|
50
50
|
checksumAlgorithms?: {
|
|
51
51
|
CRC32?: import("@smithy/types").ChecksumConstructor;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChecksumConstructor as __ChecksumConstructor, HashConstructor as __HashConstructor } from "@aws-sdk/types";
|
|
2
1
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
2
|
import type { S3ClientConfig } from "./S3Client";
|
|
4
3
|
/**
|
|
@@ -6,29 +5,26 @@ import type { S3ClientConfig } from "./S3Client";
|
|
|
6
5
|
*/
|
|
7
6
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
8
7
|
runtime: string;
|
|
9
|
-
defaultsMode: import("@
|
|
10
|
-
authSchemePreference: string[] | import("@
|
|
11
|
-
bodyLengthChecker: import("@
|
|
12
|
-
credentialDefaultProvider: ((input: any) => import("@
|
|
13
|
-
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@
|
|
14
|
-
disableS3ExpressSessionAuth: boolean | import("@
|
|
15
|
-
eventStreamSerdeProvider: import("@
|
|
16
|
-
maxAttempts: number | import("@
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
requestChecksumCalculation: import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation | import("@aws-sdk/types").Provider<import("@aws-sdk/middleware-flexible-checksums").RequestChecksumCalculation>;
|
|
8
|
+
defaultsMode: import("@smithy/types").Provider<import("@smithy/core/client").ResolvedDefaultsMode>;
|
|
9
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
10
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
+
credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
12
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
13
|
+
disableS3ExpressSessionAuth: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
14
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
15
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
16
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
17
|
+
requestChecksumCalculation: import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation>;
|
|
20
18
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
21
|
-
responseChecksumValidation: import("@aws-sdk/
|
|
22
|
-
retryMode: string | import("@
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
31
|
-
userAgentAppId: string | import("@aws-sdk/types").Provider<string | undefined>;
|
|
19
|
+
responseChecksumValidation: import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation>;
|
|
20
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
21
|
+
sigv4aSigningRegionSet: string[] | import("@smithy/types").Provider<string[] | undefined>;
|
|
22
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
23
|
+
streamHasher: import("@smithy/types").StreamHasher<import("stream").Readable> | import("@smithy/types").StreamHasher<Blob>;
|
|
24
|
+
useArnRegion: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
25
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
32
28
|
cacheMiddleware?: boolean | undefined;
|
|
33
29
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/middleware-sdk-s3/s3").S3RestXmlProtocol;
|
|
34
30
|
protocolSettings: {
|
|
@@ -36,53 +32,56 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
36
32
|
[setting: string]: unknown;
|
|
37
33
|
};
|
|
38
34
|
apiVersion: string;
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
36
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
37
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
41
38
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
42
|
-
utf8Decoder: import("@
|
|
39
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
43
40
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
44
41
|
disableHostPrefix: boolean;
|
|
45
42
|
serviceId: string;
|
|
46
43
|
profile?: string;
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
md5: import("@smithy/types").HashConstructor;
|
|
45
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
46
|
+
getAwsChunkedEncodingStream: import("@smithy/types").GetAwsChunkedEncodingStream<any> | typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
|
|
47
|
+
logger: import("@smithy/types").Logger;
|
|
49
48
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
50
49
|
signingEscapePath: boolean;
|
|
51
|
-
sdkStreamMixin: import("@
|
|
52
|
-
customUserAgent?: string | import("@
|
|
50
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
51
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
53
52
|
requestStreamBufferSize?: number | false;
|
|
54
53
|
checksumAlgorithms?: {
|
|
55
|
-
CRC32?:
|
|
56
|
-
CRC32C?:
|
|
57
|
-
CRC64NVME?:
|
|
58
|
-
SHA1?:
|
|
59
|
-
SHA256?:
|
|
54
|
+
CRC32?: import("@smithy/types").ChecksumConstructor;
|
|
55
|
+
CRC32C?: import("@smithy/types").ChecksumConstructor;
|
|
56
|
+
CRC64NVME?: import("@smithy/types").ChecksumConstructor;
|
|
57
|
+
SHA1?: import("@smithy/types").ChecksumConstructor;
|
|
58
|
+
SHA256?: import("@smithy/types").ChecksumConstructor;
|
|
60
59
|
} & {
|
|
61
|
-
[algorithmId: string]:
|
|
60
|
+
[algorithmId: string]: import("@smithy/types").ChecksumConstructor;
|
|
62
61
|
};
|
|
63
|
-
retryStrategy?: import("@
|
|
64
|
-
endpoint?: ((string | import("@
|
|
62
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
63
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
65
64
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
66
|
-
logger?: import("@
|
|
67
|
-
}) => import("@
|
|
65
|
+
logger?: import("@smithy/types").Logger;
|
|
66
|
+
}) => import("@smithy/types").EndpointV2;
|
|
68
67
|
tls?: boolean;
|
|
69
68
|
serviceConfiguredEndpoint?: never;
|
|
70
69
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
71
70
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
|
|
72
|
-
credentials?: import("@
|
|
73
|
-
signer?: import("@
|
|
71
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
72
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
74
73
|
systemClockOffset?: number;
|
|
75
74
|
signingRegion?: string;
|
|
76
|
-
signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@
|
|
77
|
-
forcePathStyle?: (boolean & (boolean | import("@
|
|
78
|
-
useAccelerateEndpoint?: (boolean & (boolean | import("@
|
|
79
|
-
disableMultiregionAccessPoints?: (boolean & (boolean | import("@
|
|
75
|
+
signerConstructor: typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
76
|
+
forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider<boolean | undefined>)) | undefined;
|
|
77
|
+
useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider<boolean | undefined>)) | undefined;
|
|
78
|
+
disableMultiregionAccessPoints?: (boolean & (boolean | import("@smithy/types").Provider<boolean | undefined>)) | undefined;
|
|
80
79
|
followRegionRedirects?: boolean;
|
|
81
80
|
s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3/s3").S3ExpressIdentityProvider;
|
|
82
81
|
bucketEndpoint?: boolean;
|
|
83
82
|
expectContinueHeader?: boolean | number;
|
|
84
83
|
clientContextParams?: {
|
|
85
|
-
disableS3ExpressSessionAuth?: boolean | undefined | import("@
|
|
84
|
+
disableS3ExpressSessionAuth?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
86
85
|
};
|
|
87
|
-
useGlobalEndpoint?: boolean | undefined | import("@
|
|
86
|
+
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
88
87
|
};
|
|
@@ -4,7 +4,6 @@ import type { S3ClientConfig } from "./S3Client";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
8
7
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
8
|
cacheMiddleware?: boolean;
|
|
10
9
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/middleware-sdk-s3/s3").S3RestXmlProtocol;
|
|
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
13
12
|
[setting: string]: unknown;
|
|
14
13
|
};
|
|
15
14
|
apiVersion: string;
|
|
15
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -43,8 +43,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
43
43
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
44
44
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
45
45
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
46
|
-
requestChecksumCalculation?: import("@aws-sdk/checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/checksums").RequestChecksumCalculation>;
|
|
47
|
-
responseChecksumValidation?: import("@aws-sdk/checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/checksums").ResponseChecksumValidation>;
|
|
46
|
+
requestChecksumCalculation?: import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation>;
|
|
47
|
+
responseChecksumValidation?: import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation | import("@smithy/types").Provider<import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation>;
|
|
48
48
|
requestStreamBufferSize?: number | false;
|
|
49
49
|
checksumAlgorithms?: {
|
|
50
50
|
CRC32?: import("@smithy/types").ChecksumConstructor;
|