Skip to content

Commit

Permalink
feat(client-resiliencehub): Customers are presented with the grouping…
Browse files Browse the repository at this point in the history
… recommendations and can determine if the recommendations are accurate and apply to their case. This feature simplifies onboarding by organizing resources into appropriate AppComponents.
  • Loading branch information
awstools committed Aug 2, 2024
1 parent 00374d5 commit b8d8c64
Show file tree
Hide file tree
Showing 39 changed files with 2,855 additions and 269 deletions.
40 changes: 40 additions & 0 deletions clients/client-resiliencehub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,14 @@ see LICENSE for more information.

## Client Commands (Operations List)

<details>
<summary>
AcceptResourceGroupingRecommendations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/AcceptResourceGroupingRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/AcceptResourceGroupingRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/AcceptResourceGroupingRecommendationsCommandOutput/)

</details>
<details>
<summary>
AddDraftAppVersionResourceMappings
Expand Down Expand Up @@ -390,6 +398,14 @@ DescribeResiliencyPolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/DescribeResiliencyPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeResiliencyPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeResiliencyPolicyCommandOutput/)

</details>
<details>
<summary>
DescribeResourceGroupingRecommendationTask
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/DescribeResourceGroupingRecommendationTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeResourceGroupingRecommendationTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/DescribeResourceGroupingRecommendationTaskCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -510,6 +526,14 @@ ListResiliencyPolicies

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListResiliencyPoliciesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListResiliencyPoliciesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListResiliencyPoliciesCommandOutput/)

</details>
<details>
<summary>
ListResourceGroupingRecommendations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListResourceGroupingRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListResourceGroupingRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListResourceGroupingRecommendationsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -566,6 +590,14 @@ PutDraftAppVersionTemplate

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/PutDraftAppVersionTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/PutDraftAppVersionTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/PutDraftAppVersionTemplateCommandOutput/)

</details>
<details>
<summary>
RejectResourceGroupingRecommendations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/RejectResourceGroupingRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/RejectResourceGroupingRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/RejectResourceGroupingRecommendationsCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -590,6 +622,14 @@ StartAppAssessment

[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/)

</details>
<details>
<summary>
StartResourceGroupingRecommendationTask
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/StartResourceGroupingRecommendationTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartResourceGroupingRecommendationTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/StartResourceGroupingRecommendationTaskCommandOutput/)

