@aws-sdk/client-s3 3.840.0 → 3.842.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 CHANGED
@@ -3407,7 +3407,8 @@ var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
3407
3407
  }
3408
3408
  const contents = (0, import_smithy_client.map)({
3409
3409
  $metadata: deserializeMetadata(output),
3410
- [_L]: [, output.headers[_lo]]
3410
+ [_L]: [, output.headers[_lo]],
3411
+ [_BA]: [, output.headers[_xaba]]
3411
3412
  });
3412
3413
  await (0, import_smithy_client.collectBody)(output.body, context);
3413
3414
  return contents;
@@ -4148,6 +4149,7 @@ var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
4148
4149
  }
4149
4150
  const contents = (0, import_smithy_client.map)({
4150
4151
  $metadata: deserializeMetadata(output),
4152
+ [_BA]: [, output.headers[_xaba]],
4151
4153
  [_BLT]: [, output.headers[_xablt]],
4152
4154
  [_BLN]: [, output.headers[_xabln]],
4153
4155
  [_BR]: [, output.headers[_xabr]],
@@ -5416,6 +5418,7 @@ var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => {
5416
5418
  if (input[_B] != null) {
5417
5419
  bn.c(se_BucketInfo(input[_B], context).n(_B));
5418
5420
  }
5421
+ bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag], context));
5419
5422
  return bn;
5420
5423
  }, "se_CreateBucketConfiguration");
