@aws-sdk/client-backup 3.241.0 → 3.252.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.
|
@@ -782,21 +782,21 @@ const serializeAws_restJson1ListBackupJobsCommand = async (input, context) => {
|
|
|
782
782
|
backupVaultName: [, input.ByBackupVaultName],
|
|
783
783
|
createdBefore: [
|
|
784
784
|
() => input.ByCreatedBefore !== void 0,
|
|
785
|
-
() =>
|
|
785
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
786
786
|
],
|
|
787
787
|
createdAfter: [
|
|
788
788
|
() => input.ByCreatedAfter !== void 0,
|
|
789
|
-
() =>
|
|
789
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
790
790
|
],
|
|
791
791
|
resourceType: [, input.ByResourceType],
|
|
792
792
|
accountId: [, input.ByAccountId],
|
|
793
793
|
completeAfter: [
|
|
794
794
|
() => input.ByCompleteAfter !== void 0,
|
|
795
|
-
() =>
|
|
795
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
796
796
|
],
|
|
797
797
|
completeBefore: [
|
|
798
798
|
() => input.ByCompleteBefore !== void 0,
|
|
799
|
-
() =>
|
|
799
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
800
800
|
],
|
|
801
801
|
parentJobId: [, input.ByParentJobId],
|
|
802
802
|
});
|
|
@@ -932,22 +932,22 @@ const serializeAws_restJson1ListCopyJobsCommand = async (input, context) => {
|
|
|
932
932
|
state: [, input.ByState],
|
|
933
933
|
createdBefore: [
|
|
934
934
|
() => input.ByCreatedBefore !== void 0,
|
|
935
|
-
() =>
|
|
935
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
936
936
|
],
|
|
937
937
|
createdAfter: [
|
|
938
938
|
() => input.ByCreatedAfter !== void 0,
|
|
939
|
-
() =>
|
|
939
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
940
940
|
],
|
|
941
941
|
resourceType: [, input.ByResourceType],
|
|
942
942
|
destinationVaultArn: [, input.ByDestinationVaultArn],
|
|
943
943
|
accountId: [, input.ByAccountId],
|
|
944
944
|
completeBefore: [
|
|
945
945
|
() => input.ByCompleteBefore !== void 0,
|
|
946
|
-
() =>
|
|
946
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
947
947
|
],
|
|
948
948
|
completeAfter: [
|
|
949
949
|
() => input.ByCompleteAfter !== void 0,
|
|
950
|
-
() =>
|
|
950
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
951
951
|
],
|
|
952
952
|
parentJobId: [, input.ByParentJobId],
|
|
953
953
|
});
|
|
@@ -1041,11 +1041,11 @@ const serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (inpu
|
|
|
1041
1041
|
backupPlanId: [, input.ByBackupPlanId],
|
|
1042
1042
|
createdBefore: [
|
|
1043
1043
|
() => input.ByCreatedBefore !== void 0,
|
|
1044
|
-
() =>
|
|
1044
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
1045
1045
|
],
|
|
1046
1046
|
createdAfter: [
|
|
1047
1047
|
() => input.ByCreatedAfter !== void 0,
|
|
1048
|
-
() =>
|
|
1048
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
1049
1049
|
],
|
|
1050
1050
|
parentRecoveryPointArn: [, input.ByParentRecoveryPointArn],
|
|
1051
1051
|
});
|
|
@@ -1115,11 +1115,11 @@ const serializeAws_restJson1ListReportJobsCommand = async (input, context) => {
|
|
|
1115
1115
|
ReportPlanName: [, input.ByReportPlanName],
|
|
1116
1116
|
CreationBefore: [
|
|
1117
1117
|
() => input.ByCreationBefore !== void 0,
|
|
1118
|
-
() =>
|
|
1118
|
+
() => input.ByCreationBefore.toISOString().split(".")[0] + "Z",
|
|
1119
1119
|
],
|
|
1120
1120
|
CreationAfter: [
|
|
1121
1121
|
() => input.ByCreationAfter !== void 0,
|
|
1122
|
-
() =>
|
|
1122
|
+
() => input.ByCreationAfter.toISOString().split(".")[0] + "Z",
|
|
1123
1123
|
],
|
|
1124
1124
|
Status: [, input.ByStatus],
|
|
1125
1125
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1169,20 +1169,20 @@ const serializeAws_restJson1ListRestoreJobsCommand = async (input, context) => {
|
|
|
1169
1169
|
accountId: [, input.ByAccountId],
|
|
1170
1170
|
createdBefore: [
|
|
1171
1171
|
() => input.ByCreatedBefore !== void 0,
|
|
1172
|
-
() =>
|
|
1172
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
1173
1173
|
],
|
|
1174
1174
|
createdAfter: [
|
|
1175
1175
|
() => input.ByCreatedAfter !== void 0,
|
|
1176
|
-
() =>
|
|
1176
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
1177
1177
|
],
|
|
1178
1178
|
status: [, input.ByStatus],
|
|
1179
1179
|
completeBefore: [
|
|
1180
1180
|
() => input.ByCompleteBefore !== void 0,
|
|
1181
|
-
() =>
|
|
1181
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
1182
1182
|
],
|
|
1183
1183
|
completeAfter: [
|
|
1184
1184
|
() => input.ByCompleteAfter !== void 0,
|
|
1185
|
-
() =>
|
|
1185
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
1186
1186
|
],
|
|
1187
1187
|
});
|
|
1188
1188
|
let body;
|
|
@@ -5515,8 +5515,8 @@ const serializeAws_restJson1CopyActions = (input, context) => {
|
|
|
5515
5515
|
};
|
|
5516
5516
|
const serializeAws_restJson1DateRange = (input, context) => {
|
|
5517
5517
|
return {
|
|
5518
|
-
...(input.FromDate != null && { FromDate: Math.round(input.FromDate.getTime() / 1000) }),
|
|
5519
|
-
...(input.ToDate != null && { ToDate: Math.round(input.ToDate.getTime() / 1000) }),
|
|
5518
|
+
...(input.FromDate != null && { FromDate: Math.round(input.FromDate.getTime() / 1000).toString() }),
|
|
5519
|
+
...(input.ToDate != null && { ToDate: Math.round(input.ToDate.getTime() / 1000).toString() }),
|
|
5520
5520
|
};
|
|
5521
5521
|
};
|
|
5522
5522
|
const serializeAws_restJson1FormatList = (input, context) => {
|
|
@@ -738,21 +738,21 @@ export const serializeAws_restJson1ListBackupJobsCommand = async (input, context
|
|
|
738
738
|
backupVaultName: [, input.ByBackupVaultName],
|
|
739
739
|
createdBefore: [
|
|
740
740
|
() => input.ByCreatedBefore !== void 0,
|
|
741
|
-
() =>
|
|
741
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
742
742
|
],
|
|
743
743
|
createdAfter: [
|
|
744
744
|
() => input.ByCreatedAfter !== void 0,
|
|
745
|
-
() =>
|
|
745
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
746
746
|
],
|
|
747
747
|
resourceType: [, input.ByResourceType],
|
|
748
748
|
accountId: [, input.ByAccountId],
|
|
749
749
|
completeAfter: [
|
|
750
750
|
() => input.ByCompleteAfter !== void 0,
|
|
751
|
-
() =>
|
|
751
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
752
752
|
],
|
|
753
753
|
completeBefore: [
|
|
754
754
|
() => input.ByCompleteBefore !== void 0,
|
|
755
|
-
() =>
|
|
755
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
756
756
|
],
|
|
757
757
|
parentJobId: [, input.ByParentJobId],
|
|
758
758
|
});
|
|
@@ -882,22 +882,22 @@ export const serializeAws_restJson1ListCopyJobsCommand = async (input, context)
|
|
|
882
882
|
state: [, input.ByState],
|
|
883
883
|
createdBefore: [
|
|
884
884
|
() => input.ByCreatedBefore !== void 0,
|
|
885
|
-
() =>
|
|
885
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
886
886
|
],
|
|
887
887
|
createdAfter: [
|
|
888
888
|
() => input.ByCreatedAfter !== void 0,
|
|
889
|
-
() =>
|
|
889
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
890
890
|
],
|
|
891
891
|
resourceType: [, input.ByResourceType],
|
|
892
892
|
destinationVaultArn: [, input.ByDestinationVaultArn],
|
|
893
893
|
accountId: [, input.ByAccountId],
|
|
894
894
|
completeBefore: [
|
|
895
895
|
() => input.ByCompleteBefore !== void 0,
|
|
896
|
-
() =>
|
|
896
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
897
897
|
],
|
|
898
898
|
completeAfter: [
|
|
899
899
|
() => input.ByCompleteAfter !== void 0,
|
|
900
|
-
() =>
|
|
900
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
901
901
|
],
|
|
902
902
|
parentJobId: [, input.ByParentJobId],
|
|
903
903
|
});
|
|
@@ -987,11 +987,11 @@ export const serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = asyn
|
|
|
987
987
|
backupPlanId: [, input.ByBackupPlanId],
|
|
988
988
|
createdBefore: [
|
|
989
989
|
() => input.ByCreatedBefore !== void 0,
|
|
990
|
-
() =>
|
|
990
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
991
991
|
],
|
|
992
992
|
createdAfter: [
|
|
993
993
|
() => input.ByCreatedAfter !== void 0,
|
|
994
|
-
() =>
|
|
994
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
995
995
|
],
|
|
996
996
|
parentRecoveryPointArn: [, input.ByParentRecoveryPointArn],
|
|
997
997
|
});
|
|
@@ -1058,11 +1058,11 @@ export const serializeAws_restJson1ListReportJobsCommand = async (input, context
|
|
|
1058
1058
|
ReportPlanName: [, input.ByReportPlanName],
|
|
1059
1059
|
CreationBefore: [
|
|
1060
1060
|
() => input.ByCreationBefore !== void 0,
|
|
1061
|
-
() =>
|
|
1061
|
+
() => input.ByCreationBefore.toISOString().split(".")[0] + "Z",
|
|
1062
1062
|
],
|
|
1063
1063
|
CreationAfter: [
|
|
1064
1064
|
() => input.ByCreationAfter !== void 0,
|
|
1065
|
-
() =>
|
|
1065
|
+
() => input.ByCreationAfter.toISOString().split(".")[0] + "Z",
|
|
1066
1066
|
],
|
|
1067
1067
|
Status: [, input.ByStatus],
|
|
1068
1068
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1110,20 +1110,20 @@ export const serializeAws_restJson1ListRestoreJobsCommand = async (input, contex
|
|
|
1110
1110
|
accountId: [, input.ByAccountId],
|
|
1111
1111
|
createdBefore: [
|
|
1112
1112
|
() => input.ByCreatedBefore !== void 0,
|
|
1113
|
-
() =>
|
|
1113
|
+
() => input.ByCreatedBefore.toISOString().split(".")[0] + "Z",
|
|
1114
1114
|
],
|
|
1115
1115
|
createdAfter: [
|
|
1116
1116
|
() => input.ByCreatedAfter !== void 0,
|
|
1117
|
-
() =>
|
|
1117
|
+
() => input.ByCreatedAfter.toISOString().split(".")[0] + "Z",
|
|
1118
1118
|
],
|
|
1119
1119
|
status: [, input.ByStatus],
|
|
1120
1120
|
completeBefore: [
|
|
1121
1121
|
() => input.ByCompleteBefore !== void 0,
|
|
1122
|
-
() =>
|
|
1122
|
+
() => input.ByCompleteBefore.toISOString().split(".")[0] + "Z",
|
|
1123
1123
|
],
|
|
1124
1124
|
completeAfter: [
|
|
1125
1125
|
() => input.ByCompleteAfter !== void 0,
|
|
1126
|
-
() =>
|
|
1126
|
+
() => input.ByCompleteAfter.toISOString().split(".")[0] + "Z",
|
|
1127
1127
|
],
|
|
1128
1128
|
});
|
|
1129
1129
|
let body;
|
|
@@ -5366,8 +5366,8 @@ const serializeAws_restJson1CopyActions = (input, context) => {
|
|
|
5366
5366
|
};
|
|
5367
5367
|
const serializeAws_restJson1DateRange = (input, context) => {
|
|
5368
5368
|
return {
|
|
5369
|
-
...(input.FromDate != null && { FromDate: Math.round(input.FromDate.getTime() / 1000) }),
|
|
5370
|
-
...(input.ToDate != null && { ToDate: Math.round(input.ToDate.getTime() / 1000) }),
|
|
5369
|
+
...(input.FromDate != null && { FromDate: Math.round(input.FromDate.getTime() / 1000).toString() }),
|
|
5370
|
+
...(input.ToDate != null && { ToDate: Math.round(input.ToDate.getTime() / 1000).toString() }),
|
|
5371
5371
|
};
|
|
5372
5372
|
};
|
|
5373
5373
|
const serializeAws_restJson1FormatList = (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.
|
|
4
|
+
"version": "3.252.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo backup"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.245.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.229.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|