@aws-sdk/client-s3 3.975.0 → 3.980.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.
@@ -13,6 +13,20 @@ export declare class NoSuchUpload extends __BaseException {
13
13
  */
14
14
  constructor(opts: __ExceptionOptionType<NoSuchUpload, __BaseException>);
15
15
  }
16
+ /**
17
+ * <p>
18
+ * You might receive this error for several reasons. For details, see the description of this API
19
+ * operation.</p>
20
+ * @public
21
+ */
22
+ export declare class AccessDenied extends __BaseException {
23
+ readonly name: "AccessDenied";
24
+ readonly $fault: "client";
25
+ /**
26
+ * @internal
27
+ */
28
+ constructor(opts: __ExceptionOptionType<AccessDenied, __BaseException>);
29
+ }
16
30
  /**
17
31
  * <p>The source object of the COPY action is not in the active tier and is only stored in Amazon S3
18
32
  * Glacier.</p>
@@ -124,21 +138,8 @@ export declare class EncryptionTypeMismatch extends __BaseException {
124
138
  constructor(opts: __ExceptionOptionType<EncryptionTypeMismatch, __BaseException>);
125
139
  }
126
140
  /**
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>
141
+ * <p>A parameter or header in your request isn't valid. For details, see the description of this API
142
+ * operation.</p>
142
143
  * @public
143
144
  */
