:doc:`S3Control <../../s3control>` / Client / put_access_grants_instance_resource_policy

******************************************
put_access_grants_instance_resource_policy
******************************************



.. py:method:: S3Control.Client.put_access_grants_instance_resource_policy(**kwargs)

  

  Updates the resource policy of the S3 Access Grants instance.

    Permissions  

  You must have the ``s3:PutAccessGrantsInstanceResourcePolicy`` permission to use this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutAccessGrantsInstanceResourcePolicy>`_  


  **Request Syntax**
  ::

    response = client.put_access_grants_instance_resource_policy(
        AccountId='string',
        Policy='string',
        Organization='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Web Services account ID of the S3 Access Grants instance.

    

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

    The resource policy of the S3 Access Grants instance that you are updating.

    

  
  :type Organization: string
  :param Organization: 

    The Organization of the resource policy of the S3 Access Grants instance.

    

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

    
    ::

      {
          'Policy': 'string',
          'Organization': 'string',
          'CreatedAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The updated resource policy of the S3 Access Grants instance.

        
      

      - **Organization** *(string) --* 

        The Organization of the resource policy of the S3 Access Grants instance.

        
      

      - **CreatedAt** *(datetime) --* 

        The date and time when you created the S3 Access Grants instance resource policy.

        
  