5421
5424
  var se_CSVInput = /* @__PURE__ */ __name((input, context) => {
@@ -6625,6 +6628,9 @@ var de_Bucket = /* @__PURE__ */ __name((output, context) => {
6625
6628
  if (output[_BR] != null) {
6626
6629
  contents[_BR] = (0, import_smithy_client.expectString)(output[_BR]);
6627
6630
  }
6631
+ if (output[_BA] != null) {
6632
+ contents[_BA] = (0, import_smithy_client.expectString)(output[_BA]);
6633
+ }
6628
6634
  return contents;
6629
6635
  }, "de_Bucket");
6630
6636
  var de_Buckets = /* @__PURE__ */ __name((output, context) => {
@@ -8145,6 +8151,7 @@ var _ASSEBD = "ApplyServerSideEncryptionByDefault";
8145
8151
  var _AT = "AccessTier";
8146
8152
  var _Ac = "Account";
8147
8153
  var _B = "Bucket";
8154
+ var _BA = "BucketArn";
8148
8155
  var _BAI = "BucketAccountId";
8149
8156
  var _BAS = "BucketAccelerateStatus";
8150
8157
  var _BGR = "BypassGovernanceRetention";
@@ -8687,6 +8694,7 @@ var _xaad = "x-amz-abort-date";
8687
8694
  var _xaapa = "x-amz-access-point-alias";
8688
8695
  var _xaari = "x-amz-abort-rule-id";
8689
8696
  var _xaas = "x-amz-archive-status";
8697
+ var _xaba = "x-amz-bucket-arn";
8690
8698
  var _xabgr = "x-amz-bypass-governance-retention";
8691
8699
  var _xabln = "x-amz-bucket-location-name";
8692
8700
  var _xablt = "x-amz-bucket-location-type";
@@ -2199,6 +2199,7 @@ export const de_CreateBucketCommand = async (output, context) => {
2199
2199
  const contents = map({
2200
2200
  $metadata: deserializeMetadata(output),
2201
2201
  [_L]: [, output.headers[_lo]],
2202
+ [_BA]: [, output.headers[_xaba]],
2202
2203
  });
2203
2204
  await collectBody(output.body, context);
2204
2205
  return contents;
@@ -2953,6 +2954,7 @@ export const de_HeadBucketCommand = async (output, context) => {
2953
2954
  }
2954
2955
  const contents = map({
2955
2956
  $metadata: deserializeMetadata(output),
2957
+ [_BA]: [, output.headers[_xaba]],
2956
2958
  [_BLT]: [, output.headers[_xablt]],
2957
2959
  [_BLN]: [, output.headers[_xabln]],
2958
2960
  [_BR]: [, output.headers[_xabr]],
@@ -4249,6 +4251,7 @@ const se_CreateBucketConfiguration = (input, context) => {
4249
4251
  if (input[_B] != null) {
4250
4252
  bn.c(se_BucketInfo(input[_B], context).n(_B));
4251
4253
  }
4254
+ bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag], context));
4252
4255
  return bn;
4253
4256
  };
4254
4257
  const se_CSVInput = (input, context) => {
@@ -5498,6 +5501,9 @@ const de_Bucket = (output, context) => {
5498
5501
  if (output[_BR] != null) {
5499
5502
  contents[_BR] = __expectString(output[_BR]);
5500
5503
  }
5504
+ if (output[_BA] != null) {
5505
+ contents[_BA] = __expectString(output[_BA]);
5506
+ }
5501
5507
  return contents;
5502
5508
  };
5503
5509
  const de_Buckets = (output, context) => {
@@ -7108,6 +7114,7 @@ const _ASSEBD = "ApplyServerSideEncryptionByDefault";
7108
7114
  const _AT = "AccessTier";
7109
7115
  const _Ac = "Account";
7110
7116
  const _B = "Bucket";
7117
+ const _BA = "BucketArn";
7111
7118
  const _BAI = "BucketAccountId";
7112
7119
  const _BAS = "BucketAccelerateStatus";
7113
7120
  const _BGR = "BypassGovernanceRetention";
@@ -7650,6 +7657,7 @@ const _xaad = "x-amz-abort-date";
7650
7657
  const _xaapa = "x-amz-access-point-alias";
7651
7658
  const _xaari = "x-amz-abort-rule-id";
7652
7659
  const _xaas = "x-amz-archive-status";
7660
+ const _xaba = "x-amz-bucket-arn";
7653
7661
  const _xabgr = "x-amz-bypass-governance-retention";
7654
7662
  const _xabln = "x-amz-bucket-location-name";
7655
7663
  const _xablt = "x-amz-bucket-location-type";
@@ -210,6 +210,12 @@ declare const CreateBucketCommand_base: {
210
210
  * DataRedundancy: "SingleAvailabilityZone" || "SingleLocalZone",
211
211
  * Type: "Directory",
212
212
  * },
213
+ * Tags: [ // TagSet
214
+ * { // Tag
215
+ * Key: "STRING_VALUE", // required
216
+ * Value: "STRING_VALUE", // required
217
+ * },
218
+ * ],
213
219
  * },
214
220
  * GrantFullControl: "STRING_VALUE",
215
221
  * GrantRead: "STRING_VALUE",
@@ -223,6 +229,7 @@ declare const CreateBucketCommand_base: {
223
229
  * const response = await client.send(command);
224
230
  * // { // CreateBucketOutput
225
231
  * // Location: "STRING_VALUE",
232
+ * // BucketArn: "STRING_VALUE",
226
233
  * // };
227
234
  *
228
235
  * ```
@@ -109,6 +109,7 @@ declare const HeadBucketCommand_base: {
109
109
  * const command = new HeadBucketCommand(input);
110
110
  * const response = await client.send(command);
111
111
  * // { // HeadBucketOutput
112
+ * // BucketArn: "STRING_VALUE",
112
113
  * // BucketLocationType: "AvailabilityZone" || "LocalZone",
113
114
  * // BucketLocationName: "STRING_VALUE",
114
115
  * // BucketRegion: "STRING_VALUE",
@@ -68,6 +68,7 @@ declare const ListBucketsCommand_base: {
68
68
  * // Name: "STRING_VALUE",
69
69
  * // CreationDate: new Date("TIMESTAMP"),
70
70
  * // BucketRegion: "STRING_VALUE",
71
+ * // BucketArn: "STRING_VALUE",
71
72
  * // },
72
73
  * // ],
73
74
  * // Owner: { // Owner
@@ -74,6 +74,7 @@ declare const ListDirectoryBucketsCommand_base: {
74
74
  * // Name: "STRING_VALUE",
75
75
  * // CreationDate: new Date("TIMESTAMP"),
76
76
  * // BucketRegion: "STRING_VALUE",
77
+ * // BucketArn: "STRING_VALUE",
77
78
  * // },
78
79
  * // ],
79
80
  * // ContinuationToken: "STRING_VALUE",
@@ -1794,6 +1794,14 @@ export interface CreateBucketOutput {
1794
1794
  * @public
1795
1795
  */
1796
1796
  Location?: string | undefined;
1797
+ /**
1798
+ * <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p>
1799
+ * <note>
1800
+ * <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
1801
+ * </note>
1802
+ * @public
1803
+ */
1804
+ BucketArn?: string | undefined;
1797
1805
  }
1798
1806
  /**
1799
1807
  * @public
@@ -1929,6 +1937,22 @@ export declare const BucketLocationConstraint: {
1929
1937
  * @public
1930
1938
  */
1931
1939
  export type BucketLocationConstraint = (typeof BucketLocationConstraint)[keyof typeof BucketLocationConstraint];
1940
+ /**
1941
+ * <p>A container of a key value name pair.</p>
1942
+ * @public
1943
+ */
1944
+ export interface Tag {
1945
+ /**
1946
+ * <p>Name of the object key.</p>
1947
+ * @public
1948
+ */
1949
+ Key: string | undefined;
1950
+ /**
1951
+ * <p>Value of the tag.</p>
1952
+ * @public
1953
+ */
1954
+ Value: string | undefined;
1955
+ }
1932
1956
  /**
1933
1957
  * <p>The configuration information for the bucket.</p>
1934
1958
  * @public
@@ -1970,6 +1994,14 @@ export interface CreateBucketConfiguration {
1970
1994
  * @public
1971
1995
  */
1972
1996
  Bucket?: BucketInfo | undefined;
1997
+ /**
1998
+ * <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access. </p>
1999
+ * <note>
2000
+ * <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
2001
+ * </note>
2002
+ * @public
2003
+ */
2004
+ Tags?: Tag[] | undefined;
1973
2005
  }
1974
2006
  /**
1975
2007
  * @public
@@ -5812,22 +5844,6 @@ export interface GetBucketAclRequest {
5812
5844
  */
5813
5845
  ExpectedBucketOwner?: string | undefined;
5814
5846
  }
5815
- /**
5816
- * <p>A container of a key value name pair.</p>
5817
- * @public
5818
- */
5819
- export interface Tag {
5820
- /**
5821
- * <p>Name of the object key.</p>
5822
- * @public
5823
- */
5824
- Key: string | undefined;
5825
- /**
5826
- * <p>Value of the tag.</p>
5827
- * @public
5828
- */
5829
- Value: string | undefined;
5830
- }
5831
5847
  /**
5832
5848
  * <p>A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.
5833
5849
  * The operator must have at least two predicates in any combination, and an object must match
@@ -8356,6 +8372,8 @@ export interface Destination {
8356
8372
  * object replica. </p>
8357
8373
  * <p>For valid values, see the <code>StorageClass</code> element of the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html">PUT Bucket
8358
8374
  * replication</a> action in the <i>Amazon S3 API Reference</i>.</p>
8375
+ * <p>
8376
+ * <code>FSX_OPENZFS</code> is not an accepted value when replicating objects.</p>
8359
8377
  * @public
8360
8378
  */
8361
8379
  StorageClass?: StorageClass | undefined;
@@ -10595,6 +10613,14 @@ export interface GetPublicAccessBlockRequest {
10595
10613
  * @public
10596
10614
  */
10597
10615
  export interface HeadBucketOutput {
10616
+ /**
10617
+ * <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p>
10618
+ * <note>
10619
+ * <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
10620
+ * </note>
10621
+ * @public
10622
+ */
10623
+ BucketArn?: string | undefined;
10598
10624
  /**
10599
10625
  * <p>The type of location where the bucket is created.</p>
10600
10626
  * <note>
@@ -11516,6 +11542,14 @@ export interface Bucket {
11516
11542
  * @public
11517
11543
  */
11518
11544
  BucketRegion?: string | undefined;
11545
+ /**
11546
+ * <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p>
11547
+ * <note>
11548
+ * <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
11549
+ * </note>
11550
+ * @public
11551
+ */
11552
+ BucketArn?: string | undefined;
11519
11553
  }
11520
11554
  /**
11521
11555
  * @public
@@ -11889,6 +11923,8 @@ export interface ListMultipartUploadsRequest {
11889
11923
  * substring starts at the beginning of the key. The keys that are grouped under
11890
11924
  * <code>CommonPrefixes</code> result element are not returned elsewhere in the
11891
11925
  * response.</p>
11926
+ * <p>
11927
+ * <code>CommonPrefixes</code> is filtered out from results if it is not lexicographically greater than the key-marker.</p>
11892
11928
  * <note>
11893
11929
  * <p>
11894
11930
  * <b>Directory buckets</b> - For directory buckets, <code>/</code> is the only supported delimiter.</p>
@@ -12301,6 +12337,8 @@ export interface ListObjectsRequest {
12301
12337
  Bucket: string | undefined;
12302
12338
  /**
12303
12339
  * <p>A delimiter is a character that you use to group keys.</p>
12340
+ * <p>
12341
+ * <code>CommonPrefixes</code> is filtered out from results if it is not lexicographically greater than the key-marker.</p>
12304
12342
  * @public
12305
12343
  */
12306
12344
  Delimiter?: string | undefined;
@@ -12526,6 +12564,8 @@ export interface ListObjectsV2Request {
12526
12564
  Bucket: string | undefined;
12527
12565
  /**
12528
12566
  * <p>A delimiter is a character that you use to group keys.</p>
12567
+ * <p>
12568
+ * <code>CommonPrefixes</code> is filtered out from results if it is not lexicographically greater than the <code>StartAfter</code> value.</p>
12529
12569
  * <note>
12530
12570
  * <ul>
12531
12571
  * <li>
@@ -12859,6 +12899,8 @@ export interface ListObjectVersionsRequest {
12859
12899
  * grouped under a single result element in <code>CommonPrefixes</code>. These groups are
12860
12900
  * counted as one result against the <code>max-keys</code> limitation. These keys are not
12861
12901
  * returned elsewhere in the response.</p>
12902
+ * <p>
12903
+ * <code>CommonPrefixes</code> is filtered out from results if it is not lexicographically greater than the key-marker.</p>
12862
12904
  * @public
12863
12905
  */
12864
12906
  Delimiter?: string | undefined;
@@ -289,6 +289,7 @@ export declare class BucketAlreadyOwnedByYou extends __BaseException {
289
289
  }
290
290
  export interface CreateBucketOutput {
291
291
  Location?: string | undefined;
292
+ BucketArn?: string | undefined;
292
293
  }
293
294
  export declare const BucketCannedACL: {
294
295
  readonly authenticated_read: "authenticated-read";
@@ -358,10 +359,15 @@ export declare const BucketLocationConstraint: {
358
359
  };
359
360
  export type BucketLocationConstraint =
360
361
  (typeof BucketLocationConstraint)[keyof typeof BucketLocationConstraint];
362
+ export interface Tag {
363
+ Key: string | undefined;
364
+ Value: string | undefined;
365
+ }
361
366
  export interface CreateBucketConfiguration {
362
367
  LocationConstraint?: BucketLocationConstraint | undefined;
363
368
  Location?: LocationInfo | undefined;
364
369
  Bucket?: BucketInfo | undefined;
370
+ Tags?: Tag[] | undefined;
365
371
  }
366
372
  export declare const ObjectOwnership: {
367
373
  readonly BucketOwnerEnforced: "BucketOwnerEnforced";
@@ -620,10 +626,6 @@ export interface GetBucketAclRequest {
620
626
  Bucket: string | undefined;
621
627
  ExpectedBucketOwner?: string | undefined;
622
628
  }
623
- export interface Tag {
624
- Key: string | undefined;
625
- Value: string | undefined;
626
- }
627
629
  export interface AnalyticsAndOperator {
628
630
  Prefix?: string | undefined;
629
631
  Tags?: Tag[] | undefined;
@@ -1623,6 +1625,7 @@ export interface GetPublicAccessBlockRequest {
1623
1625
  ExpectedBucketOwner?: string | undefined;
1624
1626
  }
1625
1627
  export interface HeadBucketOutput {
1628
+ BucketArn?: string | undefined;
1626
1629
  BucketLocationType?: LocationType | undefined;
1627
1630
  BucketLocationName?: string | undefined;
1628
1631
  BucketRegion?: string | undefined;
@@ -1756,6 +1759,7 @@ export interface Bucket {
1756
1759
  Name?: string | undefined;
1757
1760
  CreationDate?: Date | undefined;
1758
1761
  BucketRegion?: string | undefined;
1762
+ BucketArn?: string | undefined;
1759
1763
  }
1760
1764
  export interface ListBucketsOutput {
1761
1765
  Buckets?: Bucket[] | 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.840.0",
4
+ "version": "3.842.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",