:doc:`LakeFormation <../../lakeformation>` / Client / update_resource

***************
update_resource
***************



.. py:method:: LakeFormation.Client.update_resource(**kwargs)

  

  Updates the data access role used for vending access to the given (registered) resource in Lake Formation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateResource>`_  


  **Request Syntax**
  ::

    response = client.update_resource(
        RoleArn='string',
        ResourceArn='string',
        WithFederation=True|False,
        HybridAccessEnabled=True|False,
        ExpectedResourceOwnerAccount='string'
    )
    
  :type RoleArn: string
  :param RoleArn: **[REQUIRED]** 

    The new role to use for the given resource registered in Lake Formation.

    

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

    The resource ARN.

    

  
  :type WithFederation: boolean
  :param WithFederation: 

    Whether or not the resource is a federated resource.

    

  
  :type HybridAccessEnabled: boolean
  :param HybridAccessEnabled: 

    Specifies whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

    

  
  :type ExpectedResourceOwnerAccount: string
  :param ExpectedResourceOwnerAccount: 

    The Amazon Web Services account that owns the Glue tables associated with specific Amazon S3 locations.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`LakeFormation.Client.exceptions.InvalidInputException`

  
  *   :py:class:`LakeFormation.Client.exceptions.InternalServiceException`

  
  *   :py:class:`LakeFormation.Client.exceptions.OperationTimeoutException`

  
  *   :py:class:`LakeFormation.Client.exceptions.EntityNotFoundException`

  