@aws-sdk/client-s3 3.1069.0 → 3.1071.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 (56) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +133 -2
  3. package/dist-cjs/models/errors.js +76 -4
  4. package/dist-cjs/schemas/schemas_0.js +279 -100
  5. package/dist-es/S3.js +12 -0
  6. package/dist-es/commands/DeleteObjectAnnotationCommand.js +23 -0
  7. package/dist-es/commands/GetObjectAnnotationCommand.js +28 -0
  8. package/dist-es/commands/ListObjectAnnotationsCommand.js +23 -0
  9. package/dist-es/commands/PutObjectAnnotationCommand.js +29 -0
  10. package/dist-es/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.js +27 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/models/enums.js +12 -1
  13. package/dist-es/models/errors.js +76 -4
  14. package/dist-es/pagination/ListObjectAnnotationsPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +1 -0
  16. package/dist-es/schemas/schemas_0.js +260 -100
  17. package/dist-types/S3.d.ts +42 -0
  18. package/dist-types/S3Client.d.ts +7 -2
  19. package/dist-types/commands/CopyObjectCommand.d.ts +1 -0
  20. package/dist-types/commands/CreateBucketMetadataConfigurationCommand.d.ts +27 -0
  21. package/dist-types/commands/DeleteObjectAnnotationCommand.d.ts +119 -0
  22. package/dist-types/commands/GetBucketMetadataConfigurationCommand.d.ts +11 -0
  23. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  24. package/dist-types/commands/GetObjectAnnotationCommand.d.ts +141 -0
  25. package/dist-types/commands/ListObjectAnnotationsCommand.d.ts +138 -0
  26. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  27. package/dist-types/commands/PutObjectAnnotationCommand.d.ts +166 -0
  28. package/dist-types/commands/RenameObjectCommand.d.ts +1 -1
  29. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -2
  30. package/dist-types/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +110 -0
  31. package/dist-types/commands/index.d.ts +5 -0
  32. package/dist-types/models/enums.d.ts +29 -2
  33. package/dist-types/models/errors.d.ts +76 -4
  34. package/dist-types/models/models_0.d.ts +925 -549
  35. package/dist-types/models/models_1.d.ts +380 -2
  36. package/dist-types/pagination/ListObjectAnnotationsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +1 -0
  38. package/dist-types/schemas/schemas_0.d.ts +24 -0
  39. package/dist-types/ts3.4/S3.d.ts +98 -0
  40. package/dist-types/ts3.4/S3Client.d.ts +30 -0
  41. package/dist-types/ts3.4/commands/DeleteObjectAnnotationCommand.d.ts +53 -0
  42. package/dist-types/ts3.4/commands/GetObjectAnnotationCommand.d.ts +61 -0
  43. package/dist-types/ts3.4/commands/ListObjectAnnotationsCommand.d.ts +53 -0
  44. package/dist-types/ts3.4/commands/PutObjectAnnotationCommand.d.ts +61 -0
  45. package/dist-types/ts3.4/commands/RenameObjectCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +1 -2
  47. package/dist-types/ts3.4/commands/UpdateBucketMetadataAnnotationTableConfigurationCommand.d.ts +49 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  49. package/dist-types/ts3.4/models/enums.d.ts +18 -3
  50. package/dist-types/ts3.4/models/errors.d.ts +41 -3
  51. package/dist-types/ts3.4/models/models_0.d.ts +138 -64
  52. package/dist-types/ts3.4/models/models_1.d.ts +75 -5
  53. package/dist-types/ts3.4/pagination/ListObjectAnnotationsPaginator.d.ts +11 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  56. package/package.json +6 -6
package/dist-es/S3.js CHANGED
@@ -22,6 +22,7 @@ import { DeleteBucketPolicyCommand, } from "./commands/DeleteBucketPolicyCommand
22
22
  import { DeleteBucketReplicationCommand, } from "./commands/DeleteBucketReplicationCommand";
23
23
  import { DeleteBucketTaggingCommand, } from "./commands/DeleteBucketTaggingCommand";
24
24
  import { DeleteBucketWebsiteCommand, } from "./commands/DeleteBucketWebsiteCommand";
