Skip to main content

resource_grouping_recommendations

Creates, updates, deletes, gets or lists a resource_grouping_recommendations resource.

Overview

Nameresource_grouping_recommendations
TypeResource
Idaws.resiliencehub.resource_grouping_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
confidence_levelstringIndicates the confidence level of Resilience Hub on the grouping recommendation. (High, Medium)
creation_timestring (date-time)Indicates the creation time of the grouping recommendation.
grouping_app_componentobjectIndicates the name of the recommended Application Component (AppComponent).
grouping_recommendation_idstringIndicates all the reasons available for rejecting a grouping recommendation.
recommendation_reasonsarrayIndicates all the reasons available for rejecting a grouping recommendation.
rejection_reasonstringIndicates the reason you had selected while rejecting a grouping recommendation. (DistinctBusinessPurpose, SeparateDataConcern, DistinctUserGroupHandling, Other)
resourcesarrayIndicates the resources that are grouped in a recommended AppComponent.
scorenumber (double)Indicates the confidence level of the grouping recommendation.
statusstringIndicates the status of grouping resources into AppComponents. (Accepted, Rejected, PendingDecision)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_resource_grouping_recommendationsselectregionappArn, maxResults, nextTokenLists the resource grouping recommendations suggested by Resilience Hub for your application.
accept_resource_grouping_recommendationsexecregion, appArn, entriesAccepts the resource grouping recommendations suggested by Resilience Hub for your application.
reject_resource_grouping_recommendationsexecregion, appArn, entriesRejects resource grouping recommendations.
start_resource_grouping_recommendation_taskexecregion, appArnStarts grouping recommendation task.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
appArnstringAmazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
maxResultsintegerMaximum number of grouping recommendations to be displayed per Resilience Hub application.
nextTokenstringNull, or the token from a previous call to get the next set of results.

SELECT examples

Lists the resource grouping recommendations suggested by Resilience Hub for your application.

SELECT
confidence_level,
creation_time,
grouping_app_component,
grouping_recommendation_id,
recommendation_reasons,
rejection_reason,
resources,
score,
status
FROM aws.resiliencehub.resource_grouping_recommendations
WHERE region = '{{ region }}' -- required
AND appArn = '{{ appArn }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

Lifecycle Methods

Accepts the resource grouping recommendations suggested by Resilience Hub for your application.

EXEC aws.resiliencehub.resource_grouping_recommendations.accept_resource_grouping_recommendations
@region='{{ region }}' --required
@@json=
'{
"appArn": "{{ appArn }}",
"entries": "{{ entries }}"
}'
;