@aws-sdk/client-s3 3.498.0 → 3.501.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
@@ -4353,6 +4353,7 @@ var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4353
4353
  [_CR]: [, output.headers[_cr]],
4354
4354
  [_CT]: [, output.headers[_ct]],
4355
4355
  [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_e]))],
4356
+ [_ES]: [, output.headers[_ex]],
4356
4357
  [_WRL]: [, output.headers[_xawrl]],
4357
4358
  [_SSE]: [, output.headers[_xasse]],
4358
4359
  [_SSECA]: [, output.headers[_xasseca]],
@@ -4701,6 +4702,7 @@ var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4701
4702
  [_CL]: [, output.headers[_cl]],
4702
4703
  [_CT]: [, output.headers[_ct]],
4703
4704
  [_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_e]))],
4705
+ [_ES]: [, output.headers[_ex]],
4704
4706
  [_WRL]: [, output.headers[_xawrl]],
4705
4707
  [_SSE]: [, output.headers[_xasse]],
4706
4708
  [_SSECA]: [, output.headers[_xasseca]],
@@ -6724,7 +6726,7 @@ var se_LifecycleRule = /* @__PURE__ */ __name((input, context) => {
6724
6726
  bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F));
6725
6727
  }
6726
6728
  if (input[_S] != null) {
6727
- bn.c(import_xml_builder.XmlNode.of(_ES, input[_S]).n(_S));
6729
+ bn.c(import_xml_builder.XmlNode.of(_ESx, input[_S]).n(_S));
6728
6730
  }
6729
6731
  bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr], context));
6730
6732
  bn.l(
@@ -9156,8 +9158,9 @@ var _EODM = "ExpiredObjectDeleteMarker";
9156
9158
  var _EOR = "ExistingObjectReplication";
9157
9159
  var _EORS = "ExistingObjectReplicationStatus";
9158
9160
  var _ERP = "EnableRequestProgress";
9159
- var _ES = "ExpirationStatus";
9161
+ var _ES = "ExpiresString";
9160
9162
  var _ESBO = "ExpectedSourceBucketOwner";
9163
+ var _ESx = "ExpirationStatus";
9161
9164
  var _ET = "EncodingType";
9162
9165
  var _ETa = "ETag";
9163
9166
  var _ETn = "EncryptionType";
@@ -9500,6 +9503,7 @@ var _e = "expires";
9500
9503
  var _en = "encryption";
9501
9504
  var _et = "encoding-type";
9502
9505
  var _eta = "etag";
9506
+ var _ex = "expiresstring";
9503
9507
  var _fo = "fetch-owner";
9504
9508
  var _i = "id";
9505
9509
  var _im = "if-match";
@@ -10644,6 +10648,7 @@ var GetObjectAttributesCommand = _GetObjectAttributesCommand;
10644
10648
 
10645
10649
  // src/commands/GetObjectCommand.ts
10646
10650
 
10651
+ var import_middleware_sdk_s34 = require("@aws-sdk/middleware-sdk-s3");
10647
10652
 
10648
10653
 
10649
10654
 
@@ -10658,6 +10663,7 @@ var _GetObjectCommand = class _GetObjectCommand extends import_smithy_client.Com
10658
10663
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
10659
10664
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10660
10665
  (0, import_middleware_ssec.getSsecPlugin)(config),
10666
+ (0, import_middleware_sdk_s34.getS3ExpiresMiddlewarePlugin)(config),
10661
10667
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
10662
10668
  input: this.input,
10663
10669
  requestChecksumRequired: false,
@@ -10798,6 +10804,7 @@ __name(_HeadBucketCommand, "HeadBucketCommand");
10798
10804
  var HeadBucketCommand = _HeadBucketCommand;
10799
10805
 
10800
10806
  // src/commands/HeadObjectCommand.ts
10807
+ var import_middleware_sdk_s35 = require("@aws-sdk/middleware-sdk-s3");
10801
10808
 
10802
10809
 
10803
10810
 
@@ -10811,7 +10818,8 @@ var _HeadObjectCommand = class _HeadObjectCommand extends import_smithy_client.C
10811
10818
  return [
10812
10819
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
10813
10820
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
10814
- (0, import_middleware_ssec.getSsecPlugin)(config)
10821
+ (0, import_middleware_ssec.getSsecPlugin)(config),
10822
+ (0, import_middleware_sdk_s35.getS3ExpiresMiddlewarePlugin)(config)
10815
10823
  ];
10816
10824
  }).s("AmazonS3", "HeadObject", {}).n("S3Client", "HeadObjectCommand").f(HeadObjectRequestFilterSensitiveLog, HeadObjectOutputFilterSensitiveLog).ser(se_HeadObjectCommand).de(de_HeadObjectCommand).build() {
10817
10825
  };
