@aws-sdk/client-s3 3.181.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/S3.js +374 -381
  3. package/dist-es/S3Client.js +26 -32
  4. package/dist-es/commands/AbortMultipartUploadCommand.js +21 -28
  5. package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
  6. package/dist-es/commands/CopyObjectCommand.js +21 -28
  7. package/dist-es/commands/CreateBucketCommand.js +21 -28
  8. package/dist-es/commands/CreateMultipartUploadCommand.js +21 -28
  9. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +22 -29
  10. package/dist-es/commands/DeleteBucketCommand.js +22 -29
  11. package/dist-es/commands/DeleteBucketCorsCommand.js +22 -29
  12. package/dist-es/commands/DeleteBucketEncryptionCommand.js +22 -29
  13. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +22 -29
  14. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +22 -29
  15. package/dist-es/commands/DeleteBucketLifecycleCommand.js +22 -29
  16. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +22 -29
  17. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +22 -29
  18. package/dist-es/commands/DeleteBucketPolicyCommand.js +22 -29
  19. package/dist-es/commands/DeleteBucketReplicationCommand.js +22 -29
  20. package/dist-es/commands/DeleteBucketTaggingCommand.js +22 -29
  21. package/dist-es/commands/DeleteBucketWebsiteCommand.js +22 -29
  22. package/dist-es/commands/DeleteObjectCommand.js +21 -28
  23. package/dist-es/commands/DeleteObjectTaggingCommand.js +21 -28
  24. package/dist-es/commands/DeleteObjectsCommand.js +21 -28
  25. package/dist-es/commands/DeletePublicAccessBlockCommand.js +22 -29
  26. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +21 -28
  27. package/dist-es/commands/GetBucketAclCommand.js +21 -28
  28. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +21 -28
  29. package/dist-es/commands/GetBucketCorsCommand.js +21 -28
  30. package/dist-es/commands/GetBucketEncryptionCommand.js +21 -28
  31. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +21 -28
  32. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +21 -28
  33. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +21 -28
  34. package/dist-es/commands/GetBucketLocationCommand.js +21 -28
  35. package/dist-es/commands/GetBucketLoggingCommand.js +21 -28
  36. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +21 -28
  37. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +21 -28
  38. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +21 -28
  39. package/dist-es/commands/GetBucketPolicyCommand.js +21 -28
  40. package/dist-es/commands/GetBucketPolicyStatusCommand.js +21 -28
  41. package/dist-es/commands/GetBucketReplicationCommand.js +21 -28
  42. package/dist-es/commands/GetBucketRequestPaymentCommand.js +21 -28
  43. package/dist-es/commands/GetBucketTaggingCommand.js +21 -28
  44. package/dist-es/commands/GetBucketVersioningCommand.js +21 -28
  45. package/dist-es/commands/GetBucketWebsiteCommand.js +21 -28
  46. package/dist-es/commands/GetObjectAclCommand.js +21 -28
  47. package/dist-es/commands/GetObjectAttributesCommand.js +21 -28
  48. package/dist-es/commands/GetObjectCommand.js +21 -28
  49. package/dist-es/commands/GetObjectLegalHoldCommand.js +21 -28
  50. package/dist-es/commands/GetObjectLockConfigurationCommand.js +21 -28
  51. package/dist-es/commands/GetObjectRetentionCommand.js +21 -28
  52. package/dist-es/commands/GetObjectTaggingCommand.js +21 -28
  53. package/dist-es/commands/GetObjectTorrentCommand.js +21 -28
  54. package/dist-es/commands/GetPublicAccessBlockCommand.js +21 -28
  55. package/dist-es/commands/HeadBucketCommand.js +22 -29
  56. package/dist-es/commands/HeadObjectCommand.js +21 -28
  57. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +21 -28
  58. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +21 -28
  59. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +21 -28
  60. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +21 -28
  61. package/dist-es/commands/ListBucketsCommand.js +22 -29
  62. package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
  63. package/dist-es/commands/ListObjectVersionsCommand.js +21 -28
  64. package/dist-es/commands/ListObjectsCommand.js +21 -28
  65. package/dist-es/commands/ListObjectsV2Command.js +21 -28
  66. package/dist-es/commands/ListPartsCommand.js +21 -28
  67. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -29
  68. package/dist-es/commands/PutBucketAclCommand.js +22 -29
  69. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +22 -29
  70. package/dist-es/commands/PutBucketCorsCommand.js +22 -29
  71. package/dist-es/commands/PutBucketEncryptionCommand.js +22 -29
  72. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +22 -29
  73. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +22 -29
  74. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -29
  75. package/dist-es/commands/PutBucketLoggingCommand.js +22 -29
  76. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +22 -29
  77. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +22 -29
  78. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +22 -29
  79. package/dist-es/commands/PutBucketPolicyCommand.js +22 -29
  80. package/dist-es/commands/PutBucketReplicationCommand.js +22 -29
  81. package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -29
  82. package/dist-es/commands/PutBucketTaggingCommand.js +22 -29
  83. package/dist-es/commands/PutBucketVersioningCommand.js +22 -29
  84. package/dist-es/commands/PutBucketWebsiteCommand.js +22 -29
  85. package/dist-es/commands/PutObjectAclCommand.js +21 -28
  86. package/dist-es/commands/PutObjectCommand.js +21 -28
  87. package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -28
  88. package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -28
  89. package/dist-es/commands/PutObjectRetentionCommand.js +21 -28
  90. package/dist-es/commands/PutObjectTaggingCommand.js +21 -28
  91. package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -29
  92. package/dist-es/commands/RestoreObjectCommand.js +21 -28
  93. package/dist-es/commands/SelectObjectContentCommand.js +21 -28
  94. package/dist-es/commands/UploadPartCommand.js +21 -28
  95. package/dist-es/commands/UploadPartCopyCommand.js +21 -28
  96. package/dist-es/commands/WriteGetObjectResponseCommand.js +22 -29
  97. package/dist-es/endpoints.js +8 -8
  98. package/dist-es/models/S3ServiceException.js +5 -10
  99. package/dist-es/models/models_0.js +896 -378
  100. package/dist-es/models/models_1.js +141 -54
  101. package/dist-es/pagination/ListObjectsV2Paginator.js +25 -68
  102. package/dist-es/pagination/ListPartsPaginator.js +25 -68
  103. package/dist-es/protocols/Aws_restXml.js +6891 -9022
  104. package/dist-es/runtimeConfig.browser.js +31 -12
  105. package/dist-es/runtimeConfig.js +36 -12
  106. package/dist-es/runtimeConfig.native.js +8 -5
  107. package/dist-es/runtimeConfig.shared.js +11 -14
  108. package/dist-es/waiters/waitForBucketExists.js +23 -42
  109. package/dist-es/waiters/waitForBucketNotExists.js +22 -42
  110. package/dist-es/waiters/waitForObjectExists.js +23 -42
  111. package/dist-es/waiters/waitForObjectNotExists.js +22 -42
  112. package/package.json +50 -50
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { resolveEventStreamSerdeConfig, } from "@aws-sdk/eventstream-serde-config-resolver";
4
3
  import { resolveBucketEndpointConfig, } from "@aws-sdk/middleware-bucket-endpoint";
