distilled-aws 0.0.13 → 0.0.16

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 (59) hide show
  1. package/lib/client/api.d.ts.map +1 -1
  2. package/lib/client/api.js +14 -3
  3. package/lib/client/api.js.map +1 -1
  4. package/lib/client/response-parser.d.ts.map +1 -1
  5. package/lib/client/response-parser.js +14 -2
  6. package/lib/client/response-parser.js.map +1 -1
  7. package/lib/debug/error-recorder.d.ts +22 -0
  8. package/lib/debug/error-recorder.d.ts.map +1 -0
  9. package/lib/debug/error-recorder.js +106 -0
  10. package/lib/debug/error-recorder.js.map +1 -0
  11. package/lib/patch/spec-schema.d.ts +65 -0
  12. package/lib/patch/spec-schema.d.ts.map +1 -1
  13. package/lib/patch/spec-schema.js +31 -0
  14. package/lib/patch/spec-schema.js.map +1 -1
  15. package/lib/services/bedrock-agentcore-control.d.ts +3 -0
  16. package/lib/services/bedrock-agentcore-control.d.ts.map +1 -1
  17. package/lib/services/bedrock-agentcore-control.js +5 -1
  18. package/lib/services/bedrock-agentcore-control.js.map +1 -1
  19. package/lib/services/cloudfront.d.ts +83 -83
  20. package/lib/services/cloudfront.d.ts.map +1 -1
  21. package/lib/services/cloudfront.js +160 -157
  22. package/lib/services/cloudfront.js.map +1 -1
  23. package/lib/services/ec2.d.ts +1539 -924
  24. package/lib/services/ec2.d.ts.map +1 -1
  25. package/lib/services/ec2.js +1321 -623
  26. package/lib/services/ec2.js.map +1 -1
  27. package/lib/services/glue.d.ts +587 -478
  28. package/lib/services/glue.d.ts.map +1 -1
  29. package/lib/services/glue.js +1644 -1509
  30. package/lib/services/glue.js.map +1 -1
  31. package/lib/services/iam.d.ts +6 -1
  32. package/lib/services/iam.d.ts.map +1 -1
  33. package/lib/services/iam.js +3 -1
  34. package/lib/services/iam.js.map +1 -1
  35. package/lib/services/medialive.d.ts +33 -0
  36. package/lib/services/medialive.d.ts.map +1 -1
  37. package/lib/services/medialive.js +11 -0
  38. package/lib/services/medialive.js.map +1 -1
  39. package/lib/services/s3.d.ts +74 -59
  40. package/lib/services/s3.d.ts.map +1 -1
  41. package/lib/services/s3.js +76 -53
  42. package/lib/services/s3.js.map +1 -1
  43. package/lib/services/sqs.d.ts +1 -1
  44. package/lib/services/sqs.d.ts.map +1 -1
  45. package/lib/services/sqs.js +1 -0
  46. package/lib/services/sqs.js.map +1 -1
  47. package/package.json +6 -4
  48. package/src/client/api.ts +22 -2
  49. package/src/client/response-parser.ts +15 -2
  50. package/src/debug/error-recorder.ts +143 -0
  51. package/src/patch/spec-schema.ts +35 -0
  52. package/src/services/bedrock-agentcore-control.ts +7 -1
  53. package/src/services/cloudfront.ts +300 -294
  54. package/src/services/ec2.ts +2891 -1486
  55. package/src/services/glue.ts +3550 -3250
  56. package/src/services/iam.ts +9 -2
  57. package/src/services/medialive.ts +53 -0
  58. package/src/services/s3.ts +159 -108
  59. package/src/services/sqs.ts +2 -0
@@ -4636,6 +4636,13 @@ export class BucketNotEmpty extends S.TaggedError()("BucketNotEmpty", {}) {
4636
4636
  }
4637
4637
  export class NoSuchBucket extends S.TaggedError()("NoSuchBucket", {}) {
4638
4638
  }
4639
+ export class PermanentRedirect extends S.TaggedError()("PermanentRedirect", {
4640
+ BucketRegion: S.optional(S.String).pipe(T.HttpHeader("x-amz-bucket-region")),
4641
+ Endpoint: S.optional(S.String),
4642
+ Bucket: S.optional(S.String),
4643
+ Message: S.optional(S.String),
4644
+ }) {
4645
+ }
4639
4646
  export class SignatureDoesNotMatch extends S.TaggedError()("SignatureDoesNotMatch", {}) {
4640
4647
  }
