:doc:`Connect <../../connect>` / Client / update_instance_attribute

*************************
update_instance_attribute
*************************



.. py:method:: Connect.Client.update_instance_attribute(**kwargs)

  

  This API is in preview release for Amazon Connect and is subject to change.

   

  Updates the value for the specified attribute type.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateInstanceAttribute>`_  


  **Request Syntax**
  ::

    response = client.update_instance_attribute(
        InstanceId='string',
        AttributeType='INBOUND_CALLS'|'OUTBOUND_CALLS'|'CONTACTFLOW_LOGS'|'CONTACT_LENS'|'AUTO_RESOLVE_BEST_VOICES'|'USE_CUSTOM_TTS_VOICES'|'EARLY_MEDIA'|'MULTI_PARTY_CONFERENCE'|'HIGH_VOLUME_OUTBOUND'|'ENHANCED_CONTACT_MONITORING'|'ENHANCED_CHAT_MONITORING'|'MULTI_PARTY_CHAT_CONFERENCE'|'MESSAGE_STREAMING',
        Value='string',
        ClientToken='string'
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

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

    The type of attribute.

     

    .. note::

      

      Only allowlisted customers can consume USE_CUSTOM_TTS_VOICES. To access this feature, contact Amazon Web Services Support for allowlisting.

      

     

    .. note::

      

      If you set the attribute type as ``MESSAGE_STREAMING``, you need to update the Lex bot alias resource based policy to include the ``lex:RecognizeMessageAsync`` action for the connect instance ARN resource.

      

    

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

    The value for the attribute. Maximum character limit is 100.

    

  
  :type ClientToken: string
  :param ClientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see `Making retries safe with idempotent APIs <https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/>`__.

    This field is autopopulated if not provided.

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`Connect.Client.exceptions.ThrottlingException`

  