Skip to content

Commit 4b0a2d0

Browse files
author
awstools
committed
feat(client-resiliencehub): Introduced the ability to filter applications by their last assessment date and time and have included metrics for the application's estimated workload Recovery Time Objective (RTO) and estimated workload Recovery Point Objective (RPO).
1 parent d05a332 commit 4b0a2d0

File tree

11 files changed

+364
-214
lines changed

11 files changed

+364
-214
lines changed

clients/client-resiliencehub/src/commands/AddDraftAppVersionResourceMappingsCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export interface AddDraftAppVersionResourceMappingsCommandOutput
4545

4646
/**
4747
* @public
48-
* <p>Adds the resource mapping for the draft application version. You can also update an
49-
* existing resource mapping to a new physical resource.</p>
48+
* <p>Adds the source of resource-maps to the draft version of an application. During assessment, Resilience Hub will use these resource-maps to resolve the latest physical ID for each resource in the application template. For more information about different types of resources suported by Resilience Hub and how to add them in your application, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/how-app-manage.html">Step 2: How is your application managed?</a> in the Resilience Hub User Guide.</p>
5049
* @example
5150
* Use a bare-bones client and the command you need to make an API call.
5251
* ```javascript

clients/client-resiliencehub/src/commands/CreateAppCommand.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
4343
/**
4444
* @public
4545
* <p>Creates an Resilience Hub application. An Resilience Hub application is a
46-
* collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application, you provide an
47-
* application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
48-
* resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information
49-
* about the number of resources supported per application, see <a href="https://docs.aws.amazon.com/general/latest/gr/resiliencehub.html#limits_resiliencehub">Service
46+
* collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application,
47+
* you provide an application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
48+
* resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information about the number of resources supported per application, see <a href="https://docs.aws.amazon.com/general/latest/gr/resiliencehub.html#limits_resiliencehub">Service
5049
* quotas</a>.</p>
5150
* <p>After you create an Resilience Hub application, you publish it so that you can run a resiliency
5251
* assessment on it. You can then use recommendations from the assessment to improve resiliency
@@ -117,6 +116,8 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
117116
* // ],
118117
* // driftStatus: "STRING_VALUE",
119118
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
119+
* // rtoInSecs: Number("int"),
120+
* // rpoInSecs: Number("int"),
120121
* // },
121122
* // };
122123
*

clients/client-resiliencehub/src/commands/CreateResiliencyPolicyCommand.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ export interface CreateResiliencyPolicyCommandOutput extends CreateResiliencyPol
4343
/**
4444
* @public
4545
* <p>Creates a resiliency policy for an application.</p>
46+
* <note>
47+
* <p>Resilience Hub allows you to provide a value of zero for <code>rtoInSecs</code> and
48+
* <code>rpoInSecs</code> of your resiliency policy. But, while assessing your application, the lowest possible assessment result is near zero. Hence, if you provide value
49+
* zero for <code>rtoInSecs</code> and <code>rpoInSecs</code>, the estimated workload RTO and estimated workload RPO result will be near zero and the <b>Compliance
50+
* status</b> for your application will be set to <b>Policy
51+
* breached</b>.</p>
52+
* </note>
4653
* @example
4754
* Use a bare-bones client and the command you need to make an API call.
4855
* ```javascript

clients/client-resiliencehub/src/commands/DescribeAppCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ export interface DescribeAppCommandOutput extends DescribeAppResponse, __Metadat
8181
* // ],
8282
* // driftStatus: "STRING_VALUE",
8383
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
84+
* // rtoInSecs: Number("int"),
85+
* // rpoInSecs: Number("int"),
8486
* // },
8587
* // };
8688
*

clients/client-resiliencehub/src/commands/DescribeResiliencyPolicyCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export interface DescribeResiliencyPolicyCommandOutput extends DescribeResilienc
4141

4242
/**
4343
* @public
44-
* <p>Describes a specified resiliency policy for an Resilience Hub application. The returned
45-
* policy object includes creation time, data location constraints, the Amazon Resource Name
46-
* (ARN) for the policy, tags, tier, and more.</p>
44+
* <p>Describes a specified resiliency policy for an Resilience Hub application. The
45+
* returned policy object includes creation time, data location constraints, the Amazon Resource
46+
* Name (ARN) for the policy, tags, tier, and more.</p>
4747
* @example
4848
* Use a bare-bones client and the command you need to make an API call.
4949
* ```javascript

clients/client-resiliencehub/src/commands/ListAppsCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export interface ListAppsCommandOutput extends ListAppsResponse, __MetadataBeare
5858
* maxResults: Number("int"),
5959
* name: "STRING_VALUE",
6060
* appArn: "STRING_VALUE",
61+
* fromLastAssessmentTime: new Date("TIMESTAMP"),
62+
* toLastAssessmentTime: new Date("TIMESTAMP"),
63+
* reverseOrder: true || false,
6164
* };
6265
* const command = new ListAppsCommand(input);
6366
* const response = await client.send(command);
@@ -73,6 +76,9 @@ export interface ListAppsCommandOutput extends ListAppsResponse, __MetadataBeare
7376
* // assessmentSchedule: "STRING_VALUE",
7477
* // status: "STRING_VALUE",
7578
* // driftStatus: "STRING_VALUE",
79+
* // lastAppComplianceEvaluationTime: new Date("TIMESTAMP"),
80+
* // rtoInSecs: Number("int"),
81+
* // rpoInSecs: Number("int"),
7682
* // },
7783
* // ],
7884
* // nextToken: "STRING_VALUE",

clients/client-resiliencehub/src/commands/UpdateAppCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ export interface UpdateAppCommandOutput extends UpdateAppResponse, __MetadataBea
9999
* // ],
100100
* // driftStatus: "STRING_VALUE",
101101
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
102+
* // rtoInSecs: Number("int"),
103+
* // rpoInSecs: Number("int"),
102104
* // },
103105
* // };
104106
*

clients/client-resiliencehub/src/commands/UpdateResiliencyPolicyCommand.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ export interface UpdateResiliencyPolicyCommandOutput extends UpdateResiliencyPol
4242
/**
4343
* @public
4444
* <p>Updates a resiliency policy.</p>
45+
* <note>
46+
* <p>Resilience Hub allows you to provide a value of zero for <code>rtoInSecs</code> and
47+
* <code>rpoInSecs</code> of your resiliency policy. But, while assessing your application,
48+
* the lowest possible assessment result is near zero. Hence, if you provide value
49+
* zero for <code>rtoInSecs</code> and <code>rpoInSecs</code>, the estimated workload RTO and
50+
* estimated workload RPO result will be near zero and the <b>Compliance
51+
* status</b> for your application will be set to <b>Policy
52+
* breached</b>.</p>
53+
* </note>
4554
* @example
4655
* Use a bare-bones client and the command you need to make an API call.
4756
* ```javascript

0 commit comments

Comments
 (0)