updateConfiguration method
Updates an MSK configuration.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw UnauthorizedException.
Parameter arn :
The Amazon Resource Name (ARN) of the configuration.
Parameter serverProperties :
Contents of the file. When using
the API, you must ensure that the contents of the file are base64 encoded.
When using the AWS Management Console, the SDK, or the AWS CLI, the
contents of can be in plaintext.
Parameter description :
The description of the configuration revision.
Implementation
Future<UpdateConfigurationResponse> updateConfiguration({
required String arn,
required Uint8List serverProperties,
String? description,
}) async {
final $payload = <String, dynamic>{
'serverProperties': base64Encode(serverProperties),
if (description != null) 'description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/configurations/${Uri.encodeComponent(arn)}',
exceptionFnMap: _exceptionFns,
);
return UpdateConfigurationResponse.fromJson(response);
}