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

*********************************
update_availability_configuration
*********************************



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

  

  Updates an existing ``AvailabilityConfiguration`` for the given WorkMail organization and domain.

  

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


  **Request Syntax**
  ::

    response = client.update_availability_configuration(
        OrganizationId='string',
        DomainName='string',
        EwsProvider={
            'EwsEndpoint': 'string',
            'EwsUsername': 'string',
            'EwsPassword': 'string'
        },
        LambdaProvider={
            'LambdaArn': 'string'
        }
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The WorkMail organization for which the ``AvailabilityConfiguration`` will be updated.

    

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

    The domain to which the provider applies the availability configuration.

    

  
  :type EwsProvider: dict
  :param EwsProvider: 

    The EWS availability provider definition. The request must contain exactly one provider definition, either ``EwsProvider`` or ``LambdaProvider``. The previously stored provider will be overridden by the one provided.

    

  
    - **EwsEndpoint** *(string) --* **[REQUIRED]** 

      The endpoint of the remote EWS server.

      

    
    - **EwsUsername** *(string) --* **[REQUIRED]** 

      The username used to authenticate the remote EWS server.

      

    
    - **EwsPassword** *(string) --* **[REQUIRED]** 

      The password used to authenticate the remote EWS server.

      

    
  
  :type LambdaProvider: dict
  :param LambdaProvider: 

    The Lambda availability provider definition. The request must contain exactly one provider definition, either ``EwsProvider`` or ``LambdaProvider``. The previously stored provider will be overridden by the one provided.

    

  
    - **LambdaArn** *(string) --* **[REQUIRED]** 

      The Amazon Resource Name (ARN) of the Lambda that acts as the availability provider.

      

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  