@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,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 { GetBucketEncryptionOutputFilterSensitiveLog, GetBucketEncryptionRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketEncryptionCommand, serializeAws_restXmlGetBucketEncryptionCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketEncryptionCommand = (function (_super) {
8
- __extends(GetBucketEncryptionCommand, _super);
9
- function GetBucketEncryptionCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketEncryptionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketEncryptionCommand.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 = "GetBucketEncryptionCommand";
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 = "GetBucketEncryptionCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketEncryptionRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketEncryptionOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketEncryptionCommand.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_restXmlGetBucketEncryptionCommand(input, context);
35
- };
36
- GetBucketEncryptionCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketEncryptionCommand(output, context);
38
- };
39
- return GetBucketEncryptionCommand;
40
- }($Command));
41
- export { GetBucketEncryptionCommand };
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 { GetBucketIntelligentTieringConfigurationOutputFilterSensitiveLog, GetBucketIntelligentTieringConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand, serializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketIntelligentTieringConfigurationCommand = (function (_super) {
8
- __extends(GetBucketIntelligentTieringConfigurationCommand, _super);
9
- function GetBucketIntelligentTieringConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketIntelligentTieringConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketIntelligentTieringConfigurationCommand.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 = "GetBucketIntelligentTieringConfigurationCommand";
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 = "GetBucketIntelligentTieringConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketIntelligentTieringConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketIntelligentTieringConfigurationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketIntelligentTieringConfigurationCommand.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_restXmlGetBucketIntelligentTieringConfigurationCommand(input, context);
35
- };
36
- GetBucketIntelligentTieringConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand(output, context);
38
- };
39
- return GetBucketIntelligentTieringConfigurationCommand;
40
- }($Command));
41
- export { GetBucketIntelligentTieringConfigurationCommand };
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 { GetBucketInventoryConfigurationOutputFilterSensitiveLog, GetBucketInventoryConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketInventoryConfigurationCommand, serializeAws_restXmlGetBucketInventoryConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketInventoryConfigurationCommand = (function (_super) {
8
- __extends(GetBucketInventoryConfigurationCommand, _super);
9
- function GetBucketInventoryConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketInventoryConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketInventoryConfigurationCommand.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 = "GetBucketInventoryConfigurationCommand";
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 = "GetBucketInventoryConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketInventoryConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketInventoryConfigurationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketInventoryConfigurationCommand.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_restXmlGetBucketInventoryConfigurationCommand(input, context);
35
- };
36
- GetBucketInventoryConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketInventoryConfigurationCommand(output, context);
38
- };
39
- return GetBucketInventoryConfigurationCommand;
40
- }($Command));
41
- export { GetBucketInventoryConfigurationCommand };
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 { GetBucketLifecycleConfigurationOutputFilterSensitiveLog, GetBucketLifecycleConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketLifecycleConfigurationCommand, serializeAws_restXmlGetBucketLifecycleConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketLifecycleConfigurationCommand = (function (_super) {
8
- __extends(GetBucketLifecycleConfigurationCommand, _super);
9
- function GetBucketLifecycleConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketLifecycleConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketLifecycleConfigurationCommand.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 = "GetBucketLifecycleConfigurationCommand";
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 = "GetBucketLifecycleConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketLifecycleConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketLifecycleConfigurationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketLifecycleConfigurationCommand.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_restXmlGetBucketLifecycleConfigurationCommand(input, context);
35
- };
36
- GetBucketLifecycleConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketLifecycleConfigurationCommand(output, context);
38
- };
39
- return GetBucketLifecycleConfigurationCommand;
40
- }($Command));
41
- export { GetBucketLifecycleConfigurationCommand };
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 { GetBucketLocationOutputFilterSensitiveLog, GetBucketLocationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketLocationCommand, serializeAws_restXmlGetBucketLocationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketLocationCommand = (function (_super) {
8
- __extends(GetBucketLocationCommand, _super);
9
- function GetBucketLocationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketLocationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketLocationCommand.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 = "GetBucketLocationCommand";
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 = "GetBucketLocationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketLocationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketLocationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketLocationCommand.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_restXmlGetBucketLocationCommand(input, context);
35
- };
36
- GetBucketLocationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketLocationCommand(output, context);
38
- };
39
- return GetBucketLocationCommand;
40
- }($Command));
41
- export { GetBucketLocationCommand };
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 { GetBucketLoggingOutputFilterSensitiveLog, GetBucketLoggingRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketLoggingCommand, serializeAws_restXmlGetBucketLoggingCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketLoggingCommand = (function (_super) {
8
- __extends(GetBucketLoggingCommand, _super);
9
- function GetBucketLoggingCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketLoggingCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketLoggingCommand.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 = "GetBucketLoggingCommand";
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 = "GetBucketLoggingCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketLoggingRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketLoggingOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketLoggingCommand.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_restXmlGetBucketLoggingCommand(input, context);
35
- };
36
- GetBucketLoggingCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketLoggingCommand(output, context);
38
- };
39
- return GetBucketLoggingCommand;
40
- }($Command));
41
- export { GetBucketLoggingCommand };
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 { GetBucketMetricsConfigurationOutputFilterSensitiveLog, GetBucketMetricsConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketMetricsConfigurationCommand, serializeAws_restXmlGetBucketMetricsConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketMetricsConfigurationCommand = (function (_super) {
8
- __extends(GetBucketMetricsConfigurationCommand, _super);
9
- function GetBucketMetricsConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketMetricsConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketMetricsConfigurationCommand.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 = "GetBucketMetricsConfigurationCommand";
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 = "GetBucketMetricsConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketMetricsConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketMetricsConfigurationOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketMetricsConfigurationCommand.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_restXmlGetBucketMetricsConfigurationCommand(input, context);
35
- };
36
- GetBucketMetricsConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketMetricsConfigurationCommand(output, context);
38
- };
39
- return GetBucketMetricsConfigurationCommand;
40
- }($Command));
41
- export { GetBucketMetricsConfigurationCommand };
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 { GetBucketNotificationConfigurationRequestFilterSensitiveLog, NotificationConfigurationFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketNotificationConfigurationCommand, serializeAws_restXmlGetBucketNotificationConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketNotificationConfigurationCommand = (function (_super) {
8
- __extends(GetBucketNotificationConfigurationCommand, _super);
9
- function GetBucketNotificationConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketNotificationConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketNotificationConfigurationCommand.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 = "GetBucketNotificationConfigurationCommand";
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 = "GetBucketNotificationConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketNotificationConfigurationRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: NotificationConfigurationFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketNotificationConfigurationCommand.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_restXmlGetBucketNotificationConfigurationCommand(input, context);
35
- };
36
- GetBucketNotificationConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketNotificationConfigurationCommand(output, context);
38
- };
39
- return GetBucketNotificationConfigurationCommand;
40
- }($Command));
41
- export { GetBucketNotificationConfigurationCommand };
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 { GetBucketOwnershipControlsOutputFilterSensitiveLog, GetBucketOwnershipControlsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlGetBucketOwnershipControlsCommand, serializeAws_restXmlGetBucketOwnershipControlsCommand, } from "../protocols/Aws_restXml";
7
- var GetBucketOwnershipControlsCommand = (function (_super) {
8
- __extends(GetBucketOwnershipControlsCommand, _super);
9
- function GetBucketOwnershipControlsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class GetBucketOwnershipControlsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- GetBucketOwnershipControlsCommand.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 = "GetBucketOwnershipControlsCommand";
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 = "GetBucketOwnershipControlsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: GetBucketOwnershipControlsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: GetBucketOwnershipControlsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- GetBucketOwnershipControlsCommand.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_restXmlGetBucketOwnershipControlsCommand(input, context);
35
- };
36
- GetBucketOwnershipControlsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlGetBucketOwnershipControlsCommand(output, context);
38
- };
39
- return GetBucketOwnershipControlsCommand;
40
- }($Command));
41
- export { GetBucketOwnershipControlsCommand };
33
+ }
34
+ }