Skip to content

Commit 415d379

Browse files
author
awstools
committed
feat(client-resiliencehub): AWS Resilience Hub's new summary view visually represents applications' resilience through charts, enabling efficient resilience management. It provides a consolidated view of the app portfolio's resilience state and allows data export for custom stakeholder reporting.
1 parent a404f1b commit 415d379

14 files changed

+1450
-56
lines changed

Diff for: clients/client-resiliencehub/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ DescribeDraftAppVersionResourcesImportStatus
390390

391391
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/DescribeDraftAppVersionResourcesImportStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeDraftAppVersionResourcesImportStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeDraftAppVersionResourcesImportStatusCommandOutput/)
392392

393+
</details>
394+
<details>
395+
<summary>
396+
DescribeMetricsExport
397+
</summary>
398+
399+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/DescribeMetricsExportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeMetricsExportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeMetricsExportCommandOutput/)
400+
393401
</details>
394402
<details>
395403
<summary>
@@ -510,6 +518,14 @@ ListAppVersions
510518

511519
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListAppVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppVersionsCommandOutput/)
512520

521+
</details>
522+
<details>
523+
<summary>
524+
ListMetrics
525+
</summary>
526+
527+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListMetricsCommandOutput/)
528+
513529
</details>
514530
<details>
515531
<summary>
@@ -622,6 +638,14 @@ StartAppAssessment
622638

623639
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/StartAppAssessmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartAppAssessmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartAppAssessmentCommandOutput/)
624640

641+
</details>
642+
<details>
643+
<summary>
644+
StartMetricsExport
645+
</summary>
646+
647+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/StartMetricsExportCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartMetricsExportCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartMetricsExportCommandOutput/)
648+
625649
</details>
626650
<details>
627651
<summary>

Diff for: clients/client-resiliencehub/src/Resiliencehub.ts

