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

********************
get_component_policy
********************



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

  

  Gets a component policy.

  

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


  **Request Syntax**
  ::

    response = client.get_component_policy(
        componentArn='string'
    )
    
  :type componentArn: string
  :param componentArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the component whose policy you want to retrieve.

    

  
  
  :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 component policy.

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

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

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

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

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

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

  