Skip to main content

configurations

Creates, updates, deletes, gets or lists a configurations resource.

Overview

Nameconfigurations
TypeResource
Idaws.mq.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringRequired. The ARN of the configuration.
authentication_strategystringOptional. The authentication strategy used to secure the broker. The default is SIMPLE. (SIMPLE, LDAP, CONFIG_MANAGED)
createdstring (date-time)Required. The date and time of the configuration revision.
descriptionstringRequired. The description of the configuration.
engine_typestringThe type of broker engine. Amazon MQ supports ActiveMQ and RabbitMQ. (ACTIVEMQ, RABBITMQ)
engine_versionstringThe broker engine version. Defaults to the latest available version for the specified broker engine type. For a list of supported engine versions, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
idstringRequired. The unique ID that Amazon MQ generates for the configuration.
latest_revisionobjectRequired. The latest revision of the configuration.
namestringRequired. 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.
tagsobjectThe list of all tags associated with this configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_configurationselectconfiguration-id, regionReturns information about the specified configuration.
list_configurationsselectregionmaxResults, nextTokenReturns a list of all configurations.
create_configurationinsertregion, EngineTypeCreates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
update_configurationupdateconfiguration-id, region, DataUpdates the specified configuration.
delete_configurationdeleteconfiguration-id, regionDeletes the specified configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configuration-idstringThe unique ID that Amazon MQ generates for the configuration.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
nextTokenstringThe token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

SELECT examples

Returns information about the specified configuration.

SELECT
arn,
authentication_strategy,
created,
description,
engine_type,
engine_version,
id,
latest_revision,
name,
tags
FROM aws.mq.configurations
WHERE `configuration-id` = '{{ configuration-id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).

INSERT INTO aws.mq.configurations (
AuthenticationStrategy,
EngineType,
EngineVersion,
Name,
Tags,
region
)
SELECT
'{{ AuthenticationStrategy }}',
'{{ EngineType }}' /* required */,
'{{ EngineVersion }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
authentication_strategy,
created,
id,
latest_revision,
name
;

UPDATE examples

Updates the specified configuration.

UPDATE aws.mq.configurations
SET
Data = '{{ Data }}',
Description = '{{ Description }}'
WHERE
`configuration-id` = '{{ configuration-id }}' --required
AND region = '{{ region }}' --required
AND Data = '{{ Data }}' --required
RETURNING
arn,
created,
id,
latest_revision,
name,
warnings;

DELETE examples

Deletes the specified configuration.

DELETE FROM aws.mq.configurations
WHERE `configuration-id` = '{{ configuration-id }}' --required
AND region = '{{ region }}' --required
;