MQ / Client / update_configuration

update_configuration#

MQ.Client.update_configuration(**kwargs)#

Updates the specified configuration.

See also: AWS API Documentation

Request Syntax

response = client.update_configuration(
    ConfigurationId='string',
    Data='string',
    Description='string'
)
Parameters:
  • ConfigurationId (string) –

    [REQUIRED]

    The unique ID that Amazon MQ generates for the configuration.

  • Data (string) –

    [REQUIRED]

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

  • Description (string) – The description of the configuration.

Return type:

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

  • MQ.Client.exceptions.NotFoundException

  • MQ.Client.exceptions.BadRequestException

  • MQ.Client.exceptions.InternalServerErrorException

  • MQ.Client.exceptions.ConflictException

  • MQ.Client.exceptions.ForbiddenException