@aws-sdk/client-s3 3.1006.0 → 3.1008.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/dist-cjs/index.js +5 -0
- package/dist-cjs/schemas/schemas_0.js +6 -4
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +6 -4
- package/dist-types/commands/CopyObjectCommand.d.ts +5 -4
- package/dist-types/commands/CreateBucketCommand.d.ts +9 -0
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +0 -1
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +0 -1
- package/dist-types/commands/HeadBucketCommand.d.ts +5 -4
- package/dist-types/commands/UploadPartCopyCommand.d.ts +5 -4
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +24 -2
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -2526,6 +2526,10 @@ const BucketCannedACL = {
|
|
|
2526
2526
|
public_read: "public-read",
|
|
2527
2527
|
public_read_write: "public-read-write",
|
|
2528
2528
|
};
|
|
2529
|
+
const BucketNamespace = {
|
|
2530
|
+
ACCOUNT_REGIONAL: "account-regional",
|
|
2531
|
+
GLOBAL: "global",
|
|
2532
|
+
};
|
|
2529
2533
|
const DataRedundancy = {
|
|
2530
2534
|
SingleAvailabilityZone: "SingleAvailabilityZone",
|
|
2531
2535
|
SingleLocalZone: "SingleLocalZone",
|
|
@@ -2845,6 +2849,7 @@ exports.BucketAccelerateStatus = BucketAccelerateStatus;
|
|
|
2845
2849
|
exports.BucketCannedACL = BucketCannedACL;
|
|
2846
2850
|
exports.BucketLocationConstraint = BucketLocationConstraint;
|
|
2847
2851
|
exports.BucketLogsPermission = BucketLogsPermission;
|
|
2852
|
+
exports.BucketNamespace = BucketNamespace;
|
|
2848
2853
|
exports.BucketType = BucketType;
|
|
2849
2854
|
exports.BucketVersioningStatus = BucketVersioningStatus;
|
|
2850
2855
|
exports.ChecksumAlgorithm = ChecksumAlgorithm;
|
|
@@ -59,7 +59,8 @@ const _BLC = "BucketLifecycleConfiguration";
|
|
|
59
59
|
const _BLN = "BucketLocationName";
|
|
60
60
|
const _BLS = "BucketLoggingStatus";
|
|
61
61
|
const _BLT = "BucketLocationType";
|
|
62
|
-
const _BN = "
|
|
62
|
+
const _BN = "BucketNamespace";
|
|
63
|
+
const _BNu = "BucketName";
|
|
63
64
|
const _BP = "BytesProcessed";
|
|
64
65
|
const _BPA = "BlockPublicAcls";
|
|
65
66
|
const _BPP = "BlockPublicPolicy";
|
|
@@ -906,6 +907,7 @@ const _xaba = "x-amz-bucket-arn";
|
|
|
906
907
|
const _xabgr = "x-amz-bypass-governance-retention";
|
|
907
908
|
const _xabln = "x-amz-bucket-location-name";
|
|
908
909
|
const _xablt = "x-amz-bucket-location-type";
|
|
910
|
+
const _xabn = "x-amz-bucket-namespace";
|
|
909
911
|
const _xabole = "x-amz-bucket-object-lock-enabled";
|
|
910
912
|
const _xabolt = "x-amz-bucket-object-lock-token";
|
|
911
913
|
const _xabr = "x-amz-bucket-region";
|
|
@@ -1304,8 +1306,8 @@ exports.CreateBucketOutput$ = [3, n0, _CBO,
|
|
|
1304
1306
|
];
|
|
1305
1307
|
exports.CreateBucketRequest$ = [3, n0, _CBR,
|
|
1306
1308
|
0,
|
|
1307
|
-
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO],
|
|
1308
|
-
[[0, 1], [0, { [_hH]: _xaa }], [() => exports.CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }]], 1
|
|
1309
|
+
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO, _BN],
|
|
1310
|
+
[[0, 1], [0, { [_hH]: _xaa }], [() => exports.CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }], [0, { [_hH]: _xabn }]], 1
|
|
1309
1311
|
];
|
|
1310
1312
|
exports.CreateMultipartUploadOutput$ = [3, n0, _CMUOr,
|
|
1311
1313
|
{ [_xN]: _IMUR },
|
|
@@ -2584,7 +2586,7 @@ exports.S3KeyFilter$ = [3, n0, _SKF,
|
|
|
2584
2586
|
];
|
|
2585
2587
|
exports.S3Location$ = [3, n0, _SL,
|
|
2586
2588
|
0,
|
|
2587
|
-
[
|
|
2589
|
+
[_BNu, _P, _En, _CACL, _ACL, _Tag, _UM, _SC],
|
|
2588
2590
|
[0, 0, [() => exports.Encryption$, 0], 0, [() => Grants, 0], [() => exports.Tagging$, 0], [() => UserMetadata, 0], 0], 2
|
|
2589
2591
|
];
|
|
2590
2592
|
exports.S3TablesDestination$ = [3, n0, _STD,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -90,6 +90,10 @@ export const BucketCannedACL = {
|
|
|
90
90
|
public_read: "public-read",
|
|
91
91
|
public_read_write: "public-read-write",
|
|
92
92
|
};
|
|
93
|
+
export const BucketNamespace = {
|
|
94
|
+
ACCOUNT_REGIONAL: "account-regional",
|
|
95
|
+
GLOBAL: "global",
|
|
96
|
+
};
|
|
93
97
|
export const DataRedundancy = {
|
|
94
98
|
SingleAvailabilityZone: "SingleAvailabilityZone",
|
|
95
99
|
SingleLocalZone: "SingleLocalZone",
|
|
@@ -47,7 +47,8 @@ const _BLC = "BucketLifecycleConfiguration";
|
|
|
47
47
|
const _BLN = "BucketLocationName";
|
|
48
48
|
const _BLS = "BucketLoggingStatus";
|
|
49
49
|
const _BLT = "BucketLocationType";
|
|
50
|
-
const _BN = "
|
|
50
|
+
const _BN = "BucketNamespace";
|
|
51
|
+
const _BNu = "BucketName";
|
|
51
52
|
const _BP = "BytesProcessed";
|
|
52
53
|
const _BPA = "BlockPublicAcls";
|
|
53
54
|
const _BPP = "BlockPublicPolicy";
|
|
@@ -894,6 +895,7 @@ const _xaba = "x-amz-bucket-arn";
|
|
|
894
895
|
const _xabgr = "x-amz-bypass-governance-retention";
|
|
895
896
|
const _xabln = "x-amz-bucket-location-name";
|
|
896
897
|
const _xablt = "x-amz-bucket-location-type";
|
|
898
|
+
const _xabn = "x-amz-bucket-namespace";
|
|
897
899
|
const _xabole = "x-amz-bucket-object-lock-enabled";
|
|
898
900
|
const _xabolt = "x-amz-bucket-object-lock-token";
|
|
899
901
|
const _xabr = "x-amz-bucket-region";
|
|
@@ -1292,8 +1294,8 @@ export var CreateBucketOutput$ = [3, n0, _CBO,
|
|
|
1292
1294
|
];
|
|
1293
1295
|
export var CreateBucketRequest$ = [3, n0, _CBR,
|
|
1294
1296
|
0,
|
|
1295
|
-
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO],
|
|
1296
|
-
[[0, 1], [0, { [_hH]: _xaa }], [() => CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }]], 1
|
|
1297
|
+
[_B, _ACL_, _CBC, _GFC, _GR, _GRACP, _GW, _GWACP, _OLEFB, _OO, _BN],
|
|
1298
|
+
[[0, 1], [0, { [_hH]: _xaa }], [() => CreateBucketConfiguration$, { [_hP]: 1, [_xN]: _CBC }], [0, { [_hH]: _xagfc }], [0, { [_hH]: _xagr }], [0, { [_hH]: _xagra }], [0, { [_hH]: _xagw }], [0, { [_hH]: _xagwa }], [2, { [_hH]: _xabole }], [0, { [_hH]: _xaoo }], [0, { [_hH]: _xabn }]], 1
|
|
1297
1299
|
];
|
|
1298
1300
|
export var CreateMultipartUploadOutput$ = [3, n0, _CMUOr,
|
|
1299
1301
|
{ [_xN]: _IMUR },
|
|
@@ -2572,7 +2574,7 @@ export var S3KeyFilter$ = [3, n0, _SKF,
|
|
|
2572
2574
|
];
|
|
2573
2575
|
export var S3Location$ = [3, n0, _SL,
|
|
2574
2576
|
0,
|
|
2575
|
-
[
|
|
2577
|
+
[_BNu, _P, _En, _CACL, _ACL, _Tag, _UM, _SC],
|
|
2576
2578
|
[0, 0, [() => Encryption$, 0], 0, [() => Grants, 0], [() => Tagging$, 0], [() => UserMetadata, 0], 0], 2
|
|
2577
2579
|
];
|
|
2578
2580
|
export var S3TablesDestination$ = [3, n0, _STD,
|
|
@@ -122,10 +122,11 @@ declare const CopyObjectCommand_base: {
|
|
|
122
122
|
* the <b>
|
|
123
123
|
* <code>s3express:CreateSession</code>
|
|
124
124
|
* </b> permission in
|
|
125
|
-
* the <code>Action</code> element of a policy to read the object.
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
125
|
+
* the <code>Action</code> element of a policy to read the object. If no session mode is specified,
|
|
126
|
+
* the session will be created with the maximum allowable privilege, attempting <code>ReadWrite</code>
|
|
127
|
+
* first, then <code>ReadOnly</code> if <code>ReadWrite</code> is not permitted. If you want to explicitly
|
|
128
|
+
* restrict the access to be read-only, you can set the <code>s3express:SessionMode</code> condition key to
|
|
129
|
+
* <code>ReadOnly</code> on the copy source bucket.</p>
|
|
129
130
|
* </li>
|
|
130
131
|
* <li>
|
|
131
132
|
* <p>If the copy destination is a directory bucket, you must have the <b>
|
|
@@ -38,6 +38,14 @@ declare const CreateBucketCommand_base: {
|
|
|
38
38
|
* <p>There are two types of buckets: general purpose buckets and directory buckets. For more information about
|
|
39
39
|
* these bucket types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html">Creating, configuring, and working with Amazon S3
|
|
40
40
|
* buckets</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
41
|
+
* <p>General purpose buckets exist in a global namespace, which means that each bucket name must be unique
|
|
42
|
+
* across all Amazon Web Services accounts in all the Amazon Web Services Regions within a partition. A partition is a grouping of
|
|
43
|
+
* Regions. Amazon Web Services currently has four partitions: <code>aws</code> (Standard Regions), <code>aws-cn</code>
|
|
44
|
+
* (China Regions), <code>aws-us-gov</code> (Amazon Web Services GovCloud (US)), and <code>aws-eusc</code>
|
|
45
|
+
* (European Sovereign Cloud). When you create a general purpose bucket, you can choose to create a bucket in
|
|
46
|
+
* the shared global namespace or you can choose to create a bucket in your account regional namespace.
|
|
47
|
+
* Your account regional namespace is a subdivision of the global namespace that only your account can
|
|
48
|
+
* create buckets in. For more information on account regional namespaces, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html">Namespaces for general purpose buckets</a>.</p>
|
|
41
49
|
* <note>
|
|
42
50
|
* <ul>
|
|
43
51
|
* <li>
|
|
@@ -202,6 +210,7 @@ declare const CreateBucketCommand_base: {
|
|
|
202
210
|
* GrantWriteACP: "STRING_VALUE",
|
|
203
211
|
* ObjectLockEnabledForBucket: true || false,
|
|
204
212
|
* ObjectOwnership: "BucketOwnerPreferred" || "ObjectWriter" || "BucketOwnerEnforced",
|
|
213
|
+
* BucketNamespace: "account-regional" || "global",
|
|
205
214
|
* };
|
|
206
215
|
* const command = new CreateBucketCommand(input);
|
|
207
216
|
* const response = await client.send(command);
|
|
@@ -31,7 +31,6 @@ declare const DeleteBucketTaggingCommand_base: {
|
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
33
|
* <p>Deletes tags from the general purpose bucket if attribute based access control (ABAC) is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UntagResource.html">UntagResource</a> instead.</p>
|
|
34
|
-
* <p>if ABAC is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_UntagResource.html">UntagResource</a> instead.</p>
|
|
35
34
|
* <p>To use this operation, you must have permission to perform the <code>s3:PutBucketTagging</code>
|
|
36
35
|
* action. By default, the bucket owner has this permission and can grant this permission to others. </p>
|
|
37
36
|
* <p>The following operations are related to <code>DeleteBucketTagging</code>:</p>
|
|
@@ -31,7 +31,6 @@ declare const GetBucketTaggingCommand_base: {
|
|
|
31
31
|
* <p>This operation is not supported for directory buckets.</p>
|
|
32
32
|
* </note>
|
|
33
33
|
* <p>Returns the tag set associated with the general purpose bucket.</p>
|
|
34
|
-
* <p>if ABAC is not enabled for the bucket. When you <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging-enable-abac.html">enable ABAC for a general purpose bucket</a>, you can no longer use this operation for that bucket and must use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListTagsForResource.html">ListTagsForResource</a> instead.</p>
|
|
35
34
|
* <p>To use this operation, you must have permission to perform the <code>s3:GetBucketTagging</code>
|
|
36
35
|
* action. By default, the bucket owner has this permission and can grant this permission to others.</p>
|
|
37
36
|
* <p>
|
|
@@ -74,10 +74,11 @@ declare const HeadBucketCommand_base: {
|
|
|
74
74
|
* <b>
|
|
75
75
|
* <code>s3express:CreateSession</code>
|
|
76
76
|
* </b> permission in the
|
|
77
|
-
* <code>Action</code> element of a policy.
|
|
78
|
-
* <code>ReadWrite</code>
|
|
79
|
-
* <code>
|
|
80
|
-
*
|
|
77
|
+
* <code>Action</code> element of a policy. If no session mode is specified, the session will be
|
|
78
|
+
* created with the maximum allowable privilege, attempting <code>ReadWrite</code> first,
|
|
79
|
+
* then <code>ReadOnly</code> if <code>ReadWrite</code> is not permitted. If you want to explicitly
|
|
80
|
+
* restrict the access to be read-only, you can set the <code>s3express:SessionMode</code> condition key to
|
|
81
|
+
* <code>ReadOnly</code> on the bucket.</p>
|
|
81
82
|
* <p>For more information about example bucket policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example
|
|
82
83
|
* bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services
|
|
83
84
|
* Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
|
|
@@ -116,10 +116,11 @@ declare const UploadPartCopyCommand_base: {
|
|
|
116
116
|
* the <b>
|
|
117
117
|
* <code>s3express:CreateSession</code>
|
|
118
118
|
* </b> permission in
|
|
119
|
-
* the <code>Action</code> element of a policy to read the object.
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
119
|
+
* the <code>Action</code> element of a policy to read the object. If no session mode is specified,
|
|
120
|
+
* the session will be created with the maximum allowable privilege, attempting
|
|
121
|
+
* <code>ReadWrite</code> first, then <code>ReadOnly</code> if <code>ReadWrite</code> is not permitted.
|
|
122
|
+
* If you want to explicitly restrict the access to be read-only, you can set the <code>s3express:SessionMode</code>
|
|
123
|
+
* condition key to <code>ReadOnly</code> on the copy source bucket.</p>
|
|
123
124
|
* </li>
|
|
124
125
|
* <li>
|
|
125
126
|
* <p>If the copy destination is a directory bucket, you must have the <b>
|
|
@@ -226,6 +226,18 @@ export declare const BucketCannedACL: {
|
|
|
226
226
|
* @public
|
|
227
227
|
*/
|
|
228
228
|
export type BucketCannedACL = (typeof BucketCannedACL)[keyof typeof BucketCannedACL];
|
|
229
|
+
/**
|
|
230
|
+
* @public
|
|
231
|
+
* @enum
|
|
232
|
+
*/
|
|
233
|
+
export declare const BucketNamespace: {
|
|
234
|
+
readonly ACCOUNT_REGIONAL: "account-regional";
|
|
235
|
+
readonly GLOBAL: "global";
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export type BucketNamespace = (typeof BucketNamespace)[keyof typeof BucketNamespace];
|
|
229
241
|
/**
|
|
230
242
|
* @public
|
|
231
243
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import { AnalyticsS3ExportFileFormat, ArchiveStatus, BucketAbacStatus, BucketAccelerateStatus, BucketCannedACL, BucketLocationConstraint, BucketLogsPermission, BucketType, BucketVersioningStatus, ChecksumAlgorithm, ChecksumMode, ChecksumType, DataRedundancy, DeleteMarkerReplicationStatus, EncodingType, EncryptionType, Event, ExistingObjectReplicationStatus, ExpirationState, ExpirationStatus, FileHeaderInfo, FilterRuleName, IntelligentTieringAccessTier, IntelligentTieringStatus, InventoryConfigurationState, InventoryFormat, InventoryFrequency, InventoryIncludedObjectVersions, InventoryOptionalField, JSONType, LocationType, MetadataDirective, MetricsStatus, MFADelete, MFADeleteStatus, ObjectAttributes, ObjectCannedACL, ObjectLockEnabled, ObjectLockLegalHoldStatus, ObjectLockMode, ObjectLockRetentionMode, ObjectOwnership, ObjectStorageClass, ObjectVersionStorageClass, OptionalObjectAttributes, OwnerOverride, PartitionDateSource, Payer, Permission, Protocol, ReplicaModificationsStatus, ReplicationRuleStatus, ReplicationStatus, ReplicationTimeStatus, RequestCharged, RequestPayer, S3TablesBucketType, ServerSideEncryption, SessionMode, SseKmsEncryptedObjectsStatus, StorageClass, StorageClassAnalysisSchemaVersion, TableSseAlgorithm, TaggingDirective, Tier, TransitionDefaultMinimumObjectSize, TransitionStorageClass, Type } from "./enums";
|
|
2
|
+
import { AnalyticsS3ExportFileFormat, ArchiveStatus, BucketAbacStatus, BucketAccelerateStatus, BucketCannedACL, BucketLocationConstraint, BucketLogsPermission, BucketNamespace, BucketType, BucketVersioningStatus, ChecksumAlgorithm, ChecksumMode, ChecksumType, DataRedundancy, DeleteMarkerReplicationStatus, EncodingType, EncryptionType, Event, ExistingObjectReplicationStatus, ExpirationState, ExpirationStatus, FileHeaderInfo, FilterRuleName, IntelligentTieringAccessTier, IntelligentTieringStatus, InventoryConfigurationState, InventoryFormat, InventoryFrequency, InventoryIncludedObjectVersions, InventoryOptionalField, JSONType, LocationType, MetadataDirective, MetricsStatus, MFADelete, MFADeleteStatus, ObjectAttributes, ObjectCannedACL, ObjectLockEnabled, ObjectLockLegalHoldStatus, ObjectLockMode, ObjectLockRetentionMode, ObjectOwnership, ObjectStorageClass, ObjectVersionStorageClass, OptionalObjectAttributes, OwnerOverride, PartitionDateSource, Payer, Permission, Protocol, ReplicaModificationsStatus, ReplicationRuleStatus, ReplicationStatus, ReplicationTimeStatus, RequestCharged, RequestPayer, S3TablesBucketType, ServerSideEncryption, SessionMode, SseKmsEncryptedObjectsStatus, StorageClass, StorageClassAnalysisSchemaVersion, TableSseAlgorithm, TaggingDirective, Tier, TransitionDefaultMinimumObjectSize, TransitionStorageClass, Type } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>The ABAC status of the general purpose bucket. When ABAC is enabled for the general purpose bucket, you can use tags to manage access to the general purpose buckets as well as for cost tracking purposes. When ABAC is disabled for the general purpose buckets, you can only use tags for cost tracking purposes. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/buckets-tagging.html">Using tags with S3 general purpose buckets</a>. </p>
|
|
5
5
|
* @public
|
|
@@ -1718,6 +1718,25 @@ export interface CreateBucketRequest {
|
|
|
1718
1718
|
* @public
|
|
1719
1719
|
*/
|
|
1720
1720
|
ObjectOwnership?: ObjectOwnership | undefined;
|
|
1721
|
+
/**
|
|
1722
|
+
* <p>Specifies the namespace where you want to create your general purpose bucket. When you create a
|
|
1723
|
+
* general purpose bucket, you can choose to create a bucket in the shared global namespace or you can choose to
|
|
1724
|
+
* create a bucket in your account regional namespace. Your account regional namespace is a subdivision of
|
|
1725
|
+
* the global namespace that only your account can create buckets in. For more information on bucket
|
|
1726
|
+
* namespaces, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/gpbucketnamespaces.html">Namespaces for general purpose buckets</a>.</p>
|
|
1727
|
+
* <p>General purpose buckets in your account regional namespace must follow a specific naming convention. These
|
|
1728
|
+
* buckets consist of a bucket name prefix that you create, and a suffix that contains your 12-digit Amazon Web Services
|
|
1729
|
+
* Account ID, the Amazon Web Services Region code, and ends with <code>-an</code>. Bucket names must follow the format
|
|
1730
|
+
* <code>bucket-name-prefix-accountId-region-an</code> (for example,
|
|
1731
|
+
* <code>amzn-s3-demo-bucket-111122223333-us-west-2-an</code>). For information about bucket naming
|
|
1732
|
+
* restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html#account-regional-naming-rules">Account regional namespace naming rules</a>
|
|
1733
|
+
* in the <i>Amazon S3 User Guide</i>.</p>
|
|
1734
|
+
* <note>
|
|
1735
|
+
* <p>This functionality is not supported for directory buckets.</p>
|
|
1736
|
+
* </note>
|
|
1737
|
+
* @public
|
|
1738
|
+
*/
|
|
1739
|
+
BucketNamespace?: BucketNamespace | undefined;
|
|
1721
1740
|
}
|
|
1722
1741
|
/**
|
|
1723
1742
|
* <p>
|
|
@@ -2742,7 +2761,10 @@ export interface CreateSessionOutput {
|
|
|
2742
2761
|
export interface CreateSessionRequest {
|
|
2743
2762
|
/**
|
|
2744
2763
|
* <p>Specifies the mode of the session that will be created, either <code>ReadWrite</code> or
|
|
2745
|
-
* <code>ReadOnly</code>.
|
|
2764
|
+
* <code>ReadOnly</code>. If no session mode is specified, the default behavior attempts to create
|
|
2765
|
+
* a session with the maximum allowable privilege. It will first attempt to create a
|
|
2766
|
+
* <code>ReadWrite</code> session, and if that is not allowed by permissions, it will attempt to create a
|
|
2767
|
+
* <code>ReadOnly</code> session. If neither session type is allowed, the request will return an Access Denied error. A
|
|
2746
2768
|
* <code>ReadWrite</code> session is capable of executing all the Zonal endpoint API operations on a directory bucket. A
|
|
2747
2769
|
* <code>ReadOnly</code> session is constrained to execute the following Zonal endpoint API operations:
|
|
2748
2770
|
* <code>GetObject</code>, <code>HeadObject</code>, <code>ListObjectsV2</code>,
|
|
@@ -118,6 +118,12 @@ export declare const BucketCannedACL: {
|
|
|
118
118
|
};
|
|
119
119
|
export type BucketCannedACL =
|
|
120
120
|
(typeof BucketCannedACL)[keyof typeof BucketCannedACL];
|
|
121
|
+
export declare const BucketNamespace: {
|
|
122
|
+
readonly ACCOUNT_REGIONAL: "account-regional";
|
|
123
|
+
readonly GLOBAL: "global";
|
|
124
|
+
};
|
|
125
|
+
export type BucketNamespace =
|
|
126
|
+
(typeof BucketNamespace)[keyof typeof BucketNamespace];
|
|
121
127
|
export declare const DataRedundancy: {
|
|
122
128
|
readonly SingleAvailabilityZone: "SingleAvailabilityZone";
|
|
123
129
|
readonly SingleLocalZone: "SingleLocalZone";
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
BucketCannedACL,
|
|
8
8
|
BucketLocationConstraint,
|
|
9
9
|
BucketLogsPermission,
|
|
10
|
+
BucketNamespace,
|
|
10
11
|
BucketType,
|
|
11
12
|
BucketVersioningStatus,
|
|
12
13
|
ChecksumAlgorithm,
|
|
@@ -262,6 +263,7 @@ export interface CreateBucketRequest {
|
|
|
262
263
|
GrantWriteACP?: string | undefined;
|
|
263
264
|
ObjectLockEnabledForBucket?: boolean | undefined;
|
|
264
265
|
ObjectOwnership?: ObjectOwnership | undefined;
|
|
266
|
+
BucketNamespace?: BucketNamespace | undefined;
|
|
265
267
|
}
|
|
266
268
|
export interface MetadataTableEncryptionConfiguration {
|
|
267
269
|
SseAlgorithm: TableSseAlgorithm | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1008.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
32
32
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
33
33
|
"@aws-sdk/core": "^3.973.19",
|
|
34
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
34
|
+
"@aws-sdk/credential-provider-node": "^3.972.20",
|
|
35
35
|
"@aws-sdk/middleware-bucket-endpoint": "^3.972.7",
|
|
36
36
|
"@aws-sdk/middleware-expect-continue": "^3.972.7",
|
|
37
37
|
"@aws-sdk/middleware-flexible-checksums": "^3.973.5",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@aws-sdk/types": "^3.973.5",
|
|
48
48
|
"@aws-sdk/util-endpoints": "^3.996.4",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "^3.972.7",
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "^3.973.6",
|
|
51
51
|
"@smithy/config-resolver": "^4.4.10",
|
|
52
52
|
"@smithy/core": "^3.23.9",
|
|
53
53
|
"@smithy/eventstream-serde-browser": "^4.2.11",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"tslib": "^2.6.2"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
87
|
+
"@aws-sdk/signature-v4-crt": "3.1008.0",
|
|
88
88
|
"@smithy/snapshot-testing": "^2.0.0",
|
|
89
89
|
"@tsconfig/node20": "20.1.8",
|
|
90
90
|
"@types/node": "^20.14.8",
|