@@ -11468,7 +11476,7 @@ var PutObjectAclCommand = _PutObjectAclCommand;
11468
11476
 
11469
11477
  // src/commands/PutObjectCommand.ts
11470
11478
 
11471
- var import_middleware_sdk_s34 = require("@aws-sdk/middleware-sdk-s3");
11479
+ var import_middleware_sdk_s36 = require("@aws-sdk/middleware-sdk-s3");
11472
11480
 
11473
11481
 
11474
11482
 
@@ -11482,7 +11490,7 @@ var _PutObjectCommand = class _PutObjectCommand extends import_smithy_client.Com
11482
11490
  return [
11483
11491
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
11484
11492
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
11485
- (0, import_middleware_sdk_s34.getCheckContentLengthHeaderPlugin)(config),
11493
+ (0, import_middleware_sdk_s36.getCheckContentLengthHeaderPlugin)(config),
11486
11494
  (0, import_middleware_ssec.getSsecPlugin)(config),
11487
11495
  (0, import_middleware_flexible_checksums.getFlexibleChecksumsPlugin)(config, {
11488
11496
  input: this.input,
@@ -11695,7 +11703,7 @@ __name(_UploadPartCommand, "UploadPartCommand");
11695
11703
  var UploadPartCommand = _UploadPartCommand;
11696
11704
 
11697
11705
  // src/commands/UploadPartCopyCommand.ts
11698
- var import_middleware_sdk_s35 = require("@aws-sdk/middleware-sdk-s3");
11706
+ var import_middleware_sdk_s37 = require("@aws-sdk/middleware-sdk-s3");
11699
11707
 
11700
11708
 
11701
11709
 
@@ -11709,7 +11717,7 @@ var _UploadPartCopyCommand = class _UploadPartCopyCommand extends import_smithy_
11709
11717
  return [
11710
11718
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
11711
11719
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
11712
- (0, import_middleware_sdk_s35.getThrow200ExceptionsPlugin)(config),
11720
+ (0, import_middleware_sdk_s37.getThrow200ExceptionsPlugin)(config),
11713
11721
  (0, import_middleware_ssec.getSsecPlugin)(config)
11714
11722
  ];
11715
11723
  }).s("AmazonS3", "UploadPartCopy", {}).n("S3Client", "UploadPartCopyCommand").f(UploadPartCopyRequestFilterSensitiveLog, UploadPartCopyOutputFilterSensitiveLog).ser(se_UploadPartCopyCommand).de(de_UploadPartCopyCommand).build() {
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getS3ExpiresMiddlewarePlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
3
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
5
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -19,6 +20,7 @@ export class GetObjectCommand extends $Command
19
20
  getSerdePlugin(config, this.serialize, this.deserialize),
20
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
21
22
  getSsecPlugin(config),
23
+ getS3ExpiresMiddlewarePlugin(config),
22
24
  getFlexibleChecksumsPlugin(config, {
23
25
  input: this.input,
24
26
  requestChecksumRequired: false,
@@ -1,3 +1,4 @@
1
+ import { getS3ExpiresMiddlewarePlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -18,6 +19,7 @@ export class HeadObjectCommand extends $Command
18
19
  getSerdePlugin(config, this.serialize, this.deserialize),
19
20
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
21
  getSsecPlugin(config),
22
+ getS3ExpiresMiddlewarePlugin(config),
21
23
  ];
22
24
  })
23
25
  .s("AmazonS3", "HeadObject", {})
@@ -3248,6 +3248,7 @@ export const de_GetObjectCommand = async (output, context) => {
3248
3248
  [_CR]: [, output.headers[_cr]],
3249
3249
  [_CT]: [, output.headers[_ct]],
3250
3250
  [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))],
3251
+ [_ES]: [, output.headers[_ex]],
3251
3252
  [_WRL]: [, output.headers[_xawrl]],
3252
3253
  [_SSE]: [, output.headers[_xasse]],
3253
3254
  [_SSECA]: [, output.headers[_xasseca]],
@@ -3600,6 +3601,7 @@ export const de_HeadObjectCommand = async (output, context) => {
3600
3601
  [_CL]: [, output.headers[_cl]],
3601
3602
  [_CT]: [, output.headers[_ct]],
3602
3603
  [_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))],