+61
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ import {
105105
DescribeDraftAppVersionResourcesImportStatusCommandInput,
106106
DescribeDraftAppVersionResourcesImportStatusCommandOutput,
107107
} from "./commands/DescribeDraftAppVersionResourcesImportStatusCommand";
108+
import {
109+
DescribeMetricsExportCommand,
110+
DescribeMetricsExportCommandInput,
111+
DescribeMetricsExportCommandOutput,
112+
} from "./commands/DescribeMetricsExportCommand";
108113
import {
109114
DescribeResiliencyPolicyCommand,
110115
DescribeResiliencyPolicyCommandInput,
@@ -176,6 +181,7 @@ import {
176181
ListAppVersionsCommandInput,
177182
ListAppVersionsCommandOutput,
178183
} from "./commands/ListAppVersionsCommand";
184+
import { ListMetricsCommand, ListMetricsCommandInput, ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
179185
import {
180186
ListRecommendationTemplatesCommand,
181187
ListRecommendationTemplatesCommandInput,
@@ -246,6 +252,11 @@ import {
246252
StartAppAssessmentCommandInput,
247253
StartAppAssessmentCommandOutput,
248254
} from "./commands/StartAppAssessmentCommand";
255+
import {
256+
StartMetricsExportCommand,
257+
StartMetricsExportCommandInput,
258+
StartMetricsExportCommandOutput,
259+
} from "./commands/StartMetricsExportCommand";
249260
import {
250261
StartResourceGroupingRecommendationTaskCommand,
251262
StartResourceGroupingRecommendationTaskCommandInput,
@@ -304,6 +315,7 @@ const commands = {
304315
DescribeAppVersionResourcesResolutionStatusCommand,
305316
DescribeAppVersionTemplateCommand,
306317
DescribeDraftAppVersionResourcesImportStatusCommand,
318+
DescribeMetricsExportCommand,
307319
DescribeResiliencyPolicyCommand,
308320
DescribeResourceGroupingRecommendationTaskCommand,
309321
ImportResourcesToDraftAppVersionCommand,
@@ -319,6 +331,7 @@ const commands = {
319331
ListAppVersionResourceMappingsCommand,
320332
ListAppVersionResourcesCommand,
321333
ListAppVersionsCommand,
334+
ListMetricsCommand,
322335
ListRecommendationTemplatesCommand,
323336
ListResiliencyPoliciesCommand,
324337
ListResourceGroupingRecommendationsCommand,
@@ -333,6 +346,7 @@ const commands = {
333346
RemoveDraftAppVersionResourceMappingsCommand,
334347
ResolveAppVersionResourcesCommand,
335348
StartAppAssessmentCommand,
349+
StartMetricsExportCommand,
336350
StartResourceGroupingRecommendationTaskCommand,
337351
TagResourceCommand,
338352
UntagResourceCommand,
@@ -717,6 +731,23 @@ export interface Resiliencehub {
717731
cb: (err: any, data?: DescribeDraftAppVersionResourcesImportStatusCommandOutput) => void
718732
): void;
719733

734+
/**
735+
* @see {@link DescribeMetricsExportCommand}
736+
*/
737+
describeMetricsExport(
738+
args: DescribeMetricsExportCommandInput,
739+
options?: __HttpHandlerOptions
740+
): Promise<DescribeMetricsExportCommandOutput>;
741+
describeMetricsExport(
742+
args: DescribeMetricsExportCommandInput,
743+
cb: (err: any, data?: DescribeMetricsExportCommandOutput) => void
744+
): void;
745+
describeMetricsExport(
746+
args: DescribeMetricsExportCommandInput,
747+
options: __HttpHandlerOptions,
748+
cb: (err: any, data?: DescribeMetricsExportCommandOutput) => void
749+
): void;
750+
720751
/**
721752
* @see {@link DescribeResiliencyPolicyCommand}
722753
*/
@@ -965,6 +996,18 @@ export interface Resiliencehub {
965996
cb: (err: any, data?: ListAppVersionsCommandOutput) => void
966997
): void;
967998

999+
/**
1000+
* @see {@link ListMetricsCommand}
1001+
*/
1002+
listMetrics(): Promise<ListMetricsCommandOutput>;
1003+
listMetrics(args: ListMetricsCommandInput, options?: __HttpHandlerOptions): Promise<ListMetricsCommandOutput>;
1004+
listMetrics(args: ListMetricsCommandInput, cb: (err: any, data?: ListMetricsCommandOutput) => void): void;
1005+
listMetrics(
1006+
args: ListMetricsCommandInput,
1007+
options: __HttpHandlerOptions,
1008+
cb: (err: any, data?: ListMetricsCommandOutput) => void
1009+
): void;
1010+
9681011
/**
9691012
* @see {@link ListRecommendationTemplatesCommand}
9701013
*/
@@ -1207,6 +1250,24 @@ export interface Resiliencehub {
12071250
cb: (err: any, data?: StartAppAssessmentCommandOutput) => void
12081251
): void;
12091252

1253+
/**
1254+
* @see {@link StartMetricsExportCommand}
1255+
*/
1256+
startMetricsExport(): Promise<StartMetricsExportCommandOutput>;
1257+
startMetricsExport(
1258+
args: StartMetricsExportCommandInput,
1259+
options?: __HttpHandlerOptions
1260+
): Promise<StartMetricsExportCommandOutput>;
1261+
startMetricsExport(
1262+
args: StartMetricsExportCommandInput,
1263+
cb: (err: any, data?: StartMetricsExportCommandOutput) => void
1264+
): void;
1265+
startMetricsExport(
1266+
args: StartMetricsExportCommandInput,
1267+
options: __HttpHandlerOptions,
1268+
cb: (err: any, data?: StartMetricsExportCommandOutput) => void
1269+
): void;
1270+
12101271
/**
12111272
* @see {@link StartResourceGroupingRecommendationTaskCommand}
12121273
*/

Diff for: clients/client-resiliencehub/src/ResiliencehubClient.ts

+12
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ import {
133133
DescribeDraftAppVersionResourcesImportStatusCommandInput,
134134
DescribeDraftAppVersionResourcesImportStatusCommandOutput,
135135
} from "./commands/DescribeDraftAppVersionResourcesImportStatusCommand";
136+
import {
137+
DescribeMetricsExportCommandInput,
138+
DescribeMetricsExportCommandOutput,
139+
} from "./commands/DescribeMetricsExportCommand";
136140
import {
137141
DescribeResiliencyPolicyCommandInput,
138142
DescribeResiliencyPolicyCommandOutput,
@@ -184,6 +188,7 @@ import {
184188
ListAppVersionResourcesCommandOutput,
185189
} from "./commands/ListAppVersionResourcesCommand";
186190
import { ListAppVersionsCommandInput, ListAppVersionsCommandOutput } from "./commands/ListAppVersionsCommand";
191+
import { ListMetricsCommandInput, ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
187192
import {
188193
ListRecommendationTemplatesCommandInput,
189194
ListRecommendationTemplatesCommandOutput,
@@ -234,6 +239,7 @@ import {
234239
ResolveAppVersionResourcesCommandOutput,
235240
} from "./commands/ResolveAppVersionResourcesCommand";
236241
import { StartAppAssessmentCommandInput, StartAppAssessmentCommandOutput } from "./commands/StartAppAssessmentCommand";
242+
import { StartMetricsExportCommandInput, StartMetricsExportCommandOutput } from "./commands/StartMetricsExportCommand";
237243
import {
238244
StartResourceGroupingRecommendationTaskCommandInput,
239245
StartResourceGroupingRecommendationTaskCommandOutput,
@@ -292,6 +298,7 @@ export type ServiceInputTypes =
292298
| DescribeAppVersionResourcesResolutionStatusCommandInput
293299
| DescribeAppVersionTemplateCommandInput
294300
| DescribeDraftAppVersionResourcesImportStatusCommandInput
301+
| DescribeMetricsExportCommandInput
295302
| DescribeResiliencyPolicyCommandInput
296303
| DescribeResourceGroupingRecommendationTaskCommandInput
297304
| ImportResourcesToDraftAppVersionCommandInput
@@ -307,6 +314,7 @@ export type ServiceInputTypes =
307314
| ListAppVersionResourcesCommandInput
308315
| ListAppVersionsCommandInput
309316
| ListAppsCommandInput
317+
| ListMetricsCommandInput
310318
| ListRecommendationTemplatesCommandInput
311319
| ListResiliencyPoliciesCommandInput
312320
| ListResourceGroupingRecommendationsCommandInput
@@ -321,6 +329,7 @@ export type ServiceInputTypes =
321329
| RemoveDraftAppVersionResourceMappingsCommandInput
322330
| ResolveAppVersionResourcesCommandInput
323331
| StartAppAssessmentCommandInput
332+
| StartMetricsExportCommandInput
324333
| StartResourceGroupingRecommendationTaskCommandInput
325334
| TagResourceCommandInput
326335
| UntagResourceCommandInput
@@ -357,6 +366,7 @@ export type ServiceOutputTypes =
357366
| DescribeAppVersionResourcesResolutionStatusCommandOutput
358367
| DescribeAppVersionTemplateCommandOutput
359368
| DescribeDraftAppVersionResourcesImportStatusCommandOutput
369+
| DescribeMetricsExportCommandOutput
360370
| DescribeResiliencyPolicyCommandOutput
361371
| DescribeResourceGroupingRecommendationTaskCommandOutput
362372
| ImportResourcesToDraftAppVersionCommandOutput
@@ -372,6 +382,7 @@ export type ServiceOutputTypes =
372382
| ListAppVersionResourcesCommandOutput
373383
| ListAppVersionsCommandOutput
374384
| ListAppsCommandOutput
385+
| ListMetricsCommandOutput
375386
| ListRecommendationTemplatesCommandOutput
376387
| ListResiliencyPoliciesCommandOutput
377388
| ListResourceGroupingRecommendationsCommandOutput
@@ -386,6 +397,7 @@ export type ServiceOutputTypes =
386397
| RemoveDraftAppVersionResourceMappingsCommandOutput
387398
| ResolveAppVersionResourcesCommandOutput
388399
| StartAppAssessmentCommandOutput
400+
| StartMetricsExportCommandOutput
389401
| StartResourceGroupingRecommendationTaskCommandOutput
390402
| TagResourceCommandOutput
391403
| UntagResourceCommandOutput
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { DescribeMetricsExportRequest, DescribeMetricsExportResponse } from "../models/models_0";
9+
import { de_DescribeMetricsExportCommand, se_DescribeMetricsExportCommand } from "../protocols/Aws_restJson1";
10+
import { ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResiliencehubClient";
11+
12+
/**
13+
* @public
14+
*/
15+
export type { __MetadataBearer };
16+
export { $Command };
17+
/**
18+
* @public
19+
*
20+
* The input for {@link DescribeMetricsExportCommand}.
21+
*/
22+
export interface DescribeMetricsExportCommandInput extends DescribeMetricsExportRequest {}
23+
/**
24+
* @public
25+
*
26+
* The output of {@link DescribeMetricsExportCommand}.
27+
*/
28+
export interface DescribeMetricsExportCommandOutput extends DescribeMetricsExportResponse, __MetadataBearer {}
29+
30+
/**
31+
* <p>Describes the metrics of the application configuration being exported.</p>
32+
* @example
33+
* Use a bare-bones client and the command you need to make an API call.
34+
* ```javascript
35+
* import { ResiliencehubClient, DescribeMetricsExportCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import
36+
* // const { ResiliencehubClient, DescribeMetricsExportCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import
37+
* const client = new ResiliencehubClient(config);
38+
* const input = { // DescribeMetricsExportRequest
39+
* metricsExportId: "STRING_VALUE", // required
40+
* };
41+
* const command = new DescribeMetricsExportCommand(input);
42+
* const response = await client.send(command);
43+
* // { // DescribeMetricsExportResponse
44+
* // metricsExportId: "STRING_VALUE", // required
45+
* // status: "Pending" || "InProgress" || "Failed" || "Success", // required
46+
* // exportLocation: { // S3Location
47+
* // bucket: "STRING_VALUE",
48+
* // prefix: "STRING_VALUE",
49+
* // },
50+
* // errorMessage: "STRING_VALUE",
51+
* // };
52+
*
53+
* ```
54+
*
55+
* @param DescribeMetricsExportCommandInput - {@link DescribeMetricsExportCommandInput}
56+
* @returns {@link DescribeMetricsExportCommandOutput}
57+
* @see {@link DescribeMetricsExportCommandInput} for command's `input` shape.
58+
* @see {@link DescribeMetricsExportCommandOutput} for command's `response` shape.
59+
* @see {@link ResiliencehubClientResolvedConfig | config} for ResiliencehubClient's `config` shape.
60+
*
61+
* @throws {@link AccessDeniedException} (client fault)
62+
* <p>You don't have permissions to perform the requested operation. The user or role that is
63+
* making the request must have at least one IAM permissions policy attached that grants the
64+
* required permissions.</p>
65+
*
66+
* @throws {@link InternalServerException} (server fault)
67+
* <p>This exception occurs when there is an internal failure in the Resilience Hub
68+
* service.</p>
69+
*
70+
* @throws {@link ResourceNotFoundException} (client fault)
71+
* <p>This exception occurs when the specified resource could not be found.</p>
72+
*
73+
* @throws {@link ThrottlingException} (client fault)
74+
* <p>This exception occurs when you have exceeded the limit on the number of requests per second.</p>
75+
*
76+
* @throws {@link ValidationException} (client fault)
77+
* <p>This exception occurs when a request is not valid.</p>
78+
*
79+
* @throws {@link ResiliencehubServiceException}
80+
* <p>Base exception class for all service exceptions from Resiliencehub service.</p>
81+
*
82+
* @public
83+
*/
84+
export class DescribeMetricsExportCommand extends $Command
85+
.classBuilder<
86+
DescribeMetricsExportCommandInput,
87+
DescribeMetricsExportCommandOutput,
88+
ResiliencehubClientResolvedConfig,
89+
ServiceInputTypes,
90+
ServiceOutputTypes
91+
>()
92+
.ep(commonParams)
93+
.m(function (this: any, Command: any, cs: any, config: ResiliencehubClientResolvedConfig, o: any) {
94+
return [
95+
getSerdePlugin(config, this.serialize, this.deserialize),
96+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
97+
];
98+
})
99+
.s("AwsResilienceHub", "DescribeMetricsExport", {})
100+
.n("ResiliencehubClient", "DescribeMetricsExportCommand")
101+
.f(void 0, void 0)
102+
.ser(se_DescribeMetricsExportCommand)
103+
.de(de_DescribeMetricsExportCommand)
104+
.build() {
105+
/** @internal type navigation helper, not in runtime. */
106+
protected declare static __types: {
107+
api: {
108+
input: DescribeMetricsExportRequest;
109+
output: DescribeMetricsExportResponse;
110+
};
111+
sdk: {
112+
input: DescribeMetricsExportCommandInput;
113+
output: DescribeMetricsExportCommandOutput;
114+
};
115+
};
116+
}

Diff for: clients/client-resiliencehub/src/commands/ListAppAssessmentComplianceDriftsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ListAppAssessmentComplianceDriftsCommandOutput
3636
__MetadataBearer {}
3737

3838
/**
39-
* <p>Indicates the list of compliance drifts that were detected while running an
39+
* <p>List of compliance drifts that were detected while running an
4040
* assessment.</p>
4141
* @example
4242
* Use a bare-bones client and the command you need to make an API call.

Diff for: clients/client-resiliencehub/src/commands/ListAppAssessmentResourceDriftsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface ListAppAssessmentResourceDriftsCommandOutput
3333
__MetadataBearer {}
3434

3535
/**
36-
* <p>Indicates the list of resource drifts that were detected while running an
36+
* <p>List of resource drifts that were detected while running an
3737
* assessment.</p>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.

0 commit comments

Comments
 (0)