@@ -13,35 +12,30 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
13
12
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
14
13
  import { Client as __Client, } from "@aws-sdk/smithy-client";
15
14
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
16
- var S3Client = (function (_super) {
17
- __extends(S3Client, _super);
18
- function S3Client(configuration) {
19
- var _this = this;
20
- var _config_0 = __getRuntimeConfig(configuration);
21
- var _config_1 = resolveRegionConfig(_config_0);
22
- var _config_2 = resolveEndpointsConfig(_config_1);
23
- var _config_3 = resolveRetryConfig(_config_2);
24
- var _config_4 = resolveHostHeaderConfig(_config_3);
25
- var _config_5 = resolveAwsAuthConfig(_config_4);
26
- var _config_6 = resolveBucketEndpointConfig(_config_5);
27
- var _config_7 = resolveUserAgentConfig(_config_6);
28
- var _config_8 = resolveEventStreamSerdeConfig(_config_7);
29
- _this = _super.call(this, _config_8) || this;
30
- _this.config = _config_8;
31
- _this.middlewareStack.use(getRetryPlugin(_this.config));
32
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
33
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
34
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
35
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
36
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
37
- _this.middlewareStack.use(getValidateBucketNamePlugin(_this.config));
38
- _this.middlewareStack.use(getAddExpectContinuePlugin(_this.config));
39
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
40
- return _this;
15
+ export class S3Client extends __Client {
16
+ constructor(configuration) {
17
+ const _config_0 = __getRuntimeConfig(configuration);
18
+ const _config_1 = resolveRegionConfig(_config_0);
19
+ const _config_2 = resolveEndpointsConfig(_config_1);
20
+ const _config_3 = resolveRetryConfig(_config_2);
21
+ const _config_4 = resolveHostHeaderConfig(_config_3);
22
+ const _config_5 = resolveAwsAuthConfig(_config_4);
23
+ const _config_6 = resolveBucketEndpointConfig(_config_5);
24
+ const _config_7 = resolveUserAgentConfig(_config_6);
25
+ const _config_8 = resolveEventStreamSerdeConfig(_config_7);
26
+ super(_config_8);
27
+ this.config = _config_8;
28
+ this.middlewareStack.use(getRetryPlugin(this.config));
29
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
30
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
31
+ this.middlewareStack.use(getLoggerPlugin(this.config));
32
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
33
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
34
+ this.middlewareStack.use(getValidateBucketNamePlugin(this.config));
35
+ this.middlewareStack.use(getAddExpectContinuePlugin(this.config));
36
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
41
37
  }
42
- S3Client.prototype.destroy = function () {
43
- _super.prototype.destroy.call(this);
44
- };
45
- return S3Client;
46
- }(__Client));
47
- export { S3Client };
38
+ destroy() {
39
+ super.destroy();
40
+ }
41
+ }
@@ -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 { AbortMultipartUploadOutputFilterSensitiveLog, AbortMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlAbortMultipartUploadCommand, serializeAws_restXmlAbortMultipartUploadCommand, } from "../protocols/Aws_restXml";
7
- var AbortMultipartUploadCommand = (function (_super) {
8
- __extends(AbortMultipartUploadCommand, _super);
9
- function AbortMultipartUploadCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class AbortMultipartUploadCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- AbortMultipartUploadCommand.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 = "AbortMultipartUploadCommand";
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 = "AbortMultipartUploadCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: AbortMultipartUploadRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: AbortMultipartUploadOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- AbortMultipartUploadCommand.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_restXmlAbortMultipartUploadCommand(input, context);
35
- };
36
- AbortMultipartUploadCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlAbortMultipartUploadCommand(output, context);
38
- };
39
- return AbortMultipartUploadCommand;
40
- }($Command));
41
- export { AbortMultipartUploadCommand };
33
+ }
34
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
4
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
@@ -6,40 +5,34 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
7
6
  import { CompleteMultipartUploadOutputFilterSensitiveLog, CompleteMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
8
7
  import { deserializeAws_restXmlCompleteMultipartUploadCommand, serializeAws_restXmlCompleteMultipartUploadCommand, } from "../protocols/Aws_restXml";
9
- var CompleteMultipartUploadCommand = (function (_super) {
10
- __extends(CompleteMultipartUploadCommand, _super);
11
- function CompleteMultipartUploadCommand(input) {
12
- var _this = _super.call(this) || this;
13
- _this.input = input;
14
- return _this;
8
+ export class CompleteMultipartUploadCommand extends $Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
15
12
  }
16
- CompleteMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
13
+ resolveMiddleware(clientStack, configuration, options) {
17
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
18
15
  this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration));
19
16
  this.middlewareStack.use(getSsecPlugin(configuration));
20
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
21
- var stack = clientStack.concat(this.middlewareStack);
22
- var logger = configuration.logger;
23
- var clientName = "S3Client";
24
- var commandName = "CompleteMultipartUploadCommand";
25
- var handlerExecutionContext = {
26
- logger: logger,
27
- clientName: clientName,
28
- commandName: commandName,
18
+ const stack = clientStack.concat(this.middlewareStack);
19
+ const { logger } = configuration;
20
+ const clientName = "S3Client";
21
+ const commandName = "CompleteMultipartUploadCommand";
22
+ const handlerExecutionContext = {
23
+ logger,
24
+ clientName,
25
+ commandName,
29
26
  inputFilterSensitiveLog: CompleteMultipartUploadRequestFilterSensitiveLog,
30
27
  outputFilterSensitiveLog: CompleteMultipartUploadOutputFilterSensitiveLog,
31
28
  };
32
- var requestHandler = configuration.requestHandler;
33
- return stack.resolve(function (request) {
34
- return requestHandler.handle(request.request, options || {});
35
- }, handlerExecutionContext);
36
- };
37
- CompleteMultipartUploadCommand.prototype.serialize = function (input, context) {
29
+ const { requestHandler } = configuration;
30
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
31
+ }
32
+ serialize(input, context) {
38
33
  return serializeAws_restXmlCompleteMultipartUploadCommand(input, context);
39
- };
40
- CompleteMultipartUploadCommand.prototype.deserialize = function (output, context) {
34
+ }
35
+ deserialize(output, context) {
41
36
  return deserializeAws_restXmlCompleteMultipartUploadCommand(output, context);
42
- };
43
- return CompleteMultipartUploadCommand;
44
- }($Command));
45
- export { CompleteMultipartUploadCommand };
37
+ }
38
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
4
3
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
@@ -6,40 +5,34 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
7
6
  import { CopyObjectOutputFilterSensitiveLog, CopyObjectRequestFilterSensitiveLog, } from "../models/models_0";