</details>
<details>
<summary>
Expand Down
116 changes: 116 additions & 0 deletions clients/client-resiliencehub/src/Resiliencehub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import {
AcceptResourceGroupingRecommendationsCommand,
AcceptResourceGroupingRecommendationsCommandInput,
AcceptResourceGroupingRecommendationsCommandOutput,
} from "./commands/AcceptResourceGroupingRecommendationsCommand";
import {
AddDraftAppVersionResourceMappingsCommand,
AddDraftAppVersionResourceMappingsCommandInput,
Expand Down Expand Up @@ -105,6 +110,11 @@ import {
DescribeResiliencyPolicyCommandInput,
DescribeResiliencyPolicyCommandOutput,
} from "./commands/DescribeResiliencyPolicyCommand";
import {
DescribeResourceGroupingRecommendationTaskCommand,
DescribeResourceGroupingRecommendationTaskCommandInput,
DescribeResourceGroupingRecommendationTaskCommandOutput,
} from "./commands/DescribeResourceGroupingRecommendationTaskCommand";
import {
ImportResourcesToDraftAppVersionCommand,
ImportResourcesToDraftAppVersionCommandInput,
Expand Down Expand Up @@ -176,6 +186,11 @@ import {
ListResiliencyPoliciesCommandInput,
ListResiliencyPoliciesCommandOutput,
} from "./commands/ListResiliencyPoliciesCommand";
import {
ListResourceGroupingRecommendationsCommand,
ListResourceGroupingRecommendationsCommandInput,
ListResourceGroupingRecommendationsCommandOutput,
} from "./commands/ListResourceGroupingRecommendationsCommand";
import {
ListSopRecommendationsCommand,
ListSopRecommendationsCommandInput,
Expand Down Expand Up @@ -211,6 +226,11 @@ import {
PutDraftAppVersionTemplateCommandInput,
PutDraftAppVersionTemplateCommandOutput,
} from "./commands/PutDraftAppVersionTemplateCommand";
import {
RejectResourceGroupingRecommendationsCommand,
RejectResourceGroupingRecommendationsCommandInput,
RejectResourceGroupingRecommendationsCommandOutput,
} from "./commands/RejectResourceGroupingRecommendationsCommand";
import {
RemoveDraftAppVersionResourceMappingsCommand,
RemoveDraftAppVersionResourceMappingsCommandInput,
Expand All @@ -226,6 +246,11 @@ import {
StartAppAssessmentCommandInput,
StartAppAssessmentCommandOutput,
} from "./commands/StartAppAssessmentCommand";
import {
StartResourceGroupingRecommendationTaskCommand,
StartResourceGroupingRecommendationTaskCommandInput,
StartResourceGroupingRecommendationTaskCommandOutput,
} from "./commands/StartResourceGroupingRecommendationTaskCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
Expand Down Expand Up @@ -256,6 +281,7 @@ import {
import { ResiliencehubClient, ResiliencehubClientConfig } from "./ResiliencehubClient";

const commands = {
AcceptResourceGroupingRecommendationsCommand,
AddDraftAppVersionResourceMappingsCommand,
BatchUpdateRecommendationStatusCommand,
CreateAppCommand,
Expand All @@ -279,6 +305,7 @@ const commands = {
DescribeAppVersionTemplateCommand,
DescribeDraftAppVersionResourcesImportStatusCommand,
DescribeResiliencyPolicyCommand,
DescribeResourceGroupingRecommendationTaskCommand,
ImportResourcesToDraftAppVersionCommand,
ListAlarmRecommendationsCommand,
ListAppAssessmentComplianceDriftsCommand,
Expand All @@ -294,16 +321,19 @@ const commands = {
ListAppVersionsCommand,
ListRecommendationTemplatesCommand,
ListResiliencyPoliciesCommand,
ListResourceGroupingRecommendationsCommand,
ListSopRecommendationsCommand,
ListSuggestedResiliencyPoliciesCommand,
ListTagsForResourceCommand,
ListTestRecommendationsCommand,
ListUnsupportedAppVersionResourcesCommand,
PublishAppVersionCommand,
PutDraftAppVersionTemplateCommand,
RejectResourceGroupingRecommendationsCommand,
RemoveDraftAppVersionResourceMappingsCommand,
ResolveAppVersionResourcesCommand,
StartAppAssessmentCommand,
StartResourceGroupingRecommendationTaskCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateAppCommand,
Expand All @@ -314,6 +344,23 @@ const commands = {
};

export interface Resiliencehub {
/**
* @see {@link AcceptResourceGroupingRecommendationsCommand}
*/
acceptResourceGroupingRecommendations(
args: AcceptResourceGroupingRecommendationsCommandInput,
options?: __HttpHandlerOptions
): Promise<AcceptResourceGroupingRecommendationsCommandOutput>;
acceptResourceGroupingRecommendations(
args: AcceptResourceGroupingRecommendationsCommandInput,
cb: (err: any, data?: AcceptResourceGroupingRecommendationsCommandOutput) => void
): void;
acceptResourceGroupingRecommendations(
args: AcceptResourceGroupingRecommendationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AcceptResourceGroupingRecommendationsCommandOutput) => void
): void;

/**
* @see {@link AddDraftAppVersionResourceMappingsCommand}
*/
Expand Down Expand Up @@ -687,6 +734,23 @@ export interface Resiliencehub {
cb: (err: any, data?: DescribeResiliencyPolicyCommandOutput) => void
): void;

/**
* @see {@link DescribeResourceGroupingRecommendationTaskCommand}
*/
describeResourceGroupingRecommendationTask(
args: DescribeResourceGroupingRecommendationTaskCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeResourceGroupingRecommendationTaskCommandOutput>;
describeResourceGroupingRecommendationTask(
args: DescribeResourceGroupingRecommendationTaskCommandInput,
cb: (err: any, data?: DescribeResourceGroupingRecommendationTaskCommandOutput) => void
): void;
describeResourceGroupingRecommendationTask(
args: DescribeResourceGroupingRecommendationTaskCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeResourceGroupingRecommendationTaskCommandOutput) => void
): void;

/**
* @see {@link ImportResourcesToDraftAppVersionCommand}
*/
Expand Down Expand Up @@ -937,6 +1001,24 @@ export interface Resiliencehub {
cb: (err: any, data?: ListResiliencyPoliciesCommandOutput) => void
): void;

/**
* @see {@link ListResourceGroupingRecommendationsCommand}
*/
listResourceGroupingRecommendations(): Promise<ListResourceGroupingRecommendationsCommandOutput>;
listResourceGroupingRecommendations(
args: ListResourceGroupingRecommendationsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListResourceGroupingRecommendationsCommandOutput>;
listResourceGroupingRecommendations(
args: ListResourceGroupingRecommendationsCommandInput,
cb: (err: any, data?: ListResourceGroupingRecommendationsCommandOutput) => void
): void;
listResourceGroupingRecommendations(
args: ListResourceGroupingRecommendationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListResourceGroupingRecommendationsCommandOutput) => void
): void;

/**
* @see {@link ListSopRecommendationsCommand}
*/
Expand Down Expand Up @@ -1057,6 +1139,23 @@ export interface Resiliencehub {
cb: (err: any, data?: PutDraftAppVersionTemplateCommandOutput) => void
): void;

/**
* @see {@link RejectResourceGroupingRecommendationsCommand}
*/
rejectResourceGroupingRecommendations(
args: RejectResourceGroupingRecommendationsCommandInput,
options?: __HttpHandlerOptions
): Promise<RejectResourceGroupingRecommendationsCommandOutput>;
rejectResourceGroupingRecommendations(
args: RejectResourceGroupingRecommendationsCommandInput,
cb: (err: any, data?: RejectResourceGroupingRecommendationsCommandOutput) => void
): void;
rejectResourceGroupingRecommendations(
args: RejectResourceGroupingRecommendationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: RejectResourceGroupingRecommendationsCommandOutput) => void
): void;

/**
* @see {@link RemoveDraftAppVersionResourceMappingsCommand}
*/
Expand Down Expand Up @@ -1108,6 +1207,23 @@ export interface Resiliencehub {
cb: (err: any, data?: StartAppAssessmentCommandOutput) => void
): void;

/**
* @see {@link StartResourceGroupingRecommendationTaskCommand}
*/
startResourceGroupingRecommendationTask(
args: StartResourceGroupingRecommendationTaskCommandInput,
options?: __HttpHandlerOptions
): Promise<StartResourceGroupingRecommendationTaskCommandOutput>;
startResourceGroupingRecommendationTask(
args: StartResourceGroupingRecommendationTaskCommandInput,
cb: (err: any, data?: StartResourceGroupingRecommendationTaskCommandOutput) => void
): void;
startResourceGroupingRecommendationTask(
args: StartResourceGroupingRecommendationTaskCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartResourceGroupingRecommendationTaskCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
Expand Down
Loading

0 comments on commit b8d8c64

Please sign in to comment.