@aws-sdk/client-backup 3.450.0 → 3.451.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.
Files changed (52) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/Backup.js +6 -0
  3. package/dist-cjs/commands/ListBackupJobSummariesCommand.js +51 -0
  4. package/dist-cjs/commands/ListCopyJobSummariesCommand.js +51 -0
  5. package/dist-cjs/commands/ListRestoreJobSummariesCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +42 -1
  8. package/dist-cjs/pagination/ListBackupJobSummariesPaginator.js +29 -0
  9. package/dist-cjs/pagination/ListCopyJobSummariesPaginator.js +29 -0
  10. package/dist-cjs/pagination/ListRestoreJobSummariesPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +3 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +262 -3
  13. package/dist-es/Backup.js +6 -0
  14. package/dist-es/commands/ListBackupJobSummariesCommand.js +47 -0
  15. package/dist-es/commands/ListCopyJobSummariesCommand.js +47 -0
  16. package/dist-es/commands/ListRestoreJobSummariesCommand.js +47 -0
  17. package/dist-es/commands/index.js +3 -0
  18. package/dist-es/models/models_0.js +41 -0
  19. package/dist-es/pagination/ListBackupJobSummariesPaginator.js +25 -0
  20. package/dist-es/pagination/ListCopyJobSummariesPaginator.js +25 -0
  21. package/dist-es/pagination/ListRestoreJobSummariesPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +3 -0
  23. package/dist-es/protocols/Aws_restJson1.js +252 -0
  24. package/dist-types/Backup.d.ts +21 -0
  25. package/dist-types/BackupClient.d.ts +5 -2
  26. package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -0
  27. package/dist-types/commands/DescribeCopyJobCommand.d.ts +1 -0
  28. package/dist-types/commands/ListBackupJobSummariesCommand.d.ts +106 -0
  29. package/dist-types/commands/ListBackupJobsCommand.d.ts +2 -0
  30. package/dist-types/commands/ListCopyJobSummariesCommand.d.ts +106 -0
  31. package/dist-types/commands/ListCopyJobsCommand.d.ts +2 -0
  32. package/dist-types/commands/ListRestoreJobSummariesCommand.d.ts +104 -0
  33. package/dist-types/commands/index.d.ts +3 -0
  34. package/dist-types/models/models_0.d.ts +727 -0
  35. package/dist-types/pagination/ListBackupJobSummariesPaginator.d.ts +7 -0
  36. package/dist-types/pagination/ListCopyJobSummariesPaginator.d.ts +7 -0
  37. package/dist-types/pagination/ListRestoreJobSummariesPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +3 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  40. package/dist-types/ts3.4/Backup.d.ts +51 -0
  41. package/dist-types/ts3.4/BackupClient.d.ts +18 -0
  42. package/dist-types/ts3.4/commands/ListBackupJobSummariesCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/ListCopyJobSummariesCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/ListRestoreJobSummariesCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +123 -0
  47. package/dist-types/ts3.4/pagination/ListBackupJobSummariesPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/ListCopyJobSummariesPaginator.d.ts +11 -0
  49. package/dist-types/ts3.4/pagination/ListRestoreJobSummariesPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  52. package/package.json +35 -35
@@ -0,0 +1,25 @@
1
+ import { BackupClient } from "../BackupClient";
2
+ import { ListBackupJobSummariesCommand, } from "../commands/ListBackupJobSummariesCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListBackupJobSummariesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListBackupJobSummaries(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BackupClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Backup | BackupClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { BackupClient } from "../BackupClient";
2
+ import { ListCopyJobSummariesCommand, } from "../commands/ListCopyJobSummariesCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListCopyJobSummariesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListCopyJobSummaries(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BackupClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Backup | BackupClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { BackupClient } from "../BackupClient";
2
+ import { ListRestoreJobSummariesCommand, } from "../commands/ListRestoreJobSummariesCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListRestoreJobSummariesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListRestoreJobSummaries(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof BackupClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Backup | BackupClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,10 +1,12 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListBackupJobSummariesPaginator";
2
3
  export * from "./ListBackupJobsPaginator";
3
4
  export * from "./ListBackupPlanTemplatesPaginator";
4
5
  export * from "./ListBackupPlanVersionsPaginator";
5
6
  export * from "./ListBackupPlansPaginator";
6
7
  export * from "./ListBackupSelectionsPaginator";
7
8
  export * from "./ListBackupVaultsPaginator";
9
+ export * from "./ListCopyJobSummariesPaginator";
8
10
  export * from "./ListCopyJobsPaginator";
9
11
  export * from "./ListFrameworksPaginator";
10
12
  export * from "./ListLegalHoldsPaginator";
@@ -15,5 +17,6 @@ export * from "./ListRecoveryPointsByLegalHoldPaginator";
15
17
  export * from "./ListRecoveryPointsByResourcePaginator";
16
18
  export * from "./ListReportJobsPaginator";
17
19
  export * from "./ListReportPlansPaginator";
20
+ export * from "./ListRestoreJobSummariesPaginator";
18
21
  export * from "./ListRestoreJobsPaginator";
19
22
  export * from "./ListTagsPaginator";
