ResilienceHub / Client / reject_resource_grouping_recommendations

reject_resource_grouping_recommendations#

ResilienceHub.Client.reject_resource_grouping_recommendations(**kwargs)#

Rejects resource grouping recommendations.

See also: AWS API Documentation

Request Syntax

response = client.reject_resource_grouping_recommendations(
    appArn='string',
    entries=[
        {
            'groupingRecommendationId': 'string',
            'rejectionReason': 'DistinctBusinessPurpose'|'SeparateDataConcern'|'DistinctUserGroupHandling'|'Other'
        },
    ]
)
Parameters:
  • appArn (string) –

    [REQUIRED]

    Amazon 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.

  • entries (list) –

    [REQUIRED]

    List of resource grouping recommendations you have selected to exclude from your application.

    • (dict) –

      Indicates the rejected grouping recommendation.

      • groupingRecommendationId (string) – [REQUIRED]

        Indicates the identifier of the grouping recommendation.

      • rejectionReason (string) –

        Indicates the reason you had selected while rejecting a grouping recommendation.

Return type:

dict

Returns:

Response Syntax

{
    'appArn': 'string',
    'failedEntries': [
        {
            'errorMessage': 'string',
            'groupingRecommendationId': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • appArn (string) –

      Amazon 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.

    • failedEntries (list) –

      List of resource grouping recommendations that failed to get excluded in your application.

      • (dict) –

        Indicates the accepted grouping recommendation whose implementation failed.

        • errorMessage (string) –

          Indicates the error that occurred while implementing a grouping recommendation.

        • groupingRecommendationId (string) –

          Indicates the identifier of the grouping recommendation.

Exceptions

  • ResilienceHub.Client.exceptions.InternalServerException

  • ResilienceHub.Client.exceptions.ResourceNotFoundException

  • ResilienceHub.Client.exceptions.ThrottlingException

  • ResilienceHub.Client.exceptions.ValidationException

  • ResilienceHub.Client.exceptions.AccessDeniedException