:doc:`MemoryDB <../../memorydb>` / Client / update_user

***********
update_user
***********



.. py:method:: MemoryDB.Client.update_user(**kwargs)

  

  Changes user password(s) and/or access string.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/UpdateUser>`_  


  **Request Syntax**
  ::

    response = client.update_user(
        UserName='string',
        AuthenticationMode={
            'Type': 'password'|'iam',
            'Passwords': [
                'string',
            ]
        },
        AccessString='string'
    )
    
  :type UserName: string
  :param UserName: **[REQUIRED]** 

    The name of the user

    

  
  :type AuthenticationMode: dict
  :param AuthenticationMode: 

    Denotes the user's authentication properties, such as whether it requires a password to authenticate.

    

  
    - **Type** *(string) --* 

      Indicates whether the user requires a password to authenticate. All newly-created users require a password.

      

    
    - **Passwords** *(list) --* 

      The password(s) used for authentication

      

    
      - *(string) --* 

      
  
  
  :type AccessString: string
  :param AccessString: 

    Access permissions string used for this user.

    

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

    
    ::

      {
          'User': {
              'Name': 'string',
              'Status': 'string',
              'AccessString': 'string',
              'ACLNames': [
                  'string',
              ],
              'MinimumEngineVersion': 'string',
              'Authentication': {
                  'Type': 'password'|'no-password'|'iam',
                  'PasswordCount': 123
              },
              'ARN': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **User** *(dict) --* 

        The updated user

        
        

        - **Name** *(string) --* 

          The name of the user

          
        

        - **Status** *(string) --* 

          Indicates the user status. Can be "active", "modifying" or "deleting".

          
        

        - **AccessString** *(string) --* 

          Access permissions string used for this user.

          
        

        - **ACLNames** *(list) --* 

          The names of the Access Control Lists to which the user belongs

          
          

          - *(string) --* 
      
        

        - **MinimumEngineVersion** *(string) --* 

          The minimum engine version supported for the user

          
        

        - **Authentication** *(dict) --* 

          Denotes whether the user requires a password to authenticate.

          
          

          - **Type** *(string) --* 

            Indicates whether the user requires a password to authenticate.

            
          

          - **PasswordCount** *(integer) --* 

            The number of passwords belonging to the user. The maximum is two.

            
      
        

        - **ARN** *(string) --* 

          The Amazon Resource Name (ARN) of the user.

          
    
  
  **Exceptions**
  
  *   :py:class:`MemoryDB.Client.exceptions.UserNotFoundFault`

  
  *   :py:class:`MemoryDB.Client.exceptions.InvalidUserStateFault`

  
  *   :py:class:`MemoryDB.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`MemoryDB.Client.exceptions.InvalidParameterCombinationException`

  