:doc:`Redshift <../../redshift>` / Client / put_resource_policy

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



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

  

  Updates the resource policy for a specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PutResourcePolicy>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.

    

  
  :type Policy: string
  :param Policy: **[REQUIRED]** 

    The content of the resource policy being updated.

    

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

    
    ::

      {
          'ResourcePolicy': {
              'ResourceArn': 'string',
              'Policy': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourcePolicy** *(dict) --* 

        The content of the updated resource policy.

        
        

        - **ResourceArn** *(string) --* 

          The resources that a policy is attached to.

          
        

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

          The content of a resource policy.

          
    
  
  **Exceptions**
  
  *   :py:class:`Redshift.Client.exceptions.ResourceNotFoundFault`

  
  *   :py:class:`Redshift.Client.exceptions.InvalidPolicyFault`

  
  *   :py:class:`Redshift.Client.exceptions.ConflictPolicyUpdateFault`

  
  *   :py:class:`Redshift.Client.exceptions.UnsupportedOperationFault`

  