@aws-sdk/client-s3 3.43.0 → 3.47.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 (44) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist-cjs/endpoints.js +9 -60
  3. package/dist-cjs/models/models_0.js +11 -66
  4. package/dist-cjs/models/models_1.js +7 -1
  5. package/dist-cjs/protocols/Aws_restXml.js +20 -0
  6. package/dist-cjs/runtimeConfig.browser.js +7 -2
  7. package/dist-cjs/runtimeConfig.js +9 -3
  8. package/dist-es/endpoints.js +9 -60
  9. package/dist-es/models/models_0.js +4 -40
  10. package/dist-es/models/models_1.js +4 -0
  11. package/dist-es/protocols/Aws_restXml.js +21 -3
  12. package/dist-es/runtimeConfig.browser.js +12 -3
  13. package/dist-es/runtimeConfig.js +13 -6
  14. package/dist-types/S3.d.ts +115 -35
  15. package/dist-types/S3Client.d.ts +5 -1
  16. package/dist-types/commands/CopyObjectCommand.d.ts +11 -1
  17. package/dist-types/commands/CreateBucketCommand.d.ts +39 -11
  18. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
  19. package/dist-types/commands/GetBucketAclCommand.d.ts +7 -0
  20. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
  21. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +3 -3
  22. package/dist-types/commands/GetObjectAclCommand.d.ts +7 -1
  23. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -2
  24. package/dist-types/commands/PutBucketAclCommand.d.ts +7 -1
  25. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
  26. package/dist-types/commands/PutBucketLoggingCommand.d.ts +8 -3
  27. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -2
  28. package/dist-types/commands/PutObjectAclCommand.d.ts +7 -2
  29. package/dist-types/commands/PutObjectCommand.d.ts +14 -2
  30. package/dist-types/commands/SelectObjectContentCommand.d.ts +2 -1
  31. package/dist-types/models/models_0.d.ts +61 -88
  32. package/dist-types/models/models_1.d.ts +16 -1
  33. package/dist-types/runtimeConfig.browser.d.ts +4 -3
  34. package/dist-types/runtimeConfig.d.ts +5 -4
  35. package/dist-types/runtimeConfig.native.d.ts +2 -1
  36. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  37. package/dist-types/ts3.4/S3Client.d.ts +3 -1
  38. package/dist-types/ts3.4/models/models_0.d.ts +18 -50
  39. package/dist-types/ts3.4/models/models_1.d.ts +10 -1
  40. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -3
  41. package/dist-types/ts3.4/runtimeConfig.d.ts +5 -4
  42. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -1
  43. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -1
  44. package/package.json +52 -58
package/CHANGELOG.md CHANGED
@@ -3,6 +3,57 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
29
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
30
+
31
+
32
+
33
+
34
+
35
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
36
+
37
+
38
+ ### Features
39
+
40
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
41
+
42
+
43
+
44
+
45
+
46
+ # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
47
+
48
+
49
+ ### Features
50
+
51
+ * **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
52
+
53
+
54
+
55
+
56
+
6
57
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
58
 