@@ -776,6 +776,32 @@ export const se_ListBackupJobsCommand = async (input, context) => {
776
776
  () => (input.ByCompleteBefore.toISOString().split(".")[0] + "Z").toString(),
777
777
  ],
778
778
  parentJobId: [, input.ByParentJobId],
779
+ messageCategory: [, input.ByMessageCategory],
780
+ });
781
+ let body;
782
+ return new __HttpRequest({
783
+ protocol,
784
+ hostname,
785
+ port,
786
+ method: "GET",
787
+ headers,
788
+ path: resolvedPath,
789
+ query,
790
+ body,
791
+ });
792
+ };
793
+ export const se_ListBackupJobSummariesCommand = async (input, context) => {
794
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
795
+ const headers = {};
796
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/backup-job-summaries";
797
+ const query = map({
798
+ AccountId: [, input.AccountId],
799
+ State: [, input.State],
800
+ ResourceType: [, input.ResourceType],
801
+ MessageCategory: [, input.MessageCategory],
802
+ AggregationPeriod: [, input.AggregationPeriod],
803
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
804
+ NextToken: [, input.NextToken],
779
805
  });
780
806
  let body;
781
807
  return new __HttpRequest({
@@ -923,6 +949,32 @@ export const se_ListCopyJobsCommand = async (input, context) => {
923
949
  () => (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
924
950
  ],
925
951
  parentJobId: [, input.ByParentJobId],
952
+ messageCategory: [, input.ByMessageCategory],
953
+ });
954
+ let body;
955
+ return new __HttpRequest({
956
+ protocol,
957
+ hostname,
958
+ port,
959
+ method: "GET",
960
+ headers,
961
+ path: resolvedPath,
962
+ query,
963
+ body,
964
+ });
965
+ };
966
+ export const se_ListCopyJobSummariesCommand = async (input, context) => {
967
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
968
+ const headers = {};
969
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/copy-job-summaries";
970
+ const query = map({
971
+ AccountId: [, input.AccountId],
972
+ State: [, input.State],
973
+ ResourceType: [, input.ResourceType],
974
+ MessageCategory: [, input.MessageCategory],
975
+ AggregationPeriod: [, input.AggregationPeriod],
976
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
977
+ NextToken: [, input.NextToken],
926
978
  });
927
979
  let body;
928
980
  return new __HttpRequest({
@@ -1185,6 +1237,30 @@ export const se_ListRestoreJobsCommand = async (input, context) => {
1185
1237
  body,
1186
1238
  });
1187
1239
  };
1240
+ export const se_ListRestoreJobSummariesCommand = async (input, context) => {
1241
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1242
+ const headers = {};
1243
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/restore-job-summaries";
1244
+ const query = map({
1245
+ AccountId: [, input.AccountId],
1246
+ State: [, input.State],
1247
+ ResourceType: [, input.ResourceType],
1248
+ AggregationPeriod: [, input.AggregationPeriod],
1249
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1250
+ NextToken: [, input.NextToken],
1251
+ });
1252
+ let body;
1253
+ return new __HttpRequest({
1254
+ protocol,
1255
+ hostname,
1256
+ port,
1257
+ method: "GET",
1258
+ headers,
1259
+ path: resolvedPath,
1260
+ query,
1261
+ body,
1262
+ });
1263
+ };
1188
1264
  export const se_ListTagsCommand = async (input, context) => {
1189
1265
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1190
1266
  const headers = {};
@@ -2334,6 +2410,7 @@ export const de_DescribeBackupJobCommand = async (output, context) => {
2334
2410
  ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2335
2411
  IamRoleArn: __expectString,
2336
2412
  IsParent: __expectBoolean,
2413
+ MessageCategory: __expectString,
2337
2414
  NumberOfChildJobs: __expectLong,
2338
2415
  ParentJobId: __expectString,
2339
2416
  PercentDone: __expectString,
@@ -3404,6 +3481,44 @@ const de_ListBackupJobsCommandError = async (output, context) => {
3404
3481
  });
3405
3482
  }
3406
3483
  };
3484
+ export const de_ListBackupJobSummariesCommand = async (output, context) => {
3485
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3486
+ return de_ListBackupJobSummariesCommandError(output, context);
3487
+ }
3488
+ const contents = map({
3489
+ $metadata: deserializeMetadata(output),
3490
+ });
3491
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3492
+ const doc = take(data, {
3493
+ AggregationPeriod: __expectString,
3494
+ BackupJobSummaries: (_) => de_BackupJobSummaryList(_, context),
3495
+ NextToken: __expectString,
3496
+ });
3497
+ Object.assign(contents, doc);
3498
+ return contents;
3499
+ };
3500
+ const de_ListBackupJobSummariesCommandError = async (output, context) => {
3501
+ const parsedOutput = {
3502
+ ...output,
3503
+ body: await parseErrorBody(output.body, context),
3504
+ };
3505
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3506
+ switch (errorCode) {
3507
+ case "InvalidParameterValueException":
3508
+ case "com.amazonaws.backup#InvalidParameterValueException":
3509
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3510
+ case "ServiceUnavailableException":
3511
+ case "com.amazonaws.backup#ServiceUnavailableException":
3512
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3513
+ default:
3514
+ const parsedBody = parsedOutput.body;
3515
+ return throwDefaultError({
3516
+ output,
3517
+ parsedBody,
3518
+ errorCode,
3519
+ });
3520
+ }
3521
+ };
3407
3522
  export const de_ListBackupPlansCommand = async (output, context) => {
3408
3523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3409
3524
  return de_ListBackupPlansCommandError(output, context);
@@ -3656,6 +3771,44 @@ const de_ListCopyJobsCommandError = async (output, context) => {
3656
3771
  });
