@aws-sdk/client-backup 3.450.0 → 3.454.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/README.md +24 -0
- package/dist-cjs/Backup.js +6 -0
- package/dist-cjs/commands/ListBackupJobSummariesCommand.js +51 -0
- package/dist-cjs/commands/ListCopyJobSummariesCommand.js +51 -0
- package/dist-cjs/commands/ListRestoreJobSummariesCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +42 -1
- package/dist-cjs/pagination/ListBackupJobSummariesPaginator.js +29 -0
- package/dist-cjs/pagination/ListCopyJobSummariesPaginator.js +29 -0
- package/dist-cjs/pagination/ListRestoreJobSummariesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +262 -3
- package/dist-es/Backup.js +6 -0
- package/dist-es/commands/ListBackupJobSummariesCommand.js +47 -0
- package/dist-es/commands/ListCopyJobSummariesCommand.js +47 -0
- package/dist-es/commands/ListRestoreJobSummariesCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +41 -0
- package/dist-es/pagination/ListBackupJobSummariesPaginator.js +25 -0
- package/dist-es/pagination/ListCopyJobSummariesPaginator.js +25 -0
- package/dist-es/pagination/ListRestoreJobSummariesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +252 -0
- package/dist-types/Backup.d.ts +21 -0
- package/dist-types/BackupClient.d.ts +5 -2
- package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -0
- package/dist-types/commands/DescribeCopyJobCommand.d.ts +1 -0
- package/dist-types/commands/ListBackupJobSummariesCommand.d.ts +106 -0
- package/dist-types/commands/ListBackupJobsCommand.d.ts +2 -0
- package/dist-types/commands/ListCopyJobSummariesCommand.d.ts +106 -0
- package/dist-types/commands/ListCopyJobsCommand.d.ts +2 -0
- package/dist-types/commands/ListRestoreJobSummariesCommand.d.ts +104 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +727 -0
- package/dist-types/pagination/ListBackupJobSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCopyJobSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRestoreJobSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/Backup.d.ts +51 -0
- package/dist-types/ts3.4/BackupClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ListBackupJobSummariesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCopyJobSummariesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRestoreJobSummariesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +123 -0
- package/dist-types/ts3.4/pagination/ListBackupJobSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCopyJobSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRestoreJobSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +35 -35
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_ListFrameworksCommand = exports.se_ListCopyJobSummariesCommand = exports.se_ListCopyJobsCommand = exports.se_ListBackupVaultsCommand = exports.se_ListBackupSelectionsCommand = exports.se_ListBackupPlanVersionsCommand = exports.se_ListBackupPlanTemplatesCommand = exports.se_ListBackupPlansCommand = exports.se_ListBackupJobSummariesCommand = exports.se_ListBackupJobsCommand = exports.se_GetSupportedResourceTypesCommand = exports.se_GetRecoveryPointRestoreMetadataCommand = exports.se_GetLegalHoldCommand = exports.se_GetBackupVaultNotificationsCommand = exports.se_GetBackupVaultAccessPolicyCommand = exports.se_GetBackupSelectionCommand = exports.se_GetBackupPlanFromTemplateCommand = exports.se_GetBackupPlanFromJSONCommand = exports.se_GetBackupPlanCommand = exports.se_ExportBackupPlanTemplateCommand = exports.se_DisassociateRecoveryPointFromParentCommand = exports.se_DisassociateRecoveryPointCommand = exports.se_DescribeRestoreJobCommand = exports.se_DescribeReportPlanCommand = exports.se_DescribeReportJobCommand = exports.se_DescribeRegionSettingsCommand = exports.se_DescribeRecoveryPointCommand = exports.se_DescribeProtectedResourceCommand = exports.se_DescribeGlobalSettingsCommand = exports.se_DescribeFrameworkCommand = exports.se_DescribeCopyJobCommand = exports.se_DescribeBackupVaultCommand = exports.se_DescribeBackupJobCommand = exports.se_DeleteReportPlanCommand = exports.se_DeleteRecoveryPointCommand = exports.se_DeleteFrameworkCommand = exports.se_DeleteBackupVaultNotificationsCommand = exports.se_DeleteBackupVaultLockConfigurationCommand = exports.se_DeleteBackupVaultAccessPolicyCommand = exports.se_DeleteBackupVaultCommand = exports.se_DeleteBackupSelectionCommand = exports.se_DeleteBackupPlanCommand = exports.se_CreateReportPlanCommand = exports.se_CreateLogicallyAirGappedBackupVaultCommand = exports.se_CreateLegalHoldCommand = exports.se_CreateFrameworkCommand = exports.se_CreateBackupVaultCommand = exports.se_CreateBackupSelectionCommand = exports.se_CreateBackupPlanCommand = exports.se_CancelLegalHoldCommand = void 0;
|
|
4
|
+
exports.de_DescribeProtectedResourceCommand = exports.de_DescribeGlobalSettingsCommand = exports.de_DescribeFrameworkCommand = exports.de_DescribeCopyJobCommand = exports.de_DescribeBackupVaultCommand = exports.de_DescribeBackupJobCommand = exports.de_DeleteReportPlanCommand = exports.de_DeleteRecoveryPointCommand = exports.de_DeleteFrameworkCommand = exports.de_DeleteBackupVaultNotificationsCommand = exports.de_DeleteBackupVaultLockConfigurationCommand = exports.de_DeleteBackupVaultAccessPolicyCommand = exports.de_DeleteBackupVaultCommand = exports.de_DeleteBackupSelectionCommand = exports.de_DeleteBackupPlanCommand = exports.de_CreateReportPlanCommand = exports.de_CreateLogicallyAirGappedBackupVaultCommand = exports.de_CreateLegalHoldCommand = exports.de_CreateFrameworkCommand = exports.de_CreateBackupVaultCommand = exports.de_CreateBackupSelectionCommand = exports.de_CreateBackupPlanCommand = exports.de_CancelLegalHoldCommand = exports.se_UpdateReportPlanCommand = exports.se_UpdateRegionSettingsCommand = exports.se_UpdateRecoveryPointLifecycleCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateFrameworkCommand = exports.se_UpdateBackupPlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBackupJobCommand = exports.se_StartRestoreJobCommand = exports.se_StartReportJobCommand = exports.se_StartCopyJobCommand = exports.se_StartBackupJobCommand = exports.se_PutBackupVaultNotificationsCommand = exports.se_PutBackupVaultLockConfigurationCommand = exports.se_PutBackupVaultAccessPolicyCommand = exports.se_ListTagsCommand = exports.se_ListRestoreJobSummariesCommand = exports.se_ListRestoreJobsCommand = exports.se_ListReportPlansCommand = exports.se_ListReportJobsCommand = exports.se_ListRecoveryPointsByResourceCommand = exports.se_ListRecoveryPointsByLegalHoldCommand = exports.se_ListRecoveryPointsByBackupVaultCommand = exports.se_ListProtectedResourcesByBackupVaultCommand = exports.se_ListProtectedResourcesCommand = exports.se_ListLegalHoldsCommand = void 0;
|
|
5
|
+
exports.de_UpdateFrameworkCommand = exports.de_UpdateBackupPlanCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBackupJobCommand = exports.de_StartRestoreJobCommand = exports.de_StartReportJobCommand = exports.de_StartCopyJobCommand = exports.de_StartBackupJobCommand = exports.de_PutBackupVaultNotificationsCommand = exports.de_PutBackupVaultLockConfigurationCommand = exports.de_PutBackupVaultAccessPolicyCommand = exports.de_ListTagsCommand = exports.de_ListRestoreJobSummariesCommand = exports.de_ListRestoreJobsCommand = exports.de_ListReportPlansCommand = exports.de_ListReportJobsCommand = exports.de_ListRecoveryPointsByResourceCommand = exports.de_ListRecoveryPointsByLegalHoldCommand = exports.de_ListRecoveryPointsByBackupVaultCommand = exports.de_ListProtectedResourcesByBackupVaultCommand = exports.de_ListProtectedResourcesCommand = exports.de_ListLegalHoldsCommand = exports.de_ListFrameworksCommand = exports.de_ListCopyJobSummariesCommand = exports.de_ListCopyJobsCommand = exports.de_ListBackupVaultsCommand = exports.de_ListBackupSelectionsCommand = exports.de_ListBackupPlanVersionsCommand = exports.de_ListBackupPlanTemplatesCommand = exports.de_ListBackupPlansCommand = exports.de_ListBackupJobSummariesCommand = exports.de_ListBackupJobsCommand = exports.de_GetSupportedResourceTypesCommand = exports.de_GetRecoveryPointRestoreMetadataCommand = exports.de_GetLegalHoldCommand = exports.de_GetBackupVaultNotificationsCommand = exports.de_GetBackupVaultAccessPolicyCommand = exports.de_GetBackupSelectionCommand = exports.de_GetBackupPlanFromTemplateCommand = exports.de_GetBackupPlanFromJSONCommand = exports.de_GetBackupPlanCommand = exports.de_ExportBackupPlanTemplateCommand = exports.de_DisassociateRecoveryPointFromParentCommand = exports.de_DisassociateRecoveryPointCommand = exports.de_DescribeRestoreJobCommand = exports.de_DescribeReportPlanCommand = exports.de_DescribeReportJobCommand = exports.de_DescribeRegionSettingsCommand = exports.de_DescribeRecoveryPointCommand = void 0;
|
|
6
|
+
exports.de_UpdateReportPlanCommand = exports.de_UpdateRegionSettingsCommand = exports.de_UpdateRecoveryPointLifecycleCommand = exports.de_UpdateGlobalSettingsCommand = void 0;
|
|
6
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
9
|
const uuid_1 = require("uuid");
|
|
@@ -821,6 +822,7 @@ const se_ListBackupJobsCommand = async (input, context) => {
|
|
|
821
822
|
() => (input.ByCompleteBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
822
823
|
],
|
|
823
824
|
parentJobId: [, input.ByParentJobId],
|
|
825
|
+
messageCategory: [, input.ByMessageCategory],
|
|
824
826
|
});
|
|
825
827
|
let body;
|
|
826
828
|
return new protocol_http_1.HttpRequest({
|
|
@@ -835,6 +837,32 @@ const se_ListBackupJobsCommand = async (input, context) => {
|
|
|
835
837
|
});
|
|
836
838
|
};
|
|
837
839
|
exports.se_ListBackupJobsCommand = se_ListBackupJobsCommand;
|
|
840
|
+
const se_ListBackupJobSummariesCommand = async (input, context) => {
|
|
841
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
842
|
+
const headers = {};
|
|
843
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/backup-job-summaries";
|
|
844
|
+
const query = (0, smithy_client_1.map)({
|
|
845
|
+
AccountId: [, input.AccountId],
|
|
846
|
+
State: [, input.State],
|
|
847
|
+
ResourceType: [, input.ResourceType],
|
|
848
|
+
MessageCategory: [, input.MessageCategory],
|
|
849
|
+
AggregationPeriod: [, input.AggregationPeriod],
|
|
850
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
851
|
+
NextToken: [, input.NextToken],
|
|
852
|
+
});
|
|
853
|
+
let body;
|
|
854
|
+
return new protocol_http_1.HttpRequest({
|
|
855
|
+
protocol,
|
|
856
|
+
hostname,
|
|
857
|
+
port,
|
|
858
|
+
method: "GET",
|
|
859
|
+
headers,
|
|
860
|
+
path: resolvedPath,
|
|
861
|
+
query,
|
|
862
|
+
body,
|
|
863
|
+
});
|
|
864
|
+
};
|
|
865
|
+
exports.se_ListBackupJobSummariesCommand = se_ListBackupJobSummariesCommand;
|
|
838
866
|
const se_ListBackupPlansCommand = async (input, context) => {
|
|
839
867
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
840
868
|
const headers = {};
|
|
@@ -974,6 +1002,7 @@ const se_ListCopyJobsCommand = async (input, context) => {
|
|
|
974
1002
|
() => (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
975
1003
|
],
|
|
976
1004
|
parentJobId: [, input.ByParentJobId],
|
|
1005
|
+
messageCategory: [, input.ByMessageCategory],
|
|
977
1006
|
});
|
|
978
1007
|
let body;
|
|
979
1008
|
return new protocol_http_1.HttpRequest({
|
|
@@ -988,6 +1017,32 @@ const se_ListCopyJobsCommand = async (input, context) => {
|
|
|
988
1017
|
});
|
|
989
1018
|
};
|
|
990
1019
|
exports.se_ListCopyJobsCommand = se_ListCopyJobsCommand;
|
|
1020
|
+
const se_ListCopyJobSummariesCommand = async (input, context) => {
|
|
1021
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1022
|
+
const headers = {};
|
|
1023
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/copy-job-summaries";
|
|
1024
|
+
const query = (0, smithy_client_1.map)({
|
|
1025
|
+
AccountId: [, input.AccountId],
|
|
1026
|
+
State: [, input.State],
|
|
1027
|
+
ResourceType: [, input.ResourceType],
|
|
1028
|
+
MessageCategory: [, input.MessageCategory],
|
|
1029
|
+
AggregationPeriod: [, input.AggregationPeriod],
|
|
1030
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1031
|
+
NextToken: [, input.NextToken],
|
|
1032
|
+
});
|
|
1033
|
+
let body;
|
|
1034
|
+
return new protocol_http_1.HttpRequest({
|
|
1035
|
+
protocol,
|
|
1036
|
+
hostname,
|
|
1037
|
+
port,
|
|
1038
|
+
method: "GET",
|
|
1039
|
+
headers,
|
|
1040
|
+
path: resolvedPath,
|
|
1041
|
+
query,
|
|
1042
|
+
body,
|
|
1043
|
+
});
|
|
1044
|
+
};
|
|
1045
|
+
exports.se_ListCopyJobSummariesCommand = se_ListCopyJobSummariesCommand;
|
|
991
1046
|
const se_ListFrameworksCommand = async (input, context) => {
|
|
992
1047
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
993
1048
|
const headers = {};
|
|
@@ -1247,6 +1302,31 @@ const se_ListRestoreJobsCommand = async (input, context) => {
|
|
|
1247
1302
|
});
|
|
1248
1303
|
};
|
|
1249
1304
|
exports.se_ListRestoreJobsCommand = se_ListRestoreJobsCommand;
|
|
1305
|
+
const se_ListRestoreJobSummariesCommand = async (input, context) => {
|
|
1306
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1307
|
+
const headers = {};
|
|
1308
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/restore-job-summaries";
|
|
1309
|
+
const query = (0, smithy_client_1.map)({
|
|
1310
|
+
AccountId: [, input.AccountId],
|
|
1311
|
+
State: [, input.State],
|
|
1312
|
+
ResourceType: [, input.ResourceType],
|
|
1313
|
+
AggregationPeriod: [, input.AggregationPeriod],
|
|
1314
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1315
|
+
NextToken: [, input.NextToken],
|
|
1316
|
+
});
|
|
1317
|
+
let body;
|
|
1318
|
+
return new protocol_http_1.HttpRequest({
|
|
1319
|
+
protocol,
|
|
1320
|
+
hostname,
|
|
1321
|
+
port,
|
|
1322
|
+
method: "GET",
|
|
1323
|
+
headers,
|
|
1324
|
+
path: resolvedPath,
|
|
1325
|
+
query,
|
|
1326
|
+
body,
|
|
1327
|
+
});
|
|
1328
|
+
};
|
|
1329
|
+
exports.se_ListRestoreJobSummariesCommand = se_ListRestoreJobSummariesCommand;
|
|
1250
1330
|
const se_ListTagsCommand = async (input, context) => {
|
|
1251
1331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1252
1332
|
const headers = {};
|
|
@@ -2430,6 +2510,7 @@ const de_DescribeBackupJobCommand = async (output, context) => {
|
|
|
2430
2510
|
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2431
2511
|
IamRoleArn: smithy_client_1.expectString,
|
|
2432
2512
|
IsParent: smithy_client_1.expectBoolean,
|
|
2513
|
+
MessageCategory: smithy_client_1.expectString,
|
|
2433
2514
|
NumberOfChildJobs: smithy_client_1.expectLong,
|
|
2434
2515
|
ParentJobId: smithy_client_1.expectString,
|
|
2435
2516
|
PercentDone: smithy_client_1.expectString,
|
|
@@ -3524,6 +3605,45 @@ const de_ListBackupJobsCommandError = async (output, context) => {
|
|
|
3524
3605
|
});
|
|
3525
3606
|
}
|
|
3526
3607
|
};
|
|
3608
|
+
const de_ListBackupJobSummariesCommand = async (output, context) => {
|
|
3609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3610
|
+
return de_ListBackupJobSummariesCommandError(output, context);
|
|
3611
|
+
}
|
|
3612
|
+
const contents = (0, smithy_client_1.map)({
|
|
3613
|
+
$metadata: deserializeMetadata(output),
|
|
3614
|
+
});
|
|
3615
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3616
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3617
|
+
AggregationPeriod: smithy_client_1.expectString,
|
|
3618
|
+
BackupJobSummaries: (_) => de_BackupJobSummaryList(_, context),
|
|
3619
|
+
NextToken: smithy_client_1.expectString,
|
|
3620
|
+
});
|
|
3621
|
+
Object.assign(contents, doc);
|
|
3622
|
+
return contents;
|
|
3623
|
+
};
|
|
3624
|
+
exports.de_ListBackupJobSummariesCommand = de_ListBackupJobSummariesCommand;
|
|
3625
|
+
const de_ListBackupJobSummariesCommandError = async (output, context) => {
|
|
3626
|
+
const parsedOutput = {
|
|
3627
|
+
...output,
|
|
3628
|
+
body: await parseErrorBody(output.body, context),
|
|
3629
|
+
};
|
|
3630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
+
switch (errorCode) {
|
|
3632
|
+
case "InvalidParameterValueException":
|
|
3633
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3634
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3635
|
+
case "ServiceUnavailableException":
|
|
3636
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3637
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3638
|
+
default:
|
|
3639
|
+
const parsedBody = parsedOutput.body;
|
|
3640
|
+
return throwDefaultError({
|
|
3641
|
+
output,
|
|
3642
|
+
parsedBody,
|
|
3643
|
+
errorCode,
|
|
3644
|
+
});
|
|
3645
|
+
}
|
|
3646
|
+
};
|
|
3527
3647
|
const de_ListBackupPlansCommand = async (output, context) => {
|
|
3528
3648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3529
3649
|
return de_ListBackupPlansCommandError(output, context);
|
|
@@ -3782,6 +3902,45 @@ const de_ListCopyJobsCommandError = async (output, context) => {
|
|
|
3782
3902
|
});
|
|
3783
3903
|
}
|
|
3784
3904
|
};
|
|
3905
|
+
const de_ListCopyJobSummariesCommand = async (output, context) => {
|
|
3906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3907
|
+
return de_ListCopyJobSummariesCommandError(output, context);
|
|
3908
|
+
}
|
|
3909
|
+
const contents = (0, smithy_client_1.map)({
|
|
3910
|
+
$metadata: deserializeMetadata(output),
|
|
3911
|
+
});
|
|
3912
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3913
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3914
|
+
AggregationPeriod: smithy_client_1.expectString,
|
|
3915
|
+
CopyJobSummaries: (_) => de_CopyJobSummaryList(_, context),
|
|
3916
|
+
NextToken: smithy_client_1.expectString,
|
|
3917
|
+
});
|
|
3918
|
+
Object.assign(contents, doc);
|
|
3919
|
+
return contents;
|
|
3920
|
+
};
|
|
3921
|
+
exports.de_ListCopyJobSummariesCommand = de_ListCopyJobSummariesCommand;
|
|
3922
|
+
const de_ListCopyJobSummariesCommandError = async (output, context) => {
|
|
3923
|
+
const parsedOutput = {
|
|
3924
|
+
...output,
|
|
3925
|
+
body: await parseErrorBody(output.body, context),
|
|
3926
|
+
};
|
|
3927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3928
|
+
switch (errorCode) {
|
|
3929
|
+
case "InvalidParameterValueException":
|
|
3930
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3931
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3932
|
+
case "ServiceUnavailableException":
|
|
3933
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3934
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3935
|
+
default:
|
|
3936
|
+
const parsedBody = parsedOutput.body;
|
|
3937
|
+
return throwDefaultError({
|
|
3938
|
+
output,
|
|
3939
|
+
parsedBody,
|
|
3940
|
+
errorCode,
|
|
3941
|
+
});
|
|
3942
|
+
}
|
|
3943
|
+
};
|
|
3785
3944
|
const de_ListFrameworksCommand = async (output, context) => {
|
|
3786
3945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3787
3946
|
return de_ListFrameworksCommandError(output, context);
|
|
@@ -4189,6 +4348,45 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
|
|
|
4189
4348
|
});
|
|
4190
4349
|
}
|
|
4191
4350
|
};
|
|
4351
|
+
const de_ListRestoreJobSummariesCommand = async (output, context) => {
|
|
4352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4353
|
+
return de_ListRestoreJobSummariesCommandError(output, context);
|
|
4354
|
+
}
|
|
4355
|
+
const contents = (0, smithy_client_1.map)({
|
|
4356
|
+
$metadata: deserializeMetadata(output),
|
|
4357
|
+
});
|
|
4358
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4359
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4360
|
+
AggregationPeriod: smithy_client_1.expectString,
|
|
4361
|
+
NextToken: smithy_client_1.expectString,
|
|
4362
|
+
RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
|
|
4363
|
+
});
|
|
4364
|
+
Object.assign(contents, doc);
|
|
4365
|
+
return contents;
|
|
4366
|
+
};
|
|
4367
|
+
exports.de_ListRestoreJobSummariesCommand = de_ListRestoreJobSummariesCommand;
|
|
4368
|
+
const de_ListRestoreJobSummariesCommandError = async (output, context) => {
|
|
4369
|
+
const parsedOutput = {
|
|
4370
|
+
...output,
|
|
4371
|
+
body: await parseErrorBody(output.body, context),
|
|
4372
|
+
};
|
|
4373
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4374
|
+
switch (errorCode) {
|
|
4375
|
+
case "InvalidParameterValueException":
|
|
4376
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4377
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4378
|
+
case "ServiceUnavailableException":
|
|
4379
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4380
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4381
|
+
default:
|
|
4382
|
+
const parsedBody = parsedOutput.body;
|
|
4383
|
+
return throwDefaultError({
|
|
4384
|
+
output,
|
|
4385
|
+
parsedBody,
|
|
4386
|
+
errorCode,
|
|
4387
|
+
});
|
|
4388
|
+
}
|
|
4389
|
+
};
|
|
4192
4390
|
const de_ListTagsCommand = async (output, context) => {
|
|
4193
4391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4194
4392
|
return de_ListTagsCommandError(output, context);
|
|
@@ -5133,6 +5331,7 @@ const de_BackupJob = (output, context) => {
|
|
|
5133
5331
|
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5134
5332
|
IamRoleArn: smithy_client_1.expectString,
|
|
5135
5333
|
IsParent: smithy_client_1.expectBoolean,
|
|
5334
|
+
MessageCategory: smithy_client_1.expectString,
|
|
5136
5335
|
ParentJobId: smithy_client_1.expectString,
|
|
5137
5336
|
PercentDone: smithy_client_1.expectString,
|
|
5138
5337
|
RecoveryPointArn: smithy_client_1.expectString,
|
|
@@ -5152,6 +5351,26 @@ const de_BackupJobsList = (output, context) => {
|
|
|
5152
5351
|
});
|
|
5153
5352
|
return retVal;
|
|
5154
5353
|
};
|
|
5354
|
+
const de_BackupJobSummary = (output, context) => {
|
|
5355
|
+
return (0, smithy_client_1.take)(output, {
|
|
5356
|
+
AccountId: smithy_client_1.expectString,
|
|
5357
|
+
Count: smithy_client_1.expectInt32,
|
|
5358
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5359
|
+
MessageCategory: smithy_client_1.expectString,
|
|
5360
|
+
Region: smithy_client_1.expectString,
|
|
5361
|
+
ResourceType: smithy_client_1.expectString,
|
|
5362
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5363
|
+
State: smithy_client_1.expectString,
|
|
5364
|
+
});
|
|
5365
|
+
};
|
|
5366
|
+
const de_BackupJobSummaryList = (output, context) => {
|
|
5367
|
+
const retVal = (output || [])
|
|
5368
|
+
.filter((e) => e != null)
|
|
5369
|
+
.map((entry) => {
|
|
5370
|
+
return de_BackupJobSummary(entry, context);
|
|
5371
|
+
});
|
|
5372
|
+
return retVal;
|
|
5373
|
+
};
|
|
5155
5374
|
const de_BackupPlansList = (output, context) => {
|
|
5156
5375
|
const retVal = (output || [])
|
|
5157
5376
|
.filter((e) => e != null)
|
|
@@ -5241,6 +5460,7 @@ const de_CopyJob = (output, context) => {
|
|
|
5241
5460
|
DestinationRecoveryPointArn: smithy_client_1.expectString,
|
|
5242
5461
|
IamRoleArn: smithy_client_1.expectString,
|
|
5243
5462
|
IsParent: smithy_client_1.expectBoolean,
|
|
5463
|
+
MessageCategory: smithy_client_1.expectString,
|
|
5244
5464
|
NumberOfChildJobs: smithy_client_1.expectLong,
|
|
5245
5465
|
ParentJobId: smithy_client_1.expectString,
|
|
5246
5466
|
ResourceArn: smithy_client_1.expectString,
|
|
@@ -5260,6 +5480,26 @@ const de_CopyJobsList = (output, context) => {
|
|
|
5260
5480
|
});
|
|
5261
5481
|
return retVal;
|
|
5262
5482
|
};
|
|
5483
|
+
const de_CopyJobSummary = (output, context) => {
|
|
5484
|
+
return (0, smithy_client_1.take)(output, {
|
|
5485
|
+
AccountId: smithy_client_1.expectString,
|
|
5486
|
+
Count: smithy_client_1.expectInt32,
|
|
5487
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5488
|
+
MessageCategory: smithy_client_1.expectString,
|
|
5489
|
+
Region: smithy_client_1.expectString,
|
|
5490
|
+
ResourceType: smithy_client_1.expectString,
|
|
5491
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5492
|
+
State: smithy_client_1.expectString,
|
|
5493
|
+
});
|
|
5494
|
+
};
|
|
5495
|
+
const de_CopyJobSummaryList = (output, context) => {
|
|
5496
|
+
const retVal = (output || [])
|
|
5497
|
+
.filter((e) => e != null)
|
|
5498
|
+
.map((entry) => {
|
|
5499
|
+
return de_CopyJobSummary(entry, context);
|
|
5500
|
+
});
|
|
5501
|
+
return retVal;
|
|
5502
|
+
};
|
|
5263
5503
|
const de_DateRange = (output, context) => {
|
|
5264
5504
|
return (0, smithy_client_1.take)(output, {
|
|
5265
5505
|
FromDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -5448,6 +5688,25 @@ const de_RestoreJobsListMember = (output, context) => {
|
|
|
5448
5688
|
StatusMessage: smithy_client_1.expectString,
|
|
5449
5689
|
});
|
|
5450
5690
|
};
|
|
5691
|
+
const de_RestoreJobSummary = (output, context) => {
|
|
5692
|
+
return (0, smithy_client_1.take)(output, {
|
|
5693
|
+
AccountId: smithy_client_1.expectString,
|
|
5694
|
+
Count: smithy_client_1.expectInt32,
|
|
5695
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5696
|
+
Region: smithy_client_1.expectString,
|
|
5697
|
+
ResourceType: smithy_client_1.expectString,
|
|
5698
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5699
|
+
State: smithy_client_1.expectString,
|
|
5700
|
+
});
|
|
5701
|
+
};
|
|
5702
|
+
const de_RestoreJobSummaryList = (output, context) => {
|
|
5703
|
+
const retVal = (output || [])
|
|
5704
|
+
.filter((e) => e != null)
|
|
5705
|
+
.map((entry) => {
|
|
5706
|
+
return de_RestoreJobSummary(entry, context);
|
|
5707
|
+
});
|
|
5708
|
+
return retVal;
|
|
5709
|
+
};
|
|
5451
5710
|
const deserializeMetadata = (output) => ({
|
|
5452
5711
|
httpStatusCode: output.statusCode,
|
|
5453
5712
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Backup.js
CHANGED
|
@@ -41,12 +41,14 @@ import { GetLegalHoldCommand, } from "./commands/GetLegalHoldCommand";
|
|
|
41
41
|
import { GetRecoveryPointRestoreMetadataCommand, } from "./commands/GetRecoveryPointRestoreMetadataCommand";
|
|
42
42
|
import { GetSupportedResourceTypesCommand, } from "./commands/GetSupportedResourceTypesCommand";
|
|
43
43
|
import { ListBackupJobsCommand, } from "./commands/ListBackupJobsCommand";
|
|
44
|
+
import { ListBackupJobSummariesCommand, } from "./commands/ListBackupJobSummariesCommand";
|
|
44
45
|
import { ListBackupPlansCommand, } from "./commands/ListBackupPlansCommand";
|
|
45
46
|
import { ListBackupPlanTemplatesCommand, } from "./commands/ListBackupPlanTemplatesCommand";
|
|
46
47
|
import { ListBackupPlanVersionsCommand, } from "./commands/ListBackupPlanVersionsCommand";
|
|
47
48
|
import { ListBackupSelectionsCommand, } from "./commands/ListBackupSelectionsCommand";
|
|
48
49
|
import { ListBackupVaultsCommand, } from "./commands/ListBackupVaultsCommand";
|
|
49
50
|
import { ListCopyJobsCommand, } from "./commands/ListCopyJobsCommand";
|
|
51
|
+
import { ListCopyJobSummariesCommand, } from "./commands/ListCopyJobSummariesCommand";
|
|
50
52
|
import { ListFrameworksCommand, } from "./commands/ListFrameworksCommand";
|
|
51
53
|
import { ListLegalHoldsCommand, } from "./commands/ListLegalHoldsCommand";
|
|
52
54
|
import { ListProtectedResourcesByBackupVaultCommand, } from "./commands/ListProtectedResourcesByBackupVaultCommand";
|
|
@@ -57,6 +59,7 @@ import { ListRecoveryPointsByResourceCommand, } from "./commands/ListRecoveryPoi
|
|
|
57
59
|
import { ListReportJobsCommand, } from "./commands/ListReportJobsCommand";
|
|
58
60
|
import { ListReportPlansCommand, } from "./commands/ListReportPlansCommand";
|
|
59
61
|
import { ListRestoreJobsCommand, } from "./commands/ListRestoreJobsCommand";
|
|
62
|
+
import { ListRestoreJobSummariesCommand, } from "./commands/ListRestoreJobSummariesCommand";
|
|
60
63
|
import { ListTagsCommand } from "./commands/ListTagsCommand";
|
|
61
64
|
import { PutBackupVaultAccessPolicyCommand, } from "./commands/PutBackupVaultAccessPolicyCommand";
|
|
62
65
|
import { PutBackupVaultLockConfigurationCommand, } from "./commands/PutBackupVaultLockConfigurationCommand";
|
|
@@ -116,12 +119,14 @@ const commands = {
|
|
|
116
119
|
GetRecoveryPointRestoreMetadataCommand,
|
|
117
120
|
GetSupportedResourceTypesCommand,
|
|
118
121
|
ListBackupJobsCommand,
|
|
122
|
+
ListBackupJobSummariesCommand,
|
|
119
123
|
ListBackupPlansCommand,
|
|
120
124
|
ListBackupPlanTemplatesCommand,
|
|
121
125
|
ListBackupPlanVersionsCommand,
|
|
122
126
|
ListBackupSelectionsCommand,
|
|
123
127
|
ListBackupVaultsCommand,
|
|
124
128
|
ListCopyJobsCommand,
|
|
129
|
+
ListCopyJobSummariesCommand,
|
|
125
130
|
ListFrameworksCommand,
|
|
126
131
|
ListLegalHoldsCommand,
|
|
127
132
|
ListProtectedResourcesCommand,
|
|
@@ -132,6 +137,7 @@ const commands = {
|
|
|
132
137
|
ListReportJobsCommand,
|
|
133
138
|
ListReportPlansCommand,
|
|
134
139
|
ListRestoreJobsCommand,
|
|
140
|
+
ListRestoreJobSummariesCommand,
|
|
135
141
|
ListTagsCommand,
|
|
136
142
|
PutBackupVaultAccessPolicyCommand,
|
|
137
143
|
PutBackupVaultLockConfigurationCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListBackupJobSummariesCommand, se_ListBackupJobSummariesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListBackupJobSummariesCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListBackupJobSummariesCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "BackupClient";
|
|
26
|
+
const commandName = "ListBackupJobSummariesCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "CryoControllerUserManager",
|
|
35
|
+
operation: "ListBackupJobSummaries",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListBackupJobSummariesCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListBackupJobSummariesCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListCopyJobSummariesCommand, se_ListCopyJobSummariesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCopyJobSummariesCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListCopyJobSummariesCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "BackupClient";
|
|
26
|
+
const commandName = "ListCopyJobSummariesCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "CryoControllerUserManager",
|
|
35
|
+
operation: "ListCopyJobSummaries",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListCopyJobSummariesCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListCopyJobSummariesCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListRestoreJobSummariesCommand, se_ListRestoreJobSummariesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListRestoreJobSummariesCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListRestoreJobSummariesCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "BackupClient";
|
|
26
|
+
const commandName = "ListRestoreJobSummariesCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "CryoControllerUserManager",
|
|
35
|
+
operation: "ListRestoreJobSummaries",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListRestoreJobSummariesCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListRestoreJobSummariesCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -38,12 +38,14 @@ export * from "./GetBackupVaultNotificationsCommand";
|
|
|
38
38
|
export * from "./GetLegalHoldCommand";
|
|
39
39
|
export * from "./GetRecoveryPointRestoreMetadataCommand";
|
|
40
40
|
export * from "./GetSupportedResourceTypesCommand";
|
|
41
|
+
export * from "./ListBackupJobSummariesCommand";
|
|
41
42
|
export * from "./ListBackupJobsCommand";
|
|
42
43
|
export * from "./ListBackupPlanTemplatesCommand";
|
|
43
44
|
export * from "./ListBackupPlanVersionsCommand";
|
|
44
45
|
export * from "./ListBackupPlansCommand";
|
|
45
46
|
export * from "./ListBackupSelectionsCommand";
|
|
46
47
|
export * from "./ListBackupVaultsCommand";
|
|
48
|
+
export * from "./ListCopyJobSummariesCommand";
|
|
47
49
|
export * from "./ListCopyJobsCommand";
|
|
48
50
|
export * from "./ListFrameworksCommand";
|
|
49
51
|
export * from "./ListLegalHoldsCommand";
|
|
@@ -54,6 +56,7 @@ export * from "./ListRecoveryPointsByLegalHoldCommand";
|
|
|
54
56
|
export * from "./ListRecoveryPointsByResourceCommand";
|
|
55
57
|
export * from "./ListReportJobsCommand";
|
|
56
58
|
export * from "./ListReportPlansCommand";
|
|
59
|
+
export * from "./ListRestoreJobSummariesCommand";
|
|
57
60
|
export * from "./ListRestoreJobsCommand";
|
|
58
61
|
export * from "./ListTagsCommand";
|
|
59
62
|
export * from "./PutBackupVaultAccessPolicyCommand";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { BackupServiceException as __BaseException } from "./BackupServiceException";
|
|
3
|
+
export const AggregationPeriod = {
|
|
4
|
+
FOURTEEN_DAYS: "FOURTEEN_DAYS",
|
|
5
|
+
ONE_DAY: "ONE_DAY",
|
|
6
|
+
SEVEN_DAYS: "SEVEN_DAYS",
|
|
7
|
+
};
|
|
3
8
|
export class AlreadyExistsException extends __BaseException {
|
|
4
9
|
constructor(opts) {
|
|
5
10
|
super({
|
|
@@ -29,6 +34,19 @@ export const BackupJobState = {
|
|
|
29
34
|
PENDING: "PENDING",
|
|
30
35
|
RUNNING: "RUNNING",
|
|
31
36
|
};
|
|
37
|
+
export const BackupJobStatus = {
|
|
38
|
+
ABORTED: "ABORTED",
|
|
39
|
+
ABORTING: "ABORTING",
|
|
40
|
+
AGGREGATE_ALL: "AGGREGATE_ALL",
|
|
41
|
+
ANY: "ANY",
|
|
42
|
+
COMPLETED: "COMPLETED",
|
|
43
|
+
CREATED: "CREATED",
|
|
44
|
+
EXPIRED: "EXPIRED",
|
|
45
|
+
FAILED: "FAILED",
|
|
46
|
+
PARTIAL: "PARTIAL",
|
|
47
|
+
PENDING: "PENDING",
|
|
48
|
+
RUNNING: "RUNNING",
|
|
49
|
+
};
|
|
32
50
|
export const ConditionType = {
|
|
33
51
|
STRINGEQUALS: "STRINGEQUALS",
|
|
34
52
|
};
|
|
@@ -154,6 +172,19 @@ export const CopyJobState = {
|
|
|
154
172
|
PARTIAL: "PARTIAL",
|
|
155
173
|
RUNNING: "RUNNING",
|
|
156
174
|
};
|
|
175
|
+
export const CopyJobStatus = {
|
|
176
|
+
ABORTED: "ABORTED",
|
|
177
|
+
ABORTING: "ABORTING",
|
|
178
|
+
AGGREGATE_ALL: "AGGREGATE_ALL",
|
|
179
|
+
ANY: "ANY",
|
|
180
|
+
COMPLETED: "COMPLETED",
|
|
181
|
+
COMPLETING: "COMPLETING",
|
|
182
|
+
CREATED: "CREATED",
|
|
183
|
+
FAILED: "FAILED",
|
|
184
|
+
FAILING: "FAILING",
|
|
185
|
+
PARTIAL: "PARTIAL",
|
|
186
|
+
RUNNING: "RUNNING",
|
|
187
|
+
};
|
|
157
188
|
export class LimitExceededException extends __BaseException {
|
|
158
189
|
constructor(opts) {
|
|
159
190
|
super({
|
|
@@ -235,6 +266,16 @@ export const RestoreJobStatus = {
|
|
|
235
266
|
PENDING: "PENDING",
|
|
236
267
|
RUNNING: "RUNNING",
|
|
237
268
|
};
|
|
269
|
+
export const RestoreJobState = {
|
|
270
|
+
ABORTED: "ABORTED",
|
|
271
|
+
AGGREGATE_ALL: "AGGREGATE_ALL",
|
|
272
|
+
ANY: "ANY",
|
|
273
|
+
COMPLETED: "COMPLETED",
|
|
274
|
+
CREATED: "CREATED",
|
|
275
|
+
FAILED: "FAILED",
|
|
276
|
+
PENDING: "PENDING",
|
|
277
|
+
RUNNING: "RUNNING",
|
|
278
|
+
};
|
|
238
279
|
export const BackupRuleFilterSensitiveLog = (obj) => ({
|
|
239
280
|
...obj,
|
|
240
281
|
...(obj.RecoveryPointTags && { RecoveryPointTags: SENSITIVE_STRING }),
|