createConfiguration method

Future<CreateConfigurationResponse> createConfiguration({
  1. AuthenticationStrategy? authenticationStrategy,
  2. EngineType? engineType,
  3. String? engineVersion,
  4. String? name,
  5. Map<String, String>? tags,

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

May throw BadRequestException. May throw InternalServerErrorException. May throw ConflictException. May throw ForbiddenException.

Parameter authenticationStrategy : The authentication strategy associated with the configuration.

Parameter engineType : Required. The type of broker engine. Note: Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

Parameter engineVersion : Required. The version of the broker engine. For a list of supported engine versions, see

Parameter name : 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.

Parameter tags : Create tags when creating the configuration.


Future<CreateConfigurationResponse> createConfiguration({
  AuthenticationStrategy? authenticationStrategy,
  EngineType? engineType,
  String? engineVersion,
  String? name,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    if (authenticationStrategy != null)
      'authenticationStrategy': authenticationStrategy.toValue(),
    if (engineType != null) 'engineType': engineType.toValue(),
    if (engineVersion != null) 'engineVersion': engineVersion,
    if (name != null) 'name': name,
    if (tags != null) 'tags': tags,
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v1/configurations',
    exceptionFnMap: _exceptionFns,
  return CreateConfigurationResponse.fromJson(response);