3657
3772
  }
3658
3773
  };
3774
+ export const de_ListCopyJobSummariesCommand = async (output, context) => {
3775
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3776
+ return de_ListCopyJobSummariesCommandError(output, context);
3777
+ }
3778
+ const contents = map({
3779
+ $metadata: deserializeMetadata(output),
3780
+ });
3781
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3782
+ const doc = take(data, {
3783
+ AggregationPeriod: __expectString,
3784
+ CopyJobSummaries: (_) => de_CopyJobSummaryList(_, context),
3785
+ NextToken: __expectString,
3786
+ });
3787
+ Object.assign(contents, doc);
3788
+ return contents;
3789
+ };
3790
+ const de_ListCopyJobSummariesCommandError = async (output, context) => {
3791
+ const parsedOutput = {
3792
+ ...output,
3793
+ body: await parseErrorBody(output.body, context),
3794
+ };
3795
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3796
+ switch (errorCode) {
3797
+ case "InvalidParameterValueException":
3798
+ case "com.amazonaws.backup#InvalidParameterValueException":
3799
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3800
+ case "ServiceUnavailableException":
3801
+ case "com.amazonaws.backup#ServiceUnavailableException":
3802
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3803
+ default:
3804
+ const parsedBody = parsedOutput.body;
3805
+ return throwDefaultError({
3806
+ output,
3807
+ parsedBody,
3808
+ errorCode,
3809
+ });
3810
+ }
3811
+ };
3659
3812
  export const de_ListFrameworksCommand = async (output, context) => {
3660
3813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3661
3814
  return de_ListFrameworksCommandError(output, context);
@@ -4053,6 +4206,44 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
4053
4206
  });
4054
4207
  }
4055
4208
  };
4209
+ export const de_ListRestoreJobSummariesCommand = async (output, context) => {
4210
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4211
+ return de_ListRestoreJobSummariesCommandError(output, context);
4212
+ }
4213
+ const contents = map({
4214
+ $metadata: deserializeMetadata(output),
4215
+ });
4216
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4217
+ const doc = take(data, {
4218
+ AggregationPeriod: __expectString,
4219
+ NextToken: __expectString,
4220
+ RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
4221
+ });
4222
+ Object.assign(contents, doc);
4223
+ return contents;
4224
+ };
4225
+ const de_ListRestoreJobSummariesCommandError = async (output, context) => {
4226
+ const parsedOutput = {
4227
+ ...output,
4228
+ body: await parseErrorBody(output.body, context),
4229
+ };
4230
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4231
+ switch (errorCode) {
4232
+ case "InvalidParameterValueException":
4233
+ case "com.amazonaws.backup#InvalidParameterValueException":
4234
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4235
+ case "ServiceUnavailableException":
4236
+ case "com.amazonaws.backup#ServiceUnavailableException":
4237
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4238
+ default:
4239
+ const parsedBody = parsedOutput.body;
4240
+ return throwDefaultError({
4241
+ output,
4242
+ parsedBody,
4243
+ errorCode,
4244
+ });
4245
+ }
4246
+ };
4056
4247
  export const de_ListTagsCommand = async (output, context) => {
4057
4248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4058
4249
  return de_ListTagsCommandError(output, context);
@@ -4980,6 +5171,7 @@ const de_BackupJob = (output, context) => {
4980
5171
  ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4981
5172
  IamRoleArn: __expectString,
4982
5173
  IsParent: __expectBoolean,
5174
+ MessageCategory: __expectString,
4983
5175
  ParentJobId: __expectString,
4984
5176
  PercentDone: __expectString,
4985
5177
  RecoveryPointArn: __expectString,
@@ -4999,6 +5191,26 @@ const de_BackupJobsList = (output, context) => {
4999
5191
  });
5000
5192
  return retVal;
5001
5193
  };
5194
+ const de_BackupJobSummary = (output, context) => {
5195
+ return take(output, {
5196
+ AccountId: __expectString,
5197
+ Count: __expectInt32,
5198
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5199
+ MessageCategory: __expectString,
5200
+ Region: __expectString,
5201
+ ResourceType: __expectString,
5202
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5203
+ State: __expectString,
5204
+ });
5205
+ };
5206
+ const de_BackupJobSummaryList = (output, context) => {
5207
+ const retVal = (output || [])
5208
+ .filter((e) => e != null)
5209
+ .map((entry) => {
5210
+ return de_BackupJobSummary(entry, context);
5211
+ });
5212
+ return retVal;
5213
+ };
5002
5214
  const de_BackupPlansList = (output, context) => {
5003
5215
  const retVal = (output || [])
5004
5216
  .filter((e) => e != null)
@@ -5088,6 +5300,7 @@ const de_CopyJob = (output, context) => {
5088
5300
  DestinationRecoveryPointArn: __expectString,
5089
5301
  IamRoleArn: __expectString,
5090
5302
  IsParent: __expectBoolean,
5303
+ MessageCategory: __expectString,
5091
5304
  NumberOfChildJobs: __expectLong,
5092
5305
  ParentJobId: __expectString,
5093
5306
  ResourceArn: __expectString,
@@ -5107,6 +5320,26 @@ const de_CopyJobsList = (output, context) => {
5107
5320
  });
5108
5321
  return retVal;
5109
5322
  };
