@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 { ListBucketAnalyticsConfigurationsOutputFilterSensitiveLog, ListBucketAnalyticsConfigurationsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand, serializeAws_restXmlListBucketAnalyticsConfigurationsCommand, } from "../protocols/Aws_restXml";
7
- var ListBucketAnalyticsConfigurationsCommand = (function (_super) {
8
- __extends(ListBucketAnalyticsConfigurationsCommand, _super);
9
- function ListBucketAnalyticsConfigurationsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListBucketAnalyticsConfigurationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListBucketAnalyticsConfigurationsCommand.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 = "ListBucketAnalyticsConfigurationsCommand";
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 = "ListBucketAnalyticsConfigurationsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListBucketAnalyticsConfigurationsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListBucketAnalyticsConfigurationsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListBucketAnalyticsConfigurationsCommand.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_restXmlListBucketAnalyticsConfigurationsCommand(input, context);
35
- };
36
- ListBucketAnalyticsConfigurationsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand(output, context);
38
- };
39
- return ListBucketAnalyticsConfigurationsCommand;
40
- }($Command));
41
- export { ListBucketAnalyticsConfigurationsCommand };
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 { ListBucketIntelligentTieringConfigurationsOutputFilterSensitiveLog, ListBucketIntelligentTieringConfigurationsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand, serializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand, } from "../protocols/Aws_restXml";
7
- var ListBucketIntelligentTieringConfigurationsCommand = (function (_super) {
8
- __extends(ListBucketIntelligentTieringConfigurationsCommand, _super);
9
- function ListBucketIntelligentTieringConfigurationsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListBucketIntelligentTieringConfigurationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListBucketIntelligentTieringConfigurationsCommand.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 = "ListBucketIntelligentTieringConfigurationsCommand";
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 = "ListBucketIntelligentTieringConfigurationsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListBucketIntelligentTieringConfigurationsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListBucketIntelligentTieringConfigurationsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListBucketIntelligentTieringConfigurationsCommand.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_restXmlListBucketIntelligentTieringConfigurationsCommand(input, context);
35
- };
36
- ListBucketIntelligentTieringConfigurationsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand(output, context);
38
- };
39
- return ListBucketIntelligentTieringConfigurationsCommand;
40
- }($Command));
41
- export { ListBucketIntelligentTieringConfigurationsCommand };
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 { ListBucketInventoryConfigurationsOutputFilterSensitiveLog, ListBucketInventoryConfigurationsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListBucketInventoryConfigurationsCommand, serializeAws_restXmlListBucketInventoryConfigurationsCommand, } from "../protocols/Aws_restXml";
7
- var ListBucketInventoryConfigurationsCommand = (function (_super) {
8
- __extends(ListBucketInventoryConfigurationsCommand, _super);
9
- function ListBucketInventoryConfigurationsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListBucketInventoryConfigurationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListBucketInventoryConfigurationsCommand.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 = "ListBucketInventoryConfigurationsCommand";
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 = "ListBucketInventoryConfigurationsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListBucketInventoryConfigurationsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListBucketInventoryConfigurationsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListBucketInventoryConfigurationsCommand.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_restXmlListBucketInventoryConfigurationsCommand(input, context);
35
- };
36
- ListBucketInventoryConfigurationsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListBucketInventoryConfigurationsCommand(output, context);
38
- };
39
- return ListBucketInventoryConfigurationsCommand;
40
- }($Command));
41
- export { ListBucketInventoryConfigurationsCommand };
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 { ListBucketMetricsConfigurationsOutputFilterSensitiveLog, ListBucketMetricsConfigurationsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListBucketMetricsConfigurationsCommand, serializeAws_restXmlListBucketMetricsConfigurationsCommand, } from "../protocols/Aws_restXml";
7
- var ListBucketMetricsConfigurationsCommand = (function (_super) {
8
- __extends(ListBucketMetricsConfigurationsCommand, _super);
9
- function ListBucketMetricsConfigurationsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListBucketMetricsConfigurationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListBucketMetricsConfigurationsCommand.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 = "ListBucketMetricsConfigurationsCommand";
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 = "ListBucketMetricsConfigurationsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListBucketMetricsConfigurationsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListBucketMetricsConfigurationsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListBucketMetricsConfigurationsCommand.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_restXmlListBucketMetricsConfigurationsCommand(input, context);
35
- };
36
- ListBucketMetricsConfigurationsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListBucketMetricsConfigurationsCommand(output, context);
38
- };
39
- return ListBucketMetricsConfigurationsCommand;
40
- }($Command));
41
- export { ListBucketMetricsConfigurationsCommand };
33
+ }
34
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListBucketsOutputFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restXmlListBucketsCommand, serializeAws_restXmlListBucketsCommand, } from "../protocols/Aws_restXml";
6
- var ListBucketsCommand = (function (_super) {
7
- __extends(ListBucketsCommand, _super);
8
- function ListBucketsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBucketsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBucketsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "S3Client";
18
- var commandName = "ListBucketsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
23
- inputFilterSensitiveLog: function (input) { return input; },
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "S3Client";
15
+ const commandName = "ListBucketsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
20
+ inputFilterSensitiveLog: (input) => input,
24
21
  outputFilterSensitiveLog: ListBucketsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBucketsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restXmlListBucketsCommand(input, context);
33
- };
34
- ListBucketsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restXmlListBucketsCommand(output, context);
36
- };
37
- return ListBucketsCommand;
38
- }($Command));
39
- export { ListBucketsCommand };
31
+ }
32
+ }
@@ -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 { ListMultipartUploadsOutputFilterSensitiveLog, ListMultipartUploadsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListMultipartUploadsCommand, serializeAws_restXmlListMultipartUploadsCommand, } from "../protocols/Aws_restXml";
7
- var ListMultipartUploadsCommand = (function (_super) {
8
- __extends(ListMultipartUploadsCommand, _super);
9
- function ListMultipartUploadsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListMultipartUploadsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListMultipartUploadsCommand.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 = "ListMultipartUploadsCommand";
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 = "ListMultipartUploadsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListMultipartUploadsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListMultipartUploadsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListMultipartUploadsCommand.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_restXmlListMultipartUploadsCommand(input, context);
35
- };
36
- ListMultipartUploadsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListMultipartUploadsCommand(output, context);
38
- };
39
- return ListMultipartUploadsCommand;
40
- }($Command));
41
- export { ListMultipartUploadsCommand };
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 { ListObjectVersionsOutputFilterSensitiveLog, ListObjectVersionsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListObjectVersionsCommand, serializeAws_restXmlListObjectVersionsCommand, } from "../protocols/Aws_restXml";
7
- var ListObjectVersionsCommand = (function (_super) {
8
- __extends(ListObjectVersionsCommand, _super);
9
- function ListObjectVersionsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListObjectVersionsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListObjectVersionsCommand.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 = "ListObjectVersionsCommand";
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 = "ListObjectVersionsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListObjectVersionsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListObjectVersionsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListObjectVersionsCommand.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_restXmlListObjectVersionsCommand(input, context);
35
- };
36
- ListObjectVersionsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListObjectVersionsCommand(output, context);
38
- };
39
- return ListObjectVersionsCommand;
40
- }($Command));
41
- export { ListObjectVersionsCommand };
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 { ListObjectsOutputFilterSensitiveLog, ListObjectsRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListObjectsCommand, serializeAws_restXmlListObjectsCommand, } from "../protocols/Aws_restXml";
7
- var ListObjectsCommand = (function (_super) {
8
- __extends(ListObjectsCommand, _super);
9
- function ListObjectsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListObjectsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListObjectsCommand.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 = "ListObjectsCommand";
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 = "ListObjectsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListObjectsRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListObjectsOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListObjectsCommand.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_restXmlListObjectsCommand(input, context);
35
- };
36
- ListObjectsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListObjectsCommand(output, context);
38
- };
39
- return ListObjectsCommand;
40
- }($Command));
41
- export { ListObjectsCommand };
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 { ListObjectsV2OutputFilterSensitiveLog, ListObjectsV2RequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlListObjectsV2Command, serializeAws_restXmlListObjectsV2Command, } from "../protocols/Aws_restXml";
7
- var ListObjectsV2Command = (function (_super) {
8
- __extends(ListObjectsV2Command, _super);
9
- function ListObjectsV2Command(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class ListObjectsV2Command extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- ListObjectsV2Command.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 = "ListObjectsV2Command";
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 = "ListObjectsV2Command";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: ListObjectsV2RequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: ListObjectsV2OutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- ListObjectsV2Command.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_restXmlListObjectsV2Command(input, context);
35
- };
36
- ListObjectsV2Command.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlListObjectsV2Command(output, context);
38
- };
39
- return ListObjectsV2Command;
40
- }($Command));
41
- export { ListObjectsV2Command };
33
+ }
34
+ }