@aws-sdk/client-s3 3.490.0 → 3.495.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 (118) hide show
  1. package/dist-cjs/S3.js +1 -201
  2. package/dist-cjs/S3Client.js +1 -53
  3. package/dist-cjs/commands/AbortMultipartUploadCommand.js +1 -30
  4. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +1 -35
  5. package/dist-cjs/commands/CopyObjectCommand.js +1 -35
  6. package/dist-cjs/commands/CreateBucketCommand.js +1 -33
  7. package/dist-cjs/commands/CreateMultipartUploadCommand.js +1 -33
  8. package/dist-cjs/commands/CreateSessionCommand.js +1 -31
  9. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +1 -30
  10. package/dist-cjs/commands/DeleteBucketCommand.js +1 -30
  11. package/dist-cjs/commands/DeleteBucketCorsCommand.js +1 -30
  12. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +1 -30
  13. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +1 -30
  14. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +1 -30
  15. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +1 -30
  16. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +1 -30
  17. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +1 -30
  18. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +1 -30
  19. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +1 -30
  20. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +1 -30
  21. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +1 -30
  22. package/dist-cjs/commands/DeleteObjectCommand.js +1 -30
  23. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +1 -29
  24. package/dist-cjs/commands/DeleteObjectsCommand.js +1 -35
  25. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +1 -30
  26. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +1 -30
  27. package/dist-cjs/commands/GetBucketAclCommand.js +1 -30
  28. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +1 -30
  29. package/dist-cjs/commands/GetBucketCorsCommand.js +1 -30
  30. package/dist-cjs/commands/GetBucketEncryptionCommand.js +1 -31
  31. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +1 -30
  32. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +1 -31
  33. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +1 -30
  34. package/dist-cjs/commands/GetBucketLocationCommand.js +1 -30
  35. package/dist-cjs/commands/GetBucketLoggingCommand.js +1 -30
  36. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +1 -30
  37. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +1 -30
  38. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +1 -30
  39. package/dist-cjs/commands/GetBucketPolicyCommand.js +1 -30
  40. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +1 -30
  41. package/dist-cjs/commands/GetBucketReplicationCommand.js +1 -30
  42. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +1 -30
  43. package/dist-cjs/commands/GetBucketTaggingCommand.js +1 -30
  44. package/dist-cjs/commands/GetBucketVersioningCommand.js +1 -30
  45. package/dist-cjs/commands/GetBucketWebsiteCommand.js +1 -30
  46. package/dist-cjs/commands/GetObjectAclCommand.js +1 -30
  47. package/dist-cjs/commands/GetObjectAttributesCommand.js +1 -32
  48. package/dist-cjs/commands/GetObjectCommand.js +1 -40
  49. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +1 -29
  50. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +1 -29
  51. package/dist-cjs/commands/GetObjectRetentionCommand.js +1 -29
  52. package/dist-cjs/commands/GetObjectTaggingCommand.js +1 -29
  53. package/dist-cjs/commands/GetObjectTorrentCommand.js +1 -30
  54. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +1 -30
  55. package/dist-cjs/commands/HeadBucketCommand.js +1 -29
  56. package/dist-cjs/commands/HeadObjectCommand.js +1 -33
  57. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +1 -30
  58. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +1 -30
  59. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +1 -31
  60. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +1 -29
  61. package/dist-cjs/commands/ListBucketsCommand.js +1 -28
  62. package/dist-cjs/commands/ListDirectoryBucketsCommand.js +1 -29
  63. package/dist-cjs/commands/ListMultipartUploadsCommand.js +1 -30
  64. package/dist-cjs/commands/ListObjectVersionsCommand.js +1 -30
  65. package/dist-cjs/commands/ListObjectsCommand.js +1 -30
  66. package/dist-cjs/commands/ListObjectsV2Command.js +1 -30
  67. package/dist-cjs/commands/ListPartsCommand.js +1 -33
  68. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +1 -36
  69. package/dist-cjs/commands/PutBucketAclCommand.js +1 -36
  70. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +1 -30
  71. package/dist-cjs/commands/PutBucketCorsCommand.js +1 -36
  72. package/dist-cjs/commands/PutBucketEncryptionCommand.js +1 -37
  73. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +1 -30
  74. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +1 -31
  75. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +1 -36
  76. package/dist-cjs/commands/PutBucketLoggingCommand.js +1 -36
  77. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +1 -30
  78. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +1 -30
  79. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +1 -32
  80. package/dist-cjs/commands/PutBucketPolicyCommand.js +1 -36
  81. package/dist-cjs/commands/PutBucketReplicationCommand.js +1 -36
  82. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +1 -36
  83. package/dist-cjs/commands/PutBucketTaggingCommand.js +1 -36
  84. package/dist-cjs/commands/PutBucketVersioningCommand.js +1 -36
  85. package/dist-cjs/commands/PutBucketWebsiteCommand.js +1 -36
  86. package/dist-cjs/commands/PutObjectAclCommand.js +1 -36
  87. package/dist-cjs/commands/PutObjectCommand.js +1 -41
  88. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +1 -35
  89. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +1 -35
  90. package/dist-cjs/commands/PutObjectRetentionCommand.js +1 -35
  91. package/dist-cjs/commands/PutObjectTaggingCommand.js +1 -35
  92. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +1 -36
  93. package/dist-cjs/commands/RestoreObjectCommand.js +1 -36
  94. package/dist-cjs/commands/SelectObjectContentCommand.js +1 -36
  95. package/dist-cjs/commands/UploadPartCommand.js +1 -39
  96. package/dist-cjs/commands/UploadPartCopyCommand.js +1 -35
  97. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +1 -30
  98. package/dist-cjs/commands/index.js +1 -98
  99. package/dist-cjs/endpoint/EndpointParameters.js +1 -28
  100. package/dist-cjs/extensionConfiguration.js +1 -2
  101. package/dist-cjs/index.js +12190 -12
  102. package/dist-cjs/models/S3ServiceException.js +1 -12
  103. package/dist-cjs/models/index.js +1 -5
  104. package/dist-cjs/models/models_0.js +1 -647
  105. package/dist-cjs/models/models_1.js +1 -156
  106. package/dist-cjs/pagination/Interfaces.js +1 -2
  107. package/dist-cjs/pagination/ListDirectoryBucketsPaginator.js +1 -7
  108. package/dist-cjs/pagination/ListObjectsV2Paginator.js +1 -7
  109. package/dist-cjs/pagination/ListPartsPaginator.js +1 -7
  110. package/dist-cjs/pagination/index.js +1 -7
  111. package/dist-cjs/protocols/Aws_restXml.js +1 -8967
  112. package/dist-cjs/runtimeExtensions.js +1 -22
  113. package/dist-cjs/waiters/index.js +1 -7
  114. package/dist-cjs/waiters/waitForBucketExists.js +1 -31
  115. package/dist-cjs/waiters/waitForBucketNotExists.js +1 -30
  116. package/dist-cjs/waiters/waitForObjectExists.js +1 -31
  117. package/dist-cjs/waiters/waitForObjectNotExists.js +1 -30
  118. package/package.json +56 -56
