@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.
Files changed (112) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/S3.js +374 -381
  3. package/dist-es/S3Client.js +26 -32
  4. package/dist-es/commands/AbortMultipartUploadCommand.js +21 -28
  5. package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
  6. package/dist-es/commands/CopyObjectCommand.js +21 -28
  7. package/dist-es/commands/CreateBucketCommand.js +21 -28
  8. package/dist-es/commands/CreateMultipartUploadCommand.js +21 -28
  9. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +22 -29
  10. package/dist-es/commands/DeleteBucketCommand.js +22 -29
  11. package/dist-es/commands/DeleteBucketCorsCommand.js +22 -29
  12. package/dist-es/commands/DeleteBucketEncryptionCommand.js +22 -29
  13. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +22 -29
  14. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +22 -29
  15. package/dist-es/commands/DeleteBucketLifecycleCommand.js +22 -29
  16. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +22 -29
  17. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +22 -29
  18. package/dist-es/commands/DeleteBucketPolicyCommand.js +22 -29
  19. package/dist-es/commands/DeleteBucketReplicationCommand.js +22 -29
  20. package/dist-es/commands/DeleteBucketTaggingCommand.js +22 -29
  21. package/dist-es/commands/DeleteBucketWebsiteCommand.js +22 -29
  22. package/dist-es/commands/DeleteObjectCommand.js +21 -28
  23. package/dist-es/commands/DeleteObjectTaggingCommand.js +21 -28
  24. package/dist-es/commands/DeleteObjectsCommand.js +21 -28
  25. package/dist-es/commands/DeletePublicAccessBlockCommand.js +22 -29
  26. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +21 -28
  27. package/dist-es/commands/GetBucketAclCommand.js +21 -28
  28. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +21 -28
  29. package/dist-es/commands/GetBucketCorsCommand.js +21 -28
  30. package/dist-es/commands/GetBucketEncryptionCommand.js +21 -28
  31. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +21 -28
  32. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +21 -28
  33. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +21 -28
  34. package/dist-es/commands/GetBucketLocationCommand.js +21 -28
  35. package/dist-es/commands/GetBucketLoggingCommand.js +21 -28
  36. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +21 -28
  37. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +21 -28
  38. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +21 -28
  39. package/dist-es/commands/GetBucketPolicyCommand.js +21 -28
  40. package/dist-es/commands/GetBucketPolicyStatusCommand.js +21 -28
  41. package/dist-es/commands/GetBucketReplicationCommand.js +21 -28
  42. package/dist-es/commands/GetBucketRequestPaymentCommand.js +21 -28
  43. package/dist-es/commands/GetBucketTaggingCommand.js +21 -28
  44. package/dist-es/commands/GetBucketVersioningCommand.js +21 -28
  45. package/dist-es/commands/GetBucketWebsiteCommand.js +21 -28
  46. package/dist-es/commands/GetObjectAclCommand.js +21 -28
  47. package/dist-es/commands/GetObjectAttributesCommand.js +21 -28
  48. package/dist-es/commands/GetObjectCommand.js +21 -28
  49. package/dist-es/commands/GetObjectLegalHoldCommand.js +21 -28
  50. package/dist-es/commands/GetObjectLockConfigurationCommand.js +21 -28
  51. package/dist-es/commands/GetObjectRetentionCommand.js +21 -28
  52. package/dist-es/commands/GetObjectTaggingCommand.js +21 -28
  53. package/dist-es/commands/GetObjectTorrentCommand.js +21 -28
  54. package/dist-es/commands/GetPublicAccessBlockCommand.js +21 -28
  55. package/dist-es/commands/HeadBucketCommand.js +22 -29
  56. package/dist-es/commands/HeadObjectCommand.js +21 -28
  57. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +21 -28
  58. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +21 -28
  59. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +21 -28
  60. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +21 -28
  61. package/dist-es/commands/ListBucketsCommand.js +22 -29
  62. package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
  63. package/dist-es/commands/ListObjectVersionsCommand.js +21 -28
  64. package/dist-es/commands/ListObjectsCommand.js +21 -28
  65. package/dist-es/commands/ListObjectsV2Command.js +21 -28
  66. package/dist-es/commands/ListPartsCommand.js +21 -28
  67. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -29
  68. package/dist-es/commands/PutBucketAclCommand.js +22 -29
  69. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +22 -29
  70. package/dist-es/commands/PutBucketCorsCommand.js +22 -29
  71. package/dist-es/commands/PutBucketEncryptionCommand.js +22 -29
  72. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +22 -29
  73. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +22 -29
  74. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -29
  75. package/dist-es/commands/PutBucketLoggingCommand.js +22 -29
  76. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +22 -29
  77. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +22 -29
  78. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +22 -29
  79. package/dist-es/commands/PutBucketPolicyCommand.js +22 -29
  80. package/dist-es/commands/PutBucketReplicationCommand.js +22 -29
  81. package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -29
  82. package/dist-es/commands/PutBucketTaggingCommand.js +22 -29
  83. package/dist-es/commands/PutBucketVersioningCommand.js +22 -29
  84. package/dist-es/commands/PutBucketWebsiteCommand.js +22 -29
  85. package/dist-es/commands/PutObjectAclCommand.js +21 -28
  86. package/dist-es/commands/PutObjectCommand.js +21 -28
  87. package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -28
  88. package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -28
  89. package/dist-es/commands/PutObjectRetentionCommand.js +21 -28
  90. package/dist-es/commands/PutObjectTaggingCommand.js +21 -28
  91. package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -29
  92. package/dist-es/commands/RestoreObjectCommand.js +21 -28
  93. package/dist-es/commands/SelectObjectContentCommand.js +21 -28
  94. package/dist-es/commands/UploadPartCommand.js +21 -28
  95. package/dist-es/commands/UploadPartCopyCommand.js +21 -28
  96. package/dist-es/commands/WriteGetObjectResponseCommand.js +22 -29
  97. package/dist-es/endpoints.js +8 -8
  98. package/dist-es/models/S3ServiceException.js +5 -10
  99. package/dist-es/models/models_0.js +896 -378
  100. package/dist-es/models/models_1.js +141 -54
  101. package/dist-es/pagination/ListObjectsV2Paginator.js +25 -68
  102. package/dist-es/pagination/ListPartsPaginator.js +25 -68
  103. package/dist-es/protocols/Aws_restXml.js +6891 -9022
  104. package/dist-es/runtimeConfig.browser.js +31 -12
  105. package/dist-es/runtimeConfig.js +36 -12
  106. package/dist-es/runtimeConfig.native.js +8 -5
  107. package/dist-es/runtimeConfig.shared.js +11 -14
  108. package/dist-es/waiters/waitForBucketExists.js +23 -42
  109. package/dist-es/waiters/waitForBucketNotExists.js +22 -42
  110. package/dist-es/waiters/waitForObjectExists.js +23 -42
  111. package/dist-es/waiters/waitForObjectNotExists.js +22 -42
  112. package/package.json +50 -50
