@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 { PutBucketWebsiteRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutBucketWebsiteCommand, serializeAws_restXmlPutBucketWebsiteCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutBucketWebsiteCommand = (function (_super) {
|
|
9
|
+
__extends(PutBucketWebsiteCommand, _super);
|
|
10
|
+
function PutBucketWebsiteCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutBucketWebsiteCommand.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 PutBucketWebsiteCommand 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 = "PutBucketWebsiteCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutBucketWebsiteRequestFilterSensitiveLog,
|
|
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
|
+
PutBucketWebsiteCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutBucketWebsiteCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutBucketWebsiteCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutBucketWebsiteCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutBucketWebsiteCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutBucketWebsiteCommand };
|
|
@@ -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 { PutObjectAclOutputFilterSensitiveLog, PutObjectAclRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutObjectAclCommand, serializeAws_restXmlPutObjectAclCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutObjectAclCommand = (function (_super) {
|
|
9
|
+
__extends(PutObjectAclCommand, _super);
|
|
10
|
+
function PutObjectAclCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutObjectAclCommand.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 PutObjectAclCommand 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 = "PutObjectAclCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutObjectAclRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: PutObjectAclOutputFilterSensitiveLog,
|
|
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
|
+
PutObjectAclCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutObjectAclCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutObjectAclCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutObjectAclCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutObjectAclCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutObjectAclCommand };
|
|
@@ -1,3 +1,4 @@
|
|
|
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 { getCheckContentLengthHeaderPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
@@ -6,12 +7,14 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
|
|
|
6
7
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
7
8
|
import { PutObjectOutputFilterSensitiveLog, PutObjectRequestFilterSensitiveLog, } from "../models/models_0";
|
|
8
9
|
import { deserializeAws_restXmlPutObjectCommand, serializeAws_restXmlPutObjectCommand } from "../protocols/Aws_restXml";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var PutObjectCommand = (function (_super) {
|
|
11
|
+
__extends(PutObjectCommand, _super);
|
|
12
|
+
function PutObjectCommand(input) {
|
|
13
|
+
var _this = _super.call(this) || this;
|
|
14
|
+
_this.input = input;
|
|
15
|
+
return _this;
|
|
13
16
|
}
|
|
14
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
17
|
+
PutObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
15
18
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
19
|
this.middlewareStack.use(getCheckContentLengthHeaderPlugin(configuration));
|
|
17
20
|
this.middlewareStack.use(getSsecPlugin(configuration));
|
|
@@ -21,24 +24,28 @@ export class PutObjectCommand extends $Command {
|
|
|
21
24
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
22
25
|
requestChecksumRequired: false,
|
|
23
26
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
logger,
|
|
30
|
-
clientName,
|
|
31
|
-
commandName,
|
|
27
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
28
|
+
var logger = configuration.logger;
|
|
29
|
+
var clientName = "S3Client";
|
|
30
|
+
var commandName = "PutObjectCommand";
|
|
31
|
+
var handlerExecutionContext = {
|
|
32
|
+
logger: logger,
|
|
33
|
+
clientName: clientName,
|
|
34
|
+
commandName: commandName,
|
|
32
35
|
inputFilterSensitiveLog: PutObjectRequestFilterSensitiveLog,
|
|
33
36
|
outputFilterSensitiveLog: PutObjectOutputFilterSensitiveLog,
|
|
34
37
|
};
|
|
35
|
-
|
|
36
|
-
return stack.resolve((request)
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
var requestHandler = configuration.requestHandler;
|
|
39
|
+
return stack.resolve(function (request) {
|
|
40
|
+
return requestHandler.handle(request.request, options || {});
|
|
41
|
+
}, handlerExecutionContext);
|
|
42
|
+
};
|
|
43
|
+
PutObjectCommand.prototype.serialize = function (input, context) {
|
|
39
44
|
return serializeAws_restXmlPutObjectCommand(input, context);
|
|
40
|
-
}
|
|
41
|
-
deserialize(output, context) {
|
|
45
|
+
};
|
|
46
|
+
PutObjectCommand.prototype.deserialize = function (output, context) {
|
|
42
47
|
return deserializeAws_restXmlPutObjectCommand(output, context);
|
|
43
|
-
}
|
|
44
|
-
|
|
48
|
+
};
|
|
49
|
+
return PutObjectCommand;
|
|
50
|
+
}($Command));
|
|
51
|
+
export { PutObjectCommand };
|
|
@@ -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 { PutObjectLegalHoldOutputFilterSensitiveLog, PutObjectLegalHoldRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutObjectLegalHoldCommand, serializeAws_restXmlPutObjectLegalHoldCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutObjectLegalHoldCommand = (function (_super) {
|
|
9
|
+
__extends(PutObjectLegalHoldCommand, _super);
|
|
10
|
+
function PutObjectLegalHoldCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutObjectLegalHoldCommand.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 PutObjectLegalHoldCommand 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 = "PutObjectLegalHoldCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutObjectLegalHoldRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: PutObjectLegalHoldOutputFilterSensitiveLog,
|
|
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
|
+
PutObjectLegalHoldCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutObjectLegalHoldCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutObjectLegalHoldCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutObjectLegalHoldCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutObjectLegalHoldCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutObjectLegalHoldCommand };
|
|
@@ -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 { PutObjectLockConfigurationOutputFilterSensitiveLog, PutObjectLockConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
7
|
import { deserializeAws_restXmlPutObjectLockConfigurationCommand, serializeAws_restXmlPutObjectLockConfigurationCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutObjectLockConfigurationCommand = (function (_super) {
|
|
9
|
+
__extends(PutObjectLockConfigurationCommand, _super);
|
|
10
|
+
function PutObjectLockConfigurationCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutObjectLockConfigurationCommand.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 PutObjectLockConfigurationCommand 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 = "PutObjectLockConfigurationCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutObjectLockConfigurationRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: PutObjectLockConfigurationOutputFilterSensitiveLog,
|
|
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
|
+
PutObjectLockConfigurationCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutObjectLockConfigurationCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutObjectLockConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutObjectLockConfigurationCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutObjectLockConfigurationCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutObjectLockConfigurationCommand };
|
|
@@ -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 { PutObjectRetentionOutputFilterSensitiveLog, PutObjectRetentionRequestFilterSensitiveLog, } from "../models/models_1";
|
|
6
7
|
import { deserializeAws_restXmlPutObjectRetentionCommand, serializeAws_restXmlPutObjectRetentionCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutObjectRetentionCommand = (function (_super) {
|
|
9
|
+
__extends(PutObjectRetentionCommand, _super);
|
|
10
|
+
function PutObjectRetentionCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutObjectRetentionCommand.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 PutObjectRetentionCommand 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 = "PutObjectRetentionCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutObjectRetentionRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: PutObjectRetentionOutputFilterSensitiveLog,
|
|
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
|
+
PutObjectRetentionCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutObjectRetentionCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutObjectRetentionCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutObjectRetentionCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutObjectRetentionCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutObjectRetentionCommand };
|
|
@@ -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 { PutObjectTaggingOutputFilterSensitiveLog, PutObjectTaggingRequestFilterSensitiveLog, } from "../models/models_1";
|
|
6
7
|
import { deserializeAws_restXmlPutObjectTaggingCommand, serializeAws_restXmlPutObjectTaggingCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutObjectTaggingCommand = (function (_super) {
|
|
9
|
+
__extends(PutObjectTaggingCommand, _super);
|
|
10
|
+
function PutObjectTaggingCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutObjectTaggingCommand.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 PutObjectTaggingCommand 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 = "PutObjectTaggingCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutObjectTaggingRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: PutObjectTaggingOutputFilterSensitiveLog,
|
|
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
|
+
PutObjectTaggingCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutObjectTaggingCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutObjectTaggingCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutObjectTaggingCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutObjectTaggingCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutObjectTaggingCommand };
|
|
@@ -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 { PutPublicAccessBlockRequestFilterSensitiveLog } from "../models/models_1";
|
|
6
7
|
import { deserializeAws_restXmlPutPublicAccessBlockCommand, serializeAws_restXmlPutPublicAccessBlockCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var PutPublicAccessBlockCommand = (function (_super) {
|
|
9
|
+
__extends(PutPublicAccessBlockCommand, _super);
|
|
10
|
+
function PutPublicAccessBlockCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
PutPublicAccessBlockCommand.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 PutPublicAccessBlockCommand 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 = "PutPublicAccessBlockCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: PutPublicAccessBlockRequestFilterSensitiveLog,
|
|
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
|
+
PutPublicAccessBlockCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlPutPublicAccessBlockCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
PutPublicAccessBlockCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlPutPublicAccessBlockCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return PutPublicAccessBlockCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { PutPublicAccessBlockCommand };
|
|
@@ -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 { RestoreObjectOutputFilterSensitiveLog, RestoreObjectRequestFilterSensitiveLog, } from "../models/models_1";
|
|
6
7
|
import { deserializeAws_restXmlRestoreObjectCommand, serializeAws_restXmlRestoreObjectCommand, } from "../protocols/Aws_restXml";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var RestoreObjectCommand = (function (_super) {
|
|
9
|
+
__extends(RestoreObjectCommand, _super);
|
|
10
|
+
function RestoreObjectCommand(input) {
|
|
11
|
+
var _this = _super.call(this) || this;
|
|
12
|
+
_this.input = input;
|
|
13
|
+
return _this;
|
|
11
14
|
}
|
|
12
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
RestoreObjectCommand.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 RestoreObjectCommand extends $Command {
|
|
|
17
20
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
18
21
|
requestChecksumRequired: false,
|
|
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 = "RestoreObjectCommand";
|
|
27
|
+
var handlerExecutionContext = {
|
|
28
|
+
logger: logger,
|
|
29
|
+
clientName: clientName,
|
|
30
|
+
commandName: commandName,
|
|
28
31
|
inputFilterSensitiveLog: RestoreObjectRequestFilterSensitiveLog,
|
|
29
32
|
outputFilterSensitiveLog: RestoreObjectOutputFilterSensitiveLog,
|
|
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
|
+
RestoreObjectCommand.prototype.serialize = function (input, context) {
|
|
35
40
|
return serializeAws_restXmlRestoreObjectCommand(input, context);
|
|
36
|
-
}
|
|
37
|
-
deserialize(output, context) {
|
|
41
|
+
};
|
|
42
|
+
RestoreObjectCommand.prototype.deserialize = function (output, context) {
|
|
38
43
|
return deserializeAws_restXmlRestoreObjectCommand(output, context);
|
|
39
|
-
}
|
|
40
|
-
|
|
44
|
+
};
|
|
45
|
+
return RestoreObjectCommand;
|
|
46
|
+
}($Command));
|
|
47
|
+
export { RestoreObjectCommand };
|