@@ -1,12 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.S3ServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class S3ServiceException extends smithy_client_1.ServiceException {
7
- constructor(options) {
8
- super(options);
9
- Object.setPrototypeOf(this, S3ServiceException.prototype);
10
- }
11
- }
12
- exports.S3ServiceException = S3ServiceException;
1
+ module.exports = require("../index.js");
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
5
- tslib_1.__exportStar(require("./models_1"), exports);
1
+ module.exports = require("../index.js");
@@ -1,647 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SseKmsEncryptedObjectsStatus = exports.ReplicaModificationsStatus = exports.ReplicationRuleFilter = exports.ExistingObjectReplicationStatus = exports.ReplicationTimeStatus = exports.MetricsStatus = exports.DeleteMarkerReplicationStatus = exports.FilterRuleName = exports.Event = exports.MetricsFilter = exports.PartitionDateSource = exports.BucketLogsPermission = exports.ExpirationStatus = exports.TransitionStorageClass = exports.LifecycleRuleFilter = exports.InventoryFrequency = exports.InventoryOptionalField = exports.InventoryIncludedObjectVersions = exports.InventoryFormat = exports.IntelligentTieringAccessTier = exports.IntelligentTieringStatus = exports.StorageClassAnalysisSchemaVersion = exports.AnalyticsS3ExportFileFormat = exports.AnalyticsFilter = exports.NoSuchBucket = exports.SessionMode = exports.ObjectOwnership = exports.BucketLocationConstraint = exports.LocationType = exports.BucketType = exports.DataRedundancy = exports.BucketCannedACL = exports.BucketAlreadyOwnedByYou = exports.BucketAlreadyExists = exports.ObjectNotInActiveTierError = exports.TaggingDirective = exports.StorageClass = exports.ObjectLockMode = exports.ObjectLockLegalHoldStatus = exports.MetadataDirective = exports.ChecksumAlgorithm = exports.ObjectCannedACL = exports.ServerSideEncryption = exports.OwnerOverride = exports.Permission = exports.Type = exports.BucketAccelerateStatus = exports.NoSuchUpload = exports.RequestPayer = exports.RequestCharged = void 0;
4
- exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = exports.PutBucketEncryptionRequestFilterSensitiveLog = exports.ListPartsRequestFilterSensitiveLog = exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = exports.HeadObjectRequestFilterSensitiveLog = exports.HeadObjectOutputFilterSensitiveLog = exports.GetObjectTorrentOutputFilterSensitiveLog = exports.GetObjectAttributesRequestFilterSensitiveLog = exports.GetObjectRequestFilterSensitiveLog = exports.GetObjectOutputFilterSensitiveLog = exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = exports.InventoryConfigurationFilterSensitiveLog = exports.InventoryDestinationFilterSensitiveLog = exports.InventoryS3BucketDestinationFilterSensitiveLog = exports.InventoryEncryptionFilterSensitiveLog = exports.SSEKMSFilterSensitiveLog = exports.GetBucketEncryptionOutputFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ServerSideEncryptionRuleFilterSensitiveLog = exports.ServerSideEncryptionByDefaultFilterSensitiveLog = exports.CreateSessionOutputFilterSensitiveLog = exports.SessionCredentialsFilterSensitiveLog = exports.CreateMultipartUploadRequestFilterSensitiveLog = exports.CreateMultipartUploadOutputFilterSensitiveLog = exports.CopyObjectRequestFilterSensitiveLog = exports.CopyObjectOutputFilterSensitiveLog = exports.CompleteMultipartUploadRequestFilterSensitiveLog = exports.CompleteMultipartUploadOutputFilterSensitiveLog = exports.ObjectVersionStorageClass = exports.OptionalObjectAttributes = exports.ObjectStorageClass = exports.EncodingType = exports.ArchiveStatus = exports.NotFound = exports.ObjectLockRetentionMode = exports.ObjectLockEnabled = exports.ObjectAttributes = exports.NoSuchKey = exports.InvalidObjectState = exports.ChecksumMode = exports.ReplicationStatus = exports.Protocol = exports.BucketVersioningStatus = exports.MFADeleteStatus = exports.Payer = exports.ReplicationRuleStatus = void 0;
5
- const smithy_client_1 = require("@smithy/smithy-client");
6
- const S3ServiceException_1 = require("./S3ServiceException");
7
- exports.RequestCharged = {
8
- requester: "requester",
9
- };
10
- exports.RequestPayer = {
11
- requester: "requester",
12
- };
13
- class NoSuchUpload extends S3ServiceException_1.S3ServiceException {
14
- constructor(opts) {
15
- super({
16
- name: "NoSuchUpload",
17
- $fault: "client",
18
- ...opts,
19
- });
20
- this.name = "NoSuchUpload";
21
- this.$fault = "client";
22
- Object.setPrototypeOf(this, NoSuchUpload.prototype);
23
- }
24
- }
25
- exports.NoSuchUpload = NoSuchUpload;
26
- exports.BucketAccelerateStatus = {
27
- Enabled: "Enabled",
28
- Suspended: "Suspended",
29
- };
30
- exports.Type = {
31
- AmazonCustomerByEmail: "AmazonCustomerByEmail",
32
- CanonicalUser: "CanonicalUser",
33
- Group: "Group",
34
- };
35
- exports.Permission = {
36
- FULL_CONTROL: "FULL_CONTROL",
37
- READ: "READ",
38
- READ_ACP: "READ_ACP",
39
- WRITE: "WRITE",
40
- WRITE_ACP: "WRITE_ACP",
41
- };
42
- exports.OwnerOverride = {
43
- Destination: "Destination",
44
- };
45
- exports.ServerSideEncryption = {
46
- AES256: "AES256",
47
- aws_kms: "aws:kms",
48
- aws_kms_dsse: "aws:kms:dsse",
49
- };
50
- exports.ObjectCannedACL = {
51
- authenticated_read: "authenticated-read",
52
- aws_exec_read: "aws-exec-read",
53
- bucket_owner_full_control: "bucket-owner-full-control",
54
- bucket_owner_read: "bucket-owner-read",
55
- private: "private",
56
- public_read: "public-read",
57
- public_read_write: "public-read-write",
58
- };
59
- exports.ChecksumAlgorithm = {
60
- CRC32: "CRC32",
61
- CRC32C: "CRC32C",
62
- SHA1: "SHA1",
63
- SHA256: "SHA256",
64
- };
65
- exports.MetadataDirective = {
66
- COPY: "COPY",
67
- REPLACE: "REPLACE",
68
- };
69
- exports.ObjectLockLegalHoldStatus = {
70
- OFF: "OFF",
71
- ON: "ON",
72
- };
73
- exports.ObjectLockMode = {
74
- COMPLIANCE: "COMPLIANCE",
75
- GOVERNANCE: "GOVERNANCE",
76
- };
77
- exports.StorageClass = {
78
- DEEP_ARCHIVE: "DEEP_ARCHIVE",
79
- EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
80
- GLACIER: "GLACIER",
81
- GLACIER_IR: "GLACIER_IR",
82
- INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
83
- ONEZONE_IA: "ONEZONE_IA",
84
- OUTPOSTS: "OUTPOSTS",
85
- REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
86
- SNOW: "SNOW",
87
- STANDARD: "STANDARD",
88
- STANDARD_IA: "STANDARD_IA",
89
- };
90
- exports.TaggingDirective = {
91
- COPY: "COPY",
92
- REPLACE: "REPLACE",
93
- };
94
- class ObjectNotInActiveTierError extends S3ServiceException_1.S3ServiceException {
95
- constructor(opts) {
96
- super({
97
- name: "ObjectNotInActiveTierError",
98
- $fault: "client",
99
- ...opts,
100
- });
101
- this.name = "ObjectNotInActiveTierError";
102
- this.$fault = "client";
103
- Object.setPrototypeOf(this, ObjectNotInActiveTierError.prototype);
104
- }
105
- }
106
- exports.ObjectNotInActiveTierError = ObjectNotInActiveTierError;
107
- class BucketAlreadyExists extends S3ServiceException_1.S3ServiceException {
108
- constructor(opts) {
109
- super({
110
- name: "BucketAlreadyExists",
111
- $fault: "client",
112
- ...opts,
113
- });
114
- this.name = "BucketAlreadyExists";
115
- this.$fault = "client";
116
- Object.setPrototypeOf(this, BucketAlreadyExists.prototype);
117
- }
118
- }
119
- exports.BucketAlreadyExists = BucketAlreadyExists;
120
- class BucketAlreadyOwnedByYou extends S3ServiceException_1.S3ServiceException {
121
- constructor(opts) {
122
- super({
123
- name: "BucketAlreadyOwnedByYou",
124
- $fault: "client",
125
- ...opts,
126
- });
127
- this.name = "BucketAlreadyOwnedByYou";
128
- this.$fault = "client";
129
- Object.setPrototypeOf(this, BucketAlreadyOwnedByYou.prototype);
130
- }
131
- }
132
- exports.BucketAlreadyOwnedByYou = BucketAlreadyOwnedByYou;
133
- exports.BucketCannedACL = {
134
- authenticated_read: "authenticated-read",
135
- private: "private",
136
- public_read: "public-read",
137
- public_read_write: "public-read-write",
138
- };
139
- exports.DataRedundancy = {
140
- SingleAvailabilityZone: "SingleAvailabilityZone",
141
- };
142
- exports.BucketType = {
143
- Directory: "Directory",
144
- };
145
- exports.LocationType = {
146
- AvailabilityZone: "AvailabilityZone",
147
- };
148
- exports.BucketLocationConstraint = {
149
- EU: "EU",
150
- af_south_1: "af-south-1",
151
- ap_east_1: "ap-east-1",
152
- ap_northeast_1: "ap-northeast-1",
153
- ap_northeast_2: "ap-northeast-2",
154
- ap_northeast_3: "ap-northeast-3",
155
- ap_south_1: "ap-south-1",
156
- ap_south_2: "ap-south-2",
157
- ap_southeast_1: "ap-southeast-1",
158
- ap_southeast_2: "ap-southeast-2",
159
- ap_southeast_3: "ap-southeast-3",
160
- ca_central_1: "ca-central-1",
161
- cn_north_1: "cn-north-1",
162
- cn_northwest_1: "cn-northwest-1",
163
- eu_central_1: "eu-central-1",
164
- eu_north_1: "eu-north-1",
165
- eu_south_1: "eu-south-1",
166
- eu_south_2: "eu-south-2",
167
- eu_west_1: "eu-west-1",
168
- eu_west_2: "eu-west-2",
169
- eu_west_3: "eu-west-3",
170
- me_south_1: "me-south-1",
171
- sa_east_1: "sa-east-1",
172
- us_east_2: "us-east-2",
173
- us_gov_east_1: "us-gov-east-1",
174
- us_gov_west_1: "us-gov-west-1",
175
- us_west_1: "us-west-1",
176
- us_west_2: "us-west-2",
177
- };
178
- exports.ObjectOwnership = {
179
- BucketOwnerEnforced: "BucketOwnerEnforced",
180
- BucketOwnerPreferred: "BucketOwnerPreferred",
181
- ObjectWriter: "ObjectWriter",
182
- };
183
- exports.SessionMode = {
184
- ReadOnly: "ReadOnly",
185
- ReadWrite: "ReadWrite",
186
- };
187
- class NoSuchBucket extends S3ServiceException_1.S3ServiceException {
188
- constructor(opts) {
189
- super({
190
- name: "NoSuchBucket",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- this.name = "NoSuchBucket";
195
- this.$fault = "client";
196
- Object.setPrototypeOf(this, NoSuchBucket.prototype);
197
- }
198
- }
199
- exports.NoSuchBucket = NoSuchBucket;
200
- var AnalyticsFilter;
201
- (function (AnalyticsFilter) {
202
- AnalyticsFilter.visit = (value, visitor) => {
203
- if (value.Prefix !== undefined)
204
- return visitor.Prefix(value.Prefix);
205
- if (value.Tag !== undefined)
206
- return visitor.Tag(value.Tag);
207
- if (value.And !== undefined)
208
- return visitor.And(value.And);
209
- return visitor._(value.$unknown[0], value.$unknown[1]);
210
- };
211
- })(AnalyticsFilter = exports.AnalyticsFilter || (exports.AnalyticsFilter = {}));
212
- exports.AnalyticsS3ExportFileFormat = {
213
- CSV: "CSV",
214
- };
215
- exports.StorageClassAnalysisSchemaVersion = {
216
- V_1: "V_1",
217
- };
218
- exports.IntelligentTieringStatus = {
219
- Disabled: "Disabled",
220
- Enabled: "Enabled",
221
- };
222
- exports.IntelligentTieringAccessTier = {
223
- ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
224
- DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS",
225
- };
226
- exports.InventoryFormat = {
227
- CSV: "CSV",
228
- ORC: "ORC",
229
- Parquet: "Parquet",
230
- };
231
- exports.InventoryIncludedObjectVersions = {
232
- All: "All",
233
- Current: "Current",
234
- };
235
- exports.InventoryOptionalField = {
236
- BucketKeyStatus: "BucketKeyStatus",
237
- ChecksumAlgorithm: "ChecksumAlgorithm",
238
- ETag: "ETag",
239
- EncryptionStatus: "EncryptionStatus",
240
- IntelligentTieringAccessTier: "IntelligentTieringAccessTier",
241
- IsMultipartUploaded: "IsMultipartUploaded",
242
- LastModifiedDate: "LastModifiedDate",
243
- ObjectAccessControlList: "ObjectAccessControlList",
244
- ObjectLockLegalHoldStatus: "ObjectLockLegalHoldStatus",
245
- ObjectLockMode: "ObjectLockMode",
246
- ObjectLockRetainUntilDate: "ObjectLockRetainUntilDate",
247
- ObjectOwner: "ObjectOwner",
248
- ReplicationStatus: "ReplicationStatus",
249
- Size: "Size",
250
- StorageClass: "StorageClass",
251
- };
252
- exports.InventoryFrequency = {
253
- Daily: "Daily",
254
- Weekly: "Weekly",
255
- };
256
- var LifecycleRuleFilter;
257
- (function (LifecycleRuleFilter) {
258
- LifecycleRuleFilter.visit = (value, visitor) => {
259
- if (value.Prefix !== undefined)
260
- return visitor.Prefix(value.Prefix);
261
- if (value.Tag !== undefined)
262
- return visitor.Tag(value.Tag);
263
- if (value.ObjectSizeGreaterThan !== undefined)
264
- return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan);
265
- if (value.ObjectSizeLessThan !== undefined)
266
- return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan);
267
- if (value.And !== undefined)
268
- return visitor.And(value.And);
269
- return visitor._(value.$unknown[0], value.$unknown[1]);
270
- };
271
- })(LifecycleRuleFilter = exports.LifecycleRuleFilter || (exports.LifecycleRuleFilter = {}));
272
- exports.TransitionStorageClass = {
273
- DEEP_ARCHIVE: "DEEP_ARCHIVE",
274
- GLACIER: "GLACIER",
275
- GLACIER_IR: "GLACIER_IR",
276
- INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
277
- ONEZONE_IA: "ONEZONE_IA",
278
- STANDARD_IA: "STANDARD_IA",
279
- };
280
- exports.ExpirationStatus = {
281
- Disabled: "Disabled",
282
- Enabled: "Enabled",
283
- };
284
- exports.BucketLogsPermission = {
285
- FULL_CONTROL: "FULL_CONTROL",
286
- READ: "READ",
287
- WRITE: "WRITE",
288
- };
289
- exports.PartitionDateSource = {
290
- DeliveryTime: "DeliveryTime",
291
- EventTime: "EventTime",
292
- };
293
- var MetricsFilter;
294
- (function (MetricsFilter) {
295
- MetricsFilter.visit = (value, visitor) => {
296
- if (value.Prefix !== undefined)
297
- return visitor.Prefix(value.Prefix);
298
- if (value.Tag !== undefined)
299
- return visitor.Tag(value.Tag);
300
- if (value.AccessPointArn !== undefined)
301
- return visitor.AccessPointArn(value.AccessPointArn);
302
- if (value.And !== undefined)
303
- return visitor.And(value.And);
304
- return visitor._(value.$unknown[0], value.$unknown[1]);
305
- };
306
- })(MetricsFilter = exports.MetricsFilter || (exports.MetricsFilter = {}));
307
- exports.Event = {
308
- s3_IntelligentTiering: "s3:IntelligentTiering",
309
- s3_LifecycleExpiration_: "s3:LifecycleExpiration:*",
310
- s3_LifecycleExpiration_Delete: "s3:LifecycleExpiration:Delete",
311
- s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated",
312
- s3_LifecycleTransition: "s3:LifecycleTransition",
313
- s3_ObjectAcl_Put: "s3:ObjectAcl:Put",
314
- s3_ObjectCreated_: "s3:ObjectCreated:*",
315
- s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload",
316
- s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy",
317
- s3_ObjectCreated_Post: "s3:ObjectCreated:Post",
318
- s3_ObjectCreated_Put: "s3:ObjectCreated:Put",
319
- s3_ObjectRemoved_: "s3:ObjectRemoved:*",
320
- s3_ObjectRemoved_Delete: "s3:ObjectRemoved:Delete",
321
- s3_ObjectRemoved_DeleteMarkerCreated: "s3:ObjectRemoved:DeleteMarkerCreated",
322
- s3_ObjectRestore_: "s3:ObjectRestore:*",
323
- s3_ObjectRestore_Completed: "s3:ObjectRestore:Completed",
324
- s3_ObjectRestore_Delete: "s3:ObjectRestore:Delete",
325
- s3_ObjectRestore_Post: "s3:ObjectRestore:Post",
326
- s3_ObjectTagging_: "s3:ObjectTagging:*",
327
- s3_ObjectTagging_Delete: "s3:ObjectTagging:Delete",
328
- s3_ObjectTagging_Put: "s3:ObjectTagging:Put",
329
- s3_ReducedRedundancyLostObject: "s3:ReducedRedundancyLostObject",
330
- s3_Replication_: "s3:Replication:*",
331
- s3_Replication_OperationFailedReplication: "s3:Replication:OperationFailedReplication",
332
- s3_Replication_OperationMissedThreshold: "s3:Replication:OperationMissedThreshold",
333
- s3_Replication_OperationNotTracked: "s3:Replication:OperationNotTracked",
334
- s3_Replication_OperationReplicatedAfterThreshold: "s3:Replication:OperationReplicatedAfterThreshold",
335
- };
336
- exports.FilterRuleName = {
337
- prefix: "prefix",
338
- suffix: "suffix",
339
- };
340
- exports.DeleteMarkerReplicationStatus = {
341
- Disabled: "Disabled",
342
- Enabled: "Enabled",
343
- };
344
- exports.MetricsStatus = {
345
- Disabled: "Disabled",
346
- Enabled: "Enabled",
347
- };
348
- exports.ReplicationTimeStatus = {
349
- Disabled: "Disabled",
350
- Enabled: "Enabled",
351
- };
352
- exports.ExistingObjectReplicationStatus = {
353
- Disabled: "Disabled",
354
- Enabled: "Enabled",
355
- };
356
- var ReplicationRuleFilter;
357
- (function (ReplicationRuleFilter) {
358
- ReplicationRuleFilter.visit = (value, visitor) => {
359
- if (value.Prefix !== undefined)
360
- return visitor.Prefix(value.Prefix);
361
- if (value.Tag !== undefined)
362
- return visitor.Tag(value.Tag);
363
- if (value.And !== undefined)
364
- return visitor.And(value.And);
365
- return visitor._(value.$unknown[0], value.$unknown[1]);
366
- };
367
- })(ReplicationRuleFilter = exports.ReplicationRuleFilter || (exports.ReplicationRuleFilter = {}));
368
- exports.ReplicaModificationsStatus = {
369
- Disabled: "Disabled",
370
- Enabled: "Enabled",
371
- };
372
- exports.SseKmsEncryptedObjectsStatus = {
373
- Disabled: "Disabled",
374
- Enabled: "Enabled",
375
- };
376
- exports.ReplicationRuleStatus = {
377
- Disabled: "Disabled",
378
- Enabled: "Enabled",
379
- };
380
- exports.Payer = {
381
- BucketOwner: "BucketOwner",
382
- Requester: "Requester",
383
- };
384
- exports.MFADeleteStatus = {
385
- Disabled: "Disabled",
386
- Enabled: "Enabled",
387
- };
388
- exports.BucketVersioningStatus = {
389
- Enabled: "Enabled",
390
- Suspended: "Suspended",
391
- };
392
- exports.Protocol = {
393
- http: "http",
394
- https: "https",
395
- };
396
- exports.ReplicationStatus = {
397
- COMPLETE: "COMPLETE",
398
- COMPLETED: "COMPLETED",
399
- FAILED: "FAILED",
400
- PENDING: "PENDING",
401
- REPLICA: "REPLICA",
402
- };
403
- exports.ChecksumMode = {
404
- ENABLED: "ENABLED",
405
- };
406
- class InvalidObjectState extends S3ServiceException_1.S3ServiceException {
407
- constructor(opts) {
408
- super({
409
- name: "InvalidObjectState",
410
- $fault: "client",
411
- ...opts,
412
- });
413
- this.name = "InvalidObjectState";
414
- this.$fault = "client";
415
- Object.setPrototypeOf(this, InvalidObjectState.prototype);
416
- this.StorageClass = opts.StorageClass;
417
- this.AccessTier = opts.AccessTier;
418
- }
419
- }
420
- exports.InvalidObjectState = InvalidObjectState;
421
- class NoSuchKey extends S3ServiceException_1.S3ServiceException {
422
- constructor(opts) {
423
- super({
424
- name: "NoSuchKey",
425
- $fault: "client",
426
- ...opts,
427
- });
428
- this.name = "NoSuchKey";
429
- this.$fault = "client";
430
- Object.setPrototypeOf(this, NoSuchKey.prototype);
431
- }
432
- }
433
- exports.NoSuchKey = NoSuchKey;
434
- exports.ObjectAttributes = {
435
- CHECKSUM: "Checksum",
436
- ETAG: "ETag",
437
- OBJECT_PARTS: "ObjectParts",
438
- OBJECT_SIZE: "ObjectSize",
439
- STORAGE_CLASS: "StorageClass",
440
- };
441
- exports.ObjectLockEnabled = {
442
- Enabled: "Enabled",
443
- };
444
- exports.ObjectLockRetentionMode = {
445
- COMPLIANCE: "COMPLIANCE",
446
- GOVERNANCE: "GOVERNANCE",
447
- };
448
- class NotFound extends S3ServiceException_1.S3ServiceException {
449
- constructor(opts) {
450
- super({
451
- name: "NotFound",
452
- $fault: "client",
453
- ...opts,
454
- });
455
- this.name = "NotFound";
456
- this.$fault = "client";
457
- Object.setPrototypeOf(this, NotFound.prototype);
458
- }
459
- }
460
- exports.NotFound = NotFound;
461
- exports.ArchiveStatus = {
462
- ARCHIVE_ACCESS: "ARCHIVE_ACCESS",
463
- DEEP_ARCHIVE_ACCESS: "DEEP_ARCHIVE_ACCESS",
464
- };
465
- exports.EncodingType = {
466
- url: "url",
467
- };
468
- exports.ObjectStorageClass = {
469
- DEEP_ARCHIVE: "DEEP_ARCHIVE",
470
- EXPRESS_ONEZONE: "EXPRESS_ONEZONE",
471
- GLACIER: "GLACIER",
472
- GLACIER_IR: "GLACIER_IR",
473
- INTELLIGENT_TIERING: "INTELLIGENT_TIERING",
474
- ONEZONE_IA: "ONEZONE_IA",
475
- OUTPOSTS: "OUTPOSTS",
476
- REDUCED_REDUNDANCY: "REDUCED_REDUNDANCY",
477
- SNOW: "SNOW",
478
- STANDARD: "STANDARD",
479
- STANDARD_IA: "STANDARD_IA",
480
- };
481
- exports.OptionalObjectAttributes = {
482
- RESTORE_STATUS: "RestoreStatus",
483
- };
484
- exports.ObjectVersionStorageClass = {
485
- STANDARD: "STANDARD",
486
- };
487
- const CompleteMultipartUploadOutputFilterSensitiveLog = (obj) => ({
488
- ...obj,
489
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
490
- });
491
- exports.CompleteMultipartUploadOutputFilterSensitiveLog = CompleteMultipartUploadOutputFilterSensitiveLog;
492
- const CompleteMultipartUploadRequestFilterSensitiveLog = (obj) => ({
493
- ...obj,
494
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
495
- });
496
- exports.CompleteMultipartUploadRequestFilterSensitiveLog = CompleteMultipartUploadRequestFilterSensitiveLog;
497
- const CopyObjectOutputFilterSensitiveLog = (obj) => ({
498
- ...obj,
499
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
500
- ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }),
501
- });
502
- exports.CopyObjectOutputFilterSensitiveLog = CopyObjectOutputFilterSensitiveLog;
503
- const CopyObjectRequestFilterSensitiveLog = (obj) => ({
504
- ...obj,
505
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
506
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
507
- ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }),
508
- ...(obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
509
- });
510
- exports.CopyObjectRequestFilterSensitiveLog = CopyObjectRequestFilterSensitiveLog;
511
- const CreateMultipartUploadOutputFilterSensitiveLog = (obj) => ({
512
- ...obj,
513
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
514
- ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }),
515
- });
516
- exports.CreateMultipartUploadOutputFilterSensitiveLog = CreateMultipartUploadOutputFilterSensitiveLog;
517
- const CreateMultipartUploadRequestFilterSensitiveLog = (obj) => ({
518
- ...obj,
519
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
520
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
521
- ...(obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: smithy_client_1.SENSITIVE_STRING }),
522
- });
523
- exports.CreateMultipartUploadRequestFilterSensitiveLog = CreateMultipartUploadRequestFilterSensitiveLog;
524
- const SessionCredentialsFilterSensitiveLog = (obj) => ({
525
- ...obj,
526
- ...(obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING }),
527
- ...(obj.SessionToken && { SessionToken: smithy_client_1.SENSITIVE_STRING }),
528
- });
529
- exports.SessionCredentialsFilterSensitiveLog = SessionCredentialsFilterSensitiveLog;
530
- const CreateSessionOutputFilterSensitiveLog = (obj) => ({
531
- ...obj,
532
- ...(obj.Credentials && { Credentials: (0, exports.SessionCredentialsFilterSensitiveLog)(obj.Credentials) }),
533
- });
534
- exports.CreateSessionOutputFilterSensitiveLog = CreateSessionOutputFilterSensitiveLog;
535
- const ServerSideEncryptionByDefaultFilterSensitiveLog = (obj) => ({
536
- ...obj,
537
- ...(obj.KMSMasterKeyID && { KMSMasterKeyID: smithy_client_1.SENSITIVE_STRING }),
538
- });
539
- exports.ServerSideEncryptionByDefaultFilterSensitiveLog = ServerSideEncryptionByDefaultFilterSensitiveLog;
540
- const ServerSideEncryptionRuleFilterSensitiveLog = (obj) => ({
541
- ...obj,
542
- ...(obj.ApplyServerSideEncryptionByDefault && {
543
- ApplyServerSideEncryptionByDefault: (0, exports.ServerSideEncryptionByDefaultFilterSensitiveLog)(obj.ApplyServerSideEncryptionByDefault),
544
- }),
545
- });
546
- exports.ServerSideEncryptionRuleFilterSensitiveLog = ServerSideEncryptionRuleFilterSensitiveLog;
547
- const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
548
- ...obj,
549
- ...(obj.Rules && { Rules: obj.Rules.map((item) => (0, exports.ServerSideEncryptionRuleFilterSensitiveLog)(item)) }),
550
- });
551
- exports.ServerSideEncryptionConfigurationFilterSensitiveLog = ServerSideEncryptionConfigurationFilterSensitiveLog;
552
- const GetBucketEncryptionOutputFilterSensitiveLog = (obj) => ({
553
- ...obj,
554
- ...(obj.ServerSideEncryptionConfiguration && {
555
- ServerSideEncryptionConfiguration: (0, exports.ServerSideEncryptionConfigurationFilterSensitiveLog)(obj.ServerSideEncryptionConfiguration),
556
- }),
557
- });
558
- exports.GetBucketEncryptionOutputFilterSensitiveLog = GetBucketEncryptionOutputFilterSensitiveLog;
559
- const SSEKMSFilterSensitiveLog = (obj) => ({
560
- ...obj,
561
- ...(obj.KeyId && { KeyId: smithy_client_1.SENSITIVE_STRING }),
562
- });
563
- exports.SSEKMSFilterSensitiveLog = SSEKMSFilterSensitiveLog;
564
- const InventoryEncryptionFilterSensitiveLog = (obj) => ({
565
- ...obj,
566
- ...(obj.SSEKMS && { SSEKMS: (0, exports.SSEKMSFilterSensitiveLog)(obj.SSEKMS) }),
567
- });
568
- exports.InventoryEncryptionFilterSensitiveLog = InventoryEncryptionFilterSensitiveLog;
569
- const InventoryS3BucketDestinationFilterSensitiveLog = (obj) => ({
570
- ...obj,
571
- ...(obj.Encryption && { Encryption: (0, exports.InventoryEncryptionFilterSensitiveLog)(obj.Encryption) }),
572
- });
573
- exports.InventoryS3BucketDestinationFilterSensitiveLog = InventoryS3BucketDestinationFilterSensitiveLog;
574
- const InventoryDestinationFilterSensitiveLog = (obj) => ({
575
- ...obj,
576
- ...(obj.S3BucketDestination && {
577
- S3BucketDestination: (0, exports.InventoryS3BucketDestinationFilterSensitiveLog)(obj.S3BucketDestination),
578
- }),
579
- });
580
- exports.InventoryDestinationFilterSensitiveLog = InventoryDestinationFilterSensitiveLog;
581
- const InventoryConfigurationFilterSensitiveLog = (obj) => ({
582
- ...obj,
583
- ...(obj.Destination && { Destination: (0, exports.InventoryDestinationFilterSensitiveLog)(obj.Destination) }),
584
- });
585
- exports.InventoryConfigurationFilterSensitiveLog = InventoryConfigurationFilterSensitiveLog;
586
- const GetBucketInventoryConfigurationOutputFilterSensitiveLog = (obj) => ({
587
- ...obj,
588
- ...(obj.InventoryConfiguration && {
589
- InventoryConfiguration: (0, exports.InventoryConfigurationFilterSensitiveLog)(obj.InventoryConfiguration),
590
- }),
591
- });
592
- exports.GetBucketInventoryConfigurationOutputFilterSensitiveLog = GetBucketInventoryConfigurationOutputFilterSensitiveLog;
593
- const GetObjectOutputFilterSensitiveLog = (obj) => ({
594
- ...obj,
595
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
596
- });
597
- exports.GetObjectOutputFilterSensitiveLog = GetObjectOutputFilterSensitiveLog;
598
- const GetObjectRequestFilterSensitiveLog = (obj) => ({
599
- ...obj,
600
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
601
- });
602
- exports.GetObjectRequestFilterSensitiveLog = GetObjectRequestFilterSensitiveLog;
603
- const GetObjectAttributesRequestFilterSensitiveLog = (obj) => ({
604
- ...obj,
605
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
606
- });
607
- exports.GetObjectAttributesRequestFilterSensitiveLog = GetObjectAttributesRequestFilterSensitiveLog;
608
- const GetObjectTorrentOutputFilterSensitiveLog = (obj) => ({
609
- ...obj,
610
- });
611
- exports.GetObjectTorrentOutputFilterSensitiveLog = GetObjectTorrentOutputFilterSensitiveLog;
612
- const HeadObjectOutputFilterSensitiveLog = (obj) => ({
613
- ...obj,
614
- ...(obj.SSEKMSKeyId && { SSEKMSKeyId: smithy_client_1.SENSITIVE_STRING }),
615
- });
616
- exports.HeadObjectOutputFilterSensitiveLog = HeadObjectOutputFilterSensitiveLog;
617
- const HeadObjectRequestFilterSensitiveLog = (obj) => ({
618
- ...obj,
619
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
620
- });
621
- exports.HeadObjectRequestFilterSensitiveLog = HeadObjectRequestFilterSensitiveLog;
622
- const ListBucketInventoryConfigurationsOutputFilterSensitiveLog = (obj) => ({
623
- ...obj,
624
- ...(obj.InventoryConfigurationList && {
625
- InventoryConfigurationList: obj.InventoryConfigurationList.map((item) => (0, exports.InventoryConfigurationFilterSensitiveLog)(item)),
626
- }),
627
- });
628
- exports.ListBucketInventoryConfigurationsOutputFilterSensitiveLog = ListBucketInventoryConfigurationsOutputFilterSensitiveLog;
629
- const ListPartsRequestFilterSensitiveLog = (obj) => ({
630
- ...obj,
631
- ...(obj.SSECustomerKey && { SSECustomerKey: smithy_client_1.SENSITIVE_STRING }),
632
- });
633
- exports.ListPartsRequestFilterSensitiveLog = ListPartsRequestFilterSensitiveLog;
634
- const PutBucketEncryptionRequestFilterSensitiveLog = (obj) => ({
635
- ...obj,
636
- ...(obj.ServerSideEncryptionConfiguration && {
637
- ServerSideEncryptionConfiguration: (0, exports.ServerSideEncryptionConfigurationFilterSensitiveLog)(obj.ServerSideEncryptionConfiguration),
638
- }),
639
- });
640
- exports.PutBucketEncryptionRequestFilterSensitiveLog = PutBucketEncryptionRequestFilterSensitiveLog;
641
- const PutBucketInventoryConfigurationRequestFilterSensitiveLog = (obj) => ({
642
- ...obj,
643
- ...(obj.InventoryConfiguration && {
644
- InventoryConfiguration: (0, exports.InventoryConfigurationFilterSensitiveLog)(obj.InventoryConfiguration),
645
- }),
646
- });
647
- exports.PutBucketInventoryConfigurationRequestFilterSensitiveLog = PutBucketInventoryConfigurationRequestFilterSensitiveLog;
1
+ module.exports = require("../index.js");