@aws-sdk/client-s3 3.669.0 → 3.673.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.
@@ -682,10 +682,10 @@ export interface PutObjectRequest {
682
682
  * Content-MD5 mechanism as an end-to-end integrity check. For more information about REST
683
683
  * request authentication, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
684
684
  * <note>
685
- * <p>The <code>Content-MD5</code> header is required for any request to upload an
685
+ * <p>The <code>Content-MD5</code> or <code>x-amz-sdk-checksum-algorithm</code> header is required for any request to upload an
686
686
  * object with a retention period configured using Amazon S3 Object Lock. For more
687
- * information about Amazon S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html">Amazon S3 Object Lock
688
- * Overview</a> in the <i>Amazon S3 User Guide</i>. </p>
687
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object">Uploading objects to an Object Lock enabled bucket
688
+ * </a> in the <i>Amazon S3 User Guide</i>.</p>
689
689
  * </note>
690
690
  * <note>
691
691
  * <p>This functionality is not supported for directory buckets.</p>
@@ -738,8 +738,12 @@ export interface PutObjectRequest {
738
738
  * <code>ChecksumAlgorithm</code> parameter and uses the checksum algorithm that matches the provided value in <code>x-amz-checksum-<i>algorithm</i>
739
739
  * </code>.</p>
740
740
  * <note>
741
- * <p>For directory buckets, when you use Amazon Web Services SDKs, <code>CRC32</code> is the default checksum algorithm that's used for performance.</p>
741
+ * <p>The <code>Content-MD5</code> or <code>x-amz-sdk-checksum-algorithm</code> header is required for any request to upload an
742
+ * object with a retention period configured using Amazon S3 Object Lock. For more
743
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object">Uploading objects to an Object Lock enabled bucket
744
+ * </a> in the <i>Amazon S3 User Guide</i>.</p>
742
745
  * </note>
746
+ * <p>For directory buckets, when you use Amazon Web Services SDKs, <code>CRC32</code> is the default checksum algorithm that's used for performance.</p>
743
747
  * @public
744
748
  */
745
749
  ChecksumAlgorithm?: ChecksumAlgorithm;
@@ -983,10 +987,13 @@ export interface PutObjectRequest {
983
987
  * <code>x-amz-server-side-encryption:aws:kms:dsse</code>, but do not provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>, Amazon S3 uses the Amazon Web Services managed key
984
988
  * (<code>aws/s3</code>) to protect the data.</p>
985
989
  * <p>
986
- * <b>Directory buckets</b> - If you specify <code>x-amz-server-side-encryption</code> with <code>aws:kms</code>, you must specify the <code>
987
- * x-amz-server-side-encryption-aws-kms-key-id</code> header with the ID (Key ID or Key ARN) of the KMS
988
- * symmetric encryption customer managed key to use. Otherwise, you get an HTTP <code>400 Bad Request</code> error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket for the lifetime of the bucket.
989
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported.
990
+ * <b>Directory buckets</b> - If you specify <code>x-amz-server-side-encryption</code> with <code>aws:kms</code>, the <code>
991
+ * x-amz-server-side-encryption-aws-kms-key-id</code> header is implicitly assigned the ID of the KMS
992
+ * symmetric encryption customer managed key that's configured for your directory bucket's default encryption setting.
993
+ * If you want to specify the <code>
994
+ * x-amz-server-side-encryption-aws-kms-key-id</code> header explicitly, you can only specify it with the ID (Key ID or Key ARN) of the KMS
995
+ * customer managed key that's configured for your directory bucket's default encryption setting. Otherwise, you get an HTTP <code>400 Bad Request</code> error. Only use the key ID or key ARN. The key alias format of the KMS key isn't supported. Your SSE-KMS configuration can only support 1 <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a> per directory bucket for the lifetime of the bucket.
996
+ * The <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a> (<code>aws/s3</code>) isn't supported.
990
997
  * </p>
991
998
  * @public
992
999
  */
@@ -1966,13 +1973,7 @@ export interface OutputSerialization {
1966
1973
  JSON?: JSONOutput;
1967
1974
  }
1968
1975
  /**
1969
- * <important>
1970
- * <p>Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a>
1971
- * </p>
1972
- * </important>
1973
- * <p>Describes the parameters for Select job types.</p>
1974
- * <p>Learn <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">How to optimize querying your data in Amazon S3</a> using
1975
- * <a href="https://docs.aws.amazon.com/athena/latest/ug/what-is.html">Amazon Athena</a>, <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">S3 Object Lambda</a>, or client-side filtering.</p>
1976
+ * <p>Describes the parameters for Select job types.</p>
1976
1977
  * @public
1977
1978
  */
1978
1979
  export interface SelectParameters {
@@ -1987,11 +1988,7 @@ export interface SelectParameters {
1987
1988
  */
1988
1989
  ExpressionType: ExpressionType | undefined;
1989
1990
  /**
1990
- * <important>
1991
- * <p>Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a>
1992
- * </p>
1993
- * </important>
1994
- * <p>The expression that is used to query the object.</p>
1991
+ * <p>The expression that is used to query the object.</p>
1995
1992
  * @public
1996
1993
  */
1997
1994
  Expression: string | undefined;
@@ -2032,11 +2029,7 @@ export interface RestoreRequest {
2032
2029
  */
2033
2030
  GlacierJobParameters?: GlacierJobParameters;
2034
2031
  /**
2035
- * <important>
2036
- * <p>Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a>
2037
- * </p>
2038
- * </important>
2039
- * <p>Type of restore request.</p>
2032
+ * <p>Type of restore request.</p>
2040
2033
  * @public
2041
2034
  */
2042
2035
  Type?: RestoreRequestType;
@@ -2051,11 +2044,7 @@ export interface RestoreRequest {
2051
2044
  */
2052
2045
  Description?: string;
2053
2046
  /**
2054
- * <important>
2055
- * <p>Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a>
2056
- * </p>
2057
- * </important>
2058
- * <p>Describes the parameters for Select job types.</p>
2047
+ * <p>Describes the parameters for Select job types.</p>
2059
2048
  * @public
2060
2049
  */
2061
2050
  SelectParameters?: SelectParameters;
@@ -2362,11 +2351,7 @@ export interface ScanRange {
2362
2351
  End?: number;
2363
2352
  }
2364
2353
  /**
2365
- * <note>
2366
- * <p>Learn Amazon S3 Select is no longer available to new customers. Existing customers of Amazon S3 Select can continue to use the feature as usual. <a href="http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/">Learn more</a>
2367
- * </p>
2368
- * </note>
2369
- * <p>Request to filter the contents of an Amazon S3 object based on a simple Structured Query
2354
+ * <p>Request to filter the contents of an Amazon S3 object based on a simple Structured Query
2370
2355
  * Language (SQL) statement. In the request, along with the SQL expression, you must specify a
2371
2356
  * data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data
2372
2357
  * into records. It returns only records that match the specified SQL expression. You must
@@ -814,71 +814,12 @@ export interface LifecycleRuleAndOperator {
814
814
  ObjectSizeGreaterThan?: number;
815
815
  ObjectSizeLessThan?: number;
816
816
  }
817
- export type LifecycleRuleFilter =
818
- | LifecycleRuleFilter.AndMember
819
- | LifecycleRuleFilter.ObjectSizeGreaterThanMember
820
- | LifecycleRuleFilter.ObjectSizeLessThanMember
821
- | LifecycleRuleFilter.PrefixMember
822
- | LifecycleRuleFilter.TagMember
823
- | LifecycleRuleFilter.$UnknownMember;
824
- export declare namespace LifecycleRuleFilter {
825
- interface PrefixMember {
826
- Prefix: string;
827
- Tag?: never;
828
- ObjectSizeGreaterThan?: never;
829
- ObjectSizeLessThan?: never;
830
- And?: never;
831
- $unknown?: never;
832
- }
833
- interface TagMember {
834
- Prefix?: never;
835
- Tag: Tag;
836
- ObjectSizeGreaterThan?: never;
837
- ObjectSizeLessThan?: never;
838
- And?: never;
839
- $unknown?: never;
840
- }
841
- interface ObjectSizeGreaterThanMember {
842
- Prefix?: never;
843
- Tag?: never;
844
- ObjectSizeGreaterThan: number;
845
- ObjectSizeLessThan?: never;
846
- And?: never;
847
- $unknown?: never;
848
- }
849
- interface ObjectSizeLessThanMember {
850
- Prefix?: never;
851
- Tag?: never;
852
- ObjectSizeGreaterThan?: never;
853
- ObjectSizeLessThan: number;
854
- And?: never;
855
- $unknown?: never;
856
- }
857
- interface AndMember {
858
- Prefix?: never;
859
- Tag?: never;
860
- ObjectSizeGreaterThan?: never;
861
- ObjectSizeLessThan?: never;
862
- And: LifecycleRuleAndOperator;
863
- $unknown?: never;
864
- }
865
- interface $UnknownMember {
866
- Prefix?: never;
867
- Tag?: never;
868
- ObjectSizeGreaterThan?: never;
869
- ObjectSizeLessThan?: never;
870
- And?: never;
871
- $unknown: [string, any];
872
- }
873
- interface Visitor<T> {
874
- Prefix: (value: string) => T;
875
- Tag: (value: Tag) => T;
876
- ObjectSizeGreaterThan: (value: number) => T;
877
- ObjectSizeLessThan: (value: number) => T;
878
- And: (value: LifecycleRuleAndOperator) => T;
879
- _: (name: string, value: any) => T;
880
- }
881
- const visit: <T>(value: LifecycleRuleFilter, visitor: Visitor<T>) => T;
817
+ export interface LifecycleRuleFilter {
818
+ Prefix?: string;
819
+ Tag?: Tag;
820
+ ObjectSizeGreaterThan?: number;
821
+ ObjectSizeLessThan?: number;
822
+ And?: LifecycleRuleAndOperator;
882
823
  }
883
824
  export interface NoncurrentVersionExpiration {
884
825
  NoncurrentDays?: number;
@@ -1209,43 +1150,10 @@ export interface ReplicationRuleAndOperator {
1209
1150
  Prefix?: string;
1210
1151
  Tags?: Tag[];
1211
1152
  }
1212
- export type ReplicationRuleFilter =
1213
- | ReplicationRuleFilter.AndMember
1214
- | ReplicationRuleFilter.PrefixMember
1215
- | ReplicationRuleFilter.TagMember
1216
- | ReplicationRuleFilter.$UnknownMember;
1217
- export declare namespace ReplicationRuleFilter {
1218
- interface PrefixMember {
1219
- Prefix: string;
1220
- Tag?: never;
1221
- And?: never;
1222
- $unknown?: never;
1223
- }
1224
- interface TagMember {
1225
- Prefix?: never;
1226
- Tag: Tag;
1227
- And?: never;
1228
- $unknown?: never;
1229
- }
1230
- interface AndMember {
1231
- Prefix?: never;
1232
- Tag?: never;
1233
- And: ReplicationRuleAndOperator;
1234
- $unknown?: never;
1235
- }
1236
- interface $UnknownMember {
1237
- Prefix?: never;
1238
- Tag?: never;
1239
- And?: never;
1240
- $unknown: [string, any];
1241
- }
1242
- interface Visitor<T> {
1243
- Prefix: (value: string) => T;
1244
- Tag: (value: Tag) => T;
1245
- And: (value: ReplicationRuleAndOperator) => T;
1246
- _: (name: string, value: any) => T;
1247
- }
1248
- const visit: <T>(value: ReplicationRuleFilter, visitor: Visitor<T>) => T;
1153
+ export interface ReplicationRuleFilter {
1154
+ Prefix?: string;
1155
+ Tag?: Tag;
1156
+ And?: ReplicationRuleAndOperator;
1249
1157
  }
1250
1158
  export declare const ReplicaModificationsStatus: {
1251
1159
  readonly Disabled: "Disabled";
@@ -1747,15 +1655,19 @@ export interface ListBucketMetricsConfigurationsRequest {
1747
1655
  export interface Bucket {
1748
1656
  Name?: string;
1749
1657
  CreationDate?: Date;
1658
+ BucketRegion?: string;
1750
1659
  }
1751
1660
  export interface ListBucketsOutput {
1752
1661
  Buckets?: Bucket[];
1753
1662
  Owner?: Owner;
1754
1663
  ContinuationToken?: string;
1664
+ Prefix?: string;
1755
1665
  }
1756
1666
  export interface ListBucketsRequest {
1757
1667
  MaxBuckets?: number;
1758
1668
  ContinuationToken?: string;
1669
+ Prefix?: string;
1670
+ BucketRegion?: string;
1759
1671
  }
1760
1672
  export interface ListDirectoryBucketsOutput {
1761
1673
  Buckets?: Bucket[];
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.669.0",
4
+ "version": "3.673.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",
@@ -26,10 +26,10 @@
26
26
  "@aws-crypto/sha1-browser": "5.2.0",
27
27
  "@aws-crypto/sha256-browser": "5.2.0",
28
28
  "@aws-crypto/sha256-js": "5.2.0",
29
- "@aws-sdk/client-sso-oidc": "3.669.0",
30
- "@aws-sdk/client-sts": "3.669.0",
29
+ "@aws-sdk/client-sso-oidc": "3.670.0",
30
+ "@aws-sdk/client-sts": "3.670.0",
31
31
  "@aws-sdk/core": "3.667.0",
32
- "@aws-sdk/credential-provider-node": "3.669.0",
32
+ "@aws-sdk/credential-provider-node": "3.670.0",
33
33
  "@aws-sdk/middleware-bucket-endpoint": "3.667.0",
34
34
  "@aws-sdk/middleware-expect-continue": "3.667.0",
35
35
  "@aws-sdk/middleware-flexible-checksums": "3.669.0",
@@ -44,7 +44,7 @@
44
44
  "@aws-sdk/signature-v4-multi-region": "3.669.0",
45
45
  "@aws-sdk/types": "3.667.0",
46
46
  "@aws-sdk/util-endpoints": "3.667.0",
47
- "@aws-sdk/util-user-agent-browser": "3.667.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.670.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.669.0",
49
49
  "@aws-sdk/xml-builder": "3.662.0",
50
50
  "@smithy/config-resolver": "^3.0.9",