updateConfiguration method

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

Updates the specified configuration.

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

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

Parameter data : Amazon MQ for Active MQ: The base64-encoded XML configuration. Amazon MQ for RabbitMQ: the base64-encoded Cuttlefish configuration.

Parameter description : The description of the configuration.

Implementation

Future<UpdateConfigurationResponse> updateConfiguration({
  required String configurationId,
  required String data,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    '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);
}