@aws-sdk/client-s3 3.186.0 → 3.188.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restXml.js +10 -4
- package/dist-cjs/runtimeConfig.browser.js +10 -9
- package/dist-cjs/runtimeConfig.js +11 -10
- package/dist-es/S3.js +374 -381
- package/dist-es/S3Client.js +26 -32
- package/dist-es/commands/AbortMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CopyObjectCommand.js +21 -28
- package/dist-es/commands/CreateBucketCommand.js +21 -28
- package/dist-es/commands/CreateMultipartUploadCommand.js +21 -28
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketCommand.js +22 -29
- package/dist-es/commands/DeleteBucketCorsCommand.js +22 -29
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +22 -29
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +22 -29
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +22 -29
- package/dist-es/commands/DeleteBucketPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteBucketReplicationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketTaggingCommand.js +22 -29
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +22 -29
- package/dist-es/commands/DeleteObjectCommand.js +21 -28
- package/dist-es/commands/DeleteObjectTaggingCommand.js +21 -28
- package/dist-es/commands/DeleteObjectsCommand.js +21 -28
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +22 -29
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketAclCommand.js +21 -28
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketCorsCommand.js +21 -28
- package/dist-es/commands/GetBucketEncryptionCommand.js +21 -28
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketLocationCommand.js +21 -28
- package/dist-es/commands/GetBucketLoggingCommand.js +21 -28
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +21 -28
- package/dist-es/commands/GetBucketPolicyCommand.js +21 -28
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +21 -28
- package/dist-es/commands/GetBucketReplicationCommand.js +21 -28
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +21 -28
- package/dist-es/commands/GetBucketTaggingCommand.js +21 -28
- package/dist-es/commands/GetBucketVersioningCommand.js +21 -28
- package/dist-es/commands/GetBucketWebsiteCommand.js +21 -28
- package/dist-es/commands/GetObjectAclCommand.js +21 -28
- package/dist-es/commands/GetObjectAttributesCommand.js +21 -28
- package/dist-es/commands/GetObjectCommand.js +21 -28
- package/dist-es/commands/GetObjectLegalHoldCommand.js +21 -28
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +21 -28
- package/dist-es/commands/GetObjectRetentionCommand.js +21 -28
- package/dist-es/commands/GetObjectTaggingCommand.js +21 -28
- package/dist-es/commands/GetObjectTorrentCommand.js +21 -28
- package/dist-es/commands/GetPublicAccessBlockCommand.js +21 -28
- package/dist-es/commands/HeadBucketCommand.js +22 -29
- package/dist-es/commands/HeadObjectCommand.js +21 -28
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketsCommand.js +22 -29
- package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
- package/dist-es/commands/ListObjectVersionsCommand.js +21 -28
- package/dist-es/commands/ListObjectsCommand.js +21 -28
- package/dist-es/commands/ListObjectsV2Command.js +21 -28
- package/dist-es/commands/ListPartsCommand.js +21 -28
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketAclCommand.js +22 -29
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketCorsCommand.js +22 -29
- package/dist-es/commands/PutBucketEncryptionCommand.js +22 -29
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketLoggingCommand.js +22 -29
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +22 -29
- package/dist-es/commands/PutBucketPolicyCommand.js +22 -29
- package/dist-es/commands/PutBucketReplicationCommand.js +22 -29
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -29
- package/dist-es/commands/PutBucketTaggingCommand.js +22 -29
- package/dist-es/commands/PutBucketVersioningCommand.js +22 -29
- package/dist-es/commands/PutBucketWebsiteCommand.js +22 -29
- package/dist-es/commands/PutObjectAclCommand.js +21 -28
- package/dist-es/commands/PutObjectCommand.js +21 -28
- package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -28
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -28
- package/dist-es/commands/PutObjectRetentionCommand.js +21 -28
- package/dist-es/commands/PutObjectTaggingCommand.js +21 -28
- package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -29
- package/dist-es/commands/RestoreObjectCommand.js +21 -28
- package/dist-es/commands/SelectObjectContentCommand.js +21 -28
- package/dist-es/commands/UploadPartCommand.js +21 -28
- package/dist-es/commands/UploadPartCopyCommand.js +21 -28
- package/dist-es/commands/WriteGetObjectResponseCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/S3ServiceException.js +5 -10
- package/dist-es/models/models_0.js +896 -378
- package/dist-es/models/models_1.js +141 -54
- package/dist-es/pagination/ListObjectsV2Paginator.js +25 -68
- package/dist-es/pagination/ListPartsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restXml.js +6902 -9027
- package/dist-es/runtimeConfig.browser.js +33 -13
- package/dist-es/runtimeConfig.js +38 -13
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +11 -14
- package/dist-es/waiters/waitForBucketExists.js +23 -42
- package/dist-es/waiters/waitForBucketNotExists.js +22 -42
- package/dist-es/waiters/waitForObjectExists.js +23 -42
- package/dist-es/waiters/waitForObjectNotExists.js +22 -42
- package/dist-types/S3Client.d.ts +6 -1
- package/dist-types/commands/GetObjectCommand.d.ts +2 -2
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +2 -2
- package/dist-types/protocols/Aws_restXml.d.ts +3 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/S3Client.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +51 -52
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { Sha1 } from "@aws-crypto/sha1-browser";
|
|
4
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
@@ -11,21 +10,42 @@ import { Md5 } from "@aws-sdk/md5-js";
|
|
|
11
10
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
12
11
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
13
12
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
14
|
-
import { getAwsChunkedEncodingStream } from "@aws-sdk/util-stream-browser";
|
|
13
|
+
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-browser";
|
|
15
14
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
16
15
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
17
16
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
18
17
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
19
18
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
export const getRuntimeConfig = (config) => {
|
|
20
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
29
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
30
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
33
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
34
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
35
|
+
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream,
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
37
|
+
md5: config?.md5 ?? Md5,
|
|
38
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
41
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
42
|
+
sha1: config?.sha1 ?? Sha1,
|
|
43
|
+
sha256: config?.sha256 ?? Sha256,
|
|
44
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
45
|
+
streamHasher: config?.streamHasher ?? streamHasher,
|
|
46
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
47
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
48
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
49
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
50
|
+
};
|
|
31
51
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -12,23 +11,49 @@ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
|
12
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
13
12
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
14
13
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
15
|
-
import { getAwsChunkedEncodingStream } from "@aws-sdk/util-stream-node";
|
|
14
|
+
import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-node";
|
|
16
15
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
17
16
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
18
17
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
19
18
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
20
19
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
21
20
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
22
|
-
export
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
21
|
+
export const getRuntimeConfig = (config) => {
|
|
24
22
|
emitWarningIfUnsupportedVersion(process.version);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
24
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
25
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
37
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
38
|
+
getAwsChunkedEncodingStream: config?.getAwsChunkedEncodingStream ?? getAwsChunkedEncodingStream,
|
|
39
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
40
|
+
md5: config?.md5 ?? Hash.bind(null, "md5"),
|
|
41
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
42
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
43
|
+
retryMode: config?.retryMode ??
|
|
44
|
+
loadNodeConfig({
|
|
45
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
46
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
47
|
+
}),
|
|
48
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
49
|
+
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
50
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
51
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
52
|
+
streamHasher: config?.streamHasher ?? streamHasher,
|
|
53
|
+
useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS),
|
|
54
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
55
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
56
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
57
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
58
|
+
};
|
|
34
59
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
8
11
|
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
2
2
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
3
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
useArnRegion: (_h = config === null || config === void 0 ? void 0 : config.useArnRegion) !== null && _h !== void 0 ? _h : false,
|
|
16
|
-
});
|
|
17
|
-
};
|
|
4
|
+
export const getRuntimeConfig = (config) => ({
|
|
5
|
+
apiVersion: "2006-03-01",
|
|
6
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
7
|
+
logger: config?.logger ?? {},
|
|
8
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
9
|
+
serviceId: config?.serviceId ?? "S3",
|
|
10
|
+
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
11
|
+
signingEscapePath: config?.signingEscapePath ?? false,
|
|
12
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
13
|
+
useArnRegion: config?.useArnRegion ?? false,
|
|
14
|
+
});
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { HeadBucketCommand } from "../commands/HeadBucketCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NotFound") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new HeadBucketCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NotFound") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForBucketExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilBucketExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
|
@@ -1,45 +1,25 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { HeadBucketCommand } from "../commands/HeadBucketCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return [3, 3];
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NotFound") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new HeadBucketCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
}
|
|
9
|
+
catch (exception) {
|
|
10
|
+
reason = exception;
|
|
11
|
+
if (exception.name && exception.name == "NotFound") {
|
|
12
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
13
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
14
|
+
}
|
|
15
|
+
return { state: WaiterState.RETRY, reason };
|
|
16
|
+
};
|
|
17
|
+
export const waitForBucketNotExists = async (params, input) => {
|
|
18
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
19
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
20
|
+
};
|
|
21
|
+
export const waitUntilBucketNotExists = async (params, input) => {
|
|
22
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
23
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
24
|
+
return checkExceptions(result);
|
|
25
|
+
};
|
|
@@ -1,45 +1,26 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { HeadObjectCommand } from "../commands/HeadObjectCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NotFound") {
|
|
19
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new HeadObjectCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
9
|
+
}
|
|
10
|
+
catch (exception) {
|
|
11
|
+
reason = exception;
|
|
12
|
+
if (exception.name && exception.name == "NotFound") {
|
|
13
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
14
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
15
|
+
}
|
|
16
|
+
return { state: WaiterState.RETRY, reason };
|
|
17
|
+
};
|
|
18
|
+
export const waitForObjectExists = async (params, input) => {
|
|
19
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
20
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
21
|
+
};
|
|
22
|
+
export const waitUntilObjectExists = async (params, input) => {
|
|
23
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
24
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
25
|
+
return checkExceptions(result);
|
|
26
|
+
};
|
|
@@ -1,45 +1,25 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { HeadObjectCommand } from "../commands/HeadObjectCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return [3, 3];
|
|
15
|
-
case 2:
|
|
16
|
-
exception_1 = _a.sent();
|
|
17
|
-
reason = exception_1;
|
|
18
|
-
if (exception_1.name && exception_1.name == "NotFound") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
return [3, 3];
|
|
22
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new HeadObjectCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
}
|
|
9
|
+
catch (exception) {
|
|
10
|
+
reason = exception;
|
|
11
|
+
if (exception.name && exception.name == "NotFound") {
|
|
12
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
13
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
switch (_a.label) {
|
|
37
|
-
case 0:
|
|
38
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
39
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
40
|
-
case 1:
|
|
41
|
-
result = _a.sent();
|
|
42
|
-
return [2, checkExceptions(result)];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}); };
|
|
14
|
+
}
|
|
15
|
+
return { state: WaiterState.RETRY, reason };
|
|
16
|
+
};
|
|
17
|
+
export const waitForObjectNotExists = async (params, input) => {
|
|
18
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
19
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
20
|
+
};
|
|
21
|
+
export const waitUntilObjectNotExists = async (params, input) => {
|
|
22
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
23
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
24
|
+
return checkExceptions(result);
|
|
25
|
+
};
|
package/dist-types/S3Client.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
8
8
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
9
9
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
10
10
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
11
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, GetAwsChunkedEncodingStream, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
11
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, GetAwsChunkedEncodingStream, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
12
12
|
import { Readable } from "stream";
|
|
13
13
|
import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
|
|
14
14
|
import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "./commands/CompleteMultipartUploadCommand";
|
|
@@ -244,6 +244,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
244
244
|
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
245
245
|
*/
|
|
246
246
|
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
247
|
+
/**
|
|
248
|
+
* The internal function that inject utilities to runtime-specific stream to help users consume the data
|
|
249
|
+
* @internal
|
|
250
|
+
*/
|
|
251
|
+
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
247
252
|
}
|
|
248
253
|
declare type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & BucketEndpointInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
249
254
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, WithSdkStreamMixin as __WithSdkStreamMixin } from "@aws-sdk/types";
|
|
3
3
|
import { GetObjectOutput, GetObjectRequest } from "../models/models_0";
|
|
4
4
|
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
5
5
|
export interface GetObjectCommandInput extends GetObjectRequest {
|
|
6
6
|
}
|
|
7
|
-
export interface GetObjectCommandOutput extends GetObjectOutput, __MetadataBearer {
|
|
7
|
+
export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOutput, "Body">, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Retrieves objects from Amazon S3. To use <code>GET</code>, you must have <code>READ</code>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, WithSdkStreamMixin as __WithSdkStreamMixin } from "@aws-sdk/types";
|
|
3
3
|
import { GetObjectTorrentOutput, GetObjectTorrentRequest } from "../models/models_0";
|
|
4
4
|
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
|
|
5
5
|
export interface GetObjectTorrentCommandInput extends GetObjectTorrentRequest {
|
|
6
6
|
}
|
|
7
|
-
export interface GetObjectTorrentCommandOutput extends GetObjectTorrentOutput, __MetadataBearer {
|
|
7
|
+
export interface GetObjectTorrentCommandOutput extends __WithSdkStreamMixin<GetObjectTorrentOutput, "Body">, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Returns torrent files from a bucket. BitTorrent can save you bandwidth when you're
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
2
|
+
import { EventStreamSerdeContext as __EventStreamSerdeContext, SdkStreamSerdeContext as __SdkStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "../commands/AbortMultipartUploadCommand";
|
|
4
4
|
import { CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput } from "../commands/CompleteMultipartUploadCommand";
|
|
5
5
|
import { CopyObjectCommandInput, CopyObjectCommandOutput } from "../commands/CopyObjectCommand";
|
|
@@ -228,14 +228,14 @@ export declare const deserializeAws_restXmlGetBucketRequestPaymentCommand: (outp
|
|
|
228
228
|
export declare const deserializeAws_restXmlGetBucketTaggingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBucketTaggingCommandOutput>;
|
|
229
229
|
export declare const deserializeAws_restXmlGetBucketVersioningCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBucketVersioningCommandOutput>;
|
|
230
230
|
export declare const deserializeAws_restXmlGetBucketWebsiteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBucketWebsiteCommandOutput>;
|
|
231
|
-
export declare const deserializeAws_restXmlGetObjectCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectCommandOutput>;
|
|
231
|
+
export declare const deserializeAws_restXmlGetObjectCommand: (output: __HttpResponse, context: __SerdeContext & __SdkStreamSerdeContext) => Promise<GetObjectCommandOutput>;
|
|
232
232
|
export declare const deserializeAws_restXmlGetObjectAclCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectAclCommandOutput>;
|
|
233
233
|
export declare const deserializeAws_restXmlGetObjectAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectAttributesCommandOutput>;
|
|
234
234
|
export declare const deserializeAws_restXmlGetObjectLegalHoldCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectLegalHoldCommandOutput>;
|
|
235
235
|
export declare const deserializeAws_restXmlGetObjectLockConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectLockConfigurationCommandOutput>;
|
|
236
236
|
export declare const deserializeAws_restXmlGetObjectRetentionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectRetentionCommandOutput>;
|
|
237
237
|
export declare const deserializeAws_restXmlGetObjectTaggingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectTaggingCommandOutput>;
|
|
238
|
-
export declare const deserializeAws_restXmlGetObjectTorrentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetObjectTorrentCommandOutput>;
|
|
238
|
+
export declare const deserializeAws_restXmlGetObjectTorrentCommand: (output: __HttpResponse, context: __SerdeContext & __SdkStreamSerdeContext) => Promise<GetObjectTorrentCommandOutput>;
|
|
239
239
|
export declare const deserializeAws_restXmlGetPublicAccessBlockCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPublicAccessBlockCommandOutput>;
|
|
240
240
|
export declare const deserializeAws_restXmlHeadBucketCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<HeadBucketCommandOutput>;
|
|
241
241
|
export declare const deserializeAws_restXmlHeadObjectCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<HeadObjectCommandOutput>;
|
|
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
19
19
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
20
20
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
21
21
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
22
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
22
23
|
sha1: import("@aws-sdk/types").HashConstructor;
|
|
23
24
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
24
25
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
20
20
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
21
21
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
22
22
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
23
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
23
24
|
sha1: __HashConstructor;
|
|
24
25
|
sha256: __HashConstructor;
|
|
25
26
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -34,6 +34,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
34
34
|
getAwsChunkedEncodingStream: import("@aws-sdk/types").GetAwsChunkedEncodingStream<any> | import("@aws-sdk/types").GetAwsChunkedEncodingStream<ReadableStream<any>>;
|
|
35
35
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
36
36
|
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
37
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
37
38
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
38
39
|
tls?: boolean | undefined;
|
|
39
40
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
Provider as __Provider,
|
|
49
49
|
Provider,
|
|
50
50
|
RegionInfoProvider,
|
|
51
|
+
SdkStreamMixinInjector as __SdkStreamMixinInjector,
|
|
51
52
|
StreamCollector as __StreamCollector,
|
|
52
53
|
StreamHasher as __StreamHasher,
|
|
53
54
|
UrlParser as __UrlParser,
|
|
@@ -645,6 +646,7 @@ export interface ClientDefaults
|
|
|
645
646
|
getAwsChunkedEncodingStream?: GetAwsChunkedEncodingStream;
|
|
646
647
|
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
647
648
|
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
649
|
+
sdkStreamMixin?: __SdkStreamMixinInjector;
|
|
648
650
|
}
|
|
649
651
|
declare type S3ClientConfigType = Partial<
|
|
650
652
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
5
5
|
MetadataBearer as __MetadataBearer,
|
|
6
6
|
MiddlewareStack,
|
|
7
|
+
WithSdkStreamMixin as __WithSdkStreamMixin,
|
|
7
8
|
} from "@aws-sdk/types";
|
|
8
9
|
import { GetObjectOutput, GetObjectRequest } from "../models/models_0";
|
|
9
10
|
import {
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
} from "../S3Client";
|
|
14
15
|
export interface GetObjectCommandInput extends GetObjectRequest {}
|
|
15
16
|
export interface GetObjectCommandOutput
|
|
16
|
-
extends GetObjectOutput,
|
|
17
|
+
extends __WithSdkStreamMixin<GetObjectOutput, "Body">,
|
|
17
18
|
__MetadataBearer {}
|
|
18
19
|
export declare class GetObjectCommand extends $Command<
|
|
19
20
|
GetObjectCommandInput,
|