updateConfiguration method

Future<UpdateConfigurationResponse> updateConfiguration({
  1. required String configurationId,
  2. String? data,
  3. String? description,

Updates the specified configuration.

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

Parameter configurationId : The unique ID that Amazon MQ generates for the configuration.

Parameter data : Required. The base64-encoded XML configuration.

Parameter description : The description of the configuration.


Future<UpdateConfigurationResponse> updateConfiguration({
  required String configurationId,
  String? data,
  String? description,
}) async {
  ArgumentError.checkNotNull(configurationId, 'configurationId');
  final $payload = <String, dynamic>{
    if (data != null) 'data': data,
    if (description != null) 'description': description,
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v1/configurations/${Uri.encodeComponent(configurationId)}',
    exceptionFnMap: _exceptionFns,
  return UpdateConfigurationResponse.fromJson(response);