25
+ import { DeleteObjectAnnotationCommand, } from "./commands/DeleteObjectAnnotationCommand";
25
26
  import { DeleteObjectCommand, } from "./commands/DeleteObjectCommand";
26
27
  import { DeleteObjectsCommand, } from "./commands/DeleteObjectsCommand";
27
28
  import { DeleteObjectTaggingCommand, } from "./commands/DeleteObjectTaggingCommand";
@@ -50,6 +51,7 @@ import { GetBucketTaggingCommand, } from "./commands/GetBucketTaggingCommand";
50
51
  import { GetBucketVersioningCommand, } from "./commands/GetBucketVersioningCommand";
51
52
  import { GetBucketWebsiteCommand, } from "./commands/GetBucketWebsiteCommand";
52
53
  import { GetObjectAclCommand, } from "./commands/GetObjectAclCommand";
54
+ import { GetObjectAnnotationCommand, } from "./commands/GetObjectAnnotationCommand";
53
55
  import { GetObjectAttributesCommand, } from "./commands/GetObjectAttributesCommand";
54
56
  import { GetObjectCommand } from "./commands/GetObjectCommand";
55
57
  import { GetObjectLegalHoldCommand, } from "./commands/GetObjectLegalHoldCommand";
@@ -67,6 +69,7 @@ import { ListBucketMetricsConfigurationsCommand, } from "./commands/ListBucketMe
67
69
  import { ListBucketsCommand, } from "./commands/ListBucketsCommand";
68
70
  import { ListDirectoryBucketsCommand, } from "./commands/ListDirectoryBucketsCommand";
69
71
  import { ListMultipartUploadsCommand, } from "./commands/ListMultipartUploadsCommand";
72
+ import { ListObjectAnnotationsCommand, } from "./commands/ListObjectAnnotationsCommand";
70
73
  import { ListObjectsCommand, } from "./commands/ListObjectsCommand";
71
74
  import { ListObjectsV2Command, } from "./commands/ListObjectsV2Command";
72
75
  import { ListObjectVersionsCommand, } from "./commands/ListObjectVersionsCommand";
@@ -91,6 +94,7 @@ import { PutBucketTaggingCommand, } from "./commands/PutBucketTaggingCommand";
91
94
  import { PutBucketVersioningCommand, } from "./commands/PutBucketVersioningCommand";
92
95
  import { PutBucketWebsiteCommand, } from "./commands/PutBucketWebsiteCommand";
93
96
  import { PutObjectAclCommand, } from "./commands/PutObjectAclCommand";
97
+ import { PutObjectAnnotationCommand, } from "./commands/PutObjectAnnotationCommand";
94
98
  import { PutObjectCommand } from "./commands/PutObjectCommand";
95
99
  import { PutObjectLegalHoldCommand, } from "./commands/PutObjectLegalHoldCommand";
96
100
  import { PutObjectLockConfigurationCommand, } from "./commands/PutObjectLockConfigurationCommand";
@@ -100,6 +104,7 @@ import { PutPublicAccessBlockCommand, } from "./commands/PutPublicAccessBlockCom
100
104
  import { RenameObjectCommand, } from "./commands/RenameObjectCommand";
101
105
  import { RestoreObjectCommand, } from "./commands/RestoreObjectCommand";
102
106
  import { SelectObjectContentCommand, } from "./commands/SelectObjectContentCommand";
107
+ import { UpdateBucketMetadataAnnotationTableConfigurationCommand, } from "./commands/UpdateBucketMetadataAnnotationTableConfigurationCommand";
103
108
  import { UpdateBucketMetadataInventoryTableConfigurationCommand, } from "./commands/UpdateBucketMetadataInventoryTableConfigurationCommand";
104
109
  import { UpdateBucketMetadataJournalTableConfigurationCommand, } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
105
110
  import { UpdateObjectEncryptionCommand, } from "./commands/UpdateObjectEncryptionCommand";
@@ -108,6 +113,7 @@ import { UploadPartCopyCommand, } from "./commands/UploadPartCopyCommand";
108
113
  import { WriteGetObjectResponseCommand, } from "./commands/WriteGetObjectResponseCommand";
