@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
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketLoggingRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketLoggingCommand, serializeAws_restXmlPutBucketLoggingCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketLoggingCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketLoggingCommand, _super);
|
|
10
|
+
function PutBucketLoggingCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketLoggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketLoggingCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketLoggingCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketLoggingRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketLoggingCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketLoggingCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketLoggingCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketLoggingCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketLoggingCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketLoggingCommand };
|
|
@@ -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 { PutBucketMetricsConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlPutBucketMetricsConfigurationCommand, serializeAws_restXmlPutBucketMetricsConfigurationCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var PutBucketMetricsConfigurationCommand = (function (_super) {
|
|
8
|
+
__extends(PutBucketMetricsConfigurationCommand, _super);
|
|
9
|
+
function PutBucketMetricsConfigurationCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
PutBucketMetricsConfigurationCommand.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 = "PutBucketMetricsConfigurationCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: PutBucketMetricsConfigurationRequestFilterSensitiveLog,
|
|
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
|
+
PutBucketMetricsConfigurationCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlPutBucketMetricsConfigurationCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
PutBucketMetricsConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlPutBucketMetricsConfigurationCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return PutBucketMetricsConfigurationCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { PutBucketMetricsConfigurationCommand };
|
|
@@ -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 { PutBucketNotificationConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { deserializeAws_restXmlPutBucketNotificationConfigurationCommand, serializeAws_restXmlPutBucketNotificationConfigurationCommand, } from "../protocols/Aws_restXml";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var PutBucketNotificationConfigurationCommand = (function (_super) {
|
|
8
|
+
__extends(PutBucketNotificationConfigurationCommand, _super);
|
|
9
|
+
function PutBucketNotificationConfigurationCommand(input) {
|
|
10
|
+
var _this = _super.call(this) || this;
|
|
11
|
+
_this.input = input;
|
|
12
|
+
return _this;
|
|
10
13
|
}
|
|
11
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
PutBucketNotificationConfigurationCommand.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 = "PutBucketNotificationConfigurationCommand";
|
|
21
|
+
var handlerExecutionContext = {
|
|
22
|
+
logger: logger,
|
|
23
|
+
clientName: clientName,
|
|
24
|
+
commandName: commandName,
|
|
22
25
|
inputFilterSensitiveLog: PutBucketNotificationConfigurationRequestFilterSensitiveLog,
|
|
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
|
+
PutBucketNotificationConfigurationCommand.prototype.serialize = function (input, context) {
|
|
29
34
|
return serializeAws_restXmlPutBucketNotificationConfigurationCommand(input, context);
|
|
30
|
-
}
|
|
31
|
-
deserialize(output, context) {
|
|
35
|
+
};
|
|
36
|
+
PutBucketNotificationConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
32
37
|
return deserializeAws_restXmlPutBucketNotificationConfigurationCommand(output, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
38
|
+
};
|
|
39
|
+
return PutBucketNotificationConfigurationCommand;
|
|
40
|
+
}($Command));
|
|
41
|
+
export { PutBucketNotificationConfigurationCommand };
|
|
@@ -1,36 +1,43 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketOwnershipControlsRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketOwnershipControlsCommand, serializeAws_restXmlPutBucketOwnershipControlsCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketOwnershipControlsCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketOwnershipControlsCommand, _super);
|
|
10
|
+
function PutBucketOwnershipControlsCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketOwnershipControlsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, { input: this.input, requestChecksumRequired: true }));
|
|
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 = "PutBucketOwnershipControlsCommand";
|
|
23
|
+
var handlerExecutionContext = {
|
|
24
|
+
logger: logger,
|
|
25
|
+
clientName: clientName,
|
|
26
|
+
commandName: commandName,
|
|
24
27
|
inputFilterSensitiveLog: PutBucketOwnershipControlsRequestFilterSensitiveLog,
|
|
25
|
-
outputFilterSensitiveLog: (output)
|
|
28
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
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
|
+
PutBucketOwnershipControlsCommand.prototype.serialize = function (input, context) {
|
|
31
36
|
return serializeAws_restXmlPutBucketOwnershipControlsCommand(input, context);
|
|
32
|
-
}
|
|
33
|
-
deserialize(output, context) {
|
|
37
|
+
};
|
|
38
|
+
PutBucketOwnershipControlsCommand.prototype.deserialize = function (output, context) {
|
|
34
39
|
return deserializeAws_restXmlPutBucketOwnershipControlsCommand(output, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
40
|
+
};
|
|
41
|
+
return PutBucketOwnershipControlsCommand;
|
|
42
|
+
}($Command));
|
|
43
|
+
export { PutBucketOwnershipControlsCommand };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketPolicyRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketPolicyCommand, serializeAws_restXmlPutBucketPolicyCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketPolicyCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketPolicyCommand, _super);
|
|
10
|
+
function PutBucketPolicyCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketPolicyCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketPolicyCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketPolicyRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketPolicyCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketPolicyCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketPolicyCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketPolicyCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketPolicyCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketPolicyCommand };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketReplicationRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketReplicationCommand, serializeAws_restXmlPutBucketReplicationCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketReplicationCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketReplicationCommand, _super);
|
|
10
|
+
function PutBucketReplicationCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketReplicationCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketReplicationCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketReplicationRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketReplicationCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketReplicationCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketReplicationCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketReplicationCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketReplicationCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketReplicationCommand };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketRequestPaymentRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketRequestPaymentCommand, serializeAws_restXmlPutBucketRequestPaymentCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketRequestPaymentCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketRequestPaymentCommand, _super);
|
|
10
|
+
function PutBucketRequestPaymentCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketRequestPaymentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketRequestPaymentCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketRequestPaymentCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketRequestPaymentRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketRequestPaymentCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketRequestPaymentCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketRequestPaymentCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketRequestPaymentCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketRequestPaymentCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketRequestPaymentCommand };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketTaggingRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketTaggingCommand, serializeAws_restXmlPutBucketTaggingCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketTaggingCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketTaggingCommand, _super);
|
|
10
|
+
function PutBucketTaggingCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketTaggingCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketTaggingCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketTaggingRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketTaggingCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketTaggingCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketTaggingCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketTaggingCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketTaggingCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketTaggingCommand };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
2
3
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
3
4
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
5
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
6
|
import { PutBucketVersioningRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketVersioningCommand, serializeAws_restXmlPutBucketVersioningCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketVersioningCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketVersioningCommand, _super);
|
|
10
|
+
function PutBucketVersioningCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketVersioningCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
13
16
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
17
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
15
18
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -17,24 +20,28 @@ export class PutBucketVersioningCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: true,
|
|
19
22
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
logger,
|
|
26
|
-
clientName,
|
|
27
|
-
commandName,
|
|
23
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
var logger = configuration.logger;
|
|
25
|
+
var clientName = "S3Client";
|
|
26
|
+
var commandName = "PutBucketVersioningCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketVersioningRequestFilterSensitiveLog,
|
|
29
|
-
outputFilterSensitiveLog: (output)
|
|
32
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
30
33
|
};
|
|
31
|
-
|
|
32
|
-
return stack.resolve((request)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
var requestHandler = configuration.requestHandler;
|
|
35
|
+
return stack.resolve(function (request) {
|
|
36
|
+
return requestHandler.handle(request.request, options || {});
|
|
37
|
+
}, handlerExecutionContext);
|
|
38
|
+
};
|
|
39
|
+
PutBucketVersioningCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketVersioningCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketVersioningCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketVersioningCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketVersioningCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketVersioningCommand };
|