:doc:`kendra <../../kendra>` / Client / update_thesaurus

****************
update_thesaurus
****************



.. py:method:: kendra.Client.update_thesaurus(**kwargs)

  

  Updates a thesaurus for an index.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateThesaurus>`_  


  **Request Syntax**
  ::

    response = client.update_thesaurus(
        Id='string',
        Name='string',
        IndexId='string',
        Description='string',
        RoleArn='string',
        SourceS3Path={
            'Bucket': 'string',
            'Key': 'string'
        }
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The identifier of the thesaurus you want to update.

    

  
  :type Name: string
  :param Name: 

    A new name for the thesaurus.

    

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

    The identifier of the index for the thesaurus.

    

  
  :type Description: string
  :param Description: 

    A new description for the thesaurus.

    

  
  :type RoleArn: string
  :param RoleArn: 

    An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in ``SourceS3Path``.

    

  
  :type SourceS3Path: dict
  :param SourceS3Path: 

    Information required to find a specific file in an Amazon S3 bucket.

    

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

      The name of the S3 bucket that contains the file.

      

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

      The name of the file.

      

    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`kendra.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`kendra.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`kendra.Client.exceptions.ConflictException`

  
  *   :py:class:`kendra.Client.exceptions.InternalServerException`

  