Amazon MQ
REST API Reference

Configurations

URI

/v1/configurations

HTTP Methods

GET

Operation ID: ListConfigurations

Returns a list of all configurations.

Query Parameters

Name Type Required Description
nextToken String False

The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

maxResults String False

The maximum number of configurations that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.

Responses

Status Code Response Model Description
200 ListConfigurationsOutput

HTTP Status Code 200: OK.

400 Error

HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.

403 Error

HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.

500 Error

HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.

POST

Operation ID: CreateConfiguration

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

Responses

Status Code Response Model Description
200 CreateConfigurationOutput

HTTP Status Code 200: OK.

400 Error

HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.

403 Error

HTTP Status Code 403: Access forbidden. Correct your input and then retry your request.

409 Error

HTTP Status Code 409: Conflict. This configuration name already exists. Retry your request with another configuration name.

500 Error

HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.

Schemas

Request Bodies

Example POST

{ "engineVersion": "string", "name": "string", "engineType": enum, "tags": { } }

Response Bodies

Example ListConfigurationsOutput

{ "nextToken": "string", "maxResults": integer, "configurations": [ { "engineVersion": "string", "created": "string", "name": "string", "description": "string", "engineType": enum, "id": "string", "arn": "string", "latestRevision": { "created": "string", "description": "string", "revision": integer }, "tags": { } } ] }

Example CreateConfigurationOutput

{ "created": "string", "name": "string", "id": "string", "arn": "string", "latestRevision": { "created": "string", "description": "string", "revision": integer } }

Example Error

{ "errorAttribute": "string", "message": "string" }

Properties

Configuration

Returns information about all configurations.

Property Type Required Description
engineVersion

string

False

Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html

created

string

Format: date-time

False

Required. The date and time of the configuration revision.

name

string

False

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.

description

string

False

Required. The description of the configuration.

engineType

EngineType

False

Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.

id

string

False

Required. The unique ID that Amazon MQ generates for the configuration.

arn

string

False

Required. The ARN of the configuration.

latestRevision

ConfigurationRevision

False

Required. The latest revision of the configuration.

tags

object

False

The list of all tags associated with this configuration.

ConfigurationRevision

Returns information about the specified configuration revision.

Property Type Required Description
created

string

Format: date-time

False

Required. The date and time of the configuration revision.

description

string

False

The description of the configuration revision.

revision

integer

False

Required. The revision number of the configuration.

CreateConfigurationInput

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

Property Type Required Description
engineVersion

string

False

Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html

name

string

False

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.

engineType

EngineType

False

Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.

tags

object

False

Create tags when creating the configuration.

CreateConfigurationOutput

Returns information about the created configuration.

Property Type Required Description
created

string

Format: date-time

False

Required. The date and time of the configuration.

name

string

False

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.

id

string

False

Required. The unique ID that Amazon MQ generates for the configuration.

arn

string

False

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

latestRevision

ConfigurationRevision

False

The latest revision of the configuration.

EngineType

The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.

  • ACTIVEMQ

Error

Returns information about an error.

Property Type Required Description
errorAttribute

string

False

The attribute which caused the error.

message

string

False

The explanation of the error.

ListConfigurationsOutput

Returns a list of all configurations.

Property Type Required Description
nextToken

string

False

The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.

maxResults

integer

False

The maximum number of configurations that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.

configurations

Array of type Configuration

False

The list of all revisions for the specified configuration.

See Also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

ListConfigurations

CreateConfiguration