4641
4648
  export class AccessDenied extends S.TaggedError()("AccessDenied", {}) {
@@ -4648,8 +4655,6 @@ export class InvalidRequest extends S.TaggedError()("InvalidRequest", {}) {
4648
4655
  }
4649
4656
  export class MalformedPolicy extends S.TaggedError()("MalformedPolicy", {}) {
4650
4657
  }
4651
- export class PermanentRedirect extends S.TaggedError()("PermanentRedirect", {}) {
4652
- }
4653
4658
  export class IdempotencyParameterMismatch extends S.TaggedError()("IdempotencyParameterMismatch", {}).pipe(C.withBadRequestError) {
4654
4659
  }
4655
4660
  export class NoSuchUpload extends S.TaggedError()("NoSuchUpload", {}).pipe(C.withBadRequestError) {
@@ -4664,6 +4669,8 @@ export class ParseError extends S.TaggedError()("ParseError", {}) {
4664
4669
  }
4665
4670
  export class NoSuchLifecycleConfiguration extends S.TaggedError()("NoSuchLifecycleConfiguration", {}) {
4666
4671
  }
4672
+ export class OwnershipControlsNotFoundError extends S.TaggedError()("OwnershipControlsNotFoundError", {}) {
4673
+ }
4667
4674
  export class NoSuchBucketPolicy extends S.TaggedError()("NoSuchBucketPolicy", {}) {
4668
4675
  }
4669
4676
  export class ReplicationConfigurationNotFoundError extends S.TaggedError()("ReplicationConfigurationNotFoundError", {}) {
@@ -4674,6 +4681,8 @@ export class NoSuchWebsiteConfiguration extends S.TaggedError()("NoSuchWebsiteCo
4674
4681
  }
4675
4682
  export class ObjectLockConfigurationNotFoundError extends S.TaggedError()("ObjectLockConfigurationNotFoundError", {}) {
4676
4683
  }
4684
+ export class NoSuchPublicAccessBlockConfiguration extends S.TaggedError()("NoSuchPublicAccessBlockConfiguration", {}) {
4685
+ }
4677
4686
  export class NotFound extends S.TaggedError()("NotFound", {}) {
4678
4687
  }
4679
4688
  export class EncryptionTypeMismatch extends S.TaggedError()("EncryptionTypeMismatch", {}).pipe(C.withBadRequestError) {
@@ -4746,7 +4755,7 @@ export class ObjectAlreadyInActiveTierError extends S.TaggedError()("ObjectAlrea
4746
4755
  export const deleteBucket = API.make(() => ({
4747
4756
  input: DeleteBucketRequest,
4748
4757
  output: DeleteBucketResponse,
4749
- errors: [BucketNotEmpty, NoSuchBucket],
4758
+ errors: [BucketNotEmpty, NoSuchBucket, PermanentRedirect],
4750
4759
  }));
4751
4760
  /**
4752
4761
  * This operation is not supported for directory buckets.
@@ -4949,7 +4958,7 @@ export const deleteBucketInventoryConfiguration = API.make(() => ({
4949
4958
  export const deleteBucketLifecycle = API.make(() => ({
4950
4959
  input: DeleteBucketLifecycleRequest,
4951
4960
  output: DeleteBucketLifecycleResponse,
4952
- errors: [],
4961
+ errors: [NoSuchBucket],
4953
4962
  }));
4954
4963
  /**
4955
4964
  * Deletes an S3 Metadata configuration from a general purpose bucket. For more information, see
@@ -4985,7 +4994,7 @@ export const deleteBucketLifecycle = API.make(() => ({
4985
4994
  export const deleteBucketMetadataConfiguration = API.make(() => ({
4986
4995
  input: DeleteBucketMetadataConfigurationRequest,
4987
4996
  output: DeleteBucketMetadataConfigurationResponse,
4988
- errors: [],
4997
+ errors: [NoSuchBucket],
4989
4998
  }));
4990
4999
  /**
4991
5000
  * We recommend that you delete your S3 Metadata configurations by using the V2
@@ -5027,7 +5036,7 @@ export const deleteBucketMetadataConfiguration = API.make(() => ({
5027
5036
  export const deleteBucketMetadataTableConfiguration = API.make(() => ({
5028
5037
  input: DeleteBucketMetadataTableConfigurationRequest,
5029
5038
  output: DeleteBucketMetadataTableConfigurationResponse,
5030
- errors: [],
5039
+ errors: [NoSuchBucket],
5031
5040
  }));
5032
5041
  /**
5033
5042
  * This operation is not supported for directory buckets.
@@ -5135,7 +5144,7 @@ export const deleteBucketOwnershipControls = API.make(() => ({
5135
5144
  export const deleteBucketPolicy = API.make(() => ({
5136
5145
  input: DeleteBucketPolicyRequest,
5137
5146
  output: DeleteBucketPolicyResponse,
5138
- errors: [NoSuchBucket, SignatureDoesNotMatch],
5147
+ errors: [NoSuchBucket, PermanentRedirect, SignatureDoesNotMatch],
5139
5148
  }));
5140
5149
  /**
5141
5150
  * This operation is not supported for directory buckets.
@@ -5684,7 +5693,7 @@ export const abortMultipartUpload = API.make(() => ({
5684
5693
  export const createMultipartUpload = API.make(() => ({
5685
5694
  input: CreateMultipartUploadRequest,
5686
5695
  output: CreateMultipartUploadOutput,
5687
- errors: [NoSuchBucket],
5696
+ errors: [NoSuchBucket, PermanentRedirect],
5688
5697
  }));
5689
5698
  /**
5690
5699
  * Removes an object from a bucket. The behavior depends on the bucket's versioning state:
@@ -5779,7 +5788,7 @@ export const createMultipartUpload = API.make(() => ({
5779
5788
  export const deleteObject = API.make(() => ({
5780
5789
  input: DeleteObjectRequest,
5781
5790
  output: DeleteObjectOutput,
5782
- errors: [NoSuchBucket],
5791
+ errors: [NoSuchBucket, PermanentRedirect],
5783
5792
  }));
5784
5793
  /**
5785
5794
  * This operation is not supported for directory buckets.
@@ -5805,7 +5814,7 @@ export const deleteObject = API.make(() => ({
5805
5814
  export const deleteObjectTagging = API.make(() => ({
5806
5815
  input: DeleteObjectTaggingRequest,
5807
5816
  output: DeleteObjectTaggingOutput,
5808
- errors: [NoSuchKey],
5817
+ errors: [NoSuchKey, PermanentRedirect],
5809
5818
  }));
5810
5819
  /**
5811
5820
  * Returns the attribute-based access control (ABAC) property of the general purpose bucket. If ABAC is enabled on your bucket, you can use tags on the bucket for access control. For more information, see Enabling ABAC in general purpose buckets.
@@ -5813,7 +5822,7 @@ export const deleteObjectTagging = API.make(() => ({
5813
5822
  export const getBucketAbac = API.make(() => ({
5814
5823
  input: GetBucketAbacRequest,
5815
5824
  output: GetBucketAbacOutput,
5816
- errors: [],
5825
+ errors: [NoSuchBucket],
5817
5826
  }));
5818
5827
  /**
5819
5828
  * This operation is not supported for directory buckets.
@@ -5847,7 +5856,7 @@ export const getBucketAbac = API.make(() => ({
5847
5856
  export const getBucketAccelerateConfiguration = API.make(() => ({
5848
5857
  input: GetBucketAccelerateConfigurationRequest,
5849
5858
  output: GetBucketAccelerateConfigurationOutput,
5850
- errors: [NoSuchBucket],
5859
+ errors: [NoSuchBucket, PermanentRedirect],
5851
5860
  }));
5852
5861
  /**
5853
5862
  * This operation is not supported for directory buckets.
@@ -5879,7 +5888,7 @@ export const getBucketAccelerateConfiguration = API.make(() => ({
5879
5888
  export const getBucketAcl = API.make(() => ({
5880
5889
  input: GetBucketAclRequest,
5881
5890
  output: GetBucketAclOutput,
5882
- errors: [NoSuchBucket],
5891
+ errors: [NoSuchBucket, PermanentRedirect],
5883
5892
  }));
5884
5893
  /**
5885
5894
  * This operation is not supported for directory buckets.
@@ -5939,7 +5948,7 @@ export const getBucketAnalyticsConfiguration = API.make(() => ({
5939
5948
  export const getBucketCors = API.make(() => ({
5940
5949
  input: GetBucketCorsRequest,
5941
5950
  output: GetBucketCorsOutput,
5942
- errors: [NoSuchBucket, NoSuchCORSConfiguration],
5951
+ errors: [NoSuchBucket, NoSuchCORSConfiguration, PermanentRedirect],
5943
5952
  }));
5944
5953
  /**
5945
5954
  * Returns the default encryption configuration for an Amazon S3 bucket. By default, all buckets have a
@@ -5982,7 +5991,7 @@ export const getBucketCors = API.make(() => ({
5982
5991
  export const getBucketEncryption = API.make(() => ({
5983
5992
  input: GetBucketEncryptionRequest,
5984
5993
  output: GetBucketEncryptionOutput,
5985
- errors: [NoSuchBucket, ParseError],
5994
+ errors: [NoSuchBucket, ParseError, PermanentRedirect],
5986
5995
  }));
5987
5996
  /**
5988
5997
  * This operation is not supported for directory buckets.
@@ -6107,7 +6116,7 @@ export const getBucketInventoryConfiguration = API.make(() => ({
6107
6116
  export const getBucketLifecycleConfiguration = API.make(() => ({
6108
6117
  input: GetBucketLifecycleConfigurationRequest,
6109
6118
  output: GetBucketLifecycleConfigurationOutput,
6110
- errors: [NoSuchBucket, NoSuchLifecycleConfiguration],
6119
+ errors: [NoSuchBucket, NoSuchLifecycleConfiguration, PermanentRedirect],
6111
6120
  }));
6112
6121
  /**
6113
6122
  * Using the `GetBucketLocation` operation is no longer a best practice. To return the
@@ -6166,7 +6175,7 @@ export const getBucketLocation = API.make(() => ({
6166
6175
  export const getBucketLogging = API.make(() => ({
6167
6176
  input: GetBucketLoggingRequest,
6168
6177
  output: GetBucketLoggingOutput,
6169
- errors: [NoSuchBucket],
6178
+ errors: [NoSuchBucket, PermanentRedirect],
6170
6179
  }));
6171
6180
  /**
6172
6181
  * This operation is not supported for directory buckets.
@@ -6231,7 +6240,7 @@ export const getBucketMetricsConfiguration = API.make(() => ({
6231
6240
  export const getBucketOwnershipControls = API.make(() => ({
6232
6241
  input: GetBucketOwnershipControlsRequest,
6233
6242
  output: GetBucketOwnershipControlsOutput,
6234
- errors: [NoSuchBucket],
6243
+ errors: [NoSuchBucket, OwnershipControlsNotFoundError],
6235
6244
  }));
6236
6245
  /**
6237
6246
  * Returns the policy of a specified bucket.
@@ -6291,7 +6300,12 @@ export const getBucketOwnershipControls = API.make(() => ({
6291
6300
  export const getBucketPolicy = API.make(() => ({
6292
6301
  input: GetBucketPolicyRequest,
6293
6302
  output: GetBucketPolicyOutput,
6294
- errors: [NoSuchBucket, NoSuchBucketPolicy, SignatureDoesNotMatch],
6303
+ errors: [
6304
+ NoSuchBucket,
6305
+ NoSuchBucketPolicy,
6306
+ PermanentRedirect,
6307
+ SignatureDoesNotMatch,
6308
+ ],
6295
6309
  }));
6296
6310
  /**
6297
6311
  * This operation is not supported for directory buckets.
@@ -6343,7 +6357,7 @@ export const getBucketReplication = API.make(() => ({
6343
6357
  export const getBucketRequestPayment = API.make(() => ({
6344
6358
  input: GetBucketRequestPaymentRequest,
6345
6359
  output: GetBucketRequestPaymentOutput,
6346
- errors: [NoSuchBucket],
6360
+ errors: [NoSuchBucket, PermanentRedirect],
6347
6361
  }));
6348
6362
  /**
6349
6363
  * This operation is not supported for directory buckets.
@@ -6372,7 +6386,7 @@ export const getBucketRequestPayment = API.make(() => ({
6372
6386
  export const getBucketTagging = API.make(() => ({
6373
6387
  input: GetBucketTaggingRequest,
6374
6388
  output: GetBucketTaggingOutput,
6375
- errors: [NoSuchBucket, NoSuchTagSet],
6389
+ errors: [NoSuchBucket, NoSuchTagSet, PermanentRedirect],
6376
6390
  }));
6377
6391
  /**
6378
6392
  * This operation is not supported for directory buckets.
@@ -6398,7 +6412,7 @@ export const getBucketTagging = API.make(() => ({
6398
6412
  export const getBucketVersioning = API.make(() => ({
6399
6413
  input: GetBucketVersioningRequest,
6400
6414
  output: GetBucketVersioningOutput,
6401
- errors: [NoSuchBucket],
6415
+ errors: [NoSuchBucket, PermanentRedirect],
6402
6416
  }));
6403
6417
  /**
6404
6418
  * This operation is not supported for directory buckets.
@@ -6422,7 +6436,7 @@ export const getBucketVersioning = API.make(() => ({
6422
6436
  export const getBucketWebsite = API.make(() => ({
6423
6437
  input: GetBucketWebsiteRequest,
6424
6438
  output: GetBucketWebsiteOutput,
6425
- errors: [NoSuchBucket, NoSuchWebsiteConfiguration],
6439
+ errors: [NoSuchBucket, NoSuchWebsiteConfiguration, PermanentRedirect],
6426
6440
  }));
6427
6441
  /**
6428
6442
  * This operation is not supported for directory buckets.
@@ -6457,7 +6471,7 @@ export const getBucketWebsite = API.make(() => ({
6457
6471
  export const getObjectAcl = API.make(() => ({
6458
6472
  input: GetObjectAclRequest,
6459
6473
  output: GetObjectAclOutput,
6460
- errors: [NoSuchKey, NoSuchBucket],
6474
+ errors: [NoSuchKey, NoSuchBucket, PermanentRedirect],
6461
6475
  }));
6462
6476
  /**
6463
6477
  * This operation is not supported for directory buckets.
@@ -6493,7 +6507,11 @@ export const getObjectLegalHold = API.make(() => ({
6493
6507
  export const getObjectLockConfiguration = API.make(() => ({
6494
6508
  input: GetObjectLockConfigurationRequest,
6495
6509
  output: GetObjectLockConfigurationOutput,
6496
- errors: [NoSuchBucket, ObjectLockConfigurationNotFoundError],
6510
+ errors: [
6511
+ NoSuchBucket,
6512
+ ObjectLockConfigurationNotFoundError,
6513
+ PermanentRedirect,
6514
+ ],
6497
6515
  }));
6498
6516
  /**
6499
6517
  * This operation is not supported for directory buckets.
@@ -6542,7 +6560,7 @@ export const getObjectRetention = API.make(() => ({
6542
6560
  export const getObjectTagging = API.make(() => ({
6543
6561
  input: GetObjectTaggingRequest,
6544
6562
  output: GetObjectTaggingOutput,
6545
- errors: [NoSuchBucket, NoSuchKey],
6563
+ errors: [NoSuchBucket, NoSuchKey, PermanentRedirect],
6546
6564
  }));
6547
6565
  /**
6548
6566
  * This operation is not supported for directory buckets.
@@ -6604,7 +6622,11 @@ export const getObjectTorrent = API.make(() => ({
6604
6622
  export const getPublicAccessBlock = API.make(() => ({
6605
6623
  input: GetPublicAccessBlockRequest,
6606
6624
  output: GetPublicAccessBlockOutput,
6607
- errors: [NoSuchBucket],
6625
+ errors: [
6626
+ NoSuchBucket,
6627
+ NoSuchPublicAccessBlockConfiguration,
6628
+ PermanentRedirect,
6629
+ ],
6608
6630
  }));
6609
6631
  /**
6610
6632
  * You can use this operation to determine if a bucket exists and if you have permission to access it.
@@ -7028,7 +7050,7 @@ export const listDirectoryBuckets = API.makePaginated(() => ({
7028
7050
  export const listObjectsV2 = API.makePaginated(() => ({
7029
7051
  input: ListObjectsV2Request,
7030
7052
  output: ListObjectsV2Output,
7031
- errors: [NoSuchBucket],
7053
+ errors: [NoSuchBucket, PermanentRedirect],
7032
7054
  pagination: {
7033
7055
  inputToken: "ContinuationToken",
7034
7056
  outputToken: "NextContinuationToken",
@@ -7082,7 +7104,7 @@ export const putBucketAbac = API.make(() => ({
7082
7104
  export const putBucketAccelerateConfiguration = API.make(() => ({
7083
7105
  input: PutBucketAccelerateConfigurationRequest,
7084
7106
  output: PutBucketAccelerateConfigurationResponse,
7085
- errors: [NoSuchBucket],
7107
+ errors: [NoSuchBucket, PermanentRedirect],
7086
7108
  }));
7087
7109
  /**
7088
7110
  * This operation is not supported for directory buckets.
@@ -7103,7 +7125,7 @@ export const putBucketAccelerateConfiguration = API.make(() => ({
7103
7125
  export const putBucketRequestPayment = API.make(() => ({
7104
7126
  input: PutBucketRequestPaymentRequest,
7105
7127
  output: PutBucketRequestPaymentResponse,
7106
- errors: [NoSuchBucket],
7128
+ errors: [NoSuchBucket, PermanentRedirect],
7107
7129
  }));
7108
7130
  /**
7109
7131
  * This operation is not supported for directory buckets.
@@ -7150,7 +7172,7 @@ export const putBucketRequestPayment = API.make(() => ({
7150
7172
  export const putBucketTagging = API.make(() => ({
7151
7173
  input: PutBucketTaggingRequest,
7152
7174
  output: PutBucketTaggingResponse,
7153
- errors: [NoSuchBucket],
7175
+ errors: [NoSuchBucket, PermanentRedirect],
7154
7176
  }));
7155
7177
  /**
7156
7178
  * This operation is not supported for directory buckets.
@@ -7198,7 +7220,7 @@ export const putBucketTagging = API.make(() => ({
7198
7220
  export const putBucketVersioning = API.make(() => ({
7199
7221
  input: PutBucketVersioningRequest,
7200
7222
  output: PutBucketVersioningResponse,
7201
- errors: [NoSuchBucket],
7223
+ errors: [NoSuchBucket, PermanentRedirect],
7202
7224
  }));
7203
7225
  /**
7204
7226
  * End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025,
@@ -7320,6 +7342,7 @@ export const putObject = API.make(() => ({
7320
7342
  InvalidWriteOffset,
7321
7343
  TooManyParts,
7322
7344
  NoSuchBucket,
7345
+ PermanentRedirect,
7323
7346
  ],
7324
7347
  }));
7325
7348
  /**
@@ -7468,7 +7491,7 @@ export const putObject = API.make(() => ({
7468
7491
  export const putObjectAcl = API.make(() => ({
7469
7492
  input: PutObjectAclRequest,
7470
7493
  output: PutObjectAclOutput,
7471
- errors: [NoSuchKey],
7494
+ errors: [NoSuchKey, PermanentRedirect],
7472
7495
  }));
7473
7496
  /**
7474
7497
  * This operation is not supported for directory buckets.
@@ -7513,7 +7536,7 @@ export const putObjectAcl = API.make(() => ({
7513
7536
  export const putObjectTagging = API.make(() => ({
7514
7537
  input: PutObjectTaggingRequest,
7515
7538
  output: PutObjectTaggingOutput,
7516
- errors: [NoSuchKey],
7539
+ errors: [NoSuchKey, PermanentRedirect],
7517
7540
  }));
7518
7541
  /**
7519
7542
  * This operation is not supported for directory buckets.
@@ -7548,7 +7571,7 @@ export const putObjectTagging = API.make(() => ({
7548
7571
  export const putPublicAccessBlock = API.make(() => ({
7549
7572
  input: PutPublicAccessBlockRequest,
7550
7573
  output: PutPublicAccessBlockResponse,
7551
- errors: [NoSuchBucket],
7574
+ errors: [NoSuchBucket, PermanentRedirect],
7552
7575
  }));
7553
7576
  /**
7554
7577
  * Uploads a part in a multipart upload.
@@ -7693,7 +7716,7 @@ export const putPublicAccessBlock = API.make(() => ({
7693
7716
  export const uploadPart = API.make(() => ({
7694
7717
  input: UploadPartRequest,
7695
7718
  output: UploadPartOutput,
7696
- errors: [NoSuchBucket],
7719
+ errors: [NoSuchBucket, PermanentRedirect],
7697
7720
  }));
7698
7721
  /**
7699
7722
  * Creates an S3 Metadata V2 metadata configuration for a general purpose bucket. For more information, see
@@ -8071,7 +8094,7 @@ export const getBucketPolicyStatus = API.make(() => ({
8071
8094
  export const getObject = API.make(() => ({
8072
8095
  input: GetObjectRequest,
8073
8096
  output: GetObjectOutput,
8074
- errors: [InvalidObjectState, NoSuchKey, NoSuchBucket],
8097
+ errors: [InvalidObjectState, NoSuchKey, NoSuchBucket, PermanentRedirect],
8075
8098
  }));
8076
8099
  /**
8077
8100
  * This operation is not supported for directory buckets.
@@ -8192,7 +8215,7 @@ export const listBuckets = API.makePaginated(() => ({
8192
8215
  export const listMultipartUploads = API.make(() => ({
8193
8216
  input: ListMultipartUploadsRequest,
8194
8217
  output: ListMultipartUploadsOutput,
8195
- errors: [NoSuchBucket],
8218
+ errors: [NoSuchBucket, PermanentRedirect],
8196
8219
  }));
8197
8220
  /**
8198
8221
  * This operation is not supported for directory buckets.
@@ -8223,7 +8246,7 @@ export const listMultipartUploads = API.make(() => ({
8223
8246
  export const listObjectVersions = API.make(() => ({
8224
8247
  input: ListObjectVersionsRequest,
8225
8248
  output: ListObjectVersionsOutput,
8226
- errors: [NoSuchBucket],
8249
+ errors: [NoSuchBucket, PermanentRedirect],
8227
8250
  }));
8228
8251
  /**
8229
8252
  * Lists the parts that have been uploaded for a specific multipart upload.
@@ -8347,7 +8370,7 @@ export const listParts = API.makePaginated(() => ({
8347
8370
  export const putBucketCors = API.make(() => ({
8348
8371
  input: PutBucketCorsRequest,
8349
8372
  output: PutBucketCorsResponse,
8350
- errors: [NoSuchBucket],
8373
+ errors: [NoSuchBucket, PermanentRedirect],
8351
8374
  }));
8352
8375
  /**
8353
8376
  * This operation is not supported for directory buckets.
@@ -8928,7 +8951,7 @@ export const completeMultipartUpload = API.make(() => ({
8928
8951
  export const copyObject = API.make(() => ({
8929
8952
  input: CopyObjectRequest,
8930
8953
  output: CopyObjectOutput,
8931
- errors: [ObjectNotInActiveTierError, NoSuchBucket],
8954
+ errors: [ObjectNotInActiveTierError, NoSuchBucket, PermanentRedirect],
8932
8955
  }));
8933
8956
  /**
8934
8957
  * This action creates an Amazon S3 bucket. To create an Amazon S3 on Outposts bucket, see
@@ -9221,7 +9244,7 @@ export const getObjectAttributes = API.make(() => ({
9221
9244
  export const listObjects = API.make(() => ({
9222
9245
  input: ListObjectsRequest,
9223
9246
  output: ListObjectsOutput,
9224
- errors: [NoSuchBucket],
9247
+ errors: [NoSuchBucket, PermanentRedirect],
9225
9248
  }));
9226
9249
  /**
9227
9250
  * End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025,
@@ -9371,7 +9394,7 @@ export const listObjects = API.make(() => ({
9371
9394
  export const putBucketAcl = API.make(() => ({
9372
9395
  input: PutBucketAclRequest,
9373
9396
  output: PutBucketAclResponse,
9374
- errors: [NoSuchBucket],
9397
+ errors: [NoSuchBucket, PermanentRedirect],
9375
9398
  }));
9376
9399
  /**
9377
9400
  * This operation configures default encryption and Amazon S3 Bucket Keys for an existing bucket. You can also block encryption types using this operation.
@@ -9461,7 +9484,7 @@ export const putBucketAcl = API.make(() => ({
9461
9484
  export const putBucketEncryption = API.make(() => ({
9462
9485
  input: PutBucketEncryptionRequest,
9463
9486
  output: PutBucketEncryptionResponse,
9464
- errors: [NoSuchBucket],
9487
+ errors: [NoSuchBucket, PermanentRedirect],
9465
9488
  }));
9466
9489
  /**
9467
9490
  * This operation is not supported for directory buckets.
@@ -9629,7 +9652,7 @@ export const putBucketMetricsConfiguration = API.make(() => ({
9629
9652
  export const putBucketWebsite = API.make(() => ({
9630
9653
  input: PutBucketWebsiteRequest,
9631
9654
  output: PutBucketWebsiteResponse,
9632
- errors: [NoSuchBucket],
9655
+ errors: [NoSuchBucket, PermanentRedirect],
9633
9656
  }));
9634
9657
  /**
9635
9658
  * This operation enables you to delete multiple objects from a bucket using a single HTTP request. If
@@ -9726,7 +9749,7 @@ export const putBucketWebsite = API.make(() => ({
9726
9749
  export const deleteObjects = API.make(() => ({
9727
9750
  input: DeleteObjectsRequest,
9728
9751
  output: DeleteObjectsOutput,
9729
- errors: [NoSuchBucket],
9752
+ errors: [NoSuchBucket, PermanentRedirect],
9730
9753
  }));
9731
9754
  /**
9732
9755
  * Retrieves the S3 Metadata configuration for a general purpose bucket. For more information, see
@@ -9761,7 +9784,7 @@ export const deleteObjects = API.make(() => ({
9761
9784
  export const getBucketMetadataConfiguration = API.make(() => ({
9762
9785
  input: GetBucketMetadataConfigurationRequest,
9763
9786
  output: GetBucketMetadataConfigurationOutput,
9764
- errors: [],
9787
+ errors: [NoSuchBucket],
9765
9788
  }));
9766
9789
  /**
9767
9790
  * We recommend that you retrieve your S3 Metadata configurations by using the V2
@@ -9802,7 +9825,7 @@ export const getBucketMetadataConfiguration = API.make(() => ({
9802
9825
  export const getBucketMetadataTableConfiguration = API.make(() => ({
9803
9826
  input: GetBucketMetadataTableConfigurationRequest,
9804
9827
  output: GetBucketMetadataTableConfigurationOutput,
9805
- errors: [],
9828
+ errors: [NoSuchBucket],
9806
9829
  }));
9807
9830
  /**
9808
9831
  * End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025,
@@ -9875,7 +9898,7 @@ export const getBucketMetadataTableConfiguration = API.make(() => ({
9875
9898
  export const putBucketLogging = API.make(() => ({
9876
9899
  input: PutBucketLoggingRequest,
9877
9900
  output: PutBucketLoggingResponse,
9878
- errors: [NoSuchBucket],
9901
+ errors: [NoSuchBucket, PermanentRedirect],
9879
9902
  }));
9880
9903
  /**
9881
9904
  * This operation is not supported for directory buckets.
@@ -9899,7 +9922,7 @@ export const putBucketLogging = API.make(() => ({
9899
9922
  export const putObjectLockConfiguration = API.make(() => ({
9900
9923
  input: PutObjectLockConfigurationRequest,
9901
9924
  output: PutObjectLockConfigurationOutput,
9902
- errors: [InvalidBucketState, NoSuchBucket],
9925
+ errors: [InvalidBucketState, NoSuchBucket, PermanentRedirect],
9903
9926
  }));
9904
9927
  /**
9905
9928
  * This operation is not supported for directory buckets.
@@ -10145,7 +10168,7 @@ export const putBucketInventoryConfiguration = API.make(() => ({
10145
10168
  export const putBucketLifecycleConfiguration = API.make(() => ({
10146
10169
  input: PutBucketLifecycleConfigurationRequest,
10147
10170
  output: PutBucketLifecycleConfigurationOutput,
10148
- errors: [InvalidRequest, MalformedXML, NoSuchBucket],
10171
+ errors: [InvalidRequest, MalformedXML, NoSuchBucket, PermanentRedirect],
10149
10172
  }));
10150
10173
  /**
10151
10174
  * This operation is not supported for directory buckets.
@@ -10414,7 +10437,7 @@ export const putBucketReplication = API.make(() => ({
10414
10437
  export const restoreObject = API.make(() => ({
10415
10438
  input: RestoreObjectRequest,
10416
10439
  output: RestoreObjectOutput,
10417
- errors: [ObjectAlreadyInActiveTierError, NoSuchKey],
10440
+ errors: [ObjectAlreadyInActiveTierError, NoSuchKey, PermanentRedirect],
10418
10441
  }));
10419
10442
  /**
10420
10443
  * This operation is not supported for directory buckets.
@@ -10510,6 +10533,6 @@ export const restoreObject = API.make(() => ({
10510
10533
  export const selectObjectContent = API.make(() => ({
10511
10534
  input: SelectObjectContentRequest,
10512
10535
  output: SelectObjectContentOutput,
10513
- errors: [],
10536
+ errors: [PermanentRedirect],
10514
10537
  }));
10515
10538
  //# sourceMappingURL=s3.js.map