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

********************
update_configuration
********************



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

  

  Updates the specified configuration.

  

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


  **Request Syntax**
  ::

    response = client.update_configuration(
        ConfigurationId='string',
        Data='string',
        Description='string'
    )
    
  :type ConfigurationId: string
  :param ConfigurationId: **[REQUIRED]** 

    The unique ID that Amazon MQ generates for the configuration.

    

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

    Amazon MQ for Active MQ: The base64-encoded XML configuration. Amazon MQ for RabbitMQ: the base64-encoded Cuttlefish configuration.

    

  
  :type Description: string
  :param Description: 

    The description of the configuration.

    

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

    
    ::

      {
          'Arn': 'string',
          'Created': datetime(2015, 1, 1),
          'Id': 'string',
          'LatestRevision': {
              'Created': datetime(2015, 1, 1),
              'Description': 'string',
              'Revision': 123
          },
          'Name': 'string',
          'Warnings': [
              {
                  'AttributeName': 'string',
                  'ElementName': 'string',
                  'Reason': 'DISALLOWED_ELEMENT_REMOVED'|'DISALLOWED_ATTRIBUTE_REMOVED'|'INVALID_ATTRIBUTE_VALUE_REMOVED'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      HTTP Status Code 200: OK.

      
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the configuration.

        
      

      - **Created** *(datetime) --* 

        Required. The date and time of the configuration.

        
      

      - **Id** *(string) --* 

        The unique ID that Amazon MQ generates for the configuration.

        
      

      - **LatestRevision** *(dict) --* 

        The latest revision of the configuration.

        
        

        - **Created** *(datetime) --* 

          Required. The date and time of the configuration revision.

          
        

        - **Description** *(string) --* 

          The description of the configuration revision.

          
        

        - **Revision** *(integer) --* 

          Required. The revision number of the configuration.

          
    
      

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

        The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.

        
      

      - **Warnings** *(list) --* 

        The list of the first 20 warnings about the configuration elements or attributes that were sanitized.

        
        

        - *(dict) --* 

          Returns information about the configuration element or attribute that was sanitized in the configuration.

          
          

          - **AttributeName** *(string) --* 

            The name of the configuration attribute that has been sanitized.

            
          

          - **ElementName** *(string) --* 

            The name of the configuration element that has been sanitized.

            
          

          - **Reason** *(string) --* 

            The reason for which the configuration elements or attributes were sanitized.

            
      
    
  
  **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`

  