:doc:`ResilienceHub <../../resiliencehub>` / Client / accept_resource_grouping_recommendations

****************************************
accept_resource_grouping_recommendations
****************************************



.. py:method:: ResilienceHub.Client.accept_resource_grouping_recommendations(**kwargs)

  

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/AcceptResourceGroupingRecommendations>`_  


  **Request Syntax**
  ::

    response = client.accept_resource_grouping_recommendations(
        appArn='string',
        entries=[
            {
                'groupingRecommendationId': 'string'
            },
        ]
    )
    
  :type appArn: string
  :param appArn: **[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) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

    

  
  :type entries: list
  :param entries: **[REQUIRED]** 

    List of resource grouping recommendations you want to include in your application.

    

  
    - *(dict) --* 

      Indicates the grouping recommendation you have accepted to include in your application.

      

    
      - **groupingRecommendationId** *(string) --* **[REQUIRED]** 

        Indicates the identifier of the grouping recommendation.

        

      
    

  
  :rtype: 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) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

        
      

      - **failedEntries** *(list) --* 

        List of resource grouping recommendations that could not be included 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**
  
  *   :py:class:`ResilienceHub.Client.exceptions.InternalServerException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.ValidationException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.AccessDeniedException`

  