@aws-sdk/client-s3 3.934.0 → 3.936.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 (91) hide show
  1. package/dist-cjs/index.js +525 -491
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +392 -0
  4. package/dist-es/models/errors.js +173 -0
  5. package/dist-es/models/models_0.js +1 -436
  6. package/dist-es/models/models_1.js +1 -126
  7. package/dist-es/schemas/schemas_0.js +62 -33
  8. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  9. package/dist-types/commands/DeleteObjectCommand.d.ts +8 -3
  10. package/dist-types/commands/DeleteObjectsCommand.d.ts +5 -0
  11. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +7 -2
  12. package/dist-types/commands/GetBucketPolicyCommand.d.ts +1 -1
  13. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  14. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  15. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  16. package/dist-types/commands/ListObjectsV2Command.d.ts +1 -1
  17. package/dist-types/commands/ListPartsCommand.d.ts +1 -1
  18. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  19. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  20. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  21. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  22. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +7 -2
  23. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  24. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  25. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  26. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  27. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  29. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  30. package/dist-types/commands/PutBucketPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/PutBucketReplicationCommand.d.ts +1 -1
  32. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  33. package/dist-types/commands/PutBucketTaggingCommand.d.ts +2 -2
  34. package/dist-types/commands/PutBucketVersioningCommand.d.ts +1 -1
  35. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  36. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  37. package/dist-types/commands/PutObjectCommand.d.ts +1 -1
  38. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  39. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -1
  40. package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -1
  41. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  42. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  43. package/dist-types/commands/RenameObjectCommand.d.ts +1 -1
  44. package/dist-types/commands/RestoreObjectCommand.d.ts +2 -1
  45. package/dist-types/index.d.ts +4 -1
  46. package/dist-types/models/enums.d.ts +960 -0
  47. package/dist-types/models/errors.d.ts +207 -0
  48. package/dist-types/models/models_0.d.ts +3701 -929
  49. package/dist-types/models/models_1.d.ts +3 -3889
  50. package/dist-types/schemas/schemas_0.d.ts +2 -0
  51. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -1
  82. package/dist-types/ts3.4/index.d.ts +4 -1
  83. package/dist-types/ts3.4/models/enums.d.ts +514 -0
  84. package/dist-types/ts3.4/models/errors.d.ts +87 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +607 -487
  86. package/dist-types/ts3.4/models/models_1.d.ts +11 -677
  87. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  88. package/package.json +27 -27
  89. package/dist-es/models/index.js +0 -2
  90. package/dist-types/models/index.d.ts +0 -2
  91. package/dist-types/ts3.4/models/index.d.ts +0 -2