109
114
  import { paginateListBuckets } from "./pagination/ListBucketsPaginator";
110
115
  import { paginateListDirectoryBuckets } from "./pagination/ListDirectoryBucketsPaginator";
116
+ import { paginateListObjectAnnotations } from "./pagination/ListObjectAnnotationsPaginator";
111
117
  import { paginateListObjectsV2 } from "./pagination/ListObjectsV2Paginator";
112
118
  import { paginateListParts } from "./pagination/ListPartsPaginator";
113
119
  import { S3Client } from "./S3Client";
@@ -140,6 +146,7 @@ const commands = {
140
146
  DeleteBucketTaggingCommand,
141
147
  DeleteBucketWebsiteCommand,
142
148
  DeleteObjectCommand,
149
+ DeleteObjectAnnotationCommand,
143
150
  DeleteObjectsCommand,
144
151
  DeleteObjectTaggingCommand,
145
152
  DeletePublicAccessBlockCommand,
@@ -168,6 +175,7 @@ const commands = {
168
175
  GetBucketWebsiteCommand,
169
176
  GetObjectCommand,
170
177
  GetObjectAclCommand,
178
+ GetObjectAnnotationCommand,
171
179
  GetObjectAttributesCommand,
172
180
  GetObjectLegalHoldCommand,
173
181
  GetObjectLockConfigurationCommand,
@@ -184,6 +192,7 @@ const commands = {
184
192
  ListBucketsCommand,
185
193
  ListDirectoryBucketsCommand,
186
194
  ListMultipartUploadsCommand,
195
+ ListObjectAnnotationsCommand,
187
196
  ListObjectsCommand,
188
197
  ListObjectsV2Command,
189
198
  ListObjectVersionsCommand,
@@ -209,6 +218,7 @@ const commands = {
209
218
  PutBucketWebsiteCommand,
210
219
  PutObjectCommand,
211
220
  PutObjectAclCommand,
221
+ PutObjectAnnotationCommand,
212
222
  PutObjectLegalHoldCommand,
213
223
  PutObjectLockConfigurationCommand,
214
224
  PutObjectRetentionCommand,
@@ -217,6 +227,7 @@ const commands = {
217
227
  RenameObjectCommand,
218
228
  RestoreObjectCommand,
219
229
  SelectObjectContentCommand,
230
+ UpdateBucketMetadataAnnotationTableConfigurationCommand,
220
231
  UpdateBucketMetadataInventoryTableConfigurationCommand,
221
232
  UpdateBucketMetadataJournalTableConfigurationCommand,
222
233
  UpdateObjectEncryptionCommand,
@@ -227,6 +238,7 @@ const commands = {
227
238
  const paginators = {
228
239
  paginateListBuckets,
229
240
  paginateListDirectoryBuckets,
241
+ paginateListObjectAnnotations,
230
242
  paginateListObjectsV2,
231
243
  paginateListParts,
232
244
  };
@@ -0,0 +1,23 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
2
+ import { Command as $Command } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { DeleteObjectAnnotation$ } from "../schemas/schemas_0";
6
+ export { $Command };
7
+ export class DeleteObjectAnnotationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ Bucket: { type: "contextParams", name: "Bucket" },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ getThrow200ExceptionsPlugin(config),
17
+ ];
18
+ })
19
+ .s("AmazonS3", "DeleteObjectAnnotation", {})
20
+ .n("S3Client", "DeleteObjectAnnotationCommand")
21
+ .sc(DeleteObjectAnnotation$)
22
+ .build() {
23
+ }
@@ -0,0 +1,28 @@
1
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { Command as $Command } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetObjectAnnotation$ } from "../schemas/schemas_0";
6
+ export { $Command };
7
+ export class GetObjectAnnotationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ Bucket: { type: "contextParams", name: "Bucket" },
12
+ Key: { type: "contextParams", name: "Key" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getFlexibleChecksumsPlugin(config, {
18
+ requestChecksumRequired: false,
19
+ requestValidationModeMember: 'ChecksumMode',
20
+ 'responseAlgorithms': ['CRC64NVME', 'CRC32', 'CRC32C', 'SHA256', 'SHA1', 'SHA512', 'MD5', 'XXHASH64', 'XXHASH3', 'XXHASH128'],
21
+ }),
22
+ ];
23
+ })
24
+ .s("AmazonS3", "GetObjectAnnotation", {})
25
+ .n("S3Client", "GetObjectAnnotationCommand")
26
+ .sc(GetObjectAnnotation$)
27
+ .build() {
28
+ }
@@ -0,0 +1,23 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
2
+ import { Command as $Command } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { ListObjectAnnotations$ } from "../schemas/schemas_0";
6
+ export { $Command };
7
+ export class ListObjectAnnotationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ Bucket: { type: "contextParams", name: "Bucket" },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ getThrow200ExceptionsPlugin(config),
17
+ ];
18
+ })
19
+ .s("AmazonS3", "ListObjectAnnotations", {})
20
+ .n("S3Client", "ListObjectAnnotationsCommand")
21
+ .sc(ListObjectAnnotations$)
22
+ .build() {
23
+ }
@@ -0,0 +1,29 @@
1
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3/s3";
3
+ import { Command as $Command } from "@smithy/core/client";
4
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
+ import { PutObjectAnnotation$ } from "../schemas/schemas_0";
7
+ export { $Command };
8
+ export class PutObjectAnnotationCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ Bucket: { type: "contextParams", name: "Bucket" },
13
+ Key: { type: "contextParams", name: "Key" },
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ getFlexibleChecksumsPlugin(config, {
19
+ requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
20
+ requestChecksumRequired: false,
21
+ }),
22
+ getThrow200ExceptionsPlugin(config),
23
+ ];
24
+ })
25
+ .s("AmazonS3", "PutObjectAnnotation", {})
26
+ .n("S3Client", "PutObjectAnnotationCommand")
27
+ .sc(PutObjectAnnotation$)
28
+ .build() {
29
+ }
@@ -0,0 +1,27 @@
1
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { Command as $Command } from "@smithy/core/client";
3
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdateBucketMetadataAnnotationTableConfiguration$ } from "../schemas/schemas_0";
6
+ export { $Command };
7
+ export class UpdateBucketMetadataAnnotationTableConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ UseS3ExpressControlEndpoint: { type: "staticContextParams", value: true },
12
+ Bucket: { type: "contextParams", name: "Bucket" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getFlexibleChecksumsPlugin(config, {
18
+ requestAlgorithmMember: { 'httpHeader': 'x-amz-sdk-checksum-algorithm', 'name': 'ChecksumAlgorithm' },
19
+ requestChecksumRequired: true,
20
+ }),
21
+ ];
22
+ })
23
+ .s("AmazonS3", "UpdateBucketMetadataAnnotationTableConfiguration", {})
24
+ .n("S3Client", "UpdateBucketMetadataAnnotationTableConfigurationCommand")
25
+ .sc(UpdateBucketMetadataAnnotationTableConfiguration$)
26
+ .build() {
27
+ }
@@ -21,6 +21,7 @@ export * from "./DeleteBucketPolicyCommand";
21
21
  export * from "./DeleteBucketReplicationCommand";
