updateConfiguration method
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.
Implementation
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);
}