@@ -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 { getSerdePlugin } from "@aws-sdk/middleware-serde";
@@ -6,14 +5,12 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
7
6
  import { GetObjectOutputFilterSensitiveLog, GetObjectRequestFilterSensitiveLog, } from "../models/models_0";
8
7
  import { deserializeAws_restXmlGetObjectCommand, serializeAws_restXmlGetObjectCommand } from "../protocols/Aws_restXml";
9
- var GetObjectCommand = (function (_super) {
10
- __extends(GetObjectCommand, _super);
11
- function GetObjectCommand(input) {
12
- var _this = _super.call(this) || this;
13
- _this.input = input;
14
- return _this;
8
+ export class GetObjectCommand extends $Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
15
12
  }
16
- GetObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
13
+ resolveMiddleware(clientStack, configuration, options) {
17
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
18
15
  this.middlewareStack.use(getSsecPlugin(configuration));
19
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
@@ -23,28 +20,24 @@ var GetObjectCommand = (function (_super) {
23
20
  requestValidationModeMember: "ChecksumMode",
24
21
  responseAlgorithms: ["CRC32", "CRC32C", "SHA256", "SHA1"],
25
22
  }));
26
- var stack = clientStack.concat(this.middlewareStack);
27
- var logger = configuration.logger;
28
- var clientName = "S3Client";
29
- var commandName = "GetObjectCommand";
30
- var handlerExecutionContext = {
31
- logger: logger,
32
- clientName: clientName,
33
- commandName: commandName,
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "S3Client";
26
+ const commandName = "GetObjectCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
34
31
  inputFilterSensitiveLog: GetObjectRequestFilterSensitiveLog,
35
32
  outputFilterSensitiveLog: GetObjectOutputFilterSensitiveLog,
36
33
  };
37
- var requestHandler = configuration.requestHandler;
38
- return stack.resolve(function (request) {
39
- return requestHandler.handle(request.request, options || {});
40
- }, handlerExecutionContext);
41
- };
42
- GetObjectCommand.prototype.serialize = function (input, context) {
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
43
38
  return serializeAws_restXmlGetObjectCommand(input, context);
44
- };
45
- GetObjectCommand.prototype.deserialize = function (output, context) {
39
+ }
40
+ deserialize(output, context) {
46
41
  return deserializeAws_restXmlGetObjectCommand(output, context);
47
- };
48
- return GetObjectCommand;
49
- }($Command));
50
- export { GetObjectCommand };
42
+ }
43
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetObjectLegalHoldOutputFilterSensitiveLog, GetObjectLegalHoldRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetObjectLegalHoldCommand, serializeAws_restXmlGetObjectLegalHoldCommand, } from "../protocols/Aws_restXml";
7
- var GetObjectLegalHoldCommand = (function (_super) {
8
- __extends(GetObjectLegalHoldCommand, _super);
9
- function GetObjectLegalHoldCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetObjectLegalHoldCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetObjectLegalHoldCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetObjectLegalHoldCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetObjectLegalHoldCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetObjectLegalHoldRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetObjectLegalHoldOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetObjectLegalHoldCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetObjectLegalHoldCommand(input, context);
35
- };
36
- GetObjectLegalHoldCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetObjectLegalHoldCommand(output, context);
38
- };
39
- return GetObjectLegalHoldCommand;
40
- }($Command));
41
- export { GetObjectLegalHoldCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetObjectLockConfigurationOutputFilterSensitiveLog, GetObjectLockConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetObjectLockConfigurationCommand, serializeAws_restXmlGetObjectLockConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetObjectLockConfigurationCommand = (function (_super) {
8
- __extends(GetObjectLockConfigurationCommand, _super);
9
- function GetObjectLockConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetObjectLockConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetObjectLockConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetObjectLockConfigurationCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetObjectLockConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetObjectLockConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetObjectLockConfigurationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetObjectLockConfigurationCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetObjectLockConfigurationCommand(input, context);
35
- };
36
- GetObjectLockConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetObjectLockConfigurationCommand(output, context);
38
- };
39
- return GetObjectLockConfigurationCommand;
40
- }($Command));
41
- export { GetObjectLockConfigurationCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetObjectRetentionOutputFilterSensitiveLog, GetObjectRetentionRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetObjectRetentionCommand, serializeAws_restXmlGetObjectRetentionCommand, } from "../protocols/Aws_restXml";
7
- var GetObjectRetentionCommand = (function (_super) {
8
- __extends(GetObjectRetentionCommand, _super);
9
- function GetObjectRetentionCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetObjectRetentionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetObjectRetentionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetObjectRetentionCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetObjectRetentionCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetObjectRetentionRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetObjectRetentionOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetObjectRetentionCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetObjectRetentionCommand(input, context);
35
- };
36
- GetObjectRetentionCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetObjectRetentionCommand(output, context);
38
- };
39
- return GetObjectRetentionCommand;
40
- }($Command));
41
- export { GetObjectRetentionCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetObjectTaggingOutputFilterSensitiveLog, GetObjectTaggingRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetObjectTaggingCommand, serializeAws_restXmlGetObjectTaggingCommand, } from "../protocols/Aws_restXml";
7
- var GetObjectTaggingCommand = (function (_super) {
8
- __extends(GetObjectTaggingCommand, _super);
9
- function GetObjectTaggingCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetObjectTaggingCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetObjectTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetObjectTaggingCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetObjectTaggingCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetObjectTaggingRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetObjectTaggingOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetObjectTaggingCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetObjectTaggingCommand(input, context);
35
- };
36
- GetObjectTaggingCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetObjectTaggingCommand(output, context);
38
- };
39
- return GetObjectTaggingCommand;
40
- }($Command));
41
- export { GetObjectTaggingCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetObjectTorrentOutputFilterSensitiveLog, GetObjectTorrentRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetObjectTorrentCommand, serializeAws_restXmlGetObjectTorrentCommand, } from "../protocols/Aws_restXml";
7
- var GetObjectTorrentCommand = (function (_super) {
8
- __extends(GetObjectTorrentCommand, _super);
9
- function GetObjectTorrentCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetObjectTorrentCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetObjectTorrentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetObjectTorrentCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetObjectTorrentCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetObjectTorrentRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetObjectTorrentOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetObjectTorrentCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetObjectTorrentCommand(input, context);
35
- };
36
- GetObjectTorrentCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetObjectTorrentCommand(output, context);
38
- };
39
- return GetObjectTorrentCommand;
40
- }($Command));
41
- export { GetObjectTorrentCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { GetPublicAccessBlockOutputFilterSensitiveLog, GetPublicAccessBlockRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetPublicAccessBlockCommand, serializeAws_restXmlGetPublicAccessBlockCommand, } from "../protocols/Aws_restXml";
7
- var GetPublicAccessBlockCommand = (function (_super) {
8
- __extends(GetPublicAccessBlockCommand, _super);
9
- function GetPublicAccessBlockCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetPublicAccessBlockCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetPublicAccessBlockCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "GetPublicAccessBlockCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "GetPublicAccessBlockCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetPublicAccessBlockRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetPublicAccessBlockOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetPublicAccessBlockCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlGetPublicAccessBlockCommand(input, context);
35
- };
36
- GetPublicAccessBlockCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetPublicAccessBlockCommand(output, context);
38
- };
39
- return GetPublicAccessBlockCommand;
40
- }($Command));
41
- export { GetPublicAccessBlockCommand };
33
+ }
34
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { HeadBucketRequestFilterSensitiveLog } from "../models/models_0";
6
5
  import { deserializeAws_restXmlHeadBucketCommand, serializeAws_restXmlHeadBucketCommand, } from "../protocols/Aws_restXml";