22
22
  export * from "./DeleteBucketTaggingCommand";
23
23
  export * from "./DeleteBucketWebsiteCommand";
24
+ export * from "./DeleteObjectAnnotationCommand";
24
25
  export * from "./DeleteObjectCommand";
25
26
  export * from "./DeleteObjectTaggingCommand";
26
27
  export * from "./DeleteObjectsCommand";
@@ -49,6 +50,7 @@ export * from "./GetBucketTaggingCommand";
49
50
  export * from "./GetBucketVersioningCommand";
50
51
  export * from "./GetBucketWebsiteCommand";
51
52
  export * from "./GetObjectAclCommand";
53
+ export * from "./GetObjectAnnotationCommand";
52
54
  export * from "./GetObjectAttributesCommand";
53
55
  export * from "./GetObjectCommand";
54
56
  export * from "./GetObjectLegalHoldCommand";
@@ -66,6 +68,7 @@ export * from "./ListBucketMetricsConfigurationsCommand";
66
68
  export * from "./ListBucketsCommand";
67
69
  export * from "./ListDirectoryBucketsCommand";
68
70
  export * from "./ListMultipartUploadsCommand";
71
+ export * from "./ListObjectAnnotationsCommand";
69
72
  export * from "./ListObjectVersionsCommand";