144
145
  export declare class InvalidRequest extends __BaseException {
@@ -80,7 +80,7 @@ export interface AbortMultipartUploadRequest {
80
80
  /**
81
81
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
82
82
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
83
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
83
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
84
84
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
85
85
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
86
86
  * <note>
@@ -535,7 +535,7 @@ export interface CompleteMultipartUploadRequest {
535
535
  /**
536
536
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
537
537
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
538
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
538
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
539
539
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
540
540
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
541
541
  * <note>
@@ -1393,7 +1393,7 @@ export interface CopyObjectRequest {
1393
1393
  /**
1394
1394
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
1395
1395
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
1396
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
1396
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
1397
1397
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
1398
1398
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
1399
1399
  * <note>
@@ -2596,7 +2596,7 @@ export interface CreateMultipartUploadRequest {
2596
2596
  /**
2597
2597
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
2598
2598
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
2599
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
2599
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
2600
2600
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
2601
2601
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
2602
2602
  * <note>
@@ -3208,7 +3208,7 @@ export interface DeleteObjectRequest {
3208
3208
  /**
3209
3209
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
3210
3210
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
3211
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
3211
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
3212
3212
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
3213
3213
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
3214
3214
  * <note>
@@ -5324,7 +5324,7 @@ export interface DeleteObjectsRequest {
5324
5324
  /**
5325
5325
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
5326
5326
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
5327
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
5327
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
5328
5328
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
5329
5329
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
5330
5330
  * <note>
@@ -5521,7 +5521,7 @@ export interface GetBucketAccelerateConfigurationRequest {
5521
5521
  /**
5522
5522
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
5523
5523
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
5524
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
5524
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
5525
5525
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
5526
5526
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
5527
5527
  * <note>
@@ -9341,7 +9341,7 @@ export interface GetObjectRequest {
9341
9341
  /**
9342
9342
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
9343
9343
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
9344
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
9344
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
9345
9345
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
9346
9346
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
9347
9347
  * <note>
@@ -9422,7 +9422,7 @@ export interface GetObjectAclRequest {
9422
9422
  /**
9423
9423
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
9424
9424
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
9425
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
9425
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
9426
9426
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
9427
9427
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
9428
9428
  * <note>
@@ -9762,7 +9762,7 @@ export interface GetObjectAttributesRequest {
9762
9762
  /**
9763
9763
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
9764
9764
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
9765
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
9765
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
9766
9766
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
9767
9767
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
9768
9768
  * <note>
@@ -9830,7 +9830,7 @@ export interface GetObjectLegalHoldRequest {
9830
9830
  /**
9831
9831
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
9832
9832
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
9833
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
9833
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
9834
9834
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
9835
9835
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
9836
9836
  * <note>
@@ -9998,7 +9998,7 @@ export interface GetObjectRetentionRequest {
9998
9998
  /**
9999
9999
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
10000
10000
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
10001
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
10001
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
10002
10002
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
10003
10003
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
10004
10004
  * <note>
@@ -10063,7 +10063,7 @@ export interface GetObjectTaggingRequest {
10063
10063
  /**
10064
10064
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
10065
10065
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
10066
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
10066
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
10067
10067
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
10068
10068
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
10069
10069
  * <note>
@@ -10112,7 +10112,7 @@ export interface GetObjectTorrentRequest {
10112
10112
  /**
10113
10113
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
10114
10114
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
10115
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
10115
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
10116
10116
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
10117
10117
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
10118
10118
  * <note>
@@ -10832,7 +10832,7 @@ export interface HeadObjectRequest {
10832
10832
  /**
10833
10833
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
10834
10834
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
10835
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
10835
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
10836
10836
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
10837
10837
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
10838
10838
  * <note>
@@ -11563,7 +11563,7 @@ export interface ListMultipartUploadsRequest {
11563
11563
  /**
11564
11564
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
11565
11565
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
11566
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
11566
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
11567
11567
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
11568
11568
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
11569
11569
  * <note>
@@ -12420,7 +12420,7 @@ export interface ListObjectVersionsRequest {
12420
12420
  /**
12421
12421
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
12422
12422
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
12423
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
12423
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
12424
12424
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
12425
12425
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
12426
12426
  * <note>
@@ -12678,7 +12678,7 @@ export interface ListPartsRequest {
12678
12678
  /**
12679
12679
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
12680
12680
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
12681
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
12681
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
12682
12682
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
12683
12683
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
12684
12684
  * <note>
@@ -14353,7 +14353,7 @@ export interface PutObjectRequest {
14353
14353
  /**
14354
14354
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
14355
14355
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
14356
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
14356
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
14357
14357
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
14358
14358
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
14359
14359
  * <note>
@@ -14505,7 +14505,7 @@ export interface PutObjectAclRequest {
14505
14505
  /**
14506
14506
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
14507
14507
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
14508
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
14508
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
14509
14509
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
14510
14510
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
14511
14511
  * <note>
@@ -14569,7 +14569,7 @@ export interface PutObjectLegalHoldRequest {
14569
14569
  /**
14570
14570
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
14571
14571
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
14572
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
14572
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
14573
14573
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
14574
14574
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
14575
14575
  * <note>
@@ -14640,7 +14640,7 @@ export interface PutObjectLockConfigurationRequest {
14640
14640
  /**
14641
14641
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
14642
14642
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
14643
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
14643
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
14644
14644
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
14645
14645
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
14646
14646
  * <note>
@@ -14718,7 +14718,7 @@ export interface PutObjectRetentionRequest {
14718
14718
  /**
14719
14719
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
14720
14720
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
14721
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
14721
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
14722
14722
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
14723
14723
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
14724
14724
  * <note>
@@ -229,7 +229,7 @@ export interface RestoreObjectRequest {
229
229
  /**
230
230
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
231
231
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
232
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
232
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
233
233
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
234
234
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
235
235
  * <note>
@@ -724,6 +724,189 @@ export interface UpdateBucketMetadataJournalTableConfigurationRequest {
724
724
  */
725
725
  ExpectedBucketOwner?: string | undefined;
726
726
  }
727
+ /**
728
+ * <p>
729
+ * If <code>SSEKMS</code> is specified for <code>ObjectEncryption</code>, this data type specifies
730
+ * the Amazon Web Services KMS key Amazon Resource Name (ARN) to use and whether to use an S3 Bucket Key for
731
+ * server-side encryption using Key Management Service (KMS) keys (SSE-KMS).
732
+ * </p>
733
+ * @public
734
+ */
735
+ export interface SSEKMSEncryption {
736
+ /**
737
+ * <p>
738
+ * Specifies the Amazon Web Services KMS key Amazon Resource Name (ARN) to use for the updated server-side encryption
739
+ * type. Required if <code>ObjectEncryption</code> specifies <code>SSEKMS</code>.
740
+ * </p>
741
+ * <note>
742
+ * <p>You must specify the full Amazon Web Services KMS key ARN. The KMS key ID and KMS key alias aren't
743
+ * supported.</p>
744
+ * </note>
745
+ * <p>Pattern: (<code>arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]\{12\}:key/.+</code>)</p>
746
+ * @public
747
+ */
748
+ KMSKeyArn: string | undefined;
749
+ /**
750
+ * <p>
751
+ * Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with server-side encryption
752
+ * using Key Management Service (KMS) keys (SSE-KMS). If this value isn't specified, it defaults to <code>false</code>.
753
+ * Setting this value to <code>true</code> causes Amazon S3 to use an S3 Bucket Key for object encryption with
754
+ * SSE-KMS. For more information, see
755
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-key.html">
756
+ * Using Amazon S3 Bucket Keys</a> in the <i>Amazon S3 User Guide</i>.
757
+ * </p>
758
+ * <p>Valid Values: <code>true</code> | <code>false</code>
759
+ * </p>
760
+ * @public
761
+ */
762
+ BucketKeyEnabled?: boolean | undefined;
763
+ }
764
+ /**
765
+ * <p>
766
+ * The updated server-side encryption type for this object. The <code>UpdateObjectEncryption</code>
767
+ * operation supports the SSE-S3 and SSE-KMS encryption types.
768
+ * </p>
769
+ * <p>Valid Values: <code>SSES3</code> | <code>SSEKMS</code>
770
+ * </p>
771
+ * @public
772
+ */
773
+ export type ObjectEncryption = ObjectEncryption.SSEKMSMember | ObjectEncryption.$UnknownMember;
774
+ /**
775
+ * @public
776
+ */
777
+ export declare namespace ObjectEncryption {
778
+ /**
779
+ * <p>
780
+ * Specifies to update the object encryption type to server-side encryption with Key Management Service (KMS) keys
781
+ * (SSE-KMS).
782
+ * </p>
783
+ * @public
784
+ */
785
+ interface SSEKMSMember {
786
+ SSEKMS: SSEKMSEncryption;
787
+ $unknown?: never;
788
+ }
789
+ /**
790
+ * @public
791
+ */
792
+ interface $UnknownMember {
793
+ SSEKMS?: never;
794
+ $unknown: [string, any];
795
+ }
796
+ /**
797
+ * @deprecated unused in schema-serde mode.
798
+ *
799
+ */
800
+ interface Visitor<T> {
801
+ SSEKMS: (value: SSEKMSEncryption) => T;
802
+ _: (name: string, value: any) => T;
803
+ }
804
+ }
805
+ /**
806
+ * @public
807
+ */
808
+ export interface UpdateObjectEncryptionRequest {
809
+ /**
810
+ * <p>
811
+ * The name of the general purpose bucket that contains the specified object key name.
812
+ * </p>
813
+ * <p>When you use this operation with an access point attached to a general purpose bucket, you
814
+ * must either provide the alias of the access point in place of the bucket name or you must specify
815
+ * the access point Amazon Resource Name (ARN). When using the access point ARN, you must direct
816
+ * requests to the access point hostname. The access point hostname takes the form
817
+ * <code>
818
+ * <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com</code>.
819
+ * When using this operation with an access point through the Amazon Web Services SDKs, you provide the access point
820
+ * ARN in place of the bucket name. For more information about access point ARNs, see
821
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-naming.html">
822
+ * Referencing access points</a> in the <i>Amazon S3 User Guide</i>.</p>
823
+ * <p>Note: To supply the Multi-region Access Point (MRAP) to Bucket, you need to install the "@aws-sdk/signature-v4-crt" package to your project dependencies.
824
+ * For more information, please go to https://github.com/aws/aws-sdk-js-v3#known-issues</p>
825
+ * @public
826
+ */
827
+ Bucket: string | undefined;
828
+ /**
829
+ * <p>
830
+ * The key name of the object that you want to update the server-side encryption type for.
831
+ * </p>
832
+ * @public
833
+ */
834
+ Key: string | undefined;
835
+ /**
836
+ * <p>
837
+ * The version ID of the object that you want to update the server-side encryption type for.
838
+ * </p>
839
+ * @public
840
+ */
841
+ VersionId?: string | undefined;
842
+ /**
843
+ * <p>
844
+ * The updated server-side encryption type for this object. The <code>UpdateObjectEncryption</code>
845
+ * operation supports the SSE-S3 and SSE-KMS encryption types.
846
+ * </p>
847
+ * <p>Valid Values: <code>SSES3</code> | <code>SSEKMS</code>
848
+ * </p>
849
+ * @public
850
+ */
851
+ ObjectEncryption: ObjectEncryption | undefined;
852
+ /**
853
+ * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
854
+ * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
855
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
856
+ * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
857
+ * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
858
+ * <note>
859
+ * <p>This functionality is not supported for directory buckets.</p>
860
+ * </note>
861
+ * @public
862
+ */
863
+ RequestPayer?: RequestPayer | undefined;
864
+ /**
865
+ * <p>
866
+ * The account ID of the expected bucket owner. If the account ID that you provide doesn't match the
867
+ * actual owner of the bucket, the request fails with the HTTP status code <code>403 Forbidden</code>
868
+ * (access denied).
869
+ * </p>
870
+ * @public
871
+ */
872
+ ExpectedBucketOwner?: string | undefined;
873
+ /**
874
+ * <p>
875
+ * The MD5 hash for the request body. For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically.
876
+ * </p>
877
+ * @public
878
+ */
879
+ ContentMD5?: string | undefined;
880
+ /**
881
+ * <p>
882
+ * Indicates the algorithm used to create the checksum for the object when you use an Amazon Web Services SDK. This header
883
+ * doesn't provide any additional functionality if you don't use the SDK. When you send this header,
884
+ * there must be a corresponding <code>x-amz-checksum</code> or <code>x-amz-trailer</code> header sent.
885
+ * Otherwise, Amazon S3 fails the request with the HTTP status code <code>400 Bad Request</code>. For more
886
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html">
887
+ * Checking object integrity </a> in the <i>Amazon S3 User Guide</i>.
888
+ * </p>
889
+ * <p>If you provide an individual checksum, Amazon S3 ignores any provided <code>ChecksumAlgorithm</code>
890
+ * parameter.</p>
891
+ * @public
892
+ */
893
+ ChecksumAlgorithm?: ChecksumAlgorithm | undefined;
894
+ }
895
+ /**
896
+ * @public
897
+ */
898
+ export interface UpdateObjectEncryptionResponse {
899
+ /**
900
+ * <p>If present, indicates that the requester was successfully charged for the request. For more
901
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html">Using Requester Pays buckets for storage transfers and usage</a> in the <i>Amazon Simple
902
+ * Storage Service user guide</i>.</p>
903
+ * <note>
904
+ * <p>This functionality is not supported for directory buckets.</p>
905
+ * </note>
906
+ * @public
907
+ */
908
+ RequestCharged?: RequestCharged | undefined;
909
+ }
727
910
  /**
728
911
  * @public
729
912
  */
@@ -970,7 +1153,7 @@ export interface UploadPartRequest {
970
1153
  /**
971
1154
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
972
1155
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
973
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
1156
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
974
1157
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
975
1158
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
976
1159
  * <note>
@@ -1321,7 +1504,7 @@ export interface UploadPartCopyRequest {
1321
1504
  /**
1322
1505
  * <p>Confirms that the requester knows that they will be charged for the request. Bucket owners need not
1323
1506
  * specify this parameter in their requests. If either the source or destination S3 bucket has Requester
1324
- * Pays enabled, the requester will pay for corresponding charges to copy the object. For information about
1507
+ * Pays enabled, the requester will pay for the corresponding charges. For information about
1325
1508
  * downloading objects from Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html">Downloading Objects in Requester Pays
1326
1509
  * Buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
1327
1510
  * <note>
@@ -6,6 +6,7 @@ export declare var AbortMultipartUploadRequest$: StaticStructureSchema;
6
6
  export declare var AccelerateConfiguration$: StaticStructureSchema;
7
7
  export declare var AccessControlPolicy$: StaticStructureSchema;
8
8
  export declare var AccessControlTranslation$: StaticStructureSchema;
9
+ export declare var AccessDenied$: StaticErrorSchema;
9
10
  export declare var AnalyticsAndOperator$: StaticStructureSchema;
10
11
  export declare var AnalyticsConfiguration$: StaticStructureSchema;
11
12
  export declare var AnalyticsExportDestination$: StaticStructureSchema;
@@ -317,6 +318,7 @@ export declare var SimplePrefix$: StaticStructureSchema;
317
318
  export declare var SourceSelectionCriteria$: StaticStructureSchema;
318
319
  export declare var SSEKMS$: StaticStructureSchema;
319
320
  export declare var SseKmsEncryptedObjects$: StaticStructureSchema;
321
+ export declare var SSEKMSEncryption$: StaticStructureSchema;
320
322
  export declare var SSES3$: StaticStructureSchema;
321
323
  export declare var Stats$: StaticStructureSchema;
322
324
  export declare var StatsEvent$: StaticStructureSchema;
@@ -332,6 +334,8 @@ export declare var TopicConfiguration$: StaticStructureSchema;
332
334
  export declare var Transition$: StaticStructureSchema;
333
335
  export declare var UpdateBucketMetadataInventoryTableConfigurationRequest$: StaticStructureSchema;
334
336
  export declare var UpdateBucketMetadataJournalTableConfigurationRequest$: StaticStructureSchema;
337
+ export declare var UpdateObjectEncryptionRequest$: StaticStructureSchema;
338
+ export declare var UpdateObjectEncryptionResponse$: StaticStructureSchema;
335
339
  export declare var UploadPartCopyOutput$: StaticStructureSchema;
336
340
  export declare var UploadPartCopyRequest$: StaticStructureSchema;
337
341
  export declare var UploadPartOutput$: StaticStructureSchema;
@@ -342,6 +346,7 @@ export declare var WriteGetObjectResponseRequest$: StaticStructureSchema;
342
346
  export declare var S3ServiceException$: StaticErrorSchema;
343
347
  export declare var AnalyticsFilter$: StaticUnionSchema;
344
348
  export declare var MetricsFilter$: StaticUnionSchema;
349
+ export declare var ObjectEncryption$: StaticUnionSchema;
345
350
  export declare var SelectObjectContentEventStream$: StaticUnionSchema;
346
351
  export declare var AbortMultipartUpload$: StaticOperationSchema;
347
352
  export declare var CompleteMultipartUpload$: StaticOperationSchema;
@@ -446,6 +451,7 @@ export declare var RestoreObject$: StaticOperationSchema;
446
451
  export declare var SelectObjectContent$: StaticOperationSchema;
447
452
  export declare var UpdateBucketMetadataInventoryTableConfiguration$: StaticOperationSchema;
448
453
  export declare var UpdateBucketMetadataJournalTableConfiguration$: StaticOperationSchema;
454
+ export declare var UpdateObjectEncryption$: StaticOperationSchema;
449
455
  export declare var UploadPart$: StaticOperationSchema;
450
456
  export declare var UploadPartCopy$: StaticOperationSchema;
451
457
  export declare var WriteGetObjectResponse$: StaticOperationSchema;
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  AbortMultipartUploadCommandInput,
4
10
  AbortMultipartUploadCommandOutput,
@@ -411,6 +417,10 @@ import {
411
417
  UpdateBucketMetadataJournalTableConfigurationCommandInput,
412
418
  UpdateBucketMetadataJournalTableConfigurationCommandOutput,
413
419
  } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
420
+ import {
421
+ UpdateObjectEncryptionCommandInput,
422
+ UpdateObjectEncryptionCommandOutput,
423
+ } from "./commands/UpdateObjectEncryptionCommand";
414
424
  import {
415
425
  UploadPartCommandInput,
416
426
  UploadPartCommandOutput,
@@ -1868,6 +1878,19 @@ export interface S3 {
1868
1878
  data?: UpdateBucketMetadataJournalTableConfigurationCommandOutput
1869
1879
  ) => void
1870
1880
  ): void;
1881
+ updateObjectEncryption(
1882
+ args: UpdateObjectEncryptionCommandInput,
1883
+ options?: __HttpHandlerOptions
1884
+ ): Promise<UpdateObjectEncryptionCommandOutput>;
1885
+ updateObjectEncryption(
1886
+ args: UpdateObjectEncryptionCommandInput,
1887
+ cb: (err: any, data?: UpdateObjectEncryptionCommandOutput) => void
1888
+ ): void;
1889
+ updateObjectEncryption(
1890
+ args: UpdateObjectEncryptionCommandInput,
1891
+ options: __HttpHandlerOptions,
1892
+ cb: (err: any, data?: UpdateObjectEncryptionCommandOutput) => void
1893
+ ): void;
1871
1894
  uploadPart(
1872
1895
  args: UploadPartCommandInput,
1873
1896
  options?: __HttpHandlerOptions
@@ -1907,5 +1930,69 @@ export interface S3 {
1907
1930
  options: __HttpHandlerOptions,
1908
1931
  cb: (err: any, data?: WriteGetObjectResponseCommandOutput) => void
1909
1932
  ): void;
1933
+ paginateListBuckets(
1934
+ args?: ListBucketsCommandInput,
1935
+ paginationConfig?: Pick<
1936
+ PaginationConfiguration,
1937
+ Exclude<keyof PaginationConfiguration, "client">
1938
+ >
1939
+ ): Paginator<ListBucketsCommandOutput>;
1940
+ paginateListDirectoryBuckets(
1941
+ args?: ListDirectoryBucketsCommandInput,
1942
+ paginationConfig?: Pick<
1943
+ PaginationConfiguration,
1944
+ Exclude<keyof PaginationConfiguration, "client">
1945
+ >
1946
+ ): Paginator<ListDirectoryBucketsCommandOutput>;
1947
+ paginateListObjectsV2(
1948
+ args: ListObjectsV2CommandInput,
1949
+ paginationConfig?: Pick<
1950
+ PaginationConfiguration,
1951
+ Exclude<keyof PaginationConfiguration, "client">
1952
+ >
1953
+ ): Paginator<ListObjectsV2CommandOutput>;
1954
+ paginateListParts(
1955
+ args: ListPartsCommandInput,
1956
+ paginationConfig?: Pick<
1957
+ PaginationConfiguration,
1958
+ Exclude<keyof PaginationConfiguration, "client">
1959
+ >
1960
+ ): Paginator<ListPartsCommandOutput>;
1961
+ waitUntilBucketExists(
1962
+ args: HeadBucketCommandInput,
1963
+ waiterConfig:
1964
+ | number
1965
+ | Pick<
1966
+ WaiterConfiguration<S3>,
1967
+ Exclude<keyof WaiterConfiguration<S3>, "client">
1968
+ >
1969
+ ): Promise<WaiterResult>;
1970
+ waitUntilBucketNotExists(
1971
+ args: HeadBucketCommandInput,
1972
+ waiterConfig:
1973
+ | number
1974
+ | Pick<
1975
+ WaiterConfiguration<S3>,
1976
+ Exclude<keyof WaiterConfiguration<S3>, "client">
1977
+ >
1978
+ ): Promise<WaiterResult>;
1979
+ waitUntilObjectExists(
1980
+ args: HeadObjectCommandInput,
1981
+ waiterConfig:
1982
+ | number
1983
+ | Pick<
1984
+ WaiterConfiguration<S3>,
1985
+ Exclude<keyof WaiterConfiguration<S3>, "client">
1986
+ >
1987
+ ): Promise<WaiterResult>;
1988
+ waitUntilObjectNotExists(
1989
+ args: HeadObjectCommandInput,
1990
+ waiterConfig:
1991
+ | number
1992
+ | Pick<
1993
+ WaiterConfiguration<S3>,
1994
+ Exclude<keyof WaiterConfiguration<S3>, "client">
1995
+ >
1996
+ ): Promise<WaiterResult>;
1910
1997
  }
1911
1998
  export declare class S3 extends S3Client implements S3 {}
@@ -471,6 +471,10 @@ import {
471
471
  UpdateBucketMetadataJournalTableConfigurationCommandInput,
472
472
  UpdateBucketMetadataJournalTableConfigurationCommandOutput,
473
473
  } from "./commands/UpdateBucketMetadataJournalTableConfigurationCommand";
474
+ import {
475
+ UpdateObjectEncryptionCommandInput,
476
+ UpdateObjectEncryptionCommandOutput,
477
+ } from "./commands/UpdateObjectEncryptionCommand";
474
478
  import {
475
479
  UploadPartCommandInput,
476
480
  UploadPartCommandOutput,
@@ -594,6 +598,7 @@ export type ServiceInputTypes =
594
598
  | SelectObjectContentCommandInput
595
599
  | UpdateBucketMetadataInventoryTableConfigurationCommandInput
596
600
  | UpdateBucketMetadataJournalTableConfigurationCommandInput
601
+ | UpdateObjectEncryptionCommandInput
597
602
  | UploadPartCommandInput
598
603
  | UploadPartCopyCommandInput
599
604
  | WriteGetObjectResponseCommandInput;
@@ -701,6 +706,7 @@ export type ServiceOutputTypes =
701
706
  | SelectObjectContentCommandOutput
702
707
  | UpdateBucketMetadataInventoryTableConfigurationCommandOutput
703
708
  | UpdateBucketMetadataJournalTableConfigurationCommandOutput
709
+ | UpdateObjectEncryptionCommandOutput
704
710
  | UploadPartCommandOutput
705
711
  | UploadPartCopyCommandOutput
706
712
  | WriteGetObjectResponseCommandOutput;