@aws-sdk/client-s3 3.183.0 → 3.185.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 +2 -2
- package/dist-es/S3.js +381 -374
- package/dist-es/S3Client.js +32 -26
- package/dist-es/commands/AbortMultipartUploadCommand.js +28 -21
- package/dist-es/commands/CompleteMultipartUploadCommand.js +28 -21
- package/dist-es/commands/CopyObjectCommand.js +28 -21
- package/dist-es/commands/CreateBucketCommand.js +28 -21
- package/dist-es/commands/CreateMultipartUploadCommand.js +28 -21
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketCommand.js +29 -22
- package/dist-es/commands/DeleteBucketCorsCommand.js +29 -22
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +29 -22
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +29 -22
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +29 -22
- package/dist-es/commands/DeleteBucketPolicyCommand.js +29 -22
- package/dist-es/commands/DeleteBucketReplicationCommand.js +29 -22
- package/dist-es/commands/DeleteBucketTaggingCommand.js +29 -22
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +29 -22
- package/dist-es/commands/DeleteObjectCommand.js +28 -21
- package/dist-es/commands/DeleteObjectTaggingCommand.js +28 -21
- package/dist-es/commands/DeleteObjectsCommand.js +28 -21
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +29 -22
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketAclCommand.js +28 -21
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketCorsCommand.js +28 -21
- package/dist-es/commands/GetBucketEncryptionCommand.js +28 -21
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketLocationCommand.js +28 -21
- package/dist-es/commands/GetBucketLoggingCommand.js +28 -21
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +28 -21
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +28 -21
- package/dist-es/commands/GetBucketPolicyCommand.js +28 -21
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +28 -21
- package/dist-es/commands/GetBucketReplicationCommand.js +28 -21
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +28 -21
- package/dist-es/commands/GetBucketTaggingCommand.js +28 -21
- package/dist-es/commands/GetBucketVersioningCommand.js +28 -21
- package/dist-es/commands/GetBucketWebsiteCommand.js +28 -21
- package/dist-es/commands/GetObjectAclCommand.js +28 -21
- package/dist-es/commands/GetObjectAttributesCommand.js +28 -21
- package/dist-es/commands/GetObjectCommand.js +28 -21
- package/dist-es/commands/GetObjectLegalHoldCommand.js +28 -21
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +28 -21
- package/dist-es/commands/GetObjectRetentionCommand.js +28 -21
- package/dist-es/commands/GetObjectTaggingCommand.js +28 -21
- package/dist-es/commands/GetObjectTorrentCommand.js +28 -21
- package/dist-es/commands/GetPublicAccessBlockCommand.js +28 -21
- package/dist-es/commands/HeadBucketCommand.js +29 -22
- package/dist-es/commands/HeadObjectCommand.js +28 -21
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListBucketsCommand.js +29 -22
- package/dist-es/commands/ListMultipartUploadsCommand.js +28 -21
- package/dist-es/commands/ListObjectVersionsCommand.js +28 -21
- package/dist-es/commands/ListObjectsCommand.js +28 -21
- package/dist-es/commands/ListObjectsV2Command.js +28 -21
- package/dist-es/commands/ListPartsCommand.js +28 -21
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketAclCommand.js +29 -22
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketCorsCommand.js +29 -22
- package/dist-es/commands/PutBucketEncryptionCommand.js +29 -22
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketLoggingCommand.js +29 -22
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +29 -22
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +29 -22
- package/dist-es/commands/PutBucketPolicyCommand.js +29 -22
- package/dist-es/commands/PutBucketReplicationCommand.js +29 -22
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +29 -22
- package/dist-es/commands/PutBucketTaggingCommand.js +29 -22
- package/dist-es/commands/PutBucketVersioningCommand.js +29 -22
- package/dist-es/commands/PutBucketWebsiteCommand.js +29 -22
- package/dist-es/commands/PutObjectAclCommand.js +28 -21
- package/dist-es/commands/PutObjectCommand.js +28 -21
- package/dist-es/commands/PutObjectLegalHoldCommand.js +28 -21
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +28 -21
- package/dist-es/commands/PutObjectRetentionCommand.js +28 -21
- package/dist-es/commands/PutObjectTaggingCommand.js +28 -21
- package/dist-es/commands/PutPublicAccessBlockCommand.js +29 -22
- package/dist-es/commands/RestoreObjectCommand.js +28 -21
- package/dist-es/commands/SelectObjectContentCommand.js +28 -21
- package/dist-es/commands/UploadPartCommand.js +28 -21
- package/dist-es/commands/UploadPartCopyCommand.js +28 -21
- package/dist-es/commands/WriteGetObjectResponseCommand.js +29 -22
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/S3ServiceException.js +10 -5
- package/dist-es/models/models_0.js +378 -896
- package/dist-es/models/models_1.js +54 -141
- package/dist-es/pagination/ListObjectsV2Paginator.js +68 -25
- package/dist-es/pagination/ListPartsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restXml.js +9022 -6891
- package/dist-es/runtimeConfig.browser.js +12 -31
- package/dist-es/runtimeConfig.js +12 -36
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +14 -11
- package/dist-es/waiters/waitForBucketExists.js +42 -23
- package/dist-es/waiters/waitForBucketNotExists.js +42 -22
- package/dist-es/waiters/waitForObjectExists.js +42 -23
- package/dist-es/waiters/waitForObjectNotExists.js +42 -22
- package/package.json +6 -6
package/dist-es/S3Client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { resolveEventStreamSerdeConfig, } from "@aws-sdk/eventstream-serde-config-resolver";
|
|
3
4
|
import { resolveBucketEndpointConfig, } from "@aws-sdk/middleware-bucket-endpoint";
|
|
@@ -12,30 +13,35 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
12
13
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
13
14
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
14
15
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
var S3Client = (function (_super) {
|
|
17
|
+
__extends(S3Client, _super);
|
|
18
|
+
function S3Client(configuration) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
21
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
22
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
23
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
24
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
25
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
26
|
+
var _config_6 = resolveBucketEndpointConfig(_config_5);
|
|
27
|
+
var _config_7 = resolveUserAgentConfig(_config_6);
|
|
28
|
+
var _config_8 = resolveEventStreamSerdeConfig(_config_7);
|
|
29
|
+
_this = _super.call(this, _config_8) || this;
|
|
30
|
+
_this.config = _config_8;
|
|
31
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
32
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
33
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
34
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
35
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
36
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
37
|
+
_this.middlewareStack.use(getValidateBucketNamePlugin(_this.config));
|
|
38
|
+
_this.middlewareStack.use(getAddExpectContinuePlugin(_this.config));
|
|
39
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
40
|
+
return _this;
|
|
37
41
|
}
|
|
38
|
-
destroy() {
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
+
S3Client.prototype.destroy = function () {
|
|
43
|
+
_super.prototype.destroy.call(this);
|
|
44
|
+
};
|
|
45
|
+
return S3Client;
|
|
46
|
+
}(__Client));
|
|
47
|
+
export { S3Client };
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
5
|
import { AbortMultipartUploadOutputFilterSensitiveLog, AbortMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlAbortMultipartUploadCommand, serializeAws_restXmlAbortMultipartUploadCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var AbortMultipartUploadCommand = (function (_super) {
|
|
8
|
+
__extends(AbortMultipartUploadCommand, _super);
|
|
9
|
+
function AbortMultipartUploadCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
AbortMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
12
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
16
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
logger,
|
|
20
|
-
clientName,
|
|
21
|
-
commandName,
|
|
17
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
var logger = configuration.logger;
|
|
19
|
+
var clientName = "S3Client";
|
|
20
|
+
var commandName = "AbortMultipartUploadCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: AbortMultipartUploadRequestFilterSensitiveLog,
|
|
23
26
|
outputFilterSensitiveLog: AbortMultipartUploadOutputFilterSensitiveLog,
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
return stack.resolve((request)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
var requestHandler = configuration.requestHandler;
|
|
29
|
+
return stack.resolve(function (request) {
|
|
30
|
+
return requestHandler.handle(request.request, options || {});
|
|
31
|
+
}, handlerExecutionContext);
|
|
32
|
+
};
|
|
33
|
+
AbortMultipartUploadCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlAbortMultipartUploadCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
AbortMultipartUploadCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlAbortMultipartUploadCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return AbortMultipartUploadCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { AbortMultipartUploadCommand };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
@@ -5,34 +6,40 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
|
|
|
5
6
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
7
|
import { CompleteMultipartUploadOutputFilterSensitiveLog, CompleteMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
|
|
7
8
|
import { deserializeAws_restXmlCompleteMultipartUploadCommand, serializeAws_restXmlCompleteMultipartUploadCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var CompleteMultipartUploadCommand = (function (_super) {
|
|
10
|
+
__extends(CompleteMultipartUploadCommand, _super);
|
|
11
|
+
function CompleteMultipartUploadCommand(input) {
|
|
12
|
+
var _this = _super.call(this) || this;
|
|
13
|
+
_this.input = input;
|
|
14
|
+
return _this;
|
|
12
15
|
}
|
|
13
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
16
|
+
CompleteMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
17
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
18
|
this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration));
|
|
16
19
|
this.middlewareStack.use(getSsecPlugin(configuration));
|
|
17
20
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
logger,
|
|
24
|
-
clientName,
|
|
25
|
-
commandName,
|
|
21
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
var logger = configuration.logger;
|
|
23
|
+
var clientName = "S3Client";
|
|
24
|
+
var commandName = "CompleteMultipartUploadCommand";
|
|
25
|
+
var handlerExecutionContext = {
|
|
26
|
+
logger: logger,
|
|
27
|
+
clientName: clientName,
|
|
28
|
+
commandName: commandName,
|
|
26
29
|
inputFilterSensitiveLog: CompleteMultipartUploadRequestFilterSensitiveLog,
|
|
27
30
|
outputFilterSensitiveLog: CompleteMultipartUploadOutputFilterSensitiveLog,
|
|
28
31
|
};
|
|
29
|
-
|
|
30
|
-
return stack.resolve((request)
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
var requestHandler = configuration.requestHandler;
|
|
33
|
+
return stack.resolve(function (request) {
|
|
34
|
+
return requestHandler.handle(request.request, options || {});
|
|
35
|
+
}, handlerExecutionContext);
|
|
36
|
+
};
|
|
37
|
+
CompleteMultipartUploadCommand.prototype.serialize = function (input, context) {
|
|
33
38
|
return serializeAws_restXmlCompleteMultipartUploadCommand(input, context);
|
|
34
|
-
}
|
|
35
|
-
deserialize(output, context) {
|
|
39
|
+
};
|
|
40
|
+
CompleteMultipartUploadCommand.prototype.deserialize = function (output, context) {
|
|
36
41
|
return deserializeAws_restXmlCompleteMultipartUploadCommand(output, context);
|
|
37
|
-
}
|
|
38
|
-
|
|
42
|
+
};
|
|
43
|
+
return CompleteMultipartUploadCommand;
|
|
44
|
+
}($Command));
|
|
45
|
+
export { CompleteMultipartUploadCommand };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
@@ -5,34 +6,40 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
|
|
|
5
6
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
7
|
import { CopyObjectOutputFilterSensitiveLog, CopyObjectRequestFilterSensitiveLog, } from "../models/models_0";
|
|
7
8
|
import { deserializeAws_restXmlCopyObjectCommand, serializeAws_restXmlCopyObjectCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
var CopyObjectCommand = (function (_super) {
|
|
10
|
+
__extends(CopyObjectCommand, _super);
|
|
11
|
+
function CopyObjectCommand(input) {
|
|
12
|
+
var _this = _super.call(this) || this;
|
|
13
|
+
_this.input = input;
|
|
14
|
+
return _this;
|
|
12
15
|
}
|
|
13
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
16
|
+
CopyObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
17
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
18
|
this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration));
|
|
16
19
|
this.middlewareStack.use(getSsecPlugin(configuration));
|
|
17
20
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
logger,
|
|
24
|
-
clientName,
|
|
25
|
-
commandName,
|
|
21
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
var logger = configuration.logger;
|
|
23
|
+
var clientName = "S3Client";
|
|
24
|
+
var commandName = "CopyObjectCommand";
|
|
25
|
+
var handlerExecutionContext = {
|
|
26
|
+
logger: logger,
|
|
27
|
+
clientName: clientName,
|
|
28
|
+
commandName: commandName,
|
|
26
29
|
inputFilterSensitiveLog: CopyObjectRequestFilterSensitiveLog,
|
|
27
30
|
outputFilterSensitiveLog: CopyObjectOutputFilterSensitiveLog,
|
|
28
31
|
};
|
|
29
|
-
|
|
30
|
-
return stack.resolve((request)
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
var requestHandler = configuration.requestHandler;
|
|
33
|
+
return stack.resolve(function (request) {
|
|
34
|
+
return requestHandler.handle(request.request, options || {});
|
|
35
|
+
}, handlerExecutionContext);
|
|
36
|
+
};
|
|
37
|
+
CopyObjectCommand.prototype.serialize = function (input, context) {
|
|
33
38
|
return serializeAws_restXmlCopyObjectCommand(input, context);
|
|
34
|
-
}
|
|
35
|
-
deserialize(output, context) {
|
|
39
|
+
};
|
|
40
|
+
CopyObjectCommand.prototype.deserialize = function (output, context) {
|
|
36
41
|
return deserializeAws_restXmlCopyObjectCommand(output, context);
|
|
37
|
-
}
|
|
38
|
-
|
|
42
|
+
};
|
|
43
|
+
return CopyObjectCommand;
|
|
44
|
+
}($Command));
|
|
45
|
+
export { CopyObjectCommand };
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
5
|
import { CreateBucketOutputFilterSensitiveLog, CreateBucketRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlCreateBucketCommand, serializeAws_restXmlCreateBucketCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var CreateBucketCommand = (function (_super) {
|
|
8
|
+
__extends(CreateBucketCommand, _super);
|
|
9
|
+
function CreateBucketCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
CreateBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
12
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
16
|
this.middlewareStack.use(getLocationConstraintPlugin(configuration));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
logger,
|
|
20
|
-
clientName,
|
|
21
|
-
commandName,
|
|
17
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
var logger = configuration.logger;
|
|
19
|
+
var clientName = "S3Client";
|
|
20
|
+
var commandName = "CreateBucketCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: CreateBucketRequestFilterSensitiveLog,
|
|
23
26
|
outputFilterSensitiveLog: CreateBucketOutputFilterSensitiveLog,
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
return stack.resolve((request)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
var requestHandler = configuration.requestHandler;
|
|
29
|
+
return stack.resolve(function (request) {
|
|
30
|
+
return requestHandler.handle(request.request, options || {});
|
|
31
|
+
}, handlerExecutionContext);
|
|
32
|
+
};
|
|
33
|
+
CreateBucketCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlCreateBucketCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
CreateBucketCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlCreateBucketCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return CreateBucketCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { CreateBucketCommand };
|
|
@@ -1,36 +1,43 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { CreateMultipartUploadOutputFilterSensitiveLog, CreateMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlCreateMultipartUploadCommand, serializeAws_restXmlCreateMultipartUploadCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var CreateMultipartUploadCommand = (function (_super) {
|
|
9
|
+
__extends(CreateMultipartUploadCommand, _super);
|
|
10
|
+
function CreateMultipartUploadCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
CreateMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getSsecPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
logger,
|
|
22
|
-
clientName,
|
|
23
|
-
commandName,
|
|
19
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
20
|
+
var logger = configuration.logger;
|
|
21
|
+
var clientName = "S3Client";
|
|
22
|
+
var commandName = "CreateMultipartUploadCommand";
|
|
23
|
+
var handlerExecutionContext = {
|
|
24
|
+
logger: logger,
|
|
25
|
+
clientName: clientName,
|
|
26
|
+
commandName: commandName,
|
|
24
27
|
inputFilterSensitiveLog: CreateMultipartUploadRequestFilterSensitiveLog,
|
|
25
28
|
outputFilterSensitiveLog: CreateMultipartUploadOutputFilterSensitiveLog,
|
|
26
29
|
};
|
|
27
|
-
|
|
28
|
-
return stack.resolve((request)
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
var requestHandler = configuration.requestHandler;
|
|
31
|
+
return stack.resolve(function (request) {
|
|
32
|
+
return requestHandler.handle(request.request, options || {});
|
|
33
|
+
}, handlerExecutionContext);
|
|
34
|
+
};
|
|
35
|
+
CreateMultipartUploadCommand.prototype.serialize = function (input, context) {
|
|
31
36
|
return serializeAws_restXmlCreateMultipartUploadCommand(input, context);
|
|
32
|
-
}
|
|
33
|
-
deserialize(output, context) {
|
|
37
|
+
};
|
|
38
|
+
CreateMultipartUploadCommand.prototype.deserialize = function (output, context) {
|
|
34
39
|
return deserializeAws_restXmlCreateMultipartUploadCommand(output, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
40
|
+
};
|
|
41
|
+
return CreateMultipartUploadCommand;
|
|
42
|
+
}($Command));
|
|
43
|
+
export { CreateMultipartUploadCommand };
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
5
|
import { DeleteBucketAnalyticsConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand, serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var DeleteBucketAnalyticsConfigurationCommand = (function (_super) {
|
|
8
|
+
__extends(DeleteBucketAnalyticsConfigurationCommand, _super);
|
|
9
|
+
function DeleteBucketAnalyticsConfigurationCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
DeleteBucketAnalyticsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
12
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
16
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
logger,
|
|
20
|
-
clientName,
|
|
21
|
-
commandName,
|
|
17
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
var logger = configuration.logger;
|
|
19
|
+
var clientName = "S3Client";
|
|
20
|
+
var commandName = "DeleteBucketAnalyticsConfigurationCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: DeleteBucketAnalyticsConfigurationRequestFilterSensitiveLog,
|
|
23
|
-
outputFilterSensitiveLog: (output)
|
|
26
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
return stack.resolve((request)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
var requestHandler = configuration.requestHandler;
|
|
29
|
+
return stack.resolve(function (request) {
|
|
30
|
+
return requestHandler.handle(request.request, options || {});
|
|
31
|
+
}, handlerExecutionContext);
|
|
32
|
+
};
|
|
33
|
+
DeleteBucketAnalyticsConfigurationCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
DeleteBucketAnalyticsConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return DeleteBucketAnalyticsConfigurationCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { DeleteBucketAnalyticsConfigurationCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteBucketRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_restXmlDeleteBucketCommand, serializeAws_restXmlDeleteBucketCommand, } from "../protocols/Aws_restXml";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteBucketCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteBucketCommand, _super);
|
|
8
|
+
function DeleteBucketCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "S3Client";
|
|
18
|
+
var commandName = "DeleteBucketCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteBucketRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteBucketCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_restXmlDeleteBucketCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteBucketCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_restXmlDeleteBucketCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteBucketCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteBucketCommand };
|
|
@@ -1,34 +1,41 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
5
|
import { DeleteBucketCorsRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlDeleteBucketCorsCommand, serializeAws_restXmlDeleteBucketCorsCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var DeleteBucketCorsCommand = (function (_super) {
|
|
8
|
+
__extends(DeleteBucketCorsCommand, _super);
|
|
9
|
+
function DeleteBucketCorsCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
DeleteBucketCorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
12
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
16
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
logger,
|
|
20
|
-
clientName,
|
|
21
|
-
commandName,
|
|
17
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
18
|
+
var logger = configuration.logger;
|
|
19
|
+
var clientName = "S3Client";
|
|
20
|
+
var commandName = "DeleteBucketCorsCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: DeleteBucketCorsRequestFilterSensitiveLog,
|
|
23
|
-
outputFilterSensitiveLog: (output)
|
|
26
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
24
27
|
};
|
|
25
|
-
|
|
26
|
-
return stack.resolve((request)
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
var requestHandler = configuration.requestHandler;
|
|
29
|
+
return stack.resolve(function (request) {
|
|
30
|
+
return requestHandler.handle(request.request, options || {});
|
|
31
|
+
}, handlerExecutionContext);
|
|
32
|
+
};
|
|
33
|
+
DeleteBucketCorsCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlDeleteBucketCorsCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
DeleteBucketCorsCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlDeleteBucketCorsCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return DeleteBucketCorsCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { DeleteBucketCorsCommand };
|