70
73
  export * from "./ListObjectsCommand";
71
74
  export * from "./ListObjectsV2Command";
@@ -90,6 +93,7 @@ export * from "./PutBucketTaggingCommand";
90
93
  export * from "./PutBucketVersioningCommand";
91
94
  export * from "./PutBucketWebsiteCommand";
92
95
  export * from "./PutObjectAclCommand";
96
+ export * from "./PutObjectAnnotationCommand";
93
97
  export * from "./PutObjectCommand";
94
98
  export * from "./PutObjectLegalHoldCommand";
95
99
  export * from "./PutObjectLockConfigurationCommand";
@@ -99,6 +103,7 @@ export * from "./PutPublicAccessBlockCommand";
99
103
  export * from "./RenameObjectCommand";
100
104
  export * from "./RestoreObjectCommand";
101
105
  export * from "./SelectObjectContentCommand";
106
+ export * from "./UpdateBucketMetadataAnnotationTableConfigurationCommand";
102
107
  export * from "./UpdateBucketMetadataInventoryTableConfigurationCommand";
103
108
  export * from "./UpdateBucketMetadataJournalTableConfigurationCommand";
104
109
  export * from "./UpdateObjectEncryptionCommand";
@@ -46,6 +46,10 @@ export const ObjectCannedACL = {
46
46
  public_read: "public-read",
47
47
  public_read_write: "public-read-write",
48
48
  };
