@aws-sdk/client-s3 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restXml.js +2 -2
  3. package/dist-es/S3.js +381 -374
  4. package/dist-es/S3Client.js +32 -26
  5. package/dist-es/commands/AbortMultipartUploadCommand.js +28 -21
  6. package/dist-es/commands/CompleteMultipartUploadCommand.js +28 -21
  7. package/dist-es/commands/CopyObjectCommand.js +28 -21
  8. package/dist-es/commands/CreateBucketCommand.js +28 -21
  9. package/dist-es/commands/CreateMultipartUploadCommand.js +28 -21
  10. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +29 -22
  11. package/dist-es/commands/DeleteBucketCommand.js +29 -22
  12. package/dist-es/commands/DeleteBucketCorsCommand.js +29 -22
  13. package/dist-es/commands/DeleteBucketEncryptionCommand.js +29 -22
  14. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +29 -22
  15. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +29 -22
  16. package/dist-es/commands/DeleteBucketLifecycleCommand.js +29 -22
  17. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +29 -22
  18. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +29 -22
  19. package/dist-es/commands/DeleteBucketPolicyCommand.js +29 -22
  20. package/dist-es/commands/DeleteBucketReplicationCommand.js +29 -22
  21. package/dist-es/commands/DeleteBucketTaggingCommand.js +29 -22
  22. package/dist-es/commands/DeleteBucketWebsiteCommand.js +29 -22
  23. package/dist-es/commands/DeleteObjectCommand.js +28 -21
  24. package/dist-es/commands/DeleteObjectTaggingCommand.js +28 -21
  25. package/dist-es/commands/DeleteObjectsCommand.js +28 -21
  26. package/dist-es/commands/DeletePublicAccessBlockCommand.js +29 -22
  27. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +28 -21
  28. package/dist-es/commands/GetBucketAclCommand.js +28 -21
  29. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +28 -21
  30. package/dist-es/commands/GetBucketCorsCommand.js +28 -21
  31. package/dist-es/commands/GetBucketEncryptionCommand.js +28 -21
  32. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +28 -21
  33. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +28 -21
  34. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +28 -21
  35. package/dist-es/commands/GetBucketLocationCommand.js +28 -21
  36. package/dist-es/commands/GetBucketLoggingCommand.js +28 -21
  37. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +28 -21
  38. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +28 -21
  39. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +28 -21
  40. package/dist-es/commands/GetBucketPolicyCommand.js +28 -21
  41. package/dist-es/commands/GetBucketPolicyStatusCommand.js +28 -21
  42. package/dist-es/commands/GetBucketReplicationCommand.js +28 -21
  43. package/dist-es/commands/GetBucketRequestPaymentCommand.js +28 -21
  44. package/dist-es/commands/GetBucketTaggingCommand.js +28 -21
  45. package/dist-es/commands/GetBucketVersioningCommand.js +28 -21
  46. package/dist-es/commands/GetBucketWebsiteCommand.js +28 -21
  47. package/dist-es/commands/GetObjectAclCommand.js +28 -21
  48. package/dist-es/commands/GetObjectAttributesCommand.js +28 -21
  49. package/dist-es/commands/GetObjectCommand.js +28 -21
  50. package/dist-es/commands/GetObjectLegalHoldCommand.js +28 -21
  51. package/dist-es/commands/GetObjectLockConfigurationCommand.js +28 -21
  52. package/dist-es/commands/GetObjectRetentionCommand.js +28 -21
  53. package/dist-es/commands/GetObjectTaggingCommand.js +28 -21
  54. package/dist-es/commands/GetObjectTorrentCommand.js +28 -21
  55. package/dist-es/commands/GetPublicAccessBlockCommand.js +28 -21
  56. package/dist-es/commands/HeadBucketCommand.js +29 -22
  57. package/dist-es/commands/HeadObjectCommand.js +28 -21
  58. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +28 -21
  59. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +28 -21
  60. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +28 -21
  61. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +28 -21
  62. package/dist-es/commands/ListBucketsCommand.js +29 -22
  63. package/dist-es/commands/ListMultipartUploadsCommand.js +28 -21
  64. package/dist-es/commands/ListObjectVersionsCommand.js +28 -21
  65. package/dist-es/commands/ListObjectsCommand.js +28 -21
  66. package/dist-es/commands/ListObjectsV2Command.js +28 -21
  67. package/dist-es/commands/ListPartsCommand.js +28 -21
  68. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +29 -22
  69. package/dist-es/commands/PutBucketAclCommand.js +29 -22
  70. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +29 -22
  71. package/dist-es/commands/PutBucketCorsCommand.js +29 -22
  72. package/dist-es/commands/PutBucketEncryptionCommand.js +29 -22
  73. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +29 -22
  74. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +29 -22
  75. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +29 -22
  76. package/dist-es/commands/PutBucketLoggingCommand.js +29 -22
  77. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +29 -22
  78. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +29 -22
  79. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +29 -22
  80. package/dist-es/commands/PutBucketPolicyCommand.js +29 -22
  81. package/dist-es/commands/PutBucketReplicationCommand.js +29 -22
  82. package/dist-es/commands/PutBucketRequestPaymentCommand.js +29 -22
  83. package/dist-es/commands/PutBucketTaggingCommand.js +29 -22
  84. package/dist-es/commands/PutBucketVersioningCommand.js +29 -22
  85. package/dist-es/commands/PutBucketWebsiteCommand.js +29 -22
  86. package/dist-es/commands/PutObjectAclCommand.js +28 -21
  87. package/dist-es/commands/PutObjectCommand.js +28 -21
  88. package/dist-es/commands/PutObjectLegalHoldCommand.js +28 -21
  89. package/dist-es/commands/PutObjectLockConfigurationCommand.js +28 -21
  90. package/dist-es/commands/PutObjectRetentionCommand.js +28 -21
  91. package/dist-es/commands/PutObjectTaggingCommand.js +28 -21
  92. package/dist-es/commands/PutPublicAccessBlockCommand.js +29 -22
  93. package/dist-es/commands/RestoreObjectCommand.js +28 -21
  94. package/dist-es/commands/SelectObjectContentCommand.js +28 -21
  95. package/dist-es/commands/UploadPartCommand.js +28 -21
  96. package/dist-es/commands/UploadPartCopyCommand.js +28 -21
  97. package/dist-es/commands/WriteGetObjectResponseCommand.js +29 -22
  98. package/dist-es/endpoints.js +8 -8
  99. package/dist-es/models/S3ServiceException.js +10 -5
  100. package/dist-es/models/models_0.js +378 -896
  101. package/dist-es/models/models_1.js +54 -141
  102. package/dist-es/pagination/ListObjectsV2Paginator.js +68 -25
  103. package/dist-es/pagination/ListPartsPaginator.js +68 -25
  104. package/dist-es/protocols/Aws_restXml.js +9022 -6891
  105. package/dist-es/runtimeConfig.browser.js +12 -31
  106. package/dist-es/runtimeConfig.js +12 -36
  107. package/dist-es/runtimeConfig.native.js +5 -8
  108. package/dist-es/runtimeConfig.shared.js +14 -11
  109. package/dist-es/waiters/waitForBucketExists.js +42 -23
  110. package/dist-es/waiters/waitForBucketNotExists.js +42 -22
  111. package/dist-es/waiters/waitForObjectExists.js +42 -23
  112. package/dist-es/waiters/waitForObjectNotExists.js +42 -22
  113. package/package.json +6 -6
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketEncryptionRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketEncryptionCommand, serializeAws_restXmlDeleteBucketEncryptionCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketEncryptionCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketEncryptionCommand = (function (_super) {
8
+ __extends(DeleteBucketEncryptionCommand, _super);
9
+ function DeleteBucketEncryptionCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketEncryptionCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketEncryptionCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketEncryptionRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketEncryptionCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketEncryptionCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketEncryptionCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketEncryptionCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketEncryptionCommand;
40
+ }($Command));
41
+ export { DeleteBucketEncryptionCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketIntelligentTieringConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand, serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketIntelligentTieringConfigurationCommand = (function (_super) {
8
+ __extends(DeleteBucketIntelligentTieringConfigurationCommand, _super);
9
+ function DeleteBucketIntelligentTieringConfigurationCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketIntelligentTieringConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketIntelligentTieringConfigurationCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketIntelligentTieringConfigurationCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketIntelligentTieringConfigurationRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketIntelligentTieringConfigurationCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketIntelligentTieringConfigurationCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketIntelligentTieringConfigurationCommand;
40
+ }($Command));
41
+ export { DeleteBucketIntelligentTieringConfigurationCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketInventoryConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand, serializeAws_restXmlDeleteBucketInventoryConfigurationCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketInventoryConfigurationCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketInventoryConfigurationCommand = (function (_super) {
8
+ __extends(DeleteBucketInventoryConfigurationCommand, _super);
9
+ function DeleteBucketInventoryConfigurationCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketInventoryConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketInventoryConfigurationCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketInventoryConfigurationCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketInventoryConfigurationRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketInventoryConfigurationCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketInventoryConfigurationCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketInventoryConfigurationCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketInventoryConfigurationCommand;
40
+ }($Command));
41
+ export { DeleteBucketInventoryConfigurationCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketLifecycleRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketLifecycleCommand, serializeAws_restXmlDeleteBucketLifecycleCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketLifecycleCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketLifecycleCommand = (function (_super) {
8
+ __extends(DeleteBucketLifecycleCommand, _super);
9
+ function DeleteBucketLifecycleCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketLifecycleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketLifecycleCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketLifecycleCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketLifecycleRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketLifecycleCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketLifecycleCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketLifecycleCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketLifecycleCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketLifecycleCommand;
40
+ }($Command));
41
+ export { DeleteBucketLifecycleCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketMetricsConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand, serializeAws_restXmlDeleteBucketMetricsConfigurationCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketMetricsConfigurationCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketMetricsConfigurationCommand = (function (_super) {
8
+ __extends(DeleteBucketMetricsConfigurationCommand, _super);
9
+ function DeleteBucketMetricsConfigurationCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketMetricsConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketMetricsConfigurationCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketMetricsConfigurationCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketMetricsConfigurationRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketMetricsConfigurationCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketMetricsConfigurationCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketMetricsConfigurationCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketMetricsConfigurationCommand;
40
+ }($Command));
41
+ export { DeleteBucketMetricsConfigurationCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketOwnershipControlsRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketOwnershipControlsCommand, serializeAws_restXmlDeleteBucketOwnershipControlsCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketOwnershipControlsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketOwnershipControlsCommand = (function (_super) {
8
+ __extends(DeleteBucketOwnershipControlsCommand, _super);
9
+ function DeleteBucketOwnershipControlsCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketOwnershipControlsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketOwnershipControlsCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketOwnershipControlsCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketOwnershipControlsRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketOwnershipControlsCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketOwnershipControlsCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketOwnershipControlsCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketOwnershipControlsCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketOwnershipControlsCommand;
40
+ }($Command));
41
+ export { DeleteBucketOwnershipControlsCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketPolicyRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketPolicyCommand, serializeAws_restXmlDeleteBucketPolicyCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketPolicyCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketPolicyCommand = (function (_super) {
8
+ __extends(DeleteBucketPolicyCommand, _super);
9
+ function DeleteBucketPolicyCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketPolicyCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketPolicyCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketPolicyRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketPolicyCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketPolicyCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketPolicyCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketPolicyCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketPolicyCommand;
40
+ }($Command));
41
+ export { DeleteBucketPolicyCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketReplicationRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketReplicationCommand, serializeAws_restXmlDeleteBucketReplicationCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketReplicationCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketReplicationCommand = (function (_super) {
8
+ __extends(DeleteBucketReplicationCommand, _super);
9
+ function DeleteBucketReplicationCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketReplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketReplicationCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketReplicationCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketReplicationRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketReplicationCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketReplicationCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketReplicationCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketReplicationCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketReplicationCommand;
40
+ }($Command));
41
+ export { DeleteBucketReplicationCommand };
@@ -1,34 +1,41 @@
1
+ import { __extends } from "tslib";
1
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
2
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
5
  import { DeleteBucketTaggingRequestFilterSensitiveLog } from "../models/models_0";
5
6
  import { deserializeAws_restXmlDeleteBucketTaggingCommand, serializeAws_restXmlDeleteBucketTaggingCommand, } from "../protocols/Aws_restXml";
6
- export class DeleteBucketTaggingCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
7
+ var DeleteBucketTaggingCommand = (function (_super) {
8
+ __extends(DeleteBucketTaggingCommand, _super);
9
+ function DeleteBucketTaggingCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
10
13
  }
11
- resolveMiddleware(clientStack, configuration, options) {
14
+ DeleteBucketTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
15
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
13
16
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const { logger } = configuration;
16
- const clientName = "S3Client";
17
- const commandName = "DeleteBucketTaggingCommand";
18
- const handlerExecutionContext = {
19
- logger,
20
- clientName,
21
- commandName,
17
+ var stack = clientStack.concat(this.middlewareStack);
18
+ var logger = configuration.logger;
19
+ var clientName = "S3Client";
20
+ var commandName = "DeleteBucketTaggingCommand";
21
+ var handlerExecutionContext = {
22
+ logger: logger,
23
+ clientName: clientName,
24
+ commandName: commandName,
22
25
  inputFilterSensitiveLog: DeleteBucketTaggingRequestFilterSensitiveLog,
23
- outputFilterSensitiveLog: (output) => output,
26
+ outputFilterSensitiveLog: function (output) { return output; },
24
27
  };
25
- const { requestHandler } = configuration;
26
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
27
- }
28
- serialize(input, context) {
28
+ var requestHandler = configuration.requestHandler;
29
+ return stack.resolve(function (request) {
30
+ return requestHandler.handle(request.request, options || {});
31
+ }, handlerExecutionContext);
32
+ };
33
+ DeleteBucketTaggingCommand.prototype.serialize = function (input, context) {
29
34
  return serializeAws_restXmlDeleteBucketTaggingCommand(input, context);
30
- }
31
- deserialize(output, context) {
35
+ };
36
+ DeleteBucketTaggingCommand.prototype.deserialize = function (output, context) {
32
37
  return deserializeAws_restXmlDeleteBucketTaggingCommand(output, context);
33
- }
34
- }
38
+ };
39
+ return DeleteBucketTaggingCommand;
40
+ }($Command));
41
+ export { DeleteBucketTaggingCommand };