5323
+ const de_CopyJobSummary = (output, context) => {
5324
+ return take(output, {
5325
+ AccountId: __expectString,
5326
+ Count: __expectInt32,
5327
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5328
+ MessageCategory: __expectString,
5329
+ Region: __expectString,
5330
+ ResourceType: __expectString,
5331
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5332
+ State: __expectString,
5333
+ });
5334
+ };
5335
+ const de_CopyJobSummaryList = (output, context) => {
5336
+ const retVal = (output || [])
5337
+ .filter((e) => e != null)
5338
+ .map((entry) => {
5339
+ return de_CopyJobSummary(entry, context);
5340
+ });
5341
+ return retVal;
5342
+ };
5110
5343
  const de_DateRange = (output, context) => {
5111
5344
  return take(output, {
5112
5345
  FromDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -5295,6 +5528,25 @@ const de_RestoreJobsListMember = (output, context) => {
5295
5528
  StatusMessage: __expectString,
5296
5529
  });
5297
5530
  };
5531
+ const de_RestoreJobSummary = (output, context) => {
5532
+ return take(output, {
5533
+ AccountId: __expectString,
5534
+ Count: __expectInt32,
5535
+ EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5536
+ Region: __expectString,
5537
+ ResourceType: __expectString,
5538
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5539
+ State: __expectString,
5540
+ });
5541
+ };
5542
+ const de_RestoreJobSummaryList = (output, context) => {
5543
+ const retVal = (output || [])
5544
+ .filter((e) => e != null)
5545
+ .map((entry) => {
5546
+ return de_RestoreJobSummary(entry, context);
5547
+ });
5548
+ return retVal;
5549
+ };
5298
5550
  const deserializeMetadata = (output) => ({
5299
5551
  httpStatusCode: output.statusCode,
5300
5552
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -41,12 +41,14 @@ import { GetLegalHoldCommandInput, GetLegalHoldCommandOutput } from "./commands/
41
41
  import { GetRecoveryPointRestoreMetadataCommandInput, GetRecoveryPointRestoreMetadataCommandOutput } from "./commands/GetRecoveryPointRestoreMetadataCommand";
42
42
  import { GetSupportedResourceTypesCommandInput, GetSupportedResourceTypesCommandOutput } from "./commands/GetSupportedResourceTypesCommand";
43
43
  import { ListBackupJobsCommandInput, ListBackupJobsCommandOutput } from "./commands/ListBackupJobsCommand";
44
+ import { ListBackupJobSummariesCommandInput, ListBackupJobSummariesCommandOutput } from "./commands/ListBackupJobSummariesCommand";
44
45
  import { ListBackupPlansCommandInput, ListBackupPlansCommandOutput } from "./commands/ListBackupPlansCommand";
45
46
  import { ListBackupPlanTemplatesCommandInput, ListBackupPlanTemplatesCommandOutput } from "./commands/ListBackupPlanTemplatesCommand";
46
47
  import { ListBackupPlanVersionsCommandInput, ListBackupPlanVersionsCommandOutput } from "./commands/ListBackupPlanVersionsCommand";
47
48
  import { ListBackupSelectionsCommandInput, ListBackupSelectionsCommandOutput } from "./commands/ListBackupSelectionsCommand";
48
49
  import { ListBackupVaultsCommandInput, ListBackupVaultsCommandOutput } from "./commands/ListBackupVaultsCommand";
49
50
  import { ListCopyJobsCommandInput, ListCopyJobsCommandOutput } from "./commands/ListCopyJobsCommand";
51
+ import { ListCopyJobSummariesCommandInput, ListCopyJobSummariesCommandOutput } from "./commands/ListCopyJobSummariesCommand";
50
52
  import { ListFrameworksCommandInput, ListFrameworksCommandOutput } from "./commands/ListFrameworksCommand";
51
53
  import { ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput } from "./commands/ListLegalHoldsCommand";
52
54
  import { ListProtectedResourcesByBackupVaultCommandInput, ListProtectedResourcesByBackupVaultCommandOutput } from "./commands/ListProtectedResourcesByBackupVaultCommand";
@@ -57,6 +59,7 @@ import { ListRecoveryPointsByResourceCommandInput, ListRecoveryPointsByResourceC
57
59
  import { ListReportJobsCommandInput, ListReportJobsCommandOutput } from "./commands/ListReportJobsCommand";
58
60
  import { ListReportPlansCommandInput, ListReportPlansCommandOutput } from "./commands/ListReportPlansCommand";
59
61
  import { ListRestoreJobsCommandInput, ListRestoreJobsCommandOutput } from "./commands/ListRestoreJobsCommand";
62
+ import { ListRestoreJobSummariesCommandInput, ListRestoreJobSummariesCommandOutput } from "./commands/ListRestoreJobSummariesCommand";
60
63
  import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
61
64
  import { PutBackupVaultAccessPolicyCommandInput, PutBackupVaultAccessPolicyCommandOutput } from "./commands/PutBackupVaultAccessPolicyCommand";
62
65
  import { PutBackupVaultLockConfigurationCommandInput, PutBackupVaultLockConfigurationCommandOutput } from "./commands/PutBackupVaultLockConfigurationCommand";
@@ -321,6 +324,12 @@ export interface Backup {
321
324
  listBackupJobs(args: ListBackupJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListBackupJobsCommandOutput>;
322
325
  listBackupJobs(args: ListBackupJobsCommandInput, cb: (err: any, data?: ListBackupJobsCommandOutput) => void): void;
323
326
  listBackupJobs(args: ListBackupJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBackupJobsCommandOutput) => void): void;
327
+ /**
328
+ * @see {@link ListBackupJobSummariesCommand}
329
+ */
330
+ listBackupJobSummaries(args: ListBackupJobSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListBackupJobSummariesCommandOutput>;
331
+ listBackupJobSummaries(args: ListBackupJobSummariesCommandInput, cb: (err: any, data?: ListBackupJobSummariesCommandOutput) => void): void;
332
+ listBackupJobSummaries(args: ListBackupJobSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBackupJobSummariesCommandOutput) => void): void;
324
333
  /**
325
334
  * @see {@link ListBackupPlansCommand}
326
335
  */
@@ -357,6 +366,12 @@ export interface Backup {
357
366
  listCopyJobs(args: ListCopyJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListCopyJobsCommandOutput>;
358
367
  listCopyJobs(args: ListCopyJobsCommandInput, cb: (err: any, data?: ListCopyJobsCommandOutput) => void): void;
359
368
  listCopyJobs(args: ListCopyJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCopyJobsCommandOutput) => void): void;
369
+ /**
370
+ * @see {@link ListCopyJobSummariesCommand}
371
+ */
372
+ listCopyJobSummaries(args: ListCopyJobSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListCopyJobSummariesCommandOutput>;
373
+ listCopyJobSummaries(args: ListCopyJobSummariesCommandInput, cb: (err: any, data?: ListCopyJobSummariesCommandOutput) => void): void;
374
+ listCopyJobSummaries(args: ListCopyJobSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCopyJobSummariesCommandOutput) => void): void;
360
375
  /**
361
376
  * @see {@link ListFrameworksCommand}
362
377
  */
@@ -417,6 +432,12 @@ export interface Backup {
417
432
  listRestoreJobs(args: ListRestoreJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListRestoreJobsCommandOutput>;
418
433
  listRestoreJobs(args: ListRestoreJobsCommandInput, cb: (err: any, data?: ListRestoreJobsCommandOutput) => void): void;
419
434
  listRestoreJobs(args: ListRestoreJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRestoreJobsCommandOutput) => void): void;
435
+ /**
436
+ * @see {@link ListRestoreJobSummariesCommand}
437
+ */
438
+ listRestoreJobSummaries(args: ListRestoreJobSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListRestoreJobSummariesCommandOutput>;
439
+ listRestoreJobSummaries(args: ListRestoreJobSummariesCommandInput, cb: (err: any, data?: ListRestoreJobSummariesCommandOutput) => void): void;
440
+ listRestoreJobSummaries(args: ListRestoreJobSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRestoreJobSummariesCommandOutput) => void): void;
420
441
  /**
421
442
  * @see {@link ListTagsCommand}
422
443
  */
@@ -49,12 +49,14 @@ import { GetLegalHoldCommandInput, GetLegalHoldCommandOutput } from "./commands/
49
49
  import { GetRecoveryPointRestoreMetadataCommandInput, GetRecoveryPointRestoreMetadataCommandOutput } from "./commands/GetRecoveryPointRestoreMetadataCommand";
50
50
  import { GetSupportedResourceTypesCommandInput, GetSupportedResourceTypesCommandOutput } from "./commands/GetSupportedResourceTypesCommand";
51
51
  import { ListBackupJobsCommandInput, ListBackupJobsCommandOutput } from "./commands/ListBackupJobsCommand";
52
+ import { ListBackupJobSummariesCommandInput, ListBackupJobSummariesCommandOutput } from "./commands/ListBackupJobSummariesCommand";
52
53
  import { ListBackupPlansCommandInput, ListBackupPlansCommandOutput } from "./commands/ListBackupPlansCommand";
53
54
  import { ListBackupPlanTemplatesCommandInput, ListBackupPlanTemplatesCommandOutput } from "./commands/ListBackupPlanTemplatesCommand";
54
55
  import { ListBackupPlanVersionsCommandInput, ListBackupPlanVersionsCommandOutput } from "./commands/ListBackupPlanVersionsCommand";
55
56
  import { ListBackupSelectionsCommandInput, ListBackupSelectionsCommandOutput } from "./commands/ListBackupSelectionsCommand";
56
57
  import { ListBackupVaultsCommandInput, ListBackupVaultsCommandOutput } from "./commands/ListBackupVaultsCommand";
57
58
  import { ListCopyJobsCommandInput, ListCopyJobsCommandOutput } from "./commands/ListCopyJobsCommand";
59
+ import { ListCopyJobSummariesCommandInput, ListCopyJobSummariesCommandOutput } from "./commands/ListCopyJobSummariesCommand";
58
60
  import { ListFrameworksCommandInput, ListFrameworksCommandOutput } from "./commands/ListFrameworksCommand";
59
61
  import { ListLegalHoldsCommandInput, ListLegalHoldsCommandOutput } from "./commands/ListLegalHoldsCommand";
60
62
  import { ListProtectedResourcesByBackupVaultCommandInput, ListProtectedResourcesByBackupVaultCommandOutput } from "./commands/ListProtectedResourcesByBackupVaultCommand";
@@ -65,6 +67,7 @@ import { ListRecoveryPointsByResourceCommandInput, ListRecoveryPointsByResourceC
65
67
  import { ListReportJobsCommandInput, ListReportJobsCommandOutput } from "./commands/ListReportJobsCommand";
66
68
  import { ListReportPlansCommandInput, ListReportPlansCommandOutput } from "./commands/ListReportPlansCommand";
67
69
  import { ListRestoreJobsCommandInput, ListRestoreJobsCommandOutput } from "./commands/ListRestoreJobsCommand";
70
+ import { ListRestoreJobSummariesCommandInput, ListRestoreJobSummariesCommandOutput } from "./commands/ListRestoreJobSummariesCommand";
68
71
  import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
69
72
  import { PutBackupVaultAccessPolicyCommandInput, PutBackupVaultAccessPolicyCommandOutput } from "./commands/PutBackupVaultAccessPolicyCommand";
70
73
  import { PutBackupVaultLockConfigurationCommandInput, PutBackupVaultLockConfigurationCommandOutput } from "./commands/PutBackupVaultLockConfigurationCommand";
@@ -88,11 +91,11 @@ export { __Client };
88
91
  /**
89
92
  * @public
90
93
  */
91
- export type ServiceInputTypes = CancelLegalHoldCommandInput | CreateBackupPlanCommandInput | CreateBackupSelectionCommandInput | CreateBackupVaultCommandInput | CreateFrameworkCommandInput | CreateLegalHoldCommandInput | CreateLogicallyAirGappedBackupVaultCommandInput | CreateReportPlanCommandInput | DeleteBackupPlanCommandInput | DeleteBackupSelectionCommandInput | DeleteBackupVaultAccessPolicyCommandInput | DeleteBackupVaultCommandInput | DeleteBackupVaultLockConfigurationCommandInput | DeleteBackupVaultNotificationsCommandInput | DeleteFrameworkCommandInput | DeleteRecoveryPointCommandInput | DeleteReportPlanCommandInput | DescribeBackupJobCommandInput | DescribeBackupVaultCommandInput | DescribeCopyJobCommandInput | DescribeFrameworkCommandInput | DescribeGlobalSettingsCommandInput | DescribeProtectedResourceCommandInput | DescribeRecoveryPointCommandInput | DescribeRegionSettingsCommandInput | DescribeReportJobCommandInput | DescribeReportPlanCommandInput | DescribeRestoreJobCommandInput | DisassociateRecoveryPointCommandInput | DisassociateRecoveryPointFromParentCommandInput | ExportBackupPlanTemplateCommandInput | GetBackupPlanCommandInput | GetBackupPlanFromJSONCommandInput | GetBackupPlanFromTemplateCommandInput | GetBackupSelectionCommandInput | GetBackupVaultAccessPolicyCommandInput | GetBackupVaultNotificationsCommandInput | GetLegalHoldCommandInput | GetRecoveryPointRestoreMetadataCommandInput | GetSupportedResourceTypesCommandInput | ListBackupJobsCommandInput | ListBackupPlanTemplatesCommandInput | ListBackupPlanVersionsCommandInput | ListBackupPlansCommandInput | ListBackupSelectionsCommandInput | ListBackupVaultsCommandInput | ListCopyJobsCommandInput | ListFrameworksCommandInput | ListLegalHoldsCommandInput | ListProtectedResourcesByBackupVaultCommandInput | ListProtectedResourcesCommandInput | ListRecoveryPointsByBackupVaultCommandInput | ListRecoveryPointsByLegalHoldCommandInput | ListRecoveryPointsByResourceCommandInput | ListReportJobsCommandInput | ListReportPlansCommandInput | ListRestoreJobsCommandInput | ListTagsCommandInput | PutBackupVaultAccessPolicyCommandInput | PutBackupVaultLockConfigurationCommandInput | PutBackupVaultNotificationsCommandInput | StartBackupJobCommandInput | StartCopyJobCommandInput | StartReportJobCommandInput | StartRestoreJobCommandInput | StopBackupJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBackupPlanCommandInput | UpdateFrameworkCommandInput | UpdateGlobalSettingsCommandInput | UpdateRecoveryPointLifecycleCommandInput | UpdateRegionSettingsCommandInput | UpdateReportPlanCommandInput;
94
+ export type ServiceInputTypes = CancelLegalHoldCommandInput | CreateBackupPlanCommandInput | CreateBackupSelectionCommandInput | CreateBackupVaultCommandInput | CreateFrameworkCommandInput | CreateLegalHoldCommandInput | CreateLogicallyAirGappedBackupVaultCommandInput | CreateReportPlanCommandInput | DeleteBackupPlanCommandInput | DeleteBackupSelectionCommandInput | DeleteBackupVaultAccessPolicyCommandInput | DeleteBackupVaultCommandInput | DeleteBackupVaultLockConfigurationCommandInput | DeleteBackupVaultNotificationsCommandInput | DeleteFrameworkCommandInput | DeleteRecoveryPointCommandInput | DeleteReportPlanCommandInput | DescribeBackupJobCommandInput | DescribeBackupVaultCommandInput | DescribeCopyJobCommandInput | DescribeFrameworkCommandInput | DescribeGlobalSettingsCommandInput | DescribeProtectedResourceCommandInput | DescribeRecoveryPointCommandInput | DescribeRegionSettingsCommandInput | DescribeReportJobCommandInput | DescribeReportPlanCommandInput | DescribeRestoreJobCommandInput | DisassociateRecoveryPointCommandInput | DisassociateRecoveryPointFromParentCommandInput | ExportBackupPlanTemplateCommandInput | GetBackupPlanCommandInput | GetBackupPlanFromJSONCommandInput | GetBackupPlanFromTemplateCommandInput | GetBackupSelectionCommandInput | GetBackupVaultAccessPolicyCommandInput | GetBackupVaultNotificationsCommandInput | GetLegalHoldCommandInput | GetRecoveryPointRestoreMetadataCommandInput | GetSupportedResourceTypesCommandInput | ListBackupJobSummariesCommandInput | ListBackupJobsCommandInput | ListBackupPlanTemplatesCommandInput | ListBackupPlanVersionsCommandInput | ListBackupPlansCommandInput | ListBackupSelectionsCommandInput | ListBackupVaultsCommandInput | ListCopyJobSummariesCommandInput | ListCopyJobsCommandInput | ListFrameworksCommandInput | ListLegalHoldsCommandInput | ListProtectedResourcesByBackupVaultCommandInput | ListProtectedResourcesCommandInput | ListRecoveryPointsByBackupVaultCommandInput | ListRecoveryPointsByLegalHoldCommandInput | ListRecoveryPointsByResourceCommandInput | ListReportJobsCommandInput | ListReportPlansCommandInput | ListRestoreJobSummariesCommandInput | ListRestoreJobsCommandInput | ListTagsCommandInput | PutBackupVaultAccessPolicyCommandInput | PutBackupVaultLockConfigurationCommandInput | PutBackupVaultNotificationsCommandInput | StartBackupJobCommandInput | StartCopyJobCommandInput | StartReportJobCommandInput | StartRestoreJobCommandInput | StopBackupJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBackupPlanCommandInput | UpdateFrameworkCommandInput | UpdateGlobalSettingsCommandInput | UpdateRecoveryPointLifecycleCommandInput | UpdateRegionSettingsCommandInput | UpdateReportPlanCommandInput;
92
95
  /**
93
96
  * @public
94
97
  */
95
- export type ServiceOutputTypes = CancelLegalHoldCommandOutput | CreateBackupPlanCommandOutput | CreateBackupSelectionCommandOutput | CreateBackupVaultCommandOutput | CreateFrameworkCommandOutput | CreateLegalHoldCommandOutput | CreateLogicallyAirGappedBackupVaultCommandOutput | CreateReportPlanCommandOutput | DeleteBackupPlanCommandOutput | DeleteBackupSelectionCommandOutput | DeleteBackupVaultAccessPolicyCommandOutput | DeleteBackupVaultCommandOutput | DeleteBackupVaultLockConfigurationCommandOutput | DeleteBackupVaultNotificationsCommandOutput | DeleteFrameworkCommandOutput | DeleteRecoveryPointCommandOutput | DeleteReportPlanCommandOutput | DescribeBackupJobCommandOutput | DescribeBackupVaultCommandOutput | DescribeCopyJobCommandOutput | DescribeFrameworkCommandOutput | DescribeGlobalSettingsCommandOutput | DescribeProtectedResourceCommandOutput | DescribeRecoveryPointCommandOutput | DescribeRegionSettingsCommandOutput | DescribeReportJobCommandOutput | DescribeReportPlanCommandOutput | DescribeRestoreJobCommandOutput | DisassociateRecoveryPointCommandOutput | DisassociateRecoveryPointFromParentCommandOutput | ExportBackupPlanTemplateCommandOutput | GetBackupPlanCommandOutput | GetBackupPlanFromJSONCommandOutput | GetBackupPlanFromTemplateCommandOutput | GetBackupSelectionCommandOutput | GetBackupVaultAccessPolicyCommandOutput | GetBackupVaultNotificationsCommandOutput | GetLegalHoldCommandOutput | GetRecoveryPointRestoreMetadataCommandOutput | GetSupportedResourceTypesCommandOutput | ListBackupJobsCommandOutput | ListBackupPlanTemplatesCommandOutput | ListBackupPlanVersionsCommandOutput | ListBackupPlansCommandOutput | ListBackupSelectionsCommandOutput | ListBackupVaultsCommandOutput | ListCopyJobsCommandOutput | ListFrameworksCommandOutput | ListLegalHoldsCommandOutput | ListProtectedResourcesByBackupVaultCommandOutput | ListProtectedResourcesCommandOutput | ListRecoveryPointsByBackupVaultCommandOutput | ListRecoveryPointsByLegalHoldCommandOutput | ListRecoveryPointsByResourceCommandOutput | ListReportJobsCommandOutput | ListReportPlansCommandOutput | ListRestoreJobsCommandOutput | ListTagsCommandOutput | PutBackupVaultAccessPolicyCommandOutput | PutBackupVaultLockConfigurationCommandOutput | PutBackupVaultNotificationsCommandOutput | StartBackupJobCommandOutput | StartCopyJobCommandOutput | StartReportJobCommandOutput | StartRestoreJobCommandOutput | StopBackupJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBackupPlanCommandOutput | UpdateFrameworkCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateRecoveryPointLifecycleCommandOutput | UpdateRegionSettingsCommandOutput | UpdateReportPlanCommandOutput;
98
+ export type ServiceOutputTypes = CancelLegalHoldCommandOutput | CreateBackupPlanCommandOutput | CreateBackupSelectionCommandOutput | CreateBackupVaultCommandOutput | CreateFrameworkCommandOutput | CreateLegalHoldCommandOutput | CreateLogicallyAirGappedBackupVaultCommandOutput | CreateReportPlanCommandOutput | DeleteBackupPlanCommandOutput | DeleteBackupSelectionCommandOutput | DeleteBackupVaultAccessPolicyCommandOutput | DeleteBackupVaultCommandOutput | DeleteBackupVaultLockConfigurationCommandOutput | DeleteBackupVaultNotificationsCommandOutput | DeleteFrameworkCommandOutput | DeleteRecoveryPointCommandOutput | DeleteReportPlanCommandOutput | DescribeBackupJobCommandOutput | DescribeBackupVaultCommandOutput | DescribeCopyJobCommandOutput | DescribeFrameworkCommandOutput | DescribeGlobalSettingsCommandOutput | DescribeProtectedResourceCommandOutput | DescribeRecoveryPointCommandOutput | DescribeRegionSettingsCommandOutput | DescribeReportJobCommandOutput | DescribeReportPlanCommandOutput | DescribeRestoreJobCommandOutput | DisassociateRecoveryPointCommandOutput | DisassociateRecoveryPointFromParentCommandOutput | ExportBackupPlanTemplateCommandOutput | GetBackupPlanCommandOutput | GetBackupPlanFromJSONCommandOutput | GetBackupPlanFromTemplateCommandOutput | GetBackupSelectionCommandOutput | GetBackupVaultAccessPolicyCommandOutput | GetBackupVaultNotificationsCommandOutput | GetLegalHoldCommandOutput | GetRecoveryPointRestoreMetadataCommandOutput | GetSupportedResourceTypesCommandOutput | ListBackupJobSummariesCommandOutput | ListBackupJobsCommandOutput | ListBackupPlanTemplatesCommandOutput | ListBackupPlanVersionsCommandOutput | ListBackupPlansCommandOutput | ListBackupSelectionsCommandOutput | ListBackupVaultsCommandOutput | ListCopyJobSummariesCommandOutput | ListCopyJobsCommandOutput | ListFrameworksCommandOutput | ListLegalHoldsCommandOutput | ListProtectedResourcesByBackupVaultCommandOutput | ListProtectedResourcesCommandOutput | ListRecoveryPointsByBackupVaultCommandOutput | ListRecoveryPointsByLegalHoldCommandOutput | ListRecoveryPointsByResourceCommandOutput | ListReportJobsCommandOutput | ListReportPlansCommandOutput | ListRestoreJobSummariesCommandOutput | ListRestoreJobsCommandOutput | ListTagsCommandOutput | PutBackupVaultAccessPolicyCommandOutput | PutBackupVaultLockConfigurationCommandOutput | PutBackupVaultNotificationsCommandOutput | StartBackupJobCommandOutput | StartCopyJobCommandOutput | StartReportJobCommandOutput | StartRestoreJobCommandOutput | StopBackupJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBackupPlanCommandOutput | UpdateFrameworkCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateRecoveryPointLifecycleCommandOutput | UpdateRegionSettingsCommandOutput | UpdateReportPlanCommandOutput;
96
99
  /**
97
100
  * @public
98
101
  */
@@ -70,6 +70,7 @@ export interface DescribeBackupJobCommandOutput extends DescribeBackupJobOutput,
70
70
  * // "<keys>": Number("long"),
71
71
  * // },
72
72
  * // ResourceName: "STRING_VALUE",
73
+ * // MessageCategory: "STRING_VALUE",
73
74
  * // };
74
75
  *
75
76
  * ```
@@ -65,6 +65,7 @@ export interface DescribeCopyJobCommandOutput extends DescribeCopyJobOutput, __M
65
65
  * // "<keys>": Number("long"),
66
66
  * // },
67
67
  * // ResourceName: "STRING_VALUE",
68
+ * // MessageCategory: "STRING_VALUE",
68
69
  * // },
69
70
  * // };
70
71
  *