8
7
  import { deserializeAws_restXmlCopyObjectCommand, serializeAws_restXmlCopyObjectCommand, } from "../protocols/Aws_restXml";
9
- var CopyObjectCommand = (function (_super) {
10
- __extends(CopyObjectCommand, _super);
11
- function CopyObjectCommand(input) {
12
- var _this = _super.call(this) || this;
13
- _this.input = input;
14
- return _this;
8
+ export class CopyObjectCommand extends $Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
15
12
  }
16
- CopyObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
13
+ resolveMiddleware(clientStack, configuration, options) {
17
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
18
15
  this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration));
19
16
  this.middlewareStack.use(getSsecPlugin(configuration));
20
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
21
- var stack = clientStack.concat(this.middlewareStack);
22
- var logger = configuration.logger;
23
- var clientName = "S3Client";
24
- var commandName = "CopyObjectCommand";
25
- var handlerExecutionContext = {
26
- logger: logger,
27
- clientName: clientName,
28
- commandName: commandName,
18
+ const stack = clientStack.concat(this.middlewareStack);
19
+ const { logger } = configuration;
20
+ const clientName = "S3Client";
21
+ const commandName = "CopyObjectCommand";
22
+ const handlerExecutionContext = {
23
+ logger,
24
+ clientName,
25
+ commandName,
29
26
  inputFilterSensitiveLog: CopyObjectRequestFilterSensitiveLog,
30
27
  outputFilterSensitiveLog: CopyObjectOutputFilterSensitiveLog,
31
28
  };
32
- var requestHandler = configuration.requestHandler;
33
- return stack.resolve(function (request) {
34
- return requestHandler.handle(request.request, options || {});
35
- }, handlerExecutionContext);
36
- };
37
- CopyObjectCommand.prototype.serialize = function (input, context) {
29
+ const { requestHandler } = configuration;
30
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
31
+ }
32
+ serialize(input, context) {
38
33
  return serializeAws_restXmlCopyObjectCommand(input, context);
39
- };
40
- CopyObjectCommand.prototype.deserialize = function (output, context) {
34
+ }
35
+ deserialize(output, context) {
41
36
  return deserializeAws_restXmlCopyObjectCommand(output, context);
42
- };
43
- return CopyObjectCommand;
44
- }($Command));
45
- export { CopyObjectCommand };
37
+ }
38
+ }
@@ -1,41 +1,34 @@
1
- import { __extends } from "tslib";
2
1
  import { getLocationConstraintPlugin } from "@aws-sdk/middleware-location-constraint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { CreateBucketOutputFilterSensitiveLog, CreateBucketRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlCreateBucketCommand, serializeAws_restXmlCreateBucketCommand, } from "../protocols/Aws_restXml";
