@aws-sdk/client-s3 3.43.0 → 3.47.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.
- package/CHANGELOG.md +51 -0
- package/dist-cjs/endpoints.js +9 -60
- package/dist-cjs/models/models_0.js +11 -66
- package/dist-cjs/models/models_1.js +7 -1
- package/dist-cjs/protocols/Aws_restXml.js +20 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +9 -60
- package/dist-es/models/models_0.js +4 -40
- package/dist-es/models/models_1.js +4 -0
- package/dist-es/protocols/Aws_restXml.js +21 -3
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/S3.d.ts +115 -35
- package/dist-types/S3Client.d.ts +5 -1
- package/dist-types/commands/CopyObjectCommand.d.ts +11 -1
- package/dist-types/commands/CreateBucketCommand.d.ts +39 -11
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/GetBucketAclCommand.d.ts +7 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +3 -3
- package/dist-types/commands/GetObjectAclCommand.d.ts +7 -1
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -2
- package/dist-types/commands/PutBucketAclCommand.d.ts +7 -1
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +8 -3
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -2
- package/dist-types/commands/PutObjectAclCommand.d.ts +7 -2
- package/dist-types/commands/PutObjectCommand.d.ts +14 -2
- package/dist-types/commands/SelectObjectContentCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +61 -88
- package/dist-types/models/models_1.d.ts +16 -1
- package/dist-types/runtimeConfig.browser.d.ts +4 -3
- package/dist-types/runtimeConfig.d.ts +5 -4
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/ts3.4/S3Client.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +18 -50
- package/dist-types/ts3.4/models/models_1.d.ts +10 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -1
- package/package.json +52 -58
|
@@ -16,8 +16,13 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
|
|
|
16
16
|
* the ACL on an object using either the request body or the headers. For example, if you have
|
|
17
17
|
* an existing application that updates a bucket ACL using the request body, you can continue
|
|
18
18
|
* to use that approach. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* <important>
|
|
20
|
+
* <p>If your bucket uses the bucket owner enforced setting for S3 Object Ownership, ACLs are disabled and no longer affect permissions.
|
|
21
|
+
* You must use policies to grant access to your bucket and the objects in it. Requests to set ACLs or update ACLs fail and
|
|
22
|
+
* return the <code>AccessControlListNotSupported</code> error code. Requests to read ACLs are still supported.
|
|
23
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object ownership</a>
|
|
24
|
+
* in the <i>Amazon S3 User Guide</i>.</p>
|
|
25
|
+
* </important>
|
|
21
26
|
*
|
|
22
27
|
* <p>
|
|
23
28
|
* <b>Access Permissions</b>
|
|
@@ -52,7 +52,6 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
52
52
|
* </li>
|
|
53
53
|
* </ul>
|
|
54
54
|
* </note>
|
|
55
|
-
*
|
|
56
55
|
* <p>
|
|
57
56
|
* <b>Server-side Encryption</b>
|
|
58
57
|
* </p>
|
|
@@ -74,7 +73,20 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
74
73
|
* permissions are then added to the ACL on the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List
|
|
75
74
|
* (ACL) Overview</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing ACLs Using the REST
|
|
76
75
|
* API</a>. </p>
|
|
77
|
-
*
|
|
76
|
+
* <p>If the bucket that you're uploading objects to uses the bucket owner enforced setting
|
|
77
|
+
* for S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that
|
|
78
|
+
* use this setting only accept PUT requests that don't specify an ACL or PUT requests that
|
|
79
|
+
* specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code> canned
|
|
80
|
+
* ACL or an equivalent form of this ACL expressed in the XML format. PUT requests that contain other
|
|
81
|
+
* ACLs (for example, custom grants to certain Amazon Web Services accounts) fail and return a
|
|
82
|
+
* <code>400</code> error with the error code
|
|
83
|
+
* <code>AccessControlListNotSupported</code>.</p>
|
|
84
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling ownership of
|
|
85
|
+
* objects and disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
86
|
+
* <note>
|
|
87
|
+
* <p>If your bucket uses the bucket owner enforced setting for Object Ownership,
|
|
88
|
+
* all objects written to the bucket by any account will be owned by the bucket owner.</p>
|
|
89
|
+
* </note>
|
|
78
90
|
* <p>
|
|
79
91
|
* <b>Storage Class Options</b>
|
|
80
92
|
* </p>
|
|
@@ -16,7 +16,8 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
|
|
|
16
16
|
* <p>This action is not supported by Amazon S3 on Outposts.</p>
|
|
17
17
|
* <p>For more information about Amazon S3 Select,
|
|
18
18
|
* see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
|
|
19
|
-
*
|
|
19
|
+
* Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
|
|
20
|
+
* Command</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
20
21
|
* <p>For more information about using SQL with Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html"> SQL Reference for Amazon S3 Select
|
|
21
22
|
* and S3 Glacier Select</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
22
23
|
* <p></p>
|
|
@@ -77,12 +77,6 @@ export interface NoSuchUpload extends __SmithyException, $MetadataBearer {
|
|
|
77
77
|
name: "NoSuchUpload";
|
|
78
78
|
$fault: "client";
|
|
79
79
|
}
|
|
80
|
-
export declare namespace NoSuchUpload {
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
const filterSensitiveLog: (obj: NoSuchUpload) => any;
|
|
85
|
-
}
|
|
86
80
|
export declare type BucketAccelerateStatus = "Enabled" | "Suspended";
|
|
87
81
|
/**
|
|
88
82
|
* <p>Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see
|
|
@@ -459,7 +453,7 @@ export declare type ObjectCannedACL = "authenticated-read" | "aws-exec-read" | "
|
|
|
459
453
|
export declare type MetadataDirective = "COPY" | "REPLACE";
|
|
460
454
|
export declare type ObjectLockLegalHoldStatus = "OFF" | "ON";
|
|
461
455
|
export declare type ObjectLockMode = "COMPLIANCE" | "GOVERNANCE";
|
|
462
|
-
export declare type StorageClass = "DEEP_ARCHIVE" | "GLACIER" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "OUTPOSTS" | "REDUCED_REDUNDANCY" | "STANDARD" | "STANDARD_IA";
|
|
456
|
+
export declare type StorageClass = "DEEP_ARCHIVE" | "GLACIER" | "GLACIER_IR" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "OUTPOSTS" | "REDUCED_REDUNDANCY" | "STANDARD" | "STANDARD_IA";
|
|
463
457
|
export declare type TaggingDirective = "COPY" | "REPLACE";
|
|
464
458
|
export interface CopyObjectRequest {
|
|
465
459
|
/**
|
|
@@ -708,12 +702,6 @@ export interface ObjectNotInActiveTierError extends __SmithyException, $Metadata
|
|
|
708
702
|
name: "ObjectNotInActiveTierError";
|
|
709
703
|
$fault: "client";
|
|
710
704
|
}
|
|
711
|
-
export declare namespace ObjectNotInActiveTierError {
|
|
712
|
-
/**
|
|
713
|
-
* @internal
|
|
714
|
-
*/
|
|
715
|
-
const filterSensitiveLog: (obj: ObjectNotInActiveTierError) => any;
|
|
716
|
-
}
|
|
717
705
|
/**
|
|
718
706
|
* <p>The requested bucket name is not available. The bucket namespace is shared by all users
|
|
719
707
|
* of the system. Select a different name and try again.</p>
|
|
@@ -722,12 +710,6 @@ export interface BucketAlreadyExists extends __SmithyException, $MetadataBearer
|
|
|
722
710
|
name: "BucketAlreadyExists";
|
|
723
711
|
$fault: "client";
|
|
724
712
|
}
|
|
725
|
-
export declare namespace BucketAlreadyExists {
|
|
726
|
-
/**
|
|
727
|
-
* @internal
|
|
728
|
-
*/
|
|
729
|
-
const filterSensitiveLog: (obj: BucketAlreadyExists) => any;
|
|
730
|
-
}
|
|
731
713
|
/**
|
|
732
714
|
* <p>The bucket you tried to create already exists, and you own it. Amazon S3 returns this error
|
|
733
715
|
* in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you
|
|
@@ -738,12 +720,6 @@ export interface BucketAlreadyOwnedByYou extends __SmithyException, $MetadataBea
|
|
|
738
720
|
name: "BucketAlreadyOwnedByYou";
|
|
739
721
|
$fault: "client";
|
|
740
722
|
}
|
|
741
|
-
export declare namespace BucketAlreadyOwnedByYou {
|
|
742
|
-
/**
|
|
743
|
-
* @internal
|
|
744
|
-
*/
|
|
745
|
-
const filterSensitiveLog: (obj: BucketAlreadyOwnedByYou) => any;
|
|
746
|
-
}
|
|
747
723
|
export interface CreateBucketOutput {
|
|
748
724
|
/**
|
|
749
725
|
* <p>Specifies the Region where the bucket will be created. If you are creating a bucket on
|
|
@@ -776,6 +752,7 @@ export declare namespace CreateBucketConfiguration {
|
|
|
776
752
|
*/
|
|
777
753
|
const filterSensitiveLog: (obj: CreateBucketConfiguration) => any;
|
|
778
754
|
}
|
|
755
|
+
export declare type ObjectOwnership = "BucketOwnerEnforced" | "BucketOwnerPreferred" | "ObjectWriter";
|
|
779
756
|
export interface CreateBucketRequest {
|
|
780
757
|
/**
|
|
781
758
|
* <p>The canned ACL to apply to the bucket.</p>
|
|
@@ -815,6 +792,20 @@ export interface CreateBucketRequest {
|
|
|
815
792
|
* <p>Specifies whether you want S3 Object Lock to be enabled for the new bucket.</p>
|
|
816
793
|
*/
|
|
817
794
|
ObjectLockEnabledForBucket?: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* <p>The container element for object ownership for a bucket's ownership controls.</p>
|
|
797
|
+
* <p>BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket
|
|
798
|
+
* owner if the objects are uploaded with the <code>bucket-owner-full-control</code> canned
|
|
799
|
+
* ACL.</p>
|
|
800
|
+
* <p>ObjectWriter - The uploading account will own the object if the object is uploaded with
|
|
801
|
+
* the <code>bucket-owner-full-control</code> canned ACL.</p>
|
|
802
|
+
* <p>BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions.
|
|
803
|
+
* The bucket owner automatically owns and has full control over every object in the bucket. The bucket only
|
|
804
|
+
* accepts PUT requests that don't specify an ACL or bucket owner full control
|
|
805
|
+
* ACLs, such as the <code>bucket-owner-full-control</code> canned
|
|
806
|
+
* ACL or an equivalent form of this ACL expressed in the XML format.</p>
|
|
807
|
+
*/
|
|
808
|
+
ObjectOwnership?: ObjectOwnership | string;
|
|
818
809
|
}
|
|
819
810
|
export declare namespace CreateBucketRequest {
|
|
820
811
|
/**
|
|
@@ -3849,7 +3840,9 @@ export declare namespace GetBucketCorsRequest {
|
|
|
3849
3840
|
/**
|
|
3850
3841
|
* <p>Describes the default server-side encryption to apply to new objects in the bucket. If a
|
|
3851
3842
|
* PUT Object request doesn't specify any server-side encryption, this default encryption will
|
|
3852
|
-
* be applied.
|
|
3843
|
+
* be applied. If you don't specify a customer managed key at configuration, Amazon S3 automatically creates
|
|
3844
|
+
* an Amazon Web Services KMS key in your Amazon Web Services account the first time that you add an object encrypted with
|
|
3845
|
+
* SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html">PUT Bucket encryption</a> in
|
|
3853
3846
|
* the <i>Amazon S3 API Reference</i>.</p>
|
|
3854
3847
|
*/
|
|
3855
3848
|
export interface ServerSideEncryptionByDefault {
|
|
@@ -3861,9 +3854,9 @@ export interface ServerSideEncryptionByDefault {
|
|
|
3861
3854
|
* <p>Amazon Web Services Key Management Service (KMS) customer Amazon Web Services KMS key ID to use for the default
|
|
3862
3855
|
* encryption. This parameter is allowed if and only if <code>SSEAlgorithm</code> is set to
|
|
3863
3856
|
* <code>aws:kms</code>.</p>
|
|
3864
|
-
* <p>You can specify the key ID or the Amazon Resource Name (ARN) of the KMS key. However, if
|
|
3865
|
-
*
|
|
3866
|
-
*
|
|
3857
|
+
* <p>You can specify the key ID or the Amazon Resource Name (ARN) of the KMS key. However, if
|
|
3858
|
+
* you are using encryption with cross-account or Amazon Web Services service operations you must use a fully qualified KMS
|
|
3859
|
+
* key ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy">Using encryption for cross-account operations</a>. </p>
|
|
3867
3860
|
* <p>
|
|
3868
3861
|
* <b>For example:</b>
|
|
3869
3862
|
* </p>
|
|
@@ -4497,14 +4490,14 @@ export declare namespace NoncurrentVersionExpiration {
|
|
|
4497
4490
|
*/
|
|
4498
4491
|
const filterSensitiveLog: (obj: NoncurrentVersionExpiration) => any;
|
|
4499
4492
|
}
|
|
4500
|
-
export declare type TransitionStorageClass = "DEEP_ARCHIVE" | "GLACIER" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "STANDARD_IA";
|
|
4493
|
+
export declare type TransitionStorageClass = "DEEP_ARCHIVE" | "GLACIER" | "GLACIER_IR" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "STANDARD_IA";
|
|
4501
4494
|
/**
|
|
4502
4495
|
* <p>Container for the transition rule that describes when noncurrent objects transition to
|
|
4503
4496
|
* the <code>STANDARD_IA</code>, <code>ONEZONE_IA</code>, <code>INTELLIGENT_TIERING</code>,
|
|
4504
|
-
*
|
|
4497
|
+
* <code>GLACIER_IR</code>, <code>GLACIER</code>, or <code>DEEP_ARCHIVE</code> storage class. If your bucket is
|
|
4505
4498
|
* versioning-enabled (or versioning is suspended), you can set this action to request that
|
|
4506
4499
|
* Amazon S3 transition noncurrent object versions to the <code>STANDARD_IA</code>,
|
|
4507
|
-
* <code>ONEZONE_IA</code>, <code>INTELLIGENT_TIERING</code>, <code>GLACIER</code>, or
|
|
4500
|
+
* <code>ONEZONE_IA</code>, <code>INTELLIGENT_TIERING</code>, <code>GLACIER_IR</code>, <code>GLACIER</code>, or
|
|
4508
4501
|
* <code>DEEP_ARCHIVE</code> storage class at a specific period in the object's
|
|
4509
4502
|
* lifetime.</p>
|
|
4510
4503
|
*/
|
|
@@ -4698,6 +4691,9 @@ export declare namespace GetBucketLocationRequest {
|
|
|
4698
4691
|
export declare type BucketLogsPermission = "FULL_CONTROL" | "READ" | "WRITE";
|
|
4699
4692
|
/**
|
|
4700
4693
|
* <p>Container for granting information.</p>
|
|
4694
|
+
* <p>Buckets that use the bucket owner enforced setting for Object
|
|
4695
|
+
* Ownership don't support target grants. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general">Permissions server access log delivery</a> in the
|
|
4696
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
4701
4697
|
*/
|
|
4702
4698
|
export interface TargetGrant {
|
|
4703
4699
|
/**
|
|
@@ -4731,6 +4727,9 @@ export interface LoggingEnabled {
|
|
|
4731
4727
|
TargetBucket: string | undefined;
|
|
4732
4728
|
/**
|
|
4733
4729
|
* <p>Container for granting information.</p>
|
|
4730
|
+
* <p>Buckets that use the bucket owner enforced setting for Object
|
|
4731
|
+
* Ownership don't support target grants. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general">Permissions for server access log delivery</a> in the
|
|
4732
|
+
* <i>Amazon S3 User Guide</i>.</p>
|
|
4734
4733
|
*/
|
|
4735
4734
|
TargetGrants?: TargetGrant[];
|
|
4736
4735
|
/**
|
|
@@ -4949,7 +4948,18 @@ export declare namespace GetBucketNotificationConfigurationRequest {
|
|
|
4949
4948
|
*/
|
|
4950
4949
|
const filterSensitiveLog: (obj: GetBucketNotificationConfigurationRequest) => any;
|
|
4951
4950
|
}
|
|
4952
|
-
|
|
4951
|
+
/**
|
|
4952
|
+
* <p>A container for specifying the configuration for Amazon EventBridge.</p>
|
|
4953
|
+
*/
|
|
4954
|
+
export interface EventBridgeConfiguration {
|
|
4955
|
+
}
|
|
4956
|
+
export declare namespace EventBridgeConfiguration {
|
|
4957
|
+
/**
|
|
4958
|
+
* @internal
|
|
4959
|
+
*/
|
|
4960
|
+
const filterSensitiveLog: (obj: EventBridgeConfiguration) => any;
|
|
4961
|
+
}
|
|
4962
|
+
export declare type Event = "s3:IntelligentTiering" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:LifecycleTransition" | "s3:ObjectAcl:Put" | "s3:ObjectCreated:*" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Put" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Completed" | "s3:ObjectRestore:Delete" | "s3:ObjectRestore:Post" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Delete" | "s3:ObjectTagging:Put" | "s3:ReducedRedundancyLostObject" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationReplicatedAfterThreshold";
|
|
4953
4963
|
export declare type FilterRuleName = "prefix" | "suffix";
|
|
4954
4964
|
/**
|
|
4955
4965
|
* <p>Specifies the Amazon S3 object key name to filter on and whether to filter on the suffix or
|
|
@@ -5126,6 +5136,10 @@ export interface NotificationConfiguration {
|
|
|
5126
5136
|
* them.</p>
|
|
5127
5137
|
*/
|
|
5128
5138
|
LambdaFunctionConfigurations?: LambdaFunctionConfiguration[];
|
|
5139
|
+
/**
|
|
5140
|
+
* <p>Enables delivery of events to Amazon EventBridge.</p>
|
|
5141
|
+
*/
|
|
5142
|
+
EventBridgeConfiguration?: EventBridgeConfiguration;
|
|
5129
5143
|
}
|
|
5130
5144
|
export declare namespace NotificationConfiguration {
|
|
5131
5145
|
/**
|
|
@@ -5133,7 +5147,6 @@ export declare namespace NotificationConfiguration {
|
|
|
5133
5147
|
*/
|
|
5134
5148
|
const filterSensitiveLog: (obj: NotificationConfiguration) => any;
|
|
5135
5149
|
}
|
|
5136
|
-
export declare type ObjectOwnership = "BucketOwnerPreferred" | "ObjectWriter";
|
|
5137
5150
|
/**
|
|
5138
5151
|
* <p>The container element for an ownership control rule.</p>
|
|
5139
5152
|
*/
|
|
@@ -5145,6 +5158,11 @@ export interface OwnershipControlsRule {
|
|
|
5145
5158
|
* ACL.</p>
|
|
5146
5159
|
* <p>ObjectWriter - The uploading account will own the object if the object is uploaded with
|
|
5147
5160
|
* the <code>bucket-owner-full-control</code> canned ACL.</p>
|
|
5161
|
+
* <p>BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer affect permissions.
|
|
5162
|
+
* The bucket owner automatically owns and has full control over every object in the bucket. The bucket only
|
|
5163
|
+
* accepts PUT requests that don't specify an ACL or bucket owner full control
|
|
5164
|
+
* ACLs, such as the <code>bucket-owner-full-control</code> canned
|
|
5165
|
+
* ACL or an equivalent form of this ACL expressed in the XML format.</p>
|
|
5148
5166
|
*/
|
|
5149
5167
|
ObjectOwnership: ObjectOwnership | string | undefined;
|
|
5150
5168
|
}
|
|
@@ -5171,7 +5189,7 @@ export declare namespace OwnershipControls {
|
|
|
5171
5189
|
}
|
|
5172
5190
|
export interface GetBucketOwnershipControlsOutput {
|
|
5173
5191
|
/**
|
|
5174
|
-
* <p>The <code>OwnershipControls</code> (BucketOwnerPreferred or ObjectWriter) currently in
|
|
5192
|
+
* <p>The <code>OwnershipControls</code> (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in
|
|
5175
5193
|
* effect for this Amazon S3 bucket.</p>
|
|
5176
5194
|
*/
|
|
5177
5195
|
OwnershipControls?: OwnershipControls;
|
|
@@ -6380,12 +6398,6 @@ export interface InvalidObjectState extends __SmithyException, $MetadataBearer {
|
|
|
6380
6398
|
StorageClass?: StorageClass | string;
|
|
6381
6399
|
AccessTier?: IntelligentTieringAccessTier | string;
|
|
6382
6400
|
}
|
|
6383
|
-
export declare namespace InvalidObjectState {
|
|
6384
|
-
/**
|
|
6385
|
-
* @internal
|
|
6386
|
-
*/
|
|
6387
|
-
const filterSensitiveLog: (obj: InvalidObjectState) => any;
|
|
6388
|
-
}
|
|
6389
6401
|
/**
|
|
6390
6402
|
* <p>The specified key does not exist.</p>
|
|
6391
6403
|
*/
|
|
@@ -6393,12 +6405,6 @@ export interface NoSuchKey extends __SmithyException, $MetadataBearer {
|
|
|
6393
6405
|
name: "NoSuchKey";
|
|
6394
6406
|
$fault: "client";
|
|
6395
6407
|
}
|
|
6396
|
-
export declare namespace NoSuchKey {
|
|
6397
|
-
/**
|
|
6398
|
-
* @internal
|
|
6399
|
-
*/
|
|
6400
|
-
const filterSensitiveLog: (obj: NoSuchKey) => any;
|
|
6401
|
-
}
|
|
6402
6408
|
export interface GetObjectAclOutput {
|
|
6403
6409
|
/**
|
|
6404
6410
|
* <p> Container for the bucket owner's display name and ID.</p>
|
|
@@ -6908,12 +6914,6 @@ export interface NotFound extends __SmithyException, $MetadataBearer {
|
|
|
6908
6914
|
name: "NotFound";
|
|
6909
6915
|
$fault: "client";
|
|
6910
6916
|
}
|
|
6911
|
-
export declare namespace NotFound {
|
|
6912
|
-
/**
|
|
6913
|
-
* @internal
|
|
6914
|
-
*/
|
|
6915
|
-
const filterSensitiveLog: (obj: NotFound) => any;
|
|
6916
|
-
}
|
|
6917
6917
|
export declare type ArchiveStatus = "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
|
|
6918
6918
|
export interface HeadObjectOutput {
|
|
6919
6919
|
/**
|
|
@@ -7160,12 +7160,8 @@ export interface HeadObjectRequest {
|
|
|
7160
7160
|
*/
|
|
7161
7161
|
Key: string | undefined;
|
|
7162
7162
|
/**
|
|
7163
|
-
* <p>
|
|
7164
|
-
*
|
|
7165
|
-
* <note>
|
|
7166
|
-
* <p>Amazon S3 doesn't support retrieving multiple ranges of data per <code>GET</code>
|
|
7167
|
-
* request.</p>
|
|
7168
|
-
* </note>
|
|
7163
|
+
* <p>Because <code>HeadObject</code> returns only the metadata for an object, this parameter
|
|
7164
|
+
* has no effect.</p>
|
|
7169
7165
|
*/
|
|
7170
7166
|
Range?: string;
|
|
7171
7167
|
/**
|
|
@@ -7676,7 +7672,7 @@ export declare namespace ListMultipartUploadsRequest {
|
|
|
7676
7672
|
*/
|
|
7677
7673
|
const filterSensitiveLog: (obj: ListMultipartUploadsRequest) => any;
|
|
7678
7674
|
}
|
|
7679
|
-
export declare type ObjectStorageClass = "DEEP_ARCHIVE" | "GLACIER" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "OUTPOSTS" | "REDUCED_REDUNDANCY" | "STANDARD" | "STANDARD_IA";
|
|
7675
|
+
export declare type ObjectStorageClass = "DEEP_ARCHIVE" | "GLACIER" | "GLACIER_IR" | "INTELLIGENT_TIERING" | "ONEZONE_IA" | "OUTPOSTS" | "REDUCED_REDUNDANCY" | "STANDARD" | "STANDARD_IA";
|
|
7680
7676
|
/**
|
|
7681
7677
|
* <p>An object consists of data and its descriptive metadata.</p>
|
|
7682
7678
|
*/
|
|
@@ -7863,12 +7859,6 @@ export interface NoSuchBucket extends __SmithyException, $MetadataBearer {
|
|
|
7863
7859
|
name: "NoSuchBucket";
|
|
7864
7860
|
$fault: "client";
|
|
7865
7861
|
}
|
|
7866
|
-
export declare namespace NoSuchBucket {
|
|
7867
|
-
/**
|
|
7868
|
-
* @internal
|
|
7869
|
-
*/
|
|
7870
|
-
const filterSensitiveLog: (obj: NoSuchBucket) => any;
|
|
7871
|
-
}
|
|
7872
7862
|
export interface ListObjectsV2Output {
|
|
7873
7863
|
/**
|
|
7874
7864
|
* <p>Set to false if all of the results were returned. Set to true if more keys are available
|
|
@@ -8756,6 +8746,10 @@ export interface PutBucketNotificationConfigurationRequest {
|
|
|
8756
8746
|
* <p>The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP <code>403 (Access Denied)</code> error.</p>
|
|
8757
8747
|
*/
|
|
8758
8748
|
ExpectedBucketOwner?: string;
|
|
8749
|
+
/**
|
|
8750
|
+
* <p>Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations. True or false value.</p>
|
|
8751
|
+
*/
|
|
8752
|
+
SkipDestinationValidation?: boolean;
|
|
8759
8753
|
}
|
|
8760
8754
|
export declare namespace PutBucketNotificationConfigurationRequest {
|
|
8761
8755
|
/**
|
|
@@ -8780,7 +8774,7 @@ export interface PutBucketOwnershipControlsRequest {
|
|
|
8780
8774
|
*/
|
|
8781
8775
|
ExpectedBucketOwner?: string;
|
|
8782
8776
|
/**
|
|
8783
|
-
* <p>The <code>OwnershipControls</code> (BucketOwnerPreferred or ObjectWriter) that you want
|
|
8777
|
+
* <p>The <code>OwnershipControls</code> (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) that you want
|
|
8784
8778
|
* to apply to this Amazon S3 bucket.</p>
|
|
8785
8779
|
*/
|
|
8786
8780
|
OwnershipControls: OwnershipControls | undefined;
|
|
@@ -9691,12 +9685,6 @@ export interface ObjectAlreadyInActiveTierError extends __SmithyException, $Meta
|
|
|
9691
9685
|
name: "ObjectAlreadyInActiveTierError";
|
|
9692
9686
|
$fault: "client";
|
|
9693
9687
|
}
|
|
9694
|
-
export declare namespace ObjectAlreadyInActiveTierError {
|
|
9695
|
-
/**
|
|
9696
|
-
* @internal
|
|
9697
|
-
*/
|
|
9698
|
-
const filterSensitiveLog: (obj: ObjectAlreadyInActiveTierError) => any;
|
|
9699
|
-
}
|
|
9700
9688
|
export interface RestoreObjectOutput {
|
|
9701
9689
|
/**
|
|
9702
9690
|
* <p>If present, indicates that the requester was successfully charged for the
|
|
@@ -9716,18 +9704,3 @@ export declare namespace RestoreObjectOutput {
|
|
|
9716
9704
|
const filterSensitiveLog: (obj: RestoreObjectOutput) => any;
|
|
9717
9705
|
}
|
|
9718
9706
|
export declare type Tier = "Bulk" | "Expedited" | "Standard";
|
|
9719
|
-
/**
|
|
9720
|
-
* <p>Container for S3 Glacier job parameters.</p>
|
|
9721
|
-
*/
|
|
9722
|
-
export interface GlacierJobParameters {
|
|
9723
|
-
/**
|
|
9724
|
-
* <p>Retrieval tier at which the restore will be processed.</p>
|
|
9725
|
-
*/
|
|
9726
|
-
Tier: Tier | string | undefined;
|
|
9727
|
-
}
|
|
9728
|
-
export declare namespace GlacierJobParameters {
|
|
9729
|
-
/**
|
|
9730
|
-
* @internal
|
|
9731
|
-
*/
|
|
9732
|
-
const filterSensitiveLog: (obj: GlacierJobParameters) => any;
|
|
9733
|
-
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Readable } from "stream";
|
|
3
|
-
import {
|
|
3
|
+
import { Grant, ObjectCannedACL, ObjectLockLegalHoldStatus, ObjectLockMode, ReplicationStatus, RequestCharged, RequestPayer, ServerSideEncryption, StorageClass, Tagging, Tier } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>Container for S3 Glacier job parameters.</p>
|
|
6
|
+
*/
|
|
7
|
+
export interface GlacierJobParameters {
|
|
8
|
+
/**
|
|
9
|
+
* <p>Retrieval tier at which the restore will be processed.</p>
|
|
10
|
+
*/
|
|
11
|
+
Tier: Tier | string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace GlacierJobParameters {
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
const filterSensitiveLog: (obj: GlacierJobParameters) => any;
|
|
18
|
+
}
|
|
4
19
|
/**
|
|
5
20
|
* <p>Contains the type of server-side encryption used.</p>
|
|
6
21
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
3
3
|
import { S3ClientConfig } from "./S3Client";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
8
8
|
runtime: string;
|
|
9
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
10
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
11
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
12
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -15,7 +16,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
15
16
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
16
17
|
md5: import("@aws-sdk/types").HashConstructor;
|
|
17
18
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
18
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
19
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
19
20
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
20
21
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
21
22
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -39,7 +40,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
39
40
|
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
40
41
|
systemClockOffset?: number | undefined;
|
|
41
42
|
signingRegion?: string | undefined;
|
|
42
|
-
signerConstructor:
|
|
43
|
+
signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
|
|
43
44
|
bucketEndpoint?: boolean | undefined;
|
|
44
45
|
forcePathStyle?: boolean | undefined;
|
|
45
46
|
useAccelerateEndpoint?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
3
3
|
import { HashConstructor as __HashConstructor } from "@aws-sdk/types";
|
|
4
4
|
import { S3ClientConfig } from "./S3Client";
|
|
5
5
|
/**
|
|
@@ -7,16 +7,17 @@ import { S3ClientConfig } from "./S3Client";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
9
9
|
runtime: string;
|
|
10
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
10
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
11
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
12
13
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
13
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
14
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
14
15
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
15
16
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
16
17
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
17
18
|
md5: __HashConstructor;
|
|
18
19
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
19
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
20
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
20
21
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
21
22
|
sha256: __HashConstructor;
|
|
22
23
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -40,7 +41,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
40
41
|
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
41
42
|
systemClockOffset?: number | undefined;
|
|
42
43
|
signingRegion?: string | undefined;
|
|
43
|
-
signerConstructor:
|
|
44
|
+
signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
|
|
44
45
|
bucketEndpoint?: boolean | undefined;
|
|
45
46
|
forcePathStyle?: boolean | undefined;
|
|
46
47
|
useAccelerateEndpoint?: boolean | undefined;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
31
31
|
eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
|
|
32
32
|
streamHasher: import("@aws-sdk/types").StreamHasher<import("stream").Readable> | import("@aws-sdk/types").StreamHasher<Blob>;
|
|
33
33
|
md5: import("@aws-sdk/types").HashConstructor;
|
|
34
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
34
35
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
35
36
|
tls?: boolean | undefined;
|
|
36
37
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -38,7 +39,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
38
39
|
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
|
|
39
40
|
systemClockOffset?: number | undefined;
|
|
40
41
|
signingRegion?: string | undefined;
|
|
41
|
-
signerConstructor:
|
|
42
|
+
signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
|
|
42
43
|
bucketEndpoint?: boolean | undefined;
|
|
43
44
|
forcePathStyle?: boolean | undefined;
|
|
44
45
|
useAccelerateEndpoint?: boolean | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
10
10
|
logger: __Logger;
|
|
11
11
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
12
12
|
serviceId: string;
|
|
13
|
-
signerConstructor:
|
|
13
|
+
signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof S3SignatureV4;
|
|
14
14
|
signingEscapePath: boolean;
|
|
15
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
16
|
useArnRegion: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
@@ -7,7 +7,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
7
7
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
8
8
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
9
9
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
10
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
11
11
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
12
12
|
import { Readable } from "stream";
|
|
13
13
|
import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
|
|
@@ -157,6 +157,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
157
157
|
streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
|
|
158
158
|
|
|
159
159
|
md5?: __HashConstructor;
|
|
160
|
+
|
|
161
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
160
162
|
}
|
|
161
163
|
declare type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & BucketEndpointInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
|
|
162
164
|
|