3604
+ [_ES]: [, output.headers[_ex]],
3603
3605
  [_WRL]: [, output.headers[_xawrl]],
3604
3606
  [_SSE]: [, output.headers[_xasse]],
3605
3607
  [_SSECA]: [, output.headers[_xasseca]],
@@ -5663,7 +5665,7 @@ const se_LifecycleRule = (input, context) => {
5663
5665
  bn.c(se_LifecycleRuleFilter(input[_F], context).n(_F));
5664
5666
  }
5665
5667
  if (input[_S] != null) {
5666
- bn.c(__XmlNode.of(_ES, input[_S]).n(_S));
5668
+ bn.c(__XmlNode.of(_ESx, input[_S]).n(_S));
5667
5669
  }
5668
5670
  bn.l(input, "Transitions", "Transition", () => se_TransitionList(input[_Tr], context));
5669
5671
  bn.l(input, "NoncurrentVersionTransitions", "NoncurrentVersionTransition", () => se_NoncurrentVersionTransitionList(input[_NVT], context));
@@ -8219,8 +8221,9 @@ const _EODM = "ExpiredObjectDeleteMarker";
8219
8221
  const _EOR = "ExistingObjectReplication";
8220
8222
  const _EORS = "ExistingObjectReplicationStatus";
8221
8223
  const _ERP = "EnableRequestProgress";
8222
- const _ES = "ExpirationStatus";
8224
+ const _ES = "ExpiresString";
8223
8225
  const _ESBO = "ExpectedSourceBucketOwner";
8226
+ const _ESx = "ExpirationStatus";
8224
8227
  const _ET = "EncodingType";
8225
8228
  const _ETa = "ETag";
8226
8229
  const _ETn = "EncryptionType";
@@ -8563,6 +8566,7 @@ const _e = "expires";
8563
8566
  const _en = "encryption";
8564
8567
  const _et = "encoding-type";
8565
8568
  const _eta = "etag";
8569
+ const _ex = "expiresstring";
8566
8570
  const _fo = "fetch-owner";
8567
8571
  const _i = "id";
8568
8572
  const _im = "if-match";
