:doc:`imagebuilder <../../imagebuilder>` / Client / get_container_recipe_policy

***************************
get_container_recipe_policy
***************************



.. py:method:: imagebuilder.Client.get_container_recipe_policy(**kwargs)

  

  Retrieves the policy for a container recipe.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetContainerRecipePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_container_recipe_policy(
        containerRecipeArn='string'
    )
    
  :type containerRecipeArn: string
  :param containerRecipeArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the container recipe for the policy being requested.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'requestId': 'string',
          'policy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **requestId** *(string) --* 

        The request ID that uniquely identifies this request.

        
      

      - **policy** *(string) --* 

        The container recipe policy object that is returned.

        
  
  **Exceptions**
  
  *   :py:class:`imagebuilder.Client.exceptions.ServiceException`

  
  *   :py:class:`imagebuilder.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`imagebuilder.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`imagebuilder.Client.exceptions.ForbiddenException`

  
  *   :py:class:`imagebuilder.Client.exceptions.CallRateLimitExceededException`

  