updateConfiguration method

Future<UpdateConfigurationResponse> updateConfiguration({
  1. required String arn,
  2. required Uint8List serverProperties,
  3. String? description,
})

Updates an MSK configuration.

May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException.

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 {
  ArgumentError.checkNotNull(arn, 'arn');
  ArgumentError.checkNotNull(serverProperties, 'serverProperties');
  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);
}