49
+ export const AnnotationDirective = {
50
+ COPY: "COPY",
51
+ EXCLUDE: "EXCLUDE",
52
+ };
49
53
  export const ChecksumAlgorithm = {
50
54
  CRC32: "CRC32",
51
55
  CRC32C: "CRC32C",
@@ -155,7 +159,7 @@ export const ObjectOwnership = {
155
159
  BucketOwnerPreferred: "BucketOwnerPreferred",
156
160
  ObjectWriter: "ObjectWriter",
157
161
  };
158
- export const InventoryConfigurationState = {
162
+ export const AnnotationConfigurationState = {
159
163
  DISABLED: "DISABLED",
160
164
  ENABLED: "ENABLED",
161
165
  };
@@ -163,6 +167,10 @@ export const TableSseAlgorithm = {
163
167
  AES256: "AES256",
164
168
  aws_kms: "aws:kms",
165
169
  };
170
+ export const InventoryConfigurationState = {
171
+ DISABLED: "DISABLED",
172
+ ENABLED: "ENABLED",
173
+ };
166
174
  export const ExpirationState = {
167
175
  DISABLED: "DISABLED",
168
176
  ENABLED: "ENABLED",
@@ -256,6 +264,9 @@ export const Event = {
256
264
  s3_LifecycleExpiration_DeleteMarkerCreated: "s3:LifecycleExpiration:DeleteMarkerCreated",
257
265
  s3_LifecycleTransition: "s3:LifecycleTransition",
258
266
  s3_ObjectAcl_Put: "s3:ObjectAcl:Put",
267
+ s3_ObjectAnnotation_: "s3:ObjectAnnotation:*",
268
+ s3_ObjectAnnotation_Delete: "s3:ObjectAnnotation:Delete",
269
+ s3_ObjectAnnotation_Put: "s3:ObjectAnnotation:Put",
259
270
  s3_ObjectCreated_: "s3:ObjectCreated:*",
260
271
  s3_ObjectCreated_CompleteMultipartUpload: "s3:ObjectCreated:CompleteMultipartUpload",
261
272
  s3_ObjectCreated_Copy: "s3:ObjectCreated:Copy",
@@ -71,6 +71,18 @@ export class NoSuchBucket extends __BaseException {
71
71
  Object.setPrototypeOf(this, NoSuchBucket.prototype);
72
72
  }
73
73
  }
74
+ export class NoSuchKey extends __BaseException {
75
+ name = "NoSuchKey";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "NoSuchKey",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, NoSuchKey.prototype);
84
+ }
85
+ }
74
86
  export class InvalidObjectState extends __BaseException {
75
87
  name = "InvalidObjectState";
76
88
  $fault = "client";
@@ -87,16 +99,16 @@ export class InvalidObjectState extends __BaseException {
87
99
  this.AccessTier = opts.AccessTier;
88
100
  }
89
101
  }
90
- export class NoSuchKey extends __BaseException {
91
- name = "NoSuchKey";
102
+ export class NoSuchAnnotation extends __BaseException {
103
+ name = "NoSuchAnnotation";
92
104
  $fault = "client";
93
105
  constructor(opts) {
94
106
  super({
95
- name: "NoSuchKey",
107
+ name: "NoSuchAnnotation",
96
108
  $fault: "client",
97
109
  ...opts,
98
110
  });
99
- Object.setPrototypeOf(this, NoSuchKey.prototype);
111
+ Object.setPrototypeOf(this, NoSuchAnnotation.prototype);
100
112
  }
101
113
  }
102
114
  export class NotFound extends __BaseException {
@@ -111,6 +123,18 @@ export class NotFound extends __BaseException {
111
123
  Object.setPrototypeOf(this, NotFound.prototype);
112
124
  }
113
125
  }
126
+ export class InvalidPrefix extends __BaseException {
127
+ name = "InvalidPrefix";
128
+ $fault = "client";
129
+ constructor(opts) {
130
+ super({
131
+ name: "InvalidPrefix",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, InvalidPrefix.prototype);
136
+ }
137
+ }
114
138
  export class EncryptionTypeMismatch extends __BaseException {
115
139
  name = "EncryptionTypeMismatch";
116
140
  $fault = "client";
@@ -159,6 +183,54 @@ export class TooManyParts extends __BaseException {
159
183
  Object.setPrototypeOf(this, TooManyParts.prototype);
160
184
  }
161
185
  }
186
+ export class AnnotationLimitExceeded extends __BaseException {
187
+ name = "AnnotationLimitExceeded";
188
+ $fault = "client";
189
+ constructor(opts) {
190
+ super({
191
+ name: "AnnotationLimitExceeded",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, AnnotationLimitExceeded.prototype);
196
+ }
197
+ }
198
+ export class AnnotationNameTooLong extends __BaseException {
199
+ name = "AnnotationNameTooLong";
200
+ $fault = "client";
201
+ constructor(opts) {
202
+ super({
203
+ name: "AnnotationNameTooLong",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, AnnotationNameTooLong.prototype);
208
+ }
209
+ }
210
+ export class InvalidAnnotationName extends __BaseException {
211
+ name = "InvalidAnnotationName";
212
+ $fault = "client";
213
+ constructor(opts) {
214
+ super({
215
+ name: "InvalidAnnotationName",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, InvalidAnnotationName.prototype);
220
+ }
221
+ }
222
+ export class UnsupportedMediaType extends __BaseException {
223
+ name = "UnsupportedMediaType";
224
+ $fault = "client";
225
+ constructor(opts) {
226
+ super({
227
+ name: "UnsupportedMediaType",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, UnsupportedMediaType.prototype);
232
+ }
233
+ }
162
234
  export class IdempotencyParameterMismatch extends __BaseException {
163
235
  name = "IdempotencyParameterMismatch";
164
236
  $fault = "client";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListObjectAnnotationsCommand, } from "../commands/ListObjectAnnotationsCommand";
3
+ import { S3Client } from "../S3Client";
4
+ export const paginateListObjectAnnotations = createPaginator(S3Client, ListObjectAnnotationsCommand, "ContinuationToken", "NextContinuationToken", "MaxAnnotationResults");
@@ -1,5 +1,6 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListBucketsPaginator";
3
3
  export * from "./ListDirectoryBucketsPaginator";
4
+ export * from "./ListObjectAnnotationsPaginator";
4
5
  export * from "./ListObjectsV2Paginator";
5
6
  export * from "./ListPartsPaginator";