8
59
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "af-south-1": {
7
7
  variants: [
8
- {
9
- hostname: "s3.af-south-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "s3.dualstack.af-south-1.amazonaws.com",
14
10
  tags: ["dualstack"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "ap-east-1": {
19
15
  variants: [
20
- {
21
- hostname: "s3.ap-east-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "s3.dualstack.ap-east-1.amazonaws.com",
26
18
  tags: ["dualstack"],
@@ -41,10 +33,6 @@ const regionHash = {
41
33
  },
42
34
  "ap-northeast-2": {
43
35
  variants: [
44
- {
45
- hostname: "s3.ap-northeast-2.amazonaws.com",
46
- tags: [],
47
- },
48
36
  {
49
37
  hostname: "s3.dualstack.ap-northeast-2.amazonaws.com",
50
38
  tags: ["dualstack"],
@@ -53,10 +41,6 @@ const regionHash = {
53
41
  },
54
42
  "ap-northeast-3": {
55
43
  variants: [
56
- {
57
- hostname: "s3.ap-northeast-3.amazonaws.com",
58
- tags: [],
59
- },
60
44
  {
61
45
  hostname: "s3.dualstack.ap-northeast-3.amazonaws.com",
62
46
  tags: ["dualstack"],
@@ -65,10 +49,6 @@ const regionHash = {
65
49
  },
66
50
  "ap-south-1": {
67
51
  variants: [
68
- {
69
- hostname: "s3.ap-south-1.amazonaws.com",
70
- tags: [],
71
- },
72
52
  {
73
53
  hostname: "s3.dualstack.ap-south-1.amazonaws.com",
74
54
  tags: ["dualstack"],
@@ -99,6 +79,14 @@ const regionHash = {
99
79
  },
100
80
  ],
101
81
  },
82
+ "ap-southeast-3": {
83
+ variants: [
84
+ {
85
+ hostname: "s3.dualstack.ap-southeast-3.amazonaws.com",
86
+ tags: ["dualstack"],
87
+ },
88
+ ],
89
+ },
102
90
  "aws-global": {
103
91
  variants: [
104
92
  {
@@ -110,10 +98,6 @@ const regionHash = {
110
98
  },
111
99
  "ca-central-1": {
112
100
  variants: [
113
- {
114
- hostname: "s3.ca-central-1.amazonaws.com",
115
- tags: [],
116
- },
117
101
  {
118
102
  hostname: "s3-fips.ca-central-1.amazonaws.com",
119
103
  tags: ["fips"],
@@ -130,10 +114,6 @@ const regionHash = {
130
114
  },
131
115
  "cn-north-1": {
132
116
  variants: [
133
- {
134
- hostname: "s3.cn-north-1.amazonaws.com.cn",
135
- tags: [],
136
- },
137
117
  {
138
118
  hostname: "s3.dualstack.cn-north-1.amazonaws.com.cn",
139
119
  tags: ["dualstack"],
@@ -142,10 +122,6 @@ const regionHash = {
142
122
  },
143
123
  "cn-northwest-1": {
144
124
  variants: [
145
- {
146
- hostname: "s3.cn-northwest-1.amazonaws.com.cn",
147
- tags: [],
148
- },
149
125
  {
150
126
  hostname: "s3.dualstack.cn-northwest-1.amazonaws.com.cn",
151
127
  tags: ["dualstack"],
@@ -154,10 +130,6 @@ const regionHash = {
154
130
  },
155
131
  "eu-central-1": {
156
132
  variants: [
157
- {
158
- hostname: "s3.eu-central-1.amazonaws.com",
159
- tags: [],
160
- },
161
133
  {
162
134
  hostname: "s3.dualstack.eu-central-1.amazonaws.com",
163
135
  tags: ["dualstack"],
@@ -166,10 +138,6 @@ const regionHash = {
166
138
  },
167
139
  "eu-north-1": {
168
140
  variants: [
169
- {
170
- hostname: "s3.eu-north-1.amazonaws.com",
171
- tags: [],
172
- },
173
141
  {
174
142
  hostname: "s3.dualstack.eu-north-1.amazonaws.com",
175
143
  tags: ["dualstack"],
@@ -178,10 +146,6 @@ const regionHash = {
178
146
  },
179
147
  "eu-south-1": {
180
148
  variants: [
181
- {
182
- hostname: "s3.eu-south-1.amazonaws.com",
183
- tags: [],
184
- },
185
149
  {
186
150
  hostname: "s3.dualstack.eu-south-1.amazonaws.com",
187
151
  tags: ["dualstack"],
@@ -202,10 +166,6 @@ const regionHash = {
202
166
  },
203
167
  "eu-west-2": {
204
168
  variants: [
205
- {
206
- hostname: "s3.eu-west-2.amazonaws.com",
207
- tags: [],
208
- },
209
169
  {
210
170
  hostname: "s3.dualstack.eu-west-2.amazonaws.com",
211
171
  tags: ["dualstack"],
@@ -214,10 +174,6 @@ const regionHash = {
214
174
  },
215
175
  "eu-west-3": {
216
176
  variants: [
217
- {
218
- hostname: "s3.eu-west-3.amazonaws.com",
219
- tags: [],
220
- },
221
177
  {
222
178
  hostname: "s3.dualstack.eu-west-3.amazonaws.com",
223
179
  tags: ["dualstack"],
@@ -226,10 +182,6 @@ const regionHash = {
226
182
  },
227
183
  "me-south-1": {
228
184
  variants: [
229
- {
230
- hostname: "s3.me-south-1.amazonaws.com",
231
- tags: [],
232
- },
233
185
  {
234
186
  hostname: "s3.dualstack.me-south-1.amazonaws.com",
235
187
  tags: ["dualstack"],
@@ -279,10 +231,6 @@ const regionHash = {
279
231
  },
280
232
  "us-east-2": {
281
233
  variants: [
282
- {
283
- hostname: "s3.us-east-2.amazonaws.com",
284
- tags: [],
285
- },
286
234
  {
287
235
  hostname: "s3-fips.dualstack.us-east-2.amazonaws.com",
288
236
  tags: ["dualstack", "fips"],
@@ -381,6 +329,7 @@ const partitionHash = {
381
329
  "ap-south-1",
382
330
  "ap-southeast-1",
383
331
  "ap-southeast-2",
332
+ "ap-southeast-3",
384
333
  "aws-global",
385
334
  "ca-central-1",
386
335
  "eu-central-1",
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBucketAccelerateConfigurationOutput = exports.DeletePublicAccessBlockRequest = exports.DeleteObjectTaggingRequest = exports.DeleteObjectTaggingOutput = exports.DeleteObjectsRequest = exports.Delete = exports.ObjectIdentifier = exports.DeleteObjectsOutput = exports._Error = exports.DeletedObject = exports.DeleteObjectRequest = exports.DeleteObjectOutput = exports.DeleteBucketWebsiteRequest = exports.DeleteBucketTaggingRequest = exports.DeleteBucketReplicationRequest = exports.DeleteBucketPolicyRequest = exports.DeleteBucketOwnershipControlsRequest = exports.DeleteBucketMetricsConfigurationRequest = exports.DeleteBucketLifecycleRequest = exports.DeleteBucketInventoryConfigurationRequest = exports.DeleteBucketIntelligentTieringConfigurationRequest = exports.DeleteBucketEncryptionRequest = exports.DeleteBucketCorsRequest = exports.DeleteBucketAnalyticsConfigurationRequest = exports.DeleteBucketRequest = exports.CreateMultipartUploadRequest = exports.CreateMultipartUploadOutput = exports.CreateBucketRequest = exports.CreateBucketConfiguration = exports.CreateBucketOutput = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.CopyObjectRequest = exports.CopyObjectOutput = exports.CopyObjectResult = exports.CompleteMultipartUploadRequest = exports.CompletedMultipartUpload = exports.CompletedPart = exports.CompleteMultipartUploadOutput = exports.AccessControlTranslation = exports.AccessControlPolicy = exports.Owner = exports.Grant = exports.Grantee = exports.AccelerateConfiguration = exports.NoSuchUpload = exports.AbortMultipartUploadRequest = exports.AbortMultipartUploadOutput = exports.AbortIncompleteMultipartUpload = void 0;
4
- exports.LoggingEnabled = exports.TargetGrant = exports.GetBucketLocationRequest = exports.GetBucketLocationOutput = exports.GetBucketLifecycleConfigurationRequest = exports.GetBucketLifecycleConfigurationOutput = exports.LifecycleRule = exports.Transition = exports.NoncurrentVersionTransition = exports.NoncurrentVersionExpiration = exports.LifecycleRuleFilter = exports.LifecycleRuleAndOperator = exports.LifecycleExpiration = exports.GetBucketInventoryConfigurationRequest = exports.GetBucketInventoryConfigurationOutput = exports.InventoryConfiguration = exports.InventorySchedule = exports.InventoryFilter = exports.InventoryDestination = exports.InventoryS3BucketDestination = exports.InventoryEncryption = exports.SSES3 = exports.SSEKMS = exports.GetBucketIntelligentTieringConfigurationRequest = exports.GetBucketIntelligentTieringConfigurationOutput = exports.IntelligentTieringConfiguration = exports.Tiering = exports.IntelligentTieringFilter = exports.IntelligentTieringAndOperator = exports.GetBucketEncryptionRequest = exports.GetBucketEncryptionOutput = exports.ServerSideEncryptionConfiguration = exports.ServerSideEncryptionRule = exports.ServerSideEncryptionByDefault = exports.GetBucketCorsRequest = exports.GetBucketCorsOutput = exports.CORSRule = exports.GetBucketAnalyticsConfigurationRequest = exports.GetBucketAnalyticsConfigurationOutput = exports.AnalyticsConfiguration = exports.StorageClassAnalysis = exports.StorageClassAnalysisDataExport = exports.AnalyticsExportDestination = exports.AnalyticsS3BucketDestination = exports.AnalyticsFilter = exports.AnalyticsAndOperator = exports.Tag = exports.GetBucketAclRequest = exports.GetBucketAclOutput = exports.GetBucketAccelerateConfigurationRequest = void 0;
5
- exports.Condition = exports.RedirectAllRequestsTo = exports.IndexDocument = exports.ErrorDocument = exports.GetBucketVersioningRequest = exports.GetBucketVersioningOutput = exports.GetBucketTaggingRequest = exports.GetBucketTaggingOutput = exports.GetBucketRequestPaymentRequest = exports.GetBucketRequestPaymentOutput = exports.GetBucketReplicationRequest = exports.GetBucketReplicationOutput = exports.ReplicationConfiguration = exports.ReplicationRule = exports.SourceSelectionCriteria = exports.SseKmsEncryptedObjects = exports.ReplicaModifications = exports.ReplicationRuleFilter = exports.ReplicationRuleAndOperator = exports.ExistingObjectReplication = exports.Destination = exports.ReplicationTime = exports.Metrics = exports.ReplicationTimeValue = exports.EncryptionConfiguration = exports.DeleteMarkerReplication = exports.GetBucketPolicyStatusRequest = exports.GetBucketPolicyStatusOutput = exports.PolicyStatus = exports.GetBucketPolicyRequest = exports.GetBucketPolicyOutput = exports.GetBucketOwnershipControlsRequest = exports.GetBucketOwnershipControlsOutput = exports.OwnershipControls = exports.OwnershipControlsRule = exports.NotificationConfiguration = exports.TopicConfiguration = exports.QueueConfiguration = exports.LambdaFunctionConfiguration = exports.NotificationConfigurationFilter = exports.S3KeyFilter = exports.FilterRule = exports.GetBucketNotificationConfigurationRequest = exports.GetBucketMetricsConfigurationRequest = exports.GetBucketMetricsConfigurationOutput = exports.MetricsConfiguration = exports.MetricsFilter = exports.MetricsAndOperator = exports.GetBucketLoggingRequest = exports.GetBucketLoggingOutput = void 0;
6
- exports.ListObjectsRequest = exports.ListObjectsOutput = exports._Object = exports.ListMultipartUploadsRequest = exports.ListMultipartUploadsOutput = exports.MultipartUpload = exports.Initiator = exports.CommonPrefix = exports.ListBucketsOutput = exports.Bucket = exports.ListBucketMetricsConfigurationsRequest = exports.ListBucketMetricsConfigurationsOutput = exports.ListBucketInventoryConfigurationsRequest = exports.ListBucketInventoryConfigurationsOutput = exports.ListBucketIntelligentTieringConfigurationsRequest = exports.ListBucketIntelligentTieringConfigurationsOutput = exports.ListBucketAnalyticsConfigurationsRequest = exports.ListBucketAnalyticsConfigurationsOutput = exports.HeadObjectRequest = exports.HeadObjectOutput = exports.NotFound = exports.HeadBucketRequest = exports.GetPublicAccessBlockRequest = exports.GetPublicAccessBlockOutput = exports.PublicAccessBlockConfiguration = exports.GetObjectTorrentRequest = exports.GetObjectTorrentOutput = exports.GetObjectTaggingRequest = exports.GetObjectTaggingOutput = exports.GetObjectRetentionRequest = exports.GetObjectRetentionOutput = exports.ObjectLockRetention = exports.GetObjectLockConfigurationRequest = exports.GetObjectLockConfigurationOutput = exports.ObjectLockConfiguration = exports.ObjectLockRule = exports.DefaultRetention = exports.GetObjectLegalHoldRequest = exports.GetObjectLegalHoldOutput = exports.ObjectLockLegalHold = exports.GetObjectAclRequest = exports.GetObjectAclOutput = exports.NoSuchKey = exports.InvalidObjectState = exports.GetObjectRequest = exports.GetObjectOutput = exports.GetBucketWebsiteRequest = exports.GetBucketWebsiteOutput = exports.RoutingRule = exports.Redirect = void 0;
7
- exports.RestoreObjectOutput = exports.ObjectAlreadyInActiveTierError = exports.PutPublicAccessBlockRequest = exports.PutObjectTaggingRequest = exports.PutObjectTaggingOutput = exports.PutObjectRetentionRequest = exports.PutObjectRetentionOutput = exports.PutObjectLockConfigurationRequest = exports.PutObjectLockConfigurationOutput = exports.PutObjectLegalHoldRequest = exports.PutObjectLegalHoldOutput = exports.PutObjectAclRequest = exports.PutObjectAclOutput = exports.PutObjectRequest = exports.PutObjectOutput = exports.PutBucketWebsiteRequest = exports.WebsiteConfiguration = exports.PutBucketVersioningRequest = exports.VersioningConfiguration = exports.PutBucketTaggingRequest = exports.Tagging = exports.PutBucketRequestPaymentRequest = exports.RequestPaymentConfiguration = exports.PutBucketReplicationRequest = exports.PutBucketPolicyRequest = exports.PutBucketOwnershipControlsRequest = exports.PutBucketNotificationConfigurationRequest = exports.PutBucketMetricsConfigurationRequest = exports.PutBucketLoggingRequest = exports.BucketLoggingStatus = exports.PutBucketLifecycleConfigurationRequest = exports.BucketLifecycleConfiguration = exports.PutBucketInventoryConfigurationRequest = exports.PutBucketIntelligentTieringConfigurationRequest = exports.PutBucketEncryptionRequest = exports.PutBucketCorsRequest = exports.CORSConfiguration = exports.PutBucketAnalyticsConfigurationRequest = exports.PutBucketAclRequest = exports.PutBucketAccelerateConfigurationRequest = exports.ListPartsRequest = exports.ListPartsOutput = exports.Part = exports.ListObjectVersionsRequest = exports.ListObjectVersionsOutput = exports.ObjectVersion = exports.DeleteMarkerEntry = exports.ListObjectsV2Request = exports.ListObjectsV2Output = exports.NoSuchBucket = void 0;
8
- exports.GlacierJobParameters = void 0;
3
+ exports.Tag = exports.GetBucketAclRequest = exports.GetBucketAclOutput = exports.GetBucketAccelerateConfigurationRequest = exports.GetBucketAccelerateConfigurationOutput = exports.DeletePublicAccessBlockRequest = exports.DeleteObjectTaggingRequest = exports.DeleteObjectTaggingOutput = exports.DeleteObjectsRequest = exports.Delete = exports.ObjectIdentifier = exports.DeleteObjectsOutput = exports._Error = exports.DeletedObject = exports.DeleteObjectRequest = exports.DeleteObjectOutput = exports.DeleteBucketWebsiteRequest = exports.DeleteBucketTaggingRequest = exports.DeleteBucketReplicationRequest = exports.DeleteBucketPolicyRequest = exports.DeleteBucketOwnershipControlsRequest = exports.DeleteBucketMetricsConfigurationRequest = exports.DeleteBucketLifecycleRequest = exports.DeleteBucketInventoryConfigurationRequest = exports.DeleteBucketIntelligentTieringConfigurationRequest = exports.DeleteBucketEncryptionRequest = exports.DeleteBucketCorsRequest = exports.DeleteBucketAnalyticsConfigurationRequest = exports.DeleteBucketRequest = exports.CreateMultipartUploadRequest = exports.CreateMultipartUploadOutput = exports.CreateBucketRequest = exports.CreateBucketConfiguration = exports.CreateBucketOutput = exports.CopyObjectRequest = exports.CopyObjectOutput = exports.CopyObjectResult = exports.CompleteMultipartUploadRequest = exports.CompletedMultipartUpload = exports.CompletedPart = exports.CompleteMultipartUploadOutput = exports.AccessControlTranslation = exports.AccessControlPolicy = exports.Owner = exports.Grant = exports.Grantee = exports.AccelerateConfiguration = exports.AbortMultipartUploadRequest = exports.AbortMultipartUploadOutput = exports.AbortIncompleteMultipartUpload = void 0;
4
+ exports.MetricsFilter = exports.MetricsAndOperator = exports.GetBucketLoggingRequest = exports.GetBucketLoggingOutput = exports.LoggingEnabled = exports.TargetGrant = exports.GetBucketLocationRequest = exports.GetBucketLocationOutput = exports.GetBucketLifecycleConfigurationRequest = exports.GetBucketLifecycleConfigurationOutput = exports.LifecycleRule = exports.Transition = exports.NoncurrentVersionTransition = exports.NoncurrentVersionExpiration = exports.LifecycleRuleFilter = exports.LifecycleRuleAndOperator = exports.LifecycleExpiration = exports.GetBucketInventoryConfigurationRequest = exports.GetBucketInventoryConfigurationOutput = exports.InventoryConfiguration = exports.InventorySchedule = exports.InventoryFilter = exports.InventoryDestination = exports.InventoryS3BucketDestination = exports.InventoryEncryption = exports.SSES3 = exports.SSEKMS = exports.GetBucketIntelligentTieringConfigurationRequest = exports.GetBucketIntelligentTieringConfigurationOutput = exports.IntelligentTieringConfiguration = exports.Tiering = exports.IntelligentTieringFilter = exports.IntelligentTieringAndOperator = exports.GetBucketEncryptionRequest = exports.GetBucketEncryptionOutput = exports.ServerSideEncryptionConfiguration = exports.ServerSideEncryptionRule = exports.ServerSideEncryptionByDefault = exports.GetBucketCorsRequest = exports.GetBucketCorsOutput = exports.CORSRule = exports.GetBucketAnalyticsConfigurationRequest = exports.GetBucketAnalyticsConfigurationOutput = exports.AnalyticsConfiguration = exports.StorageClassAnalysis = exports.StorageClassAnalysisDataExport = exports.AnalyticsExportDestination = exports.AnalyticsS3BucketDestination = exports.AnalyticsFilter = exports.AnalyticsAndOperator = void 0;
5
+ exports.GetBucketWebsiteOutput = exports.RoutingRule = exports.Redirect = exports.Condition = exports.RedirectAllRequestsTo = exports.IndexDocument = exports.ErrorDocument = exports.GetBucketVersioningRequest = exports.GetBucketVersioningOutput = exports.GetBucketTaggingRequest = exports.GetBucketTaggingOutput = exports.GetBucketRequestPaymentRequest = exports.GetBucketRequestPaymentOutput = exports.GetBucketReplicationRequest = exports.GetBucketReplicationOutput = exports.ReplicationConfiguration = exports.ReplicationRule = exports.SourceSelectionCriteria = exports.SseKmsEncryptedObjects = exports.ReplicaModifications = exports.ReplicationRuleFilter = exports.ReplicationRuleAndOperator = exports.ExistingObjectReplication = exports.Destination = exports.ReplicationTime = exports.Metrics = exports.ReplicationTimeValue = exports.EncryptionConfiguration = exports.DeleteMarkerReplication = exports.GetBucketPolicyStatusRequest = exports.GetBucketPolicyStatusOutput = exports.PolicyStatus = exports.GetBucketPolicyRequest = exports.GetBucketPolicyOutput = exports.GetBucketOwnershipControlsRequest = exports.GetBucketOwnershipControlsOutput = exports.OwnershipControls = exports.OwnershipControlsRule = exports.NotificationConfiguration = exports.TopicConfiguration = exports.QueueConfiguration = exports.LambdaFunctionConfiguration = exports.NotificationConfigurationFilter = exports.S3KeyFilter = exports.FilterRule = exports.EventBridgeConfiguration = exports.GetBucketNotificationConfigurationRequest = exports.GetBucketMetricsConfigurationRequest = exports.GetBucketMetricsConfigurationOutput = exports.MetricsConfiguration = void 0;
6
+ exports.ListObjectVersionsRequest = exports.ListObjectVersionsOutput = exports.ObjectVersion = exports.DeleteMarkerEntry = exports.ListObjectsV2Request = exports.ListObjectsV2Output = exports.ListObjectsRequest = exports.ListObjectsOutput = exports._Object = exports.ListMultipartUploadsRequest = exports.ListMultipartUploadsOutput = exports.MultipartUpload = exports.Initiator = exports.CommonPrefix = exports.ListBucketsOutput = exports.Bucket = exports.ListBucketMetricsConfigurationsRequest = exports.ListBucketMetricsConfigurationsOutput = exports.ListBucketInventoryConfigurationsRequest = exports.ListBucketInventoryConfigurationsOutput = exports.ListBucketIntelligentTieringConfigurationsRequest = exports.ListBucketIntelligentTieringConfigurationsOutput = exports.ListBucketAnalyticsConfigurationsRequest = exports.ListBucketAnalyticsConfigurationsOutput = exports.HeadObjectRequest = exports.HeadObjectOutput = exports.HeadBucketRequest = exports.GetPublicAccessBlockRequest = exports.GetPublicAccessBlockOutput = exports.PublicAccessBlockConfiguration = exports.GetObjectTorrentRequest = exports.GetObjectTorrentOutput = exports.GetObjectTaggingRequest = exports.GetObjectTaggingOutput = exports.GetObjectRetentionRequest = exports.GetObjectRetentionOutput = exports.ObjectLockRetention = exports.GetObjectLockConfigurationRequest = exports.GetObjectLockConfigurationOutput = exports.ObjectLockConfiguration = exports.ObjectLockRule = exports.DefaultRetention = exports.GetObjectLegalHoldRequest = exports.GetObjectLegalHoldOutput = exports.ObjectLockLegalHold = exports.GetObjectAclRequest = exports.GetObjectAclOutput = exports.GetObjectRequest = exports.GetObjectOutput = exports.GetBucketWebsiteRequest = void 0;
7
+ exports.RestoreObjectOutput = exports.PutPublicAccessBlockRequest = exports.PutObjectTaggingRequest = exports.PutObjectTaggingOutput = exports.PutObjectRetentionRequest = exports.PutObjectRetentionOutput = exports.PutObjectLockConfigurationRequest = exports.PutObjectLockConfigurationOutput = exports.PutObjectLegalHoldRequest = exports.PutObjectLegalHoldOutput = exports.PutObjectAclRequest = exports.PutObjectAclOutput = exports.PutObjectRequest = exports.PutObjectOutput = exports.PutBucketWebsiteRequest = exports.WebsiteConfiguration = exports.PutBucketVersioningRequest = exports.VersioningConfiguration = exports.PutBucketTaggingRequest = exports.Tagging = exports.PutBucketRequestPaymentRequest = exports.RequestPaymentConfiguration = exports.PutBucketReplicationRequest = exports.PutBucketPolicyRequest = exports.PutBucketOwnershipControlsRequest = exports.PutBucketNotificationConfigurationRequest = exports.PutBucketMetricsConfigurationRequest = exports.PutBucketLoggingRequest = exports.BucketLoggingStatus = exports.PutBucketLifecycleConfigurationRequest = exports.BucketLifecycleConfiguration = exports.PutBucketInventoryConfigurationRequest = exports.PutBucketIntelligentTieringConfigurationRequest = exports.PutBucketEncryptionRequest = exports.PutBucketCorsRequest = exports.CORSConfiguration = exports.PutBucketAnalyticsConfigurationRequest = exports.PutBucketAclRequest = exports.PutBucketAccelerateConfigurationRequest = exports.ListPartsRequest = exports.ListPartsOutput = exports.Part = void 0;
9
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
10
9
  var AbortIncompleteMultipartUpload;
11
10
  (function (AbortIncompleteMultipartUpload) {
@@ -25,12 +24,6 @@ var AbortMultipartUploadRequest;
25
24
  ...obj,
26
25
  });
27
26
  })(AbortMultipartUploadRequest = exports.AbortMultipartUploadRequest || (exports.AbortMultipartUploadRequest = {}));
28
- var NoSuchUpload;
29
- (function (NoSuchUpload) {
30
- NoSuchUpload.filterSensitiveLog = (obj) => ({
31
- ...obj,
32
- });
33
- })(NoSuchUpload = exports.NoSuchUpload || (exports.NoSuchUpload = {}));
34
27
  var AccelerateConfiguration;
35
28
  (function (AccelerateConfiguration) {
36
29
  AccelerateConfiguration.filterSensitiveLog = (obj) => ({
@@ -116,24 +109,6 @@ var CopyObjectRequest;
116
109
  ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
117
110
  });
118
111
  })(CopyObjectRequest = exports.CopyObjectRequest || (exports.CopyObjectRequest = {}));
119
- var ObjectNotInActiveTierError;
120
- (function (ObjectNotInActiveTierError) {
121
- ObjectNotInActiveTierError.filterSensitiveLog = (obj) => ({
122
- ...obj,
123
- });
124
- })(ObjectNotInActiveTierError = exports.ObjectNotInActiveTierError || (exports.ObjectNotInActiveTierError = {}));
125
- var BucketAlreadyExists;
126
- (function (BucketAlreadyExists) {
127
- BucketAlreadyExists.filterSensitiveLog = (obj) => ({
128
- ...obj,
129
- });
130
- })(BucketAlreadyExists = exports.BucketAlreadyExists || (exports.BucketAlreadyExists = {}));
131
- var BucketAlreadyOwnedByYou;
132
- (function (BucketAlreadyOwnedByYou) {
133
- BucketAlreadyOwnedByYou.filterSensitiveLog = (obj) => ({
134
- ...obj,
135
- });
136
- })(BucketAlreadyOwnedByYou = exports.BucketAlreadyOwnedByYou || (exports.BucketAlreadyOwnedByYou = {}));
137
112
  var CreateBucketOutput;
138
113
  (function (CreateBucketOutput) {
139
114
  CreateBucketOutput.filterSensitiveLog = (obj) => ({
@@ -755,6 +730,12 @@ var GetBucketNotificationConfigurationRequest;
755
730
  ...obj,
756
731
  });
757
732
  })(GetBucketNotificationConfigurationRequest = exports.GetBucketNotificationConfigurationRequest || (exports.GetBucketNotificationConfigurationRequest = {}));
733
+ var EventBridgeConfiguration;
734
+ (function (EventBridgeConfiguration) {
735
+ EventBridgeConfiguration.filterSensitiveLog = (obj) => ({
736
+ ...obj,
737
+ });
738
+ })(EventBridgeConfiguration = exports.EventBridgeConfiguration || (exports.EventBridgeConfiguration = {}));
758
739
  var FilterRule;
759
740
  (function (FilterRule) {
760
741
  FilterRule.filterSensitiveLog = (obj) => ({
@@ -1066,18 +1047,6 @@ var GetObjectRequest;
1066
1047
  ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
1067
1048
  });
1068
1049
  })(GetObjectRequest = exports.GetObjectRequest || (exports.GetObjectRequest = {}));
1069
- var InvalidObjectState;
1070
- (function (InvalidObjectState) {
1071
- InvalidObjectState.filterSensitiveLog = (obj) => ({
1072
- ...obj,
1073
- });
1074
- })(InvalidObjectState = exports.InvalidObjectState || (exports.InvalidObjectState = {}));
1075
- var NoSuchKey;
1076
- (function (NoSuchKey) {
1077
- NoSuchKey.filterSensitiveLog = (obj) => ({
1078
- ...obj,
1079
- });
1080
- })(NoSuchKey = exports.NoSuchKey || (exports.NoSuchKey = {}));
1081
1050
  var GetObjectAclOutput;
1082
1051
  (function (GetObjectAclOutput) {
1083
1052
  GetObjectAclOutput.filterSensitiveLog = (obj) => ({
@@ -1204,12 +1173,6 @@ var HeadBucketRequest;
1204
1173
  ...obj,
1205
1174
  });
1206
1175
  })(HeadBucketRequest = exports.HeadBucketRequest || (exports.HeadBucketRequest = {}));
1207
- var NotFound;
1208
- (function (NotFound) {
1209
- NotFound.filterSensitiveLog = (obj) => ({
1210
- ...obj,
1211
- });
1212
- })(NotFound = exports.NotFound || (exports.NotFound = {}));
1213
1176
  var HeadObjectOutput;
1214
1177
  (function (HeadObjectOutput) {
1215
1178
  HeadObjectOutput.filterSensitiveLog = (obj) => ({
@@ -1341,12 +1304,6 @@ var ListObjectsRequest;
1341
1304
  ...obj,
1342
1305
  });
1343
1306
  })(ListObjectsRequest = exports.ListObjectsRequest || (exports.ListObjectsRequest = {}));
1344
- var NoSuchBucket;
1345
- (function (NoSuchBucket) {
1346
- NoSuchBucket.filterSensitiveLog = (obj) => ({
1347
- ...obj,
1348
- });
1349
- })(NoSuchBucket = exports.NoSuchBucket || (exports.NoSuchBucket = {}));
1350
1307
  var ListObjectsV2Output;
1351
1308
  (function (ListObjectsV2Output) {
1352
1309
  ListObjectsV2Output.filterSensitiveLog = (obj) => ({
@@ -1653,21 +1610,9 @@ var PutPublicAccessBlockRequest;
1653
1610
  ...obj,
1654
1611
  });
1655
1612
  })(PutPublicAccessBlockRequest = exports.PutPublicAccessBlockRequest || (exports.PutPublicAccessBlockRequest = {}));
1656
- var ObjectAlreadyInActiveTierError;
1657
- (function (ObjectAlreadyInActiveTierError) {
1658
- ObjectAlreadyInActiveTierError.filterSensitiveLog = (obj) => ({
1659
- ...obj,
1660
- });
1661
- })(ObjectAlreadyInActiveTierError = exports.ObjectAlreadyInActiveTierError || (exports.ObjectAlreadyInActiveTierError = {}));
1662
1613
  var RestoreObjectOutput;
1663
1614
  (function (RestoreObjectOutput) {
1664
1615
  RestoreObjectOutput.filterSensitiveLog = (obj) => ({
1665
1616
  ...obj,
1666
1617
  });
1667
1618
  })(RestoreObjectOutput = exports.RestoreObjectOutput || (exports.RestoreObjectOutput = {}));
1668
- var GlacierJobParameters;
1669
- (function (GlacierJobParameters) {
1670
- GlacierJobParameters.filterSensitiveLog = (obj) => ({
1671
- ...obj,
1672
- });
1673
- })(GlacierJobParameters = exports.GlacierJobParameters || (exports.GlacierJobParameters = {}));
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WriteGetObjectResponseRequest = exports.UploadPartCopyRequest = exports.UploadPartCopyOutput = exports.CopyPartResult = exports.UploadPartRequest = exports.UploadPartOutput = exports.SelectObjectContentRequest = exports.ScanRange = exports.RequestProgress = exports.SelectObjectContentOutput = exports.SelectObjectContentEventStream = exports.StatsEvent = exports.Stats = exports.RecordsEvent = exports.ProgressEvent = exports.Progress = exports.EndEvent = exports.ContinuationEvent = exports.RestoreObjectRequest = exports.RestoreRequest = exports.RestoreRequestType = exports.SelectParameters = exports.OutputSerialization = exports.JSONOutput = exports.CSVOutput = exports.QuoteFields = exports.InputSerialization = exports.ParquetInput = exports.JSONInput = exports.JSONType = exports.CSVInput = exports.FileHeaderInfo = exports.OutputLocation = exports.S3Location = exports.MetadataEntry = exports.Encryption = void 0;
3
+ exports.WriteGetObjectResponseRequest = exports.UploadPartCopyRequest = exports.UploadPartCopyOutput = exports.CopyPartResult = exports.UploadPartRequest = exports.UploadPartOutput = exports.SelectObjectContentRequest = exports.ScanRange = exports.RequestProgress = exports.SelectObjectContentOutput = exports.SelectObjectContentEventStream = exports.StatsEvent = exports.Stats = exports.RecordsEvent = exports.ProgressEvent = exports.Progress = exports.EndEvent = exports.ContinuationEvent = exports.RestoreObjectRequest = exports.RestoreRequest = exports.RestoreRequestType = exports.SelectParameters = exports.OutputSerialization = exports.JSONOutput = exports.CSVOutput = exports.QuoteFields = exports.InputSerialization = exports.ParquetInput = exports.JSONInput = exports.JSONType = exports.CSVInput = exports.FileHeaderInfo = exports.OutputLocation = exports.S3Location = exports.MetadataEntry = exports.Encryption = exports.GlacierJobParameters = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ var GlacierJobParameters;
6
+ (function (GlacierJobParameters) {
7
+ GlacierJobParameters.filterSensitiveLog = (obj) => ({
8
+ ...obj,
9
+ });
10
+ })(GlacierJobParameters = exports.GlacierJobParameters || (exports.GlacierJobParameters = {}));
5
11
  var Encryption;
6
12
  (function (Encryption) {
7
13
  Encryption.filterSensitiveLog = (obj) => ({
@@ -257,6 +257,7 @@ const serializeAws_restXmlCreateBucketCommand = async (input, context) => {
257
257
  ...(isSerializableHeaderValue(input.ObjectLockEnabledForBucket) && {
258
258
  "x-amz-bucket-object-lock-enabled": input.ObjectLockEnabledForBucket.toString(),
259
259
  }),
260
+ ...(isSerializableHeaderValue(input.ObjectOwnership) && { "x-amz-object-ownership": input.ObjectOwnership }),
260
261
  };
261
262
  let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Bucket}";
262
263
  if (input.Bucket !== undefined) {
@@ -3024,6 +3025,9 @@ const serializeAws_restXmlPutBucketNotificationConfigurationCommand = async (inp
3024
3025
  ...(isSerializableHeaderValue(input.ExpectedBucketOwner) && {
3025
3026
  "x-amz-expected-bucket-owner": input.ExpectedBucketOwner,
3026
3027
  }),
3028
+ ...(isSerializableHeaderValue(input.SkipDestinationValidation) && {
3029
+ "x-amz-skip-destination-validation": input.SkipDestinationValidation.toString(),
3030
+ }),
3027
3031
  };
3028
3032
  let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{Bucket}";
3029
3033
  if (input.Bucket !== undefined) {
@@ -5715,11 +5719,15 @@ const deserializeAws_restXmlGetBucketNotificationConfigurationCommand = async (o
5715
5719
  }
5716
5720
  const contents = {
5717
5721
  $metadata: deserializeMetadata(output),
5722
+ EventBridgeConfiguration: undefined,
5718
5723
  LambdaFunctionConfigurations: undefined,
5719
5724
  QueueConfigurations: undefined,
5720
5725
  TopicConfigurations: undefined,
5721
5726
  };
5722
5727
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5728
+ if (data["EventBridgeConfiguration"] !== undefined) {
5729
+ contents.EventBridgeConfiguration = deserializeAws_restXmlEventBridgeConfiguration(data["EventBridgeConfiguration"], context);
5730
+ }
5723
5731
  if (data.CloudFunctionConfiguration === "") {
5724
5732
  contents.LambdaFunctionConfigurations = [];
5725
5733
  }
@@ -9403,6 +9411,10 @@ const serializeAws_restXmlErrorDocument = (input, context) => {
9403
9411
  }
9404
9412
  return bodyNode;
9405
9413
  };
9414
+ const serializeAws_restXmlEventBridgeConfiguration = (input, context) => {
9415
+ const bodyNode = new xml_builder_1.XmlNode("EventBridgeConfiguration");
9416
+ return bodyNode;
9417
+ };
9406
9418
  const serializeAws_restXmlEventList = (input, context) => {
9407
9419
  return input
9408
9420
  .filter((e) => e != null)
@@ -10077,6 +10089,10 @@ const serializeAws_restXmlNotificationConfiguration = (input, context) => {
10077
10089
  bodyNode.addChildNode(node);
10078
10090
  });
10079
10091
  }
10092
+ if (input.EventBridgeConfiguration !== undefined && input.EventBridgeConfiguration !== null) {
10093
+ const node = serializeAws_restXmlEventBridgeConfiguration(input.EventBridgeConfiguration, context).withName("EventBridgeConfiguration");
10094
+ bodyNode.addChildNode(node);
10095
+ }
10080
10096
  return bodyNode;
10081
10097
  };
10082
10098
  const serializeAws_restXmlNotificationConfigurationFilter = (input, context) => {
@@ -11386,6 +11402,10 @@ const deserializeAws_restXmlErrors = (output, context) => {
11386
11402
  return deserializeAws_restXml_Error(entry, context);
11387
11403
  });
11388
11404
  };
11405
+ const deserializeAws_restXmlEventBridgeConfiguration = (output, context) => {
11406
+ const contents = {};
11407
+ return contents;
11408
+ };
11389
11409
  const deserializeAws_restXmlEventList = (output, context) => {
11390
11410
  return (output || [])
11391
11411
  .filter((e) => e != null)
@@ -16,13 +16,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
16
16
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
17
17
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
20
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
19
21
  const getRuntimeConfig = (config) => {
20
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
23
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
25
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
26
  return {
23
27
  ...clientSharedValues,
24
28
  ...config,
25
29
  runtime: "browser",
30
+ defaultsMode,
26
31
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
27
32
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
28
33
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -32,8 +37,8 @@ const getRuntimeConfig = (config) => {
32
37
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
33
38
  md5: (_h = config === null || config === void 0 ? void 0 : config.md5) !== null && _h !== void 0 ? _h : md5_js_1.Md5,
34
39
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalid_dependency_1.invalidProvider("Region is missing"),
35
- requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(),
36
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
40
+ requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
41
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
42
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
38
43
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
39
44
  streamHasher: (_p = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _p !== void 0 ? _p : hash_blob_browser_1.blobHasher,
@@ -19,14 +19,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
19
19
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
20
20
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
21
  const smithy_client_1 = require("@aws-sdk/smithy-client");
22
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
22
23
  const getRuntimeConfig = (config) => {
23
24
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
24
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
25
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
26
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
27
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
26
28
  return {
27
29
  ...clientSharedValues,
28
30
  ...config,
29
31
  runtime: "node",
32
+ defaultsMode,
30
33
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
34
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
35
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -36,8 +39,11 @@ const getRuntimeConfig = (config) => {
36
39
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
37
40
  md5: (_h = config === null || config === void 0 ? void 0 : config.md5) !== null && _h !== void 0 ? _h : hash_node_1.Hash.bind(null, "md5"),
38
41
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttpHandler(),
40
- retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
42
+ requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
43
+ retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig({
44
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
45
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
46
+ }),
41
47
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
42
48
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
43
49
  streamHasher: (_p = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _p !== void 0 ? _p : hash_stream_node_1.fileStreamHasher,