:doc:`MQ <../../mq>` / Client / update_user

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



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

  

  Updates the information for an ActiveMQ user.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser>`_  


  **Request Syntax**
  ::

    response = client.update_user(
        BrokerId='string',
        ConsoleAccess=True|False,
        Groups=[
            'string',
        ],
        Password='string',
        Username='string',
        ReplicationUser=True|False
    )
    
  :type BrokerId: string
  :param BrokerId: **[REQUIRED]** 

    The unique ID that Amazon MQ generates for the broker.

    

  
  :type ConsoleAccess: boolean
  :param ConsoleAccess: 

    Enables access to the the ActiveMQ Web Console for the ActiveMQ user.

    

  
  :type Groups: list
  :param Groups: 

    The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

    

  
    - *(string) --* 

    

  :type Password: string
  :param Password: 

    The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).

    

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

    The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.

    

  
  :type ReplicationUser: boolean
  :param ReplicationUser: 

    Defines whether the user is intended for data replication.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      HTTP Status Code 200: OK.

      
  
  **Exceptions**
  
  *   :py:class:`MQ.Client.exceptions.NotFoundException`

  
  *   :py:class:`MQ.Client.exceptions.BadRequestException`

  
  *   :py:class:`MQ.Client.exceptions.InternalServerErrorException`

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

  
  *   :py:class:`MQ.Client.exceptions.ForbiddenException`

  