7
- var HeadBucketCommand = (function (_super) {
8
- __extends(HeadBucketCommand, _super);
9
- function HeadBucketCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class HeadBucketCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- HeadBucketCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
+ resolveMiddleware(clientStack, configuration, options) {
15
12
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
13
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "HeadBucketCommand";
21
- var handlerExecutionContext = {
22
- logger: logger,
23
- clientName: clientName,
24
- commandName: commandName,
14
+ const stack = clientStack.concat(this.middlewareStack);
15
+ const { logger } = configuration;
16
+ const clientName = "S3Client";
17
+ const commandName = "HeadBucketCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: HeadBucketRequestFilterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
23
+ outputFilterSensitiveLog: (output) => output,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- HeadBucketCommand.prototype.serialize = function (input, context) {
25
+ const { requestHandler } = configuration;
26
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
+ }
28
+ serialize(input, context) {
34
29
  return serializeAws_restXmlHeadBucketCommand(input, context);
35
- };
36
- HeadBucketCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlHeadBucketCommand(output, context);
38
- };
39
- return HeadBucketCommand;
40
- }($Command));
41
- export { HeadBucketCommand };
33
+ }
34
+ }
@@ -1,43 +1,36 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
5
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
5
  import { HeadObjectOutputFilterSensitiveLog, HeadObjectRequestFilterSensitiveLog, } from "../models/models_0";
