:doc:`WorkMail <../../workmail>` / Client / update_resource

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



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

  

  Updates data for the resource. To have the latest information, it must be preceded by a  DescribeResource call. The dataset in the request should be the one expected when performing another ``DescribeResource`` call.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateResource>`_  


  **Request Syntax**
  ::

    response = client.update_resource(
        OrganizationId='string',
        ResourceId='string',
        Name='string',
        BookingOptions={
            'AutoAcceptRequests': True|False,
            'AutoDeclineRecurringRequests': True|False,
            'AutoDeclineConflictingRequests': True|False
        },
        Description='string',
        Type='ROOM'|'EQUIPMENT',
        HiddenFromGlobalAddressList=True|False
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier associated with the organization for which the resource is updated.

    

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

    The identifier of the resource to be updated.

     

    The identifier can accept *ResourceId*, *Resourcename*, or *email*. The following identity formats are available:

     

    
    * Resource ID: r-0123456789a0123456789b0123456789
     
    * Email address: resource@domain.tld
     
    * Resource name: resource
    

    

  
  :type Name: string
  :param Name: 

    The name of the resource to be updated.

    

  
  :type BookingOptions: dict
  :param BookingOptions: 

    The resource's booking options to be updated.

    

  
    - **AutoAcceptRequests** *(boolean) --* 

      The resource's ability to automatically reply to requests. If disabled, delegates must be associated to the resource.

      

    
    - **AutoDeclineRecurringRequests** *(boolean) --* 

      The resource's ability to automatically decline any recurring requests.

      

    
    - **AutoDeclineConflictingRequests** *(boolean) --* 

      The resource's ability to automatically decline any conflicting requests.

      

    
  
  :type Description: string
  :param Description: 

    Updates the resource description.

    

  
  :type Type: string
  :param Type: 

    Updates the resource type.

    

  
  :type HiddenFromGlobalAddressList: boolean
  :param HiddenFromGlobalAddressList: 

    If enabled, the resource is hidden from the global address list.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.DirectoryUnavailableException`

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

  
  *   :py:class:`WorkMail.Client.exceptions.EntityStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidConfigurationException`

  
  *   :py:class:`WorkMail.Client.exceptions.EmailAddressInUseException`

  
  *   :py:class:`WorkMail.Client.exceptions.MailDomainNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.MailDomainStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.NameAvailabilityException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

  