@aws-sdk/client-backup 3.583.0 → 3.587.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
@@ -1394,18 +1394,12 @@ var se_ListBackupJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
1394
1394
  [_rA]: [, input[_BRA]],
1395
1395
  [_s]: [, input[_BS]],
1396
1396
  [_bVN]: [, input[_BBVN]],
1397
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
1398
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
1397
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCB]).toString()],
1398
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCA]).toString()],
1399
1399
  [_rT]: [, input[_BRT]],
1400
1400
  [_aI]: [, input[_BAI]],
1401
- [_cAo]: [
1402
- () => input.ByCompleteAfter !== void 0,
1403
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString()
1404
- ],
1405
- [_cBo]: [
1406
- () => input.ByCompleteBefore !== void 0,
1407
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString()
1408
- ],
1401
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCAy]).toString()],
1402
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCBy]).toString()],
1409
1403
  [_pJI]: [, input[_BPJI]],
1410
1404
  [_mC]: [, input[_BMC]]
1411
1405
  });
@@ -1504,19 +1498,13 @@ var se_ListCopyJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
1504
1498
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1505
1499
  [_rA]: [, input[_BRA]],
1506
1500
  [_s]: [, input[_BS]],
1507
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
1508
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
1501
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCB]).toString()],
1502
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCA]).toString()],
1509
1503
  [_rT]: [, input[_BRT]],
1510
1504
  [_dVA]: [, input[_BDVA]],
1511
1505
  [_aI]: [, input[_BAI]],
1512
- [_cBo]: [
1513
- () => input.ByCompleteBefore !== void 0,
1514
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString()
1515
- ],
1516
- [_cAo]: [
1517
- () => input.ByCompleteAfter !== void 0,
1518
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString()
1519
- ],
1506
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCBy]).toString()],
1507
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCAy]).toString()],
1520
1508
  [_pJI]: [, input[_BPJI]],
1521
1509
  [_mC]: [, input[_BMC]]
1522
1510
  });
@@ -1603,8 +1591,8 @@ var se_ListRecoveryPointsByBackupVaultCommand = /* @__PURE__ */ __name(async (in
1603
1591
  [_rA]: [, input[_BRA]],
1604
1592
  [_rT]: [, input[_BRT]],
1605
1593
  [_bPI]: [, input[_BBPI]],
1606
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
1607
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
1594
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCB]).toString()],
1595
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCA]).toString()],
1608
1596
  [_pRPA]: [, input[_BPRPA]]
1609
1597
  });
1610
1598
  let body;
@@ -1644,14 +1632,8 @@ var se_ListReportJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
1644
1632
  b.bp("/audit/report-jobs");
1645
1633
  const query = (0, import_smithy_client.map)({
1646
1634
  [_RPN]: [, input[_BRPN]],
1647
- [_CB]: [
1648
- () => input.ByCreationBefore !== void 0,
1649
- () => (input[_BCByr].toISOString().split(".")[0] + "Z").toString()
1650
- ],
1651
- [_CA]: [
1652
- () => input.ByCreationAfter !== void 0,
1653
- () => (input[_BCAyr].toISOString().split(".")[0] + "Z").toString()
1654
- ],
1635
+ [_CB]: [() => input.ByCreationBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCByr]).toString()],
1636
+ [_CA]: [() => input.ByCreationAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCAyr]).toString()],
1655
1637
  [_St]: [, input[_BSyt]],
1656
1638
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1657
1639
  [_NT]: [, input[_NT]]
@@ -1681,17 +1663,11 @@ var se_ListRestoreJobsCommand = /* @__PURE__ */ __name(async (input, context) =>
1681
1663
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1682
1664
  [_aI]: [, input[_BAI]],
1683
1665
  [_rT]: [, input[_BRT]],
1684
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
1685
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
1666
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCB]).toString()],
1667
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCA]).toString()],
1686
1668
  [_st]: [, input[_BSyt]],