7
- var CreateBucketCommand = (function (_super) {
8
- __extends(CreateBucketCommand, _super);
9
- function CreateBucketCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class CreateBucketCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- CreateBucketCommand.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(getLocationConstraintPlugin(configuration));
17
- var stack = clientStack.concat(this.middlewareStack);
18
- var logger = configuration.logger;
19
- var clientName = "S3Client";
20
- var commandName = "CreateBucketCommand";
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 = "CreateBucketCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: CreateBucketRequestFilterSensitiveLog,
26
23
  outputFilterSensitiveLog: CreateBucketOutputFilterSensitiveLog,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- CreateBucketCommand.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_restXmlCreateBucketCommand(input, context);
35
- };
36
- CreateBucketCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlCreateBucketCommand(output, context);
38
- };
39
- return CreateBucketCommand;
40
- }($Command));
41
- export { CreateBucketCommand };
33
+ }
34
+ }
@@ -1,43 +1,36 @@
1
- import { __extends } from "tslib";
2
1
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
5
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
5
  import { CreateMultipartUploadOutputFilterSensitiveLog, CreateMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
7
6
  import { deserializeAws_restXmlCreateMultipartUploadCommand, serializeAws_restXmlCreateMultipartUploadCommand, } from "../protocols/Aws_restXml";
8
- var CreateMultipartUploadCommand = (function (_super) {
9
- __extends(CreateMultipartUploadCommand, _super);
10
- function CreateMultipartUploadCommand(input) {
11
- var _this = _super.call(this) || this;
12
- _this.input = input;
13
- return _this;
7
+ export class CreateMultipartUploadCommand extends $Command {
8
+ constructor(input) {
9
+ super();
10
+ this.input = input;
14
11
  }
15
- CreateMultipartUploadCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
12
+ resolveMiddleware(clientStack, configuration, options) {
16
13
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
14
  this.middlewareStack.use(getSsecPlugin(configuration));
18
15
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
19
- var stack = clientStack.concat(this.middlewareStack);
20
- var logger = configuration.logger;
21
- var clientName = "S3Client";
22
- var commandName = "CreateMultipartUploadCommand";
23
- var handlerExecutionContext = {
24
- logger: logger,
25
- clientName: clientName,
26
- commandName: commandName,
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "S3Client";
19
+ const commandName = "CreateMultipartUploadCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
27
24
  inputFilterSensitiveLog: CreateMultipartUploadRequestFilterSensitiveLog,
28
25
  outputFilterSensitiveLog: CreateMultipartUploadOutputFilterSensitiveLog,
29
26
  };
30
- var requestHandler = configuration.requestHandler;
31
- return stack.resolve(function (request) {
32
- return requestHandler.handle(request.request, options || {});
33
- }, handlerExecutionContext);
34
- };
35
- CreateMultipartUploadCommand.prototype.serialize = function (input, context) {
27
+ const { requestHandler } = configuration;
28
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
29
+ }
30
+ serialize(input, context) {
36
31
  return serializeAws_restXmlCreateMultipartUploadCommand(input, context);
37
- };
38
- CreateMultipartUploadCommand.prototype.deserialize = function (output, context) {
32
+ }
33
+ deserialize(output, context) {
39
34
  return deserializeAws_restXmlCreateMultipartUploadCommand(output, context);
40
- };
41
- return CreateMultipartUploadCommand;
42
- }($Command));
43
- export { CreateMultipartUploadCommand };
35
+ }
36
+ }
@@ -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 { DeleteBucketAnalyticsConfigurationRequestFilterSensitiveLog, } from "../models/models_0";
6
5
  import { deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand, serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand, } from "../protocols/Aws_restXml";
7
- var DeleteBucketAnalyticsConfigurationCommand = (function (_super) {
8
- __extends(DeleteBucketAnalyticsConfigurationCommand, _super);
9
- function DeleteBucketAnalyticsConfigurationCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class DeleteBucketAnalyticsConfigurationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- DeleteBucketAnalyticsConfigurationCommand.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 = "DeleteBucketAnalyticsConfigurationCommand";
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 = "DeleteBucketAnalyticsConfigurationCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: DeleteBucketAnalyticsConfigurationRequestFilterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
23
+ outputFilterSensitiveLog: (output) => output,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- DeleteBucketAnalyticsConfigurationCommand.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_restXmlDeleteBucketAnalyticsConfigurationCommand(input, context);
35
- };
36
- DeleteBucketAnalyticsConfigurationCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand(output, context);
38
- };
39
- return DeleteBucketAnalyticsConfigurationCommand;
40
- }($Command));
41
- export { DeleteBucketAnalyticsConfigurationCommand };
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 { DeleteBucketRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restXmlDeleteBucketCommand, serializeAws_restXmlDeleteBucketCommand, } from "../protocols/Aws_restXml";
6
- var DeleteBucketCommand = (function (_super) {
7
- __extends(DeleteBucketCommand, _super);
8
- function DeleteBucketCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBucketCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBucketCommand.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 = "DeleteBucketCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "S3Client";
15
+ const commandName = "DeleteBucketCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBucketRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBucketCommand.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_restXmlDeleteBucketCommand(input, context);
33
- };
34
- DeleteBucketCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restXmlDeleteBucketCommand(output, context);
36
- };
37
- return DeleteBucketCommand;
38
- }($Command));
39
- export { DeleteBucketCommand };
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 { DeleteBucketCorsRequestFilterSensitiveLog } from "../models/models_0";
6
5
  import { deserializeAws_restXmlDeleteBucketCorsCommand, serializeAws_restXmlDeleteBucketCorsCommand, } from "../protocols/Aws_restXml";
