@aws-sdk/client-s3 3.181.0 → 3.183.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 +8 -0
- package/dist-es/S3.js +374 -381
- package/dist-es/S3Client.js +26 -32
- package/dist-es/commands/AbortMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CopyObjectCommand.js +21 -28
- package/dist-es/commands/CreateBucketCommand.js +21 -28
- package/dist-es/commands/CreateMultipartUploadCommand.js +21 -28
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketCommand.js +22 -29
- package/dist-es/commands/DeleteBucketCorsCommand.js +22 -29
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +22 -29
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +22 -29
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +22 -29
- package/dist-es/commands/DeleteBucketPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteBucketReplicationCommand.js +22 -29
- package/dist-es/commands/DeleteBucketTaggingCommand.js +22 -29
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +22 -29
- package/dist-es/commands/DeleteObjectCommand.js +21 -28
- package/dist-es/commands/DeleteObjectTaggingCommand.js +21 -28
- package/dist-es/commands/DeleteObjectsCommand.js +21 -28
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +22 -29
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketAclCommand.js +21 -28
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketCorsCommand.js +21 -28
- package/dist-es/commands/GetBucketEncryptionCommand.js +21 -28
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketLocationCommand.js +21 -28
- package/dist-es/commands/GetBucketLoggingCommand.js +21 -28
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +21 -28
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +21 -28
- package/dist-es/commands/GetBucketPolicyCommand.js +21 -28
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +21 -28
- package/dist-es/commands/GetBucketReplicationCommand.js +21 -28
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +21 -28
- package/dist-es/commands/GetBucketTaggingCommand.js +21 -28
- package/dist-es/commands/GetBucketVersioningCommand.js +21 -28
- package/dist-es/commands/GetBucketWebsiteCommand.js +21 -28
- package/dist-es/commands/GetObjectAclCommand.js +21 -28
- package/dist-es/commands/GetObjectAttributesCommand.js +21 -28
- package/dist-es/commands/GetObjectCommand.js +21 -28
- package/dist-es/commands/GetObjectLegalHoldCommand.js +21 -28
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +21 -28
- package/dist-es/commands/GetObjectRetentionCommand.js +21 -28
- package/dist-es/commands/GetObjectTaggingCommand.js +21 -28
- package/dist-es/commands/GetObjectTorrentCommand.js +21 -28
- package/dist-es/commands/GetPublicAccessBlockCommand.js +21 -28
- package/dist-es/commands/HeadBucketCommand.js +22 -29
- package/dist-es/commands/HeadObjectCommand.js +21 -28
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListBucketsCommand.js +22 -29
- package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
- package/dist-es/commands/ListObjectVersionsCommand.js +21 -28
- package/dist-es/commands/ListObjectsCommand.js +21 -28
- package/dist-es/commands/ListObjectsV2Command.js +21 -28
- package/dist-es/commands/ListPartsCommand.js +21 -28
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketAclCommand.js +22 -29
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketCorsCommand.js +22 -29
- package/dist-es/commands/PutBucketEncryptionCommand.js +22 -29
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketLoggingCommand.js +22 -29
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +22 -29
- package/dist-es/commands/PutBucketPolicyCommand.js +22 -29
- package/dist-es/commands/PutBucketReplicationCommand.js +22 -29
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -29
- package/dist-es/commands/PutBucketTaggingCommand.js +22 -29
- package/dist-es/commands/PutBucketVersioningCommand.js +22 -29
- package/dist-es/commands/PutBucketWebsiteCommand.js +22 -29
- package/dist-es/commands/PutObjectAclCommand.js +21 -28
- package/dist-es/commands/PutObjectCommand.js +21 -28
- package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -28
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -28
- package/dist-es/commands/PutObjectRetentionCommand.js +21 -28
- package/dist-es/commands/PutObjectTaggingCommand.js +21 -28
- package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -29
- package/dist-es/commands/RestoreObjectCommand.js +21 -28
- package/dist-es/commands/SelectObjectContentCommand.js +21 -28
- package/dist-es/commands/UploadPartCommand.js +21 -28
- package/dist-es/commands/UploadPartCopyCommand.js +21 -28
- package/dist-es/commands/WriteGetObjectResponseCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/S3ServiceException.js +5 -10
- package/dist-es/models/models_0.js +896 -378
- package/dist-es/models/models_1.js +141 -54
- package/dist-es/pagination/ListObjectsV2Paginator.js +25 -68
- package/dist-es/pagination/ListPartsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restXml.js +6891 -9022
- package/dist-es/runtimeConfig.browser.js +31 -12
- package/dist-es/runtimeConfig.js +36 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +11 -14
- package/dist-es/waiters/waitForBucketExists.js +23 -42
- package/dist-es/waiters/waitForBucketNotExists.js +22 -42
- package/dist-es/waiters/waitForObjectExists.js +23 -42
- package/dist-es/waiters/waitForObjectNotExists.js +22 -42
- package/package.json +50 -50
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutBucketWebsiteRequestFilterSensitiveLog } from "../models/models_0";
|
|
7
6
|
import { deserializeAws_restXmlPutBucketWebsiteCommand, serializeAws_restXmlPutBucketWebsiteCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutBucketWebsiteCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutBucketWebsiteCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutBucketWebsiteCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutBucketWebsiteRequestFilterSensitiveLog,
|
|
32
|
-
outputFilterSensitiveLog:
|
|
29
|
+
outputFilterSensitiveLog: (output) => output,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutBucketWebsiteCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutBucketWebsiteCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutBucketWebsiteCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutBucketWebsiteCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutObjectAclOutputFilterSensitiveLog, PutObjectAclRequestFilterSensitiveLog, } from "../models/models_0";
|
|
7
6
|
import { deserializeAws_restXmlPutObjectAclCommand, serializeAws_restXmlPutObjectAclCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutObjectAclCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutObjectAclCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutObjectAclCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutObjectAclRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: PutObjectAclOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutObjectAclCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutObjectAclCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutObjectAclCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutObjectAclCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getCheckContentLengthHeaderPlugin } from "@aws-sdk/middleware-sdk-s3";
|
|
@@ -7,14 +6,12 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
|
|
|
7
6
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
8
7
|
import { PutObjectOutputFilterSensitiveLog, PutObjectRequestFilterSensitiveLog, } from "../models/models_0";
|
|
9
8
|
import { deserializeAws_restXmlPutObjectCommand, serializeAws_restXmlPutObjectCommand } from "../protocols/Aws_restXml";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_this.input = input;
|
|
15
|
-
return _this;
|
|
9
|
+
export class PutObjectCommand extends $Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
18
15
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
19
16
|
this.middlewareStack.use(getCheckContentLengthHeaderPlugin(configuration));
|
|
20
17
|
this.middlewareStack.use(getSsecPlugin(configuration));
|
|
@@ -24,28 +21,24 @@ var PutObjectCommand = (function (_super) {
|
|
|
24
21
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
25
22
|
requestChecksumRequired: false,
|
|
26
23
|
}));
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
logger
|
|
33
|
-
clientName
|
|
34
|
-
commandName
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "S3Client";
|
|
27
|
+
const commandName = "PutObjectCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
35
32
|
inputFilterSensitiveLog: PutObjectRequestFilterSensitiveLog,
|
|
36
33
|
outputFilterSensitiveLog: PutObjectOutputFilterSensitiveLog,
|
|
37
34
|
};
|
|
38
|
-
|
|
39
|
-
return stack.resolve(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
PutObjectCommand.prototype.serialize = function (input, context) {
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
44
39
|
return serializeAws_restXmlPutObjectCommand(input, context);
|
|
45
|
-
}
|
|
46
|
-
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
47
42
|
return deserializeAws_restXmlPutObjectCommand(output, context);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}($Command));
|
|
51
|
-
export { PutObjectCommand };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutObjectLegalHoldOutputFilterSensitiveLog, PutObjectLegalHoldRequestFilterSensitiveLog, } from "../models/models_0";
|
|
7
6
|
import { deserializeAws_restXmlPutObjectLegalHoldCommand, serializeAws_restXmlPutObjectLegalHoldCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutObjectLegalHoldCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutObjectLegalHoldCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutObjectLegalHoldCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutObjectLegalHoldRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: PutObjectLegalHoldOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutObjectLegalHoldCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutObjectLegalHoldCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutObjectLegalHoldCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutObjectLegalHoldCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutObjectLockConfigurationOutputFilterSensitiveLog, PutObjectLockConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
|
|
7
6
|
import { deserializeAws_restXmlPutObjectLockConfigurationCommand, serializeAws_restXmlPutObjectLockConfigurationCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutObjectLockConfigurationCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutObjectLockConfigurationCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutObjectLockConfigurationCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutObjectLockConfigurationRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: PutObjectLockConfigurationOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutObjectLockConfigurationCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutObjectLockConfigurationCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutObjectLockConfigurationCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutObjectLockConfigurationCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutObjectRetentionOutputFilterSensitiveLog, PutObjectRetentionRequestFilterSensitiveLog, } from "../models/models_1";
|
|
7
6
|
import { deserializeAws_restXmlPutObjectRetentionCommand, serializeAws_restXmlPutObjectRetentionCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutObjectRetentionCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutObjectRetentionCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutObjectRetentionCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutObjectRetentionRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: PutObjectRetentionOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutObjectRetentionCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutObjectRetentionCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutObjectRetentionCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutObjectRetentionCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutObjectTaggingOutputFilterSensitiveLog, PutObjectTaggingRequestFilterSensitiveLog, } from "../models/models_1";
|
|
7
6
|
import { deserializeAws_restXmlPutObjectTaggingCommand, serializeAws_restXmlPutObjectTaggingCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutObjectTaggingCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutObjectTaggingCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutObjectTaggingCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutObjectTaggingRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: PutObjectTaggingOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutObjectTaggingCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutObjectTaggingCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutObjectTaggingCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutObjectTaggingCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { PutPublicAccessBlockRequestFilterSensitiveLog } from "../models/models_1";
|
|
7
6
|
import { deserializeAws_restXmlPutPublicAccessBlockCommand, serializeAws_restXmlPutPublicAccessBlockCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class PutPublicAccessBlockCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var PutPublicAccessBlockCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: true,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "PutPublicAccessBlockCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: PutPublicAccessBlockRequestFilterSensitiveLog,
|
|
32
|
-
outputFilterSensitiveLog:
|
|
29
|
+
outputFilterSensitiveLog: (output) => output,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
PutPublicAccessBlockCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlPutPublicAccessBlockCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlPutPublicAccessBlockCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { PutPublicAccessBlockCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
|
|
3
2
|
import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
|
|
4
3
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
4
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
5
|
import { RestoreObjectOutputFilterSensitiveLog, RestoreObjectRequestFilterSensitiveLog, } from "../models/models_1";
|
|
7
6
|
import { deserializeAws_restXmlRestoreObjectCommand, serializeAws_restXmlRestoreObjectCommand, } from "../protocols/Aws_restXml";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
_this.input = input;
|
|
13
|
-
return _this;
|
|
7
|
+
export class RestoreObjectCommand extends $Command {
|
|
8
|
+
constructor(input) {
|
|
9
|
+
super();
|
|
10
|
+
this.input = input;
|
|
14
11
|
}
|
|
15
|
-
|
|
12
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
16
13
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
17
14
|
this.middlewareStack.use(getBucketEndpointPlugin(configuration));
|
|
18
15
|
this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
|
|
@@ -20,28 +17,24 @@ var RestoreObjectCommand = (function (_super) {
|
|
|
20
17
|
requestAlgorithmMember: "ChecksumAlgorithm",
|
|
21
18
|
requestChecksumRequired: false,
|
|
22
19
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
logger
|
|
29
|
-
clientName
|
|
30
|
-
commandName
|
|
20
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
21
|
+
const { logger } = configuration;
|
|
22
|
+
const clientName = "S3Client";
|
|
23
|
+
const commandName = "RestoreObjectCommand";
|
|
24
|
+
const handlerExecutionContext = {
|
|
25
|
+
logger,
|
|
26
|
+
clientName,
|
|
27
|
+
commandName,
|
|
31
28
|
inputFilterSensitiveLog: RestoreObjectRequestFilterSensitiveLog,
|
|
32
29
|
outputFilterSensitiveLog: RestoreObjectOutputFilterSensitiveLog,
|
|
33
30
|
};
|
|
34
|
-
|
|
35
|
-
return stack.resolve(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
RestoreObjectCommand.prototype.serialize = function (input, context) {
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
40
35
|
return serializeAws_restXmlRestoreObjectCommand(input, context);
|
|
41
|
-
}
|
|
42
|
-
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
43
38
|
return deserializeAws_restXmlRestoreObjectCommand(output, context);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
}($Command));
|
|
47
|
-
export { RestoreObjectCommand };
|
|
39
|
+
}
|
|
40
|
+
}
|