:doc:`Schemas <../../schemas>` / Client / put_resource_policy

*******************
put_resource_policy
*******************



.. py:method:: Schemas.Client.put_resource_policy(**kwargs)

  

  The name of the policy.

  

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


  **Request Syntax**
  ::

    response = client.put_resource_policy(
        Policy='string',
        RegistryName='string',
        RevisionId='string'
    )
    
  :type Policy: string
  :param Policy: **[REQUIRED]** 

    The resource-based policy.

    

  
  :type RegistryName: string
  :param RegistryName: 

    The name of the registry.

    

  
  :type RevisionId: string
  :param RevisionId: 

    The revision ID of the policy.

    

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

    
    ::

      {
          'Policy': 'string',
          'RevisionId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response

      
      

      - **Policy** *(string) --* 

        The resource-based policy.

        
      

      - **RevisionId** *(string) --* 

        The revision ID of the policy.

        
  
  **Exceptions**
  
  *   :py:class:`Schemas.Client.exceptions.BadRequestException`

  
  *   :py:class:`Schemas.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Schemas.Client.exceptions.PreconditionFailedException`

  
  *   :py:class:`Schemas.Client.exceptions.InternalServerErrorException`

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

  
  *   :py:class:`Schemas.Client.exceptions.NotFoundException`

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

  