7
- var DeleteBucketCorsCommand = (function (_super) {
8
- __extends(DeleteBucketCorsCommand, _super);
9
- function DeleteBucketCorsCommand(input) {
10
- var _this = _super.call(this) || this;
11
- _this.input = input;
12
- return _this;
6
+ export class DeleteBucketCorsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
13
10
  }
14
- DeleteBucketCorsCommand.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 = "DeleteBucketCorsCommand";
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 = "DeleteBucketCorsCommand";
18
+ const handlerExecutionContext = {
19
+ logger,
20
+ clientName,
21
+ commandName,
25
22
  inputFilterSensitiveLog: DeleteBucketCorsRequestFilterSensitiveLog,
26
- outputFilterSensitiveLog: function (output) { return output; },
23
+ outputFilterSensitiveLog: (output) => output,
27
24
  };
28
- var requestHandler = configuration.requestHandler;
29
- return stack.resolve(function (request) {
30
- return requestHandler.handle(request.request, options || {});
31
- }, handlerExecutionContext);
32
- };
33
- DeleteBucketCorsCommand.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_restXmlDeleteBucketCorsCommand(input, context);
35
- };
36
- DeleteBucketCorsCommand.prototype.deserialize = function (output, context) {
30
+ }
31
+ deserialize(output, context) {
37
32
  return deserializeAws_restXmlDeleteBucketCorsCommand(output, context);
38
- };
39
- return DeleteBucketCorsCommand;
40
- }($Command));
41
- export { DeleteBucketCorsCommand };
33
+ }
34
+ }