@@ -230,6 +230,7 @@ declare const GetObjectCommand_base: {
230
230
  * // ContentRange: "STRING_VALUE",
231
231
  * // ContentType: "STRING_VALUE",
232
232
  * // Expires: new Date("TIMESTAMP"),
233
+ * // ExpiresString: "STRING_VALUE",
233
234
  * // WebsiteRedirectLocation: "STRING_VALUE",
234
235
  * // ServerSideEncryption: "AES256" || "aws:kms" || "aws:kms:dsse",
235
236
  * // Metadata: { // Metadata
@@ -207,6 +207,7 @@ declare const HeadObjectCommand_base: {
207
207
  * // ContentLanguage: "STRING_VALUE",
208
208
  * // ContentType: "STRING_VALUE",
209
209
  * // Expires: new Date("TIMESTAMP"),
210
+ * // ExpiresString: "STRING_VALUE",
210
211
  * // WebsiteRedirectLocation: "STRING_VALUE",
211
212
  * // ServerSideEncryption: "AES256" || "aws:kms" || "aws:kms:dsse",
212
213
  * // Metadata: { // Metadata
@@ -8321,9 +8321,16 @@ export interface GetObjectOutput {
8321
8321
  ContentType?: string;
8322
8322
  /**
8323
8323
  * @public
8324
- * <p>The date and time at which the object is no longer cacheable.</p>
8324
+ * @deprecated
8325
+ *
8326
+ * Deprecated in favor of ExpiresString.
8325
8327
  */
8326
8328
  Expires?: Date;
8329
+ /**
8330
+ * @public
8331
+ * <p>The date and time at which the object is no longer cacheable.</p>
8332
+ */
8333
+ ExpiresString?: string;
8327
8334
  /**
8328
8335
  * @public
8329
8336
  * <p>If the bucket is configured as a website, redirects requests for this object to another
@@ -9870,9 +9877,16 @@ export interface HeadObjectOutput {
9870
9877
  ContentType?: string;
9871
9878
  /**
9872
9879
  * @public
9873
- * <p>The date and time at which the object is no longer cacheable.</p>
9880
+ * @deprecated
9881
+ *
9882
+ * Deprecated in favor of ExpiresString.
9874
9883
  */
9875
9884
  Expires?: Date;
9885
+ /**
9886
+ * @public
9887
+ * <p>The date and time at which the object is no longer cacheable.</p>
9888
+ */
9889
+ ExpiresString?: string;
9876
9890
  /**
9877
9891
  * @public
9878
9892
  * <p>If the bucket is configured as a website, redirects requests for this object to another
@@ -1391,6 +1391,7 @@ export interface GetObjectOutput {
1391
1391
  ContentRange?: string;
1392
1392
  ContentType?: string;
1393
1393
  Expires?: Date;
1394
+ ExpiresString?: string;
1394
1395
  WebsiteRedirectLocation?: string;
1395
1396
  ServerSideEncryption?: ServerSideEncryption;
1396
1397
  Metadata?: Record<string, string>;
@@ -1645,6 +1646,7 @@ export interface HeadObjectOutput {
1645
1646
  ContentLanguage?: string;
1646
1647
  ContentType?: string;
1647
1648
  Expires?: Date;
1649
+ ExpiresString?: string;
1648
1650
  WebsiteRedirectLocation?: string;
1649
1651
  ServerSideEncryption?: ServerSideEncryption;
1650
1652
  Metadata?: Record<string, string>;
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.498.0",
4
+ "version": "3.501.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,9 +26,9 @@
26
26
  "@aws-crypto/sha1-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-browser": "3.0.0",
28
28
  "@aws-crypto/sha256-js": "3.0.0",
29
- "@aws-sdk/client-sts": "3.496.0",
29
+ "@aws-sdk/client-sts": "3.501.0",
30
30
  "@aws-sdk/core": "3.496.0",
31
- "@aws-sdk/credential-provider-node": "3.496.0",
31
+ "@aws-sdk/credential-provider-node": "3.501.0",
32
32
  "@aws-sdk/middleware-bucket-endpoint": "3.496.0",
33
33
  "@aws-sdk/middleware-expect-continue": "3.496.0",
34
34
  "@aws-sdk/middleware-flexible-checksums": "3.496.0",
@@ -36,12 +36,12 @@
36
36
  "@aws-sdk/middleware-location-constraint": "3.496.0",
37
37
  "@aws-sdk/middleware-logger": "3.496.0",
38
38
  "@aws-sdk/middleware-recursion-detection": "3.496.0",
39
- "@aws-sdk/middleware-sdk-s3": "3.496.0",
39
+ "@aws-sdk/middleware-sdk-s3": "3.499.0",
40
40
  "@aws-sdk/middleware-signing": "3.496.0",
41
41
  "@aws-sdk/middleware-ssec": "3.498.0",
42
42
  "@aws-sdk/middleware-user-agent": "3.496.0",
43
43
  "@aws-sdk/region-config-resolver": "3.496.0",
44
- "@aws-sdk/signature-v4-multi-region": "3.496.0",
44
+ "@aws-sdk/signature-v4-multi-region": "3.499.0",
45
45
  "@aws-sdk/types": "3.496.0",
46
46
  "@aws-sdk/util-endpoints": "3.496.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.496.0",