@aws-sdk/client-s3 3.1076.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 +8 -7
- 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 +5 -5
- package/dist-types/runtimeConfig.d.ts +46 -47
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- 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 +7 -7
- package/dist-types/ts3.4/runtimeConfig.d.ts +63 -73
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -0
- package/package.json +11 -14
package/dist-cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
const { NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, resolveFlexibleChecksumsConfig, getFlexibleChecksumsPlugin } = require("@aws-sdk/checksums/flexible-checksums");
|
|
1
2
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
|
-
const { NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS, NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, resolveFlexibleChecksumsConfig, getFlexibleChecksumsPlugin } = require("@aws-sdk/middleware-flexible-checksums");
|
|
3
3
|
const { getThrow200ExceptionsPlugin, S3RestXmlProtocol, NODE_USE_ARN_REGION_CONFIG_OPTIONS, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, resolveS3Config, getValidateBucketNamePlugin, getAddExpectContinuePlugin, getRegionRedirectMiddlewarePlugin, getS3ExpressPlugin, getS3ExpressHttpSigningPlugin, getSsecPlugin, getLocationConstraintPlugin, getS3ExpiresMiddlewarePlugin, getCheckContentLengthHeaderPlugin } = require("@aws-sdk/middleware-sdk-s3/s3");
|
|
4
4
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
5
5
|
const { normalizeProvider, getSmithyContext, ServiceException, Command, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
@@ -14,9 +14,10 @@ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
|
14
14
|
const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
15
15
|
const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
|
|
16
16
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
17
|
-
const { readableStreamHasher } = require("@smithy/core/checksum");
|
|
18
|
-
const { toUtf8, fromUtf8, sdkStreamMixin, getAwsChunkedEncodingStream, toBase64, fromBase64,
|
|
17
|
+
const { Sha256, Md5, readableStreamHasher } = require("@smithy/core/checksum");
|
|
18
|
+
const { toUtf8, fromUtf8, sdkStreamMixin, getAwsChunkedEncodingStream, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
19
19
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
20
|
+
const { Sha1 } = require("@aws-sdk/checksums/sha");
|
|
20
21
|
|
|
21
22
|
const aw = "ref", ax = "argv", ay = "backend", az = "authSchemes", aA = "disableDoubleEncoding", aB = "signingName", aC = "signingRegion", aD = "signingRegionSet";
|
|
22
23
|
const a = -1, b = true, c = false, d = "isSet", e = "booleanEquals", f = "stringEquals", g = "coalesce", h = "substring", i = "", j = "aws.partition", k = "partitionResult", l = "accessPointSuffix", m = "regionPrefix", n = (n) => "outpostId_ssa_" + n + i, o = "hardwareType", p = "ite", q = "isValidHostLabel", s = "sigv4", t = "aws.isVirtualHostableS3Bucket", u = "url", v = "getAttr", w = "bucketArn", x = "--", y = "arnType", z = "accesspoint", A = (n) => "accessPointName_ssa_" + n + i, B = "s3-object-lambda", C = "s3-outposts", D = "bucketPartition", E = "us-east-1", F = "outpostType", G = "name", H = "s3", I = "{url#scheme}://{Bucket}.{url#authority}{url#path}", J = "{url#scheme}://{url#authority}{url#path}", K = "{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}", L = "https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}", M = "https://{Bucket}.s3.{partitionResult#dnsSuffix}", N = (n) => "{url#scheme}://{accessPointName_ssa_" + n + "}-{bucketArn#accountId}.{url#authority}{url#path}", O = (n) => "Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName_ssa_" + n + "}`", P = "sigv4a", Q = "{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}", R = "https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", S = "https://s3.{partitionResult#dnsSuffix}", T = { [aw]: "UseFIPS" }, U = { [aw]: "UseDualStack" }, V = { [aw]: "Bucket" }, W = { "fn": v, [ax]: [{ [aw]: k }, G] }, X = { [aw]: u }, Y = { [aw]: "Region" }, Z = { [aw]: w }, aa = { [aw]: y }, ab = { [aw]: "accessPointName_ssa_1" }, ac = { "fn": v, [ax]: [Z, "region"] }, ad = { [aw]: o }, ae = { "fn": v, [ax]: [Z, "service"] }, af = { "fn": v, [ax]: [Z, "accountId"] }, ag = { [ay]: "S3Express", [az]: [{ [aA]: true, [G]: "{_s3e_auth}", [aB]: "s3express", [aC]: "{Region}" }] }, ah = { [ay]: "S3Express", [az]: [{ [aA]: true, [G]: s, [aB]: "s3express", [aC]: "{Region}" }] }, ai = { [az]: [{ [aA]: true, [G]: P, [aB]: C, [aD]: ["*"] }, { [aA]: true, [G]: s, [aB]: C, [aC]: "{Region}" }] }, aj = { [az]: [{ [aA]: true, [G]: s, [aB]: H, [aC]: E }] }, ak = { [az]: [{ [aA]: true, [G]: s, [aB]: H, [aC]: "{Region}" }] }, al = { [az]: [{ [aA]: true, [G]: s, [aB]: B, [aC]: "{bucketArn#region}" }] }, am = { [az]: [{ [aA]: true, [G]: s, [aB]: H, [aC]: "{bucketArn#region}" }] }, an = { [az]: [{ [aA]: true, [G]: P, [aB]: C, [aD]: ["*"] }, { [aA]: true, [G]: s, [aB]: C, [aC]: "{bucketArn#region}" }] }, ao = { [az]: [{ [aA]: true, [G]: s, [aB]: B, [aC]: "{Region}" }] }, ap = [Y], aq = [{ [aw]: "Endpoint" }], as = [V], at = [V, 0, 7, true], au = [Z, "resourceId[1]"], av = ["*"];
|
|
@@ -4639,7 +4640,7 @@ class CreateSessionCommand extends Command
|
|
|
4639
4640
|
.build() {
|
|
4640
4641
|
}
|
|
4641
4642
|
|
|
4642
|
-
var version = "3.
|
|
4643
|
+
var version = "3.1076.0";
|
|
4643
4644
|
var packageInfo = {
|
|
4644
4645
|
version: version};
|
|
4645
4646
|
|
|
@@ -4666,6 +4667,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
4666
4667
|
},
|
|
4667
4668
|
],
|
|
4668
4669
|
logger: config?.logger ?? new NoOpLogger(),
|
|
4670
|
+
md5: config?.md5 ?? Md5,
|
|
4669
4671
|
protocol: config?.protocol ?? S3RestXmlProtocol,
|
|
4670
4672
|
protocolSettings: config?.protocolSettings ?? {
|
|
4671
4673
|
defaultNamespace: "com.amazonaws.s3",
|
|
@@ -4676,6 +4678,8 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
4676
4678
|
},
|
|
4677
4679
|
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
4678
4680
|
serviceId: config?.serviceId ?? "S3",
|
|
4681
|
+
sha1: config?.sha1 ?? Sha1,
|
|
4682
|
+
sha256: config?.sha256 ?? Sha256,
|
|
4679
4683
|
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
4680
4684
|
signingEscapePath: config?.signingEscapePath ?? false,
|
|
4681
4685
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -4707,7 +4711,6 @@ const getRuntimeConfig = (config) => {
|
|
|
4707
4711
|
disableS3ExpressSessionAuth: config?.disableS3ExpressSessionAuth ?? loadConfig(NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS, loaderConfig),
|
|
4708
4712
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
4709
4713
|
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
4710
|
-
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
4711
4714
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
4712
4715
|
requestChecksumCalculation: config?.requestChecksumCalculation ?? loadConfig(NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS, loaderConfig),
|
|
4713
4716
|
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -4717,8 +4720,6 @@ const getRuntimeConfig = (config) => {
|
|
|
4717
4720
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
4718
4721
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
4719
4722
|
}, config),
|
|
4720
|
-
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
4721
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
4722
4723
|
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
4723
4724
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
4724
4725
|
streamHasher: config?.streamHasher ?? readableStreamHasher,
|
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,12 +11,9 @@ 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
|
-
sha1: import("@smithy/types").HashConstructor;
|
|
19
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
20
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>);
|
|
@@ -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
|
-
sha256: __HashConstructor;
|
|
25
|
-
sigv4aSigningRegionSet: 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>;
|
|
26
22
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
27
|
-
streamHasher: import("@
|
|
28
|
-
useArnRegion: boolean | import("@
|
|
29
|
-
useDualstackEndpoint: boolean | import("@
|
|
30
|
-
useFipsEndpoint: boolean | import("@
|
|
31
|
-
userAgentAppId: string | import("@
|
|
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,6 +12,7 @@ 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
18
|
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
@@ -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;
|
|
@@ -18,6 +18,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
18
18
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
|
|
19
19
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
20
20
|
logger: import("@smithy/types").Logger;
|
|
21
|
+
md5: import("@smithy/types").HashConstructor;
|
|
21
22
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof S3RestXmlProtocol;
|
|
22
23
|
protocolSettings: {
|
|
23
24
|
[setting: string]: unknown;
|
|
@@ -25,6 +26,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
25
26
|
};
|
|
26
27
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
27
28
|
serviceId: string;
|
|
29
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
30
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
28
31
|
signerConstructor: typeof SignatureV4MultiRegion | (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner);
|
|
29
32
|
signingEscapePath: boolean;
|
|
30
33
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FlexibleChecksumsInputConfig,
|
|
3
|
+
FlexibleChecksumsResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/checksums/flexible-checksums";
|
|
1
5
|
import {
|
|
2
6
|
HostHeaderInputConfig,
|
|
3
7
|
HostHeaderResolvedConfig,
|
|
4
8
|
UserAgentInputConfig,
|
|
5
9
|
UserAgentResolvedConfig,
|
|
6
10
|
} from "@aws-sdk/core/client";
|
|
7
|
-
import {
|
|
8
|
-
FlexibleChecksumsInputConfig,
|
|
9
|
-
FlexibleChecksumsResolvedConfig,
|
|
10
|
-
} from "@aws-sdk/middleware-flexible-checksums";
|
|
11
11
|
import { S3InputConfig, S3ResolvedConfig } from "@aws-sdk/middleware-sdk-s3/s3";
|
|
12
12
|
import { GetAwsChunkedEncodingStream } from "@aws-sdk/types";
|
|
13
13
|
import {
|
|
@@ -16,14 +16,11 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
16
16
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
17
17
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
18
18
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
19
|
-
md5: import("@smithy/types").HashConstructor;
|
|
20
19
|
region: string | import("@smithy/types").Provider<any>;
|
|
21
20
|
requestHandler:
|
|
22
21
|
| import("@smithy/core/protocols").HttpHandler<any>
|
|
23
22
|
| RequestHandler;
|
|
24
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
|
-
sha1: import("@smithy/types").HashConstructor;
|
|
26
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
27
24
|
streamCollector: (
|
|
28
25
|
stream:
|
|
29
26
|
| import("stream").Readable
|
|
@@ -48,6 +45,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
48
45
|
[setting: string]: unknown;
|
|
49
46
|
};
|
|
50
47
|
apiVersion: string;
|
|
48
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
51
49
|
urlParser: import("@smithy/types").UrlParser;
|
|
52
50
|
base64Decoder: import("@smithy/types").Decoder;
|
|
53
51
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
@@ -56,6 +54,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
56
54
|
disableHostPrefix: boolean;
|
|
57
55
|
serviceId: string;
|
|
58
56
|
profile?: string;
|
|
57
|
+
md5: import("@smithy/types").HashConstructor;
|
|
58
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
59
59
|
getAwsChunkedEncodingStream:
|
|
60
60
|
| import("@smithy/types").GetAwsChunkedEncodingStream<any>
|
|
61
61
|
| typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
|
|
@@ -73,14 +73,14 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
73
73
|
| undefined
|
|
74
74
|
| import("@smithy/types").Provider<string | undefined>;
|
|
75
75
|
requestChecksumCalculation?:
|
|
76
|
-
| import("@aws-sdk/checksums").RequestChecksumCalculation
|
|
76
|
+
| import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
77
77
|
| import("@smithy/types").Provider<
|
|
78
|
-
import("@aws-sdk/checksums").RequestChecksumCalculation
|
|
78
|
+
import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
79
79
|
>;
|
|
80
80
|
responseChecksumValidation?:
|
|
81
|
-
| import("@aws-sdk/checksums").ResponseChecksumValidation
|
|
81
|
+
| import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
82
82
|
| import("@smithy/types").Provider<
|
|
83
|
-
import("@aws-sdk/checksums").ResponseChecksumValidation
|
|
83
|
+
import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
84
84
|
>;
|
|
85
85
|
requestStreamBufferSize?: number | false;
|
|
86
86
|
checksumAlgorithms?: {
|
|
@@ -1,50 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChecksumConstructor as __ChecksumConstructor,
|
|
3
|
-
HashConstructor as __HashConstructor,
|
|
4
|
-
} from "@aws-sdk/types";
|
|
5
1
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
6
2
|
import { S3ClientConfig } from "./S3Client";
|
|
7
3
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
8
4
|
runtime: string;
|
|
9
|
-
defaultsMode: import("@
|
|
5
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
10
6
|
import("@smithy/core/client").ResolvedDefaultsMode
|
|
11
7
|
>;
|
|
12
|
-
authSchemePreference: string[] | import("@
|
|
13
|
-
bodyLengthChecker: import("@
|
|
8
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
9
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
14
10
|
credentialDefaultProvider:
|
|
15
|
-
| ((input: any) => import("@
|
|
11
|
+
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
16
12
|
| ((
|
|
17
13
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit
|
|
18
14
|
) => import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider);
|
|
19
15
|
defaultUserAgentProvider: (
|
|
20
16
|
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
21
|
-
) => Promise<import("@
|
|
17
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
22
18
|
disableS3ExpressSessionAuth:
|
|
23
19
|
| boolean
|
|
24
|
-
| import("@
|
|
25
|
-
eventStreamSerdeProvider: import("@
|
|
26
|
-
maxAttempts: number | import("@
|
|
27
|
-
|
|
28
|
-
region: string | import("@aws-sdk/types").Provider<string>;
|
|
20
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
|
21
|
+
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
22
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
23
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
29
24
|
requestChecksumCalculation:
|
|
30
|
-
| import("@aws-sdk/
|
|
31
|
-
| import("@
|
|
32
|
-
import("@aws-sdk/
|
|
25
|
+
| import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
26
|
+
| import("@smithy/types").Provider<
|
|
27
|
+
import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
33
28
|
>;
|
|
34
29
|
requestHandler:
|
|
35
30
|
| RequestHandler
|
|
36
31
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
37
32
|
responseChecksumValidation:
|
|
38
|
-
| import("@aws-sdk/
|
|
39
|
-
| import("@
|
|
40
|
-
import("@aws-sdk/
|
|
33
|
+
| import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
34
|
+
| import("@smithy/types").Provider<
|
|
35
|
+
import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
41
36
|
>;
|
|
42
|
-
retryMode: string | import("@
|
|
43
|
-
sha1: __HashConstructor;
|
|
44
|
-
sha256: __HashConstructor;
|
|
37
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
45
38
|
sigv4aSigningRegionSet:
|
|
46
39
|
| string[]
|
|
47
|
-
| import("@
|
|
40
|
+
| import("@smithy/types").Provider<string[] | undefined>;
|
|
48
41
|
streamCollector: (
|
|
49
42
|
stream:
|
|
50
43
|
| import("stream").Readable
|
|
@@ -53,16 +46,12 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
53
46
|
| Blob
|
|
54
47
|
) => Promise<Uint8Array>;
|
|
55
48
|
streamHasher:
|
|
56
|
-
| import("@
|
|
57
|
-
| import("@
|
|
58
|
-
useArnRegion:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
63
|
-
userAgentAppId:
|
|
64
|
-
| string
|
|
65
|
-
| import("@aws-sdk/types").Provider<string | undefined>;
|
|
49
|
+
| import("@smithy/types").StreamHasher<import("stream").Readable>
|
|
50
|
+
| import("@smithy/types").StreamHasher<Blob>;
|
|
51
|
+
useArnRegion: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
52
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
53
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
54
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
66
55
|
cacheMiddleware?: boolean | undefined;
|
|
67
56
|
protocol:
|
|
68
57
|
| import("@smithy/types").ClientProtocol<any, any>
|
|
@@ -73,72 +62,73 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
73
62
|
[setting: string]: unknown;
|
|
74
63
|
};
|
|
75
64
|
apiVersion: string;
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
66
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
67
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
78
68
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
79
|
-
utf8Decoder: import("@
|
|
69
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
80
70
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
81
71
|
disableHostPrefix: boolean;
|
|
82
72
|
serviceId: string;
|
|
83
73
|
profile?: string;
|
|
74
|
+
md5: import("@smithy/types").HashConstructor;
|
|
75
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
84
76
|
getAwsChunkedEncodingStream:
|
|
85
|
-
| import("@
|
|
77
|
+
| import("@smithy/types").GetAwsChunkedEncodingStream<any>
|
|
86
78
|
| typeof import("@smithy/core/serde").getAwsChunkedEncodingStream;
|
|
87
|
-
logger: import("@
|
|
79
|
+
logger: import("@smithy/types").Logger;
|
|
88
80
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
89
81
|
signingEscapePath: boolean;
|
|
90
|
-
sdkStreamMixin: import("@
|
|
91
|
-
customUserAgent?: string | import("@
|
|
82
|
+
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
83
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
92
84
|
requestStreamBufferSize?: number | false;
|
|
93
85
|
checksumAlgorithms?: {
|
|
94
|
-
CRC32?:
|
|
95
|
-
CRC32C?:
|
|
96
|
-
CRC64NVME?:
|
|
97
|
-
SHA1?:
|
|
98
|
-
SHA256?:
|
|
86
|
+
CRC32?: import("@smithy/types").ChecksumConstructor;
|
|
87
|
+
CRC32C?: import("@smithy/types").ChecksumConstructor;
|
|
88
|
+
CRC64NVME?: import("@smithy/types").ChecksumConstructor;
|
|
89
|
+
SHA1?: import("@smithy/types").ChecksumConstructor;
|
|
90
|
+
SHA256?: import("@smithy/types").ChecksumConstructor;
|
|
99
91
|
} & {
|
|
100
|
-
[algorithmId: string]:
|
|
92
|
+
[algorithmId: string]: import("@smithy/types").ChecksumConstructor;
|
|
101
93
|
};
|
|
102
94
|
retryStrategy?:
|
|
103
|
-
| import("@
|
|
104
|
-
| import("@
|
|
95
|
+
| import("@smithy/types").RetryStrategy
|
|
96
|
+
| import("@smithy/types").RetryStrategyV2;
|
|
105
97
|
endpoint?:
|
|
106
98
|
| ((
|
|
107
99
|
| string
|
|
108
|
-
| import("@
|
|
109
|
-
| import("@
|
|
110
|
-
| import("@
|
|
111
|
-
| import("@
|
|
100
|
+
| import("@smithy/types").Endpoint
|
|
101
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
102
|
+
| import("@smithy/types").EndpointV2
|
|
103
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
112
104
|
) &
|
|
113
105
|
(
|
|
114
106
|
| string
|
|
115
|
-
| import("@
|
|
116
|
-
| import("@
|
|
117
|
-
| import("@
|
|
118
|
-
| import("@
|
|
119
|
-
| import("@
|
|
120
|
-
import("@aws-sdk/types").EndpointV2
|
|
121
|
-
>
|
|
107
|
+
| import("@smithy/types").Provider<string>
|
|
108
|
+
| import("@smithy/types").Endpoint
|
|
109
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
110
|
+
| import("@smithy/types").EndpointV2
|
|
111
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
122
112
|
))
|
|
123
113
|
| undefined;
|
|
124
114
|
endpointProvider: (
|
|
125
115
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
126
116
|
context?: {
|
|
127
|
-
logger?: import("@
|
|
117
|
+
logger?: import("@smithy/types").Logger;
|
|
128
118
|
}
|
|
129
|
-
) => import("@
|
|
119
|
+
) => import("@smithy/types").EndpointV2;
|
|
130
120
|
tls?: boolean;
|
|
131
121
|
serviceConfiguredEndpoint?: never;
|
|
132
122
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
133
123
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
|
|
134
124
|
credentials?:
|
|
135
|
-
| import("@
|
|
136
|
-
| import("@
|
|
125
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
126
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
137
127
|
signer?:
|
|
138
|
-
| import("@
|
|
128
|
+
| import("@smithy/types").RequestSigner
|
|
139
129
|
| ((
|
|
140
|
-
authScheme?: import("@
|
|
141
|
-
) => Promise<import("@
|
|
130
|
+
authScheme?: import("@smithy/types").AuthScheme
|
|
131
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
142
132
|
systemClockOffset?: number;
|
|
143
133
|
signingRegion?: string;
|
|
144
134
|
signerConstructor:
|
|
@@ -146,18 +136,18 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
146
136
|
| (new (
|
|
147
137
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
148
138
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
149
|
-
) => import("@
|
|
139
|
+
) => import("@smithy/types").RequestSigner);
|
|
150
140
|
forcePathStyle?:
|
|
151
141
|
| (boolean &
|
|
152
|
-
(boolean | import("@
|
|
142
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>))
|
|
153
143
|
| undefined;
|
|
154
144
|
useAccelerateEndpoint?:
|
|
155
145
|
| (boolean &
|
|
156
|
-
(boolean | import("@
|
|
146
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>))
|
|
157
147
|
| undefined;
|
|
158
148
|
disableMultiregionAccessPoints?:
|
|
159
149
|
| (boolean &
|
|
160
|
-
(boolean | import("@
|
|
150
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>))
|
|
161
151
|
| undefined;
|
|
162
152
|
followRegionRedirects?: boolean;
|
|
163
153
|
s3ExpressIdentityProvider?: import("@aws-sdk/middleware-sdk-s3/s3").S3ExpressIdentityProvider;
|
|
@@ -167,10 +157,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
167
157
|
disableS3ExpressSessionAuth?:
|
|
168
158
|
| boolean
|
|
169
159
|
| undefined
|
|
170
|
-
| import("@
|
|
160
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
|
171
161
|
};
|
|
172
162
|
useGlobalEndpoint?:
|
|
173
163
|
| boolean
|
|
174
164
|
| undefined
|
|
175
|
-
| import("@
|
|
165
|
+
| import("@smithy/types").Provider<boolean | undefined>;
|
|
176
166
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { S3ClientConfig } from "./S3Client";
|
|
2
2
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
3
3
|
runtime: string;
|
|
4
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
5
4
|
requestHandler:
|
|
6
5
|
| import("@smithy/types").NodeHttpHandlerOptions
|
|
7
6
|
| import("@smithy/types").FetchHttpHandlerOptions
|
|
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
18
17
|
[setting: string]: unknown;
|
|
19
18
|
};
|
|
20
19
|
apiVersion: string;
|
|
20
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
23
|
streamCollector: (
|
|
@@ -77,14 +77,14 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
77
77
|
| undefined
|
|
78
78
|
| import("@smithy/types").Provider<string | undefined>;
|
|
79
79
|
requestChecksumCalculation?:
|
|
80
|
-
| import("@aws-sdk/checksums").RequestChecksumCalculation
|
|
80
|
+
| import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
81
81
|
| import("@smithy/types").Provider<
|
|
82
|
-
import("@aws-sdk/checksums").RequestChecksumCalculation
|
|
82
|
+
import("@aws-sdk/checksums/flexible-checksums").RequestChecksumCalculation
|
|
83
83
|
>;
|
|
84
84
|
responseChecksumValidation?:
|
|
85
|
-
| import("@aws-sdk/checksums").ResponseChecksumValidation
|
|
85
|
+
| import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
86
86
|
| import("@smithy/types").Provider<
|
|
87
|
-
import("@aws-sdk/checksums").ResponseChecksumValidation
|
|
87
|
+
import("@aws-sdk/checksums/flexible-checksums").ResponseChecksumValidation
|
|
88
88
|
>;
|
|
89
89
|
requestStreamBufferSize?: number | false;
|
|
90
90
|
checksumAlgorithms?: {
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
20
20
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3HttpAuthSchemeProvider;
|
|
21
21
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
22
22
|
logger: import("@smithy/types").Logger;
|
|
23
|
+
md5: import("@smithy/types").HashConstructor;
|
|
23
24
|
protocol:
|
|
24
25
|
| import("@smithy/types").ClientProtocol<any, any>
|
|
25
26
|
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
@@ -30,6 +31,8 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
30
31
|
};
|
|
31
32
|
sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
|
|
32
33
|
serviceId: string;
|
|
34
|
+
sha1: import("@smithy/types").HashConstructor;
|
|
35
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
33
36
|
signerConstructor:
|
|
34
37
|
| typeof SignatureV4MultiRegion
|
|
35
38
|
| (new (
|
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.1077.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",
|
|
@@ -27,24 +27,21 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-
|
|
31
|
-
"@aws-
|
|
32
|
-
"@aws-
|
|
33
|
-
"@aws-sdk/
|
|
34
|
-
"@aws-sdk/
|
|
35
|
-
"@aws-sdk/middleware-flexible-checksums": "^3.974.34",
|
|
36
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.55",
|
|
37
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.36",
|
|
30
|
+
"@aws-sdk/checksums": "^3.1000.10",
|
|
31
|
+
"@aws-sdk/core": "^3.974.25",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "^3.972.60",
|
|
33
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.56",
|
|
34
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.37",
|
|
38
35
|
"@aws-sdk/types": "^3.973.14",
|
|
39
|
-
"@smithy/core": "^3.
|
|
40
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
41
|
-
"@smithy/node-http-handler": "^4.9.
|
|
36
|
+
"@smithy/core": "^3.28.0",
|
|
37
|
+
"@smithy/fetch-http-handler": "^5.6.1",
|
|
38
|
+
"@smithy/node-http-handler": "^4.9.1",
|
|
42
39
|
"@smithy/types": "^4.15.0",
|
|
43
40
|
"tslib": "^2.6.2"
|
|
44
41
|
},
|
|
45
42
|
"devDependencies": {
|
|
46
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
47
|
-
"@smithy/snapshot-testing": "^2.2.
|
|
43
|
+
"@aws-sdk/signature-v4-crt": "3.1077.0",
|
|
44
|
+
"@smithy/snapshot-testing": "^2.2.4",
|
|
48
45
|
"@tsconfig/node20": "20.1.8",
|
|
49
46
|
"@types/node": "^20.14.8",
|
|
50
47
|
"concurrently": "7.0.0",
|