7
6
  import { deserializeAws_restXmlHeadObjectCommand, serializeAws_restXmlHeadObjectCommand, } from "../protocols/Aws_restXml";
8
- var HeadObjectCommand = (function (_super) {
9
- __extends(HeadObjectCommand, _super);
10
- function HeadObjectCommand(input) {
11
- var _this = _super.call(this) || this;
12
- _this.input = input;
13
- return _this;
7
+ export class HeadObjectCommand extends $Command {
8
+ constructor(input) {
9
+ super();
10
+ this.input = input;
14
11
  }
15
- HeadObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
+ resolveMiddleware(clientStack, configuration, options) {
16
13
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
14
  this.middlewareStack.use(getSsecPlugin(configuration));
18
15
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
19
- var stack = clientStack.concat(this.middlewareStack);
20
- var logger = configuration.logger;
21
- var clientName = "S3Client";
22
- var commandName = "HeadObjectCommand";
23
- var handlerExecutionContext = {
24
- logger: logger,
25
- clientName: clientName,
26
- commandName: commandName,
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "S3Client";
19
+ const commandName = "HeadObjectCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
27
24
  inputFilterSensitiveLog: HeadObjectRequestFilterSensitiveLog,
28
25
  outputFilterSensitiveLog: HeadObjectOutputFilterSensitiveLog,
29
26
  };
30
- var requestHandler = configuration.requestHandler;
31
- return stack.resolve(function (request) {
32
- return requestHandler.handle(request.request, options || {});
33
- }, handlerExecutionContext);
34
- };
35
- HeadObjectCommand.prototype.serialize = function (input, context) {
27
+ const { requestHandler } = configuration;
28
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
29
+ }
30
+ serialize(input, context) {
36
31
  return serializeAws_restXmlHeadObjectCommand(input, context);
37
- };
38
- HeadObjectCommand.prototype.deserialize = function (output, context) {
32
+ }
33
+ deserialize(output, context) {
39
34
  return deserializeAws_restXmlHeadObjectCommand(output, context);
40
- };
41
- return HeadObjectCommand;
42
- }($Command));
43
- export { HeadObjectCommand };
35
+ }
36
+ }