@@ -0,0 +1,207 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IntelligentTieringAccessTier, StorageClass } from "./enums";
3
+ import { S3ServiceException as __BaseException } from "./S3ServiceException";
4
+ /**
5
+ * <p>The specified multipart upload does not exist.</p>
6
+ * @public
7
+ */
8
+ export declare class NoSuchUpload extends __BaseException {
9
+ readonly name: "NoSuchUpload";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<NoSuchUpload, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The source object of the COPY action is not in the active tier and is only stored in Amazon S3
18
+ * Glacier.</p>
19
+ * @public
20
+ */
21
+ export declare class ObjectNotInActiveTierError extends __BaseException {
22
+ readonly name: "ObjectNotInActiveTierError";
23
+ readonly $fault: "client";
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<ObjectNotInActiveTierError, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The requested bucket name is not available. The bucket namespace is shared by all users of the
31
+ * system. Select a different name and try again.</p>
32
+ * @public
33
+ */
34
+ export declare class BucketAlreadyExists extends __BaseException {
35
+ readonly name: "BucketAlreadyExists";
36
+ readonly $fault: "client";
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<BucketAlreadyExists, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services
44
+ * Regions except in the North Virginia Region. For legacy compatibility, if you re-create an existing
45
+ * bucket that you already own in the North Virginia Region, Amazon S3 returns 200 OK and resets the bucket
46
+ * access control lists (ACLs).</p>
47
+ * @public
48
+ */
49
+ export declare class BucketAlreadyOwnedByYou extends __BaseException {
50
+ readonly name: "BucketAlreadyOwnedByYou";
51
+ readonly $fault: "client";
52
+ /**
53
+ * @internal
54
+ */
55
+ constructor(opts: __ExceptionOptionType<BucketAlreadyOwnedByYou, __BaseException>);
56
+ }
57
+ /**
58
+ * <p>The specified bucket does not exist.</p>
59
+ * @public
60
+ */
61
+ export declare class NoSuchBucket extends __BaseException {
62
+ readonly name: "NoSuchBucket";
63
+ readonly $fault: "client";
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<NoSuchBucket, __BaseException>);
68
+ }
69
+ /**
70
+ * <p>Object is archived and inaccessible until restored.</p>
71
+ * <p>If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the
72
+ * S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the
73
+ * S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy
74
+ * using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this operation returns an <code>InvalidObjectState</code> error. For
75
+ * information about restoring archived objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived Objects</a> in the
76
+ * <i>Amazon S3 User Guide</i>.</p>
77
+ * @public
78
+ */
79
+ export declare class InvalidObjectState extends __BaseException {
80
+ readonly name: "InvalidObjectState";
81
+ readonly $fault: "client";
82
+ StorageClass?: StorageClass | undefined;
83
+ AccessTier?: IntelligentTieringAccessTier | undefined;
84
+ /**
85
+ * @internal
86
+ */
87
+ constructor(opts: __ExceptionOptionType<InvalidObjectState, __BaseException>);
88
+ }
89
+ /**
90
+ * <p>The specified key does not exist.</p>
91
+ * @public
92
+ */
93
+ export declare class NoSuchKey extends __BaseException {
94
+ readonly name: "NoSuchKey";
95
+ readonly $fault: "client";
96
+ /**
97
+ * @internal
98
+ */
99
+ constructor(opts: __ExceptionOptionType<NoSuchKey, __BaseException>);
100
+ }
101
+ /**
102
+ * <p>The specified content does not exist.</p>
103
+ * @public
104
+ */
105
+ export declare class NotFound extends __BaseException {
106
+ readonly name: "NotFound";
107
+ readonly $fault: "client";
108
+ /**
109
+ * @internal
110
+ */
111
+ constructor(opts: __ExceptionOptionType<NotFound, __BaseException>);
112
+ }
113
+ /**
114
+ * <p> The existing object was created with a different encryption type. Subsequent write requests must
115
+ * include the appropriate encryption parameters in the request or while creating the session. </p>
116
+ * @public
117
+ */
118
+ export declare class EncryptionTypeMismatch extends __BaseException {
119
+ readonly name: "EncryptionTypeMismatch";
120
+ readonly $fault: "client";
121
+ /**
122
+ * @internal
123
+ */
124
+ constructor(opts: __ExceptionOptionType<EncryptionTypeMismatch, __BaseException>);
125
+ }
126
+ /**
127
+ * <p>You may receive this error in multiple cases. Depending on the reason for the error, you may receive
128
+ * one of the messages below:</p>
129
+ * <ul>
130
+ * <li>
131
+ * <p>Cannot specify both a write offset value and user-defined object metadata for existing
132
+ * objects.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>Checksum Type mismatch occurred, expected checksum Type: sha1, actual checksum Type:
136
+ * crc32c.</p>
137
+ * </li>
138
+ * <li>
139
+ * <p>Request body cannot be empty when 'write offset' is specified.</p>
140
+ * </li>
141
+ * </ul>
142
+ * @public
143
+ */
144
+ export declare class InvalidRequest extends __BaseException {
145
+ readonly name: "InvalidRequest";
146
+ readonly $fault: "client";
147
+ /**
148
+ * @internal
149
+ */
150
+ constructor(opts: __ExceptionOptionType<InvalidRequest, __BaseException>);
151
+ }
152
+ /**
153
+ * <p> The write offset value that you specified does not match the current object size. </p>
154
+ * @public
155
+ */
156
+ export declare class InvalidWriteOffset extends __BaseException {
157
+ readonly name: "InvalidWriteOffset";
158
+ readonly $fault: "client";
159
+ /**
160
+ * @internal
161
+ */
162
+ constructor(opts: __ExceptionOptionType<InvalidWriteOffset, __BaseException>);
163
+ }
164
+ /**
165
+ * <p> You have attempted to add more parts than the maximum of 10000 that are allowed for this object.
166
+ * You can use the CopyObject operation to copy this object to another and then add more data to the newly
167
+ * copied object. </p>
168
+ * @public
169
+ */
170
+ export declare class TooManyParts extends __BaseException {
171
+ readonly name: "TooManyParts";
172
+ readonly $fault: "client";
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts: __ExceptionOptionType<TooManyParts, __BaseException>);
177
+ }
178
+ /**
179
+ * <p>Parameters on this idempotent request are inconsistent with parameters used in previous request(s). </p>
180
+ * <p>For a list of error codes and more information on Amazon S3 errors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList">Error codes</a>.</p>
181
+ * <note>
182
+ * <p>Idempotency ensures that an API request completes no more than one time. With an idempotent
183
+ * request, if the original request completes successfully, any subsequent retries complete successfully
184
+ * without performing any further actions.</p>
185
+ * </note>
186
+ * @public
187
+ */
188
+ export declare class IdempotencyParameterMismatch extends __BaseException {
189
+ readonly name: "IdempotencyParameterMismatch";
190
+ readonly $fault: "client";
191
+ /**
192
+ * @internal
193
+ */
194
+ constructor(opts: __ExceptionOptionType<IdempotencyParameterMismatch, __BaseException>);
195
+ }
196
+ /**
197
+ * <p>This action is not allowed against this storage tier.</p>
198
+ * @public
199
+ */
200
+ export declare class ObjectAlreadyInActiveTierError extends __BaseException {
201
+ readonly name: "ObjectAlreadyInActiveTierError";
202
+ readonly $fault: "client";
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts: __ExceptionOptionType<ObjectAlreadyInActiveTierError, __BaseException>);
207
+ }