update_configuration

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]

    Required. The base64-encoded XML 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) --

      Required. The Amazon Resource Name (ARN) of the configuration.

    • Created (datetime) --

      Required. The date and time of the configuration.

    • Id (string) --

      Required. 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) --

      Required. 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 XML elements or attributes that were sanitized.

      • (dict) --

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

        • AttributeName (string) --

          The name of the XML attribute that has been sanitized.

        • ElementName (string) --

          The name of the XML element that has been sanitized.

        • Reason (string) --

          Required. The reason for which the XML 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