Skip to content

Commit 164cdf7

Browse files
author
awstools
committed
feat(client-backup): Adds support to 2 new filters about job complete time for 3 list jobs APIs in AWS Backup
1 parent f0b9bd4 commit 164cdf7

File tree

3 files changed

+165
-2
lines changed

3 files changed

+165
-2
lines changed

Diff for: clients/client-backup/src/models/models_0.ts

+39-1
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,9 @@ export interface FrameworkControl {
16781678
/**
16791679
* <p>The scope of a control. The control scope defines what the control will evaluate. Three
16801680
* examples of control scopes are: a specific backup plan, all backup plans with a specific
1681-
* tag, or all backup plans. For more information, see <code>ControlScope</code>.</p>
1681+
* tag, or all backup plans. For more information, see <a href="aws-backup/latest/devguide/API_ControlScope.html">
1682+
* <code>ControlScope</code>.</a>
1683+
* </p>
16821684
*/
16831685
ControlScope?: ControlScope;
16841686
}
@@ -3942,6 +3944,18 @@ export interface ListBackupJobsInput {
39423944
* all jobs across the organization.</p>
39433945
*/
39443946
ByAccountId?: string;
3947+
3948+
/**
3949+
* <p>Returns only backup jobs completed after a date expressed in Unix format and Coordinated
3950+
* Universal Time (UTC).</p>
3951+
*/
3952+
ByCompleteAfter?: Date;
3953+
3954+
/**
3955+
* <p>Returns only backup jobs completed before a date expressed in Unix format and
3956+
* Coordinated Universal Time (UTC).</p>
3957+
*/
3958+
ByCompleteBefore?: Date;
39453959
}
39463960

39473961
export namespace ListBackupJobsInput {
@@ -4339,6 +4353,18 @@ export interface ListCopyJobsInput {
43394353
* specified account ID.</p>
43404354
*/
43414355
ByAccountId?: string;
4356+
4357+
/**
4358+
* <p>Returns only copy jobs completed before a date expressed in Unix format and Coordinated
4359+
* Universal Time (UTC).</p>
4360+
*/
4361+
ByCompleteBefore?: Date;
4362+
4363+
/**
4364+
* <p>Returns only copy jobs completed after a date expressed in Unix format and Coordinated
4365+
* Universal Time (UTC).</p>
4366+
*/
4367+
ByCompleteAfter?: Date;
43424368
}
43434369

43444370
export namespace ListCopyJobsInput {
@@ -5060,6 +5086,18 @@ export interface ListRestoreJobsInput {
50605086
* <p>Returns only restore jobs associated with the specified job status.</p>
50615087
*/
50625088
ByStatus?: RestoreJobStatus | string;
5089+
5090+
/**
5091+
* <p>Returns only copy jobs completed before a date expressed in Unix format and Coordinated
5092+
* Universal Time (UTC).</p>
5093+
*/
5094+
ByCompleteBefore?: Date;
5095+
5096+
/**
5097+
* <p>Returns only copy jobs completed after a date expressed in Unix format and Coordinated
5098+
* Universal Time (UTC).</p>
5099+
*/
5100+
ByCompleteAfter?: Date;
50635101
}
50645102

50655103
export namespace ListRestoreJobsInput {

Diff for: clients/client-backup/src/protocols/Aws_restJson1.ts

+18
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,12 @@ export const serializeAws_restJson1ListBackupJobsCommand = async (
13421342
}),
13431343
...(input.ByResourceType !== undefined && { resourceType: input.ByResourceType }),
13441344
...(input.ByAccountId !== undefined && { accountId: input.ByAccountId }),
1345+
...(input.ByCompleteAfter !== undefined && {
1346+
completeAfter: (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
1347+
}),
1348+
...(input.ByCompleteBefore !== undefined && {
1349+
completeBefore: (input.ByCompleteBefore.toISOString().split(".")[0] + "Z").toString(),
1350+
}),
13451351
};
13461352
let body: any;
13471353
return new __HttpRequest({
@@ -1518,6 +1524,12 @@ export const serializeAws_restJson1ListCopyJobsCommand = async (
15181524
...(input.ByResourceType !== undefined && { resourceType: input.ByResourceType }),
15191525
...(input.ByDestinationVaultArn !== undefined && { destinationVaultArn: input.ByDestinationVaultArn }),
15201526
...(input.ByAccountId !== undefined && { accountId: input.ByAccountId }),
1527+
...(input.ByCompleteBefore !== undefined && {
1528+
completeBefore: (input.ByCompleteBefore.toISOString().split(".")[0] + "Z").toString(),
1529+
}),
1530+
...(input.ByCompleteAfter !== undefined && {
1531+
completeAfter: (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
1532+
}),
15211533
};
15221534
let body: any;
15231535
return new __HttpRequest({
@@ -1732,6 +1744,12 @@ export const serializeAws_restJson1ListRestoreJobsCommand = async (
17321744
createdAfter: (input.ByCreatedAfter.toISOString().split(".")[0] + "Z").toString(),
17331745
}),
17341746
...(input.ByStatus !== undefined && { status: input.ByStatus }),
1747+
...(input.ByCompleteBefore !== undefined && {
1748+
completeBefore: (input.ByCompleteBefore.toISOString().split(".")[0] + "Z").toString(),
1749+
}),
1750+
...(input.ByCompleteAfter !== undefined && {
1751+
completeAfter: (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
1752+
}),
17351753
};
17361754
let body: any;
17371755
return new __HttpRequest({

0 commit comments

Comments
 (0)