1687
- [_cBo]: [
1688
- () => input.ByCompleteBefore !== void 0,
1689
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString()
1690
- ],
1691
- [_cAo]: [
1692
- () => input.ByCompleteAfter !== void 0,
1693
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString()
1694
- ],
1669
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCBy]).toString()],
1670
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_BCAy]).toString()],
1695
1671
  [_rTPA]: [, input[_BRTPA]]
1696
1672
  });
1697
1673
  let body;
@@ -1707,11 +1683,11 @@ var se_ListRestoreJobsByProtectedResourceCommand = /* @__PURE__ */ __name(async
1707
1683
  [_st]: [, input[_BSyt]],
1708
1684
  [_rPCDA]: [
1709
1685
  () => input.ByRecoveryPointCreationDateAfter !== void 0,
1710
- () => (input[_BRPCDA].toISOString().split(".")[0] + "Z").toString()
1686
+ () => (0, import_smithy_client.serializeDateTime)(input[_BRPCDA]).toString()
1711
1687
  ],
1712
1688
  [_rPCDB]: [
1713
1689
  () => input.ByRecoveryPointCreationDateBefore !== void 0,
1714
- () => (input[_BRPCDB].toISOString().split(".")[0] + "Z").toString()
1690
+ () => (0, import_smithy_client.serializeDateTime)(input[_BRPCDB]).toString()
1715
1691
  ],
1716
1692
  [_nT]: [, input[_NT]],
1717
1693
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
@@ -3695,8 +3671,8 @@ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutp
3695
3671
  }, "de_ServiceUnavailableExceptionRes");
3696
3672
  var se_DateRange = /* @__PURE__ */ __name((input, context) => {
3697
3673
  return (0, import_smithy_client.take)(input, {
3698
- FromDate: (_) => Math.round(_.getTime() / 1e3),
3699
- ToDate: (_) => Math.round(_.getTime() / 1e3)
3674
+ FromDate: (_) => _.getTime() / 1e3,
3675
+ ToDate: (_) => _.getTime() / 1e3
3700
3676
  });
3701
3677
  }, "se_DateRange");
3702
3678
  var se_RecoveryPointSelection = /* @__PURE__ */ __name((input, context) => {
@@ -1,6 +1,6 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BackupServiceException as __BaseException } from "../models/BackupServiceException";
6
6
  import { AlreadyExistsException, ConflictException, DependencyFailureException, InvalidParameterValueException, InvalidRequestException, InvalidResourceStateException, LimitExceededException, MissingParameterValueException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
@@ -549,18 +549,12 @@ export const se_ListBackupJobsCommand = async (input, context) => {
549
549
  [_rA]: [, input[_BRA]],
550
550
  [_s]: [, input[_BS]],
551
551
  [_bVN]: [, input[_BBVN]],
552
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
553
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
552
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
553
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
554
554
  [_rT]: [, input[_BRT]],
555
555
  [_aI]: [, input[_BAI]],
556
- [_cAo]: [
557
- () => input.ByCompleteAfter !== void 0,
558
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString(),
559
- ],
560
- [_cBo]: [
561
- () => input.ByCompleteBefore !== void 0,
562
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString(),
563
- ],
556
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
557
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
564
558
  [_pJI]: [, input[_BPJI]],
565
559
  [_mC]: [, input[_BMC]],
566
560
  });
@@ -659,19 +653,13 @@ export const se_ListCopyJobsCommand = async (input, context) => {
659
653
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
660
654
  [_rA]: [, input[_BRA]],
661
655
  [_s]: [, input[_BS]],
662
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
663
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
656
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
657
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
664
658
  [_rT]: [, input[_BRT]],
665
659
  [_dVA]: [, input[_BDVA]],
666
660
  [_aI]: [, input[_BAI]],
667
- [_cBo]: [
668
- () => input.ByCompleteBefore !== void 0,
669
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString(),
670
- ],
671
- [_cAo]: [
672
- () => input.ByCompleteAfter !== void 0,
673
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString(),
674
- ],
661
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
662
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
675
663
  [_pJI]: [, input[_BPJI]],
676
664
  [_mC]: [, input[_BMC]],
677
665
  });
@@ -758,8 +746,8 @@ export const se_ListRecoveryPointsByBackupVaultCommand = async (input, context)
758
746
  [_rA]: [, input[_BRA]],
759
747
  [_rT]: [, input[_BRT]],
760
748
  [_bPI]: [, input[_BBPI]],
761
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
762
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
749
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
750
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
763
751
  [_pRPA]: [, input[_BPRPA]],
764
752
  });
765
753
  let body;
@@ -799,14 +787,8 @@ export const se_ListReportJobsCommand = async (input, context) => {
799
787
  b.bp("/audit/report-jobs");
800
788
  const query = map({
801
789
  [_RPN]: [, input[_BRPN]],
802
- [_CB]: [
803
- () => input.ByCreationBefore !== void 0,
804
- () => (input[_BCByr].toISOString().split(".")[0] + "Z").toString(),
805
- ],
806
- [_CA]: [
807
- () => input.ByCreationAfter !== void 0,
808
- () => (input[_BCAyr].toISOString().split(".")[0] + "Z").toString(),
809
- ],
790
+ [_CB]: [() => input.ByCreationBefore !== void 0, () => __serializeDateTime(input[_BCByr]).toString()],
791
+ [_CA]: [() => input.ByCreationAfter !== void 0, () => __serializeDateTime(input[_BCAyr]).toString()],
810
792
  [_St]: [, input[_BSyt]],
811
793
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
812
794
  [_NT]: [, input[_NT]],
@@ -836,17 +818,11 @@ export const se_ListRestoreJobsCommand = async (input, context) => {
836
818
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
837
819
  [_aI]: [, input[_BAI]],
838
820
  [_rT]: [, input[_BRT]],
839
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => (input[_BCB].toISOString().split(".")[0] + "Z").toString()],
840
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => (input[_BCA].toISOString().split(".")[0] + "Z").toString()],
821
+ [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
822
+ [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
841
823
  [_st]: [, input[_BSyt]],
842
- [_cBo]: [
843
- () => input.ByCompleteBefore !== void 0,
844
- () => (input[_BCBy].toISOString().split(".")[0] + "Z").toString(),
845
- ],
846
- [_cAo]: [
847
- () => input.ByCompleteAfter !== void 0,
848
- () => (input[_BCAy].toISOString().split(".")[0] + "Z").toString(),
849
- ],
824
+ [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
825
+ [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
850
826
  [_rTPA]: [, input[_BRTPA]],
851
827
  });
852
828
  let body;
@@ -862,11 +838,11 @@ export const se_ListRestoreJobsByProtectedResourceCommand = async (input, contex
862
838
  [_st]: [, input[_BSyt]],
863
839
  [_rPCDA]: [
864
840
  () => input.ByRecoveryPointCreationDateAfter !== void 0,
865
- () => (input[_BRPCDA].toISOString().split(".")[0] + "Z").toString(),
841
+ () => __serializeDateTime(input[_BRPCDA]).toString(),
866
842
  ],
867
843
  [_rPCDB]: [
868
844
  () => input.ByRecoveryPointCreationDateBefore !== void 0,
869
- () => (input[_BRPCDB].toISOString().split(".")[0] + "Z").toString(),
845
+ () => __serializeDateTime(input[_BRPCDB]).toString(),
870
846
  ],
871
847
  [_nT]: [, input[_NT]],
872
848
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
@@ -2814,8 +2790,8 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2814
2790
  };
2815
2791
  const se_DateRange = (input, context) => {
2816
2792
  return take(input, {
2817
- FromDate: (_) => Math.round(_.getTime() / 1000),
2818
- ToDate: (_) => Math.round(_.getTime() / 1000),
2793
+ FromDate: (_) => _.getTime() / 1000,
2794
+ ToDate: (_) => _.getTime() / 1000,
2819
2795
  });
2820
2796
  };
2821
2797
  const se_RecoveryPointSelection = (input, context) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-backup",
3
3
  "description": "AWS SDK for JavaScript Backup Client for Node.js, Browser and React Native",
4
- "version": "3.583.0",
4
+ "version": "3.587.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-backup",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.583.0",
24
- "@aws-sdk/client-sts": "3.583.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.583.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.583.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.583.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-utf8": "^3.0.0",