updateDiscoverer method
Updates the discoverer
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw UnauthorizedException.
Parameter discovererId :
The ID of the discoverer.
Parameter crossAccount :
Support discovery of schemas in events sent to the bus from another
account. (default: true)
Parameter description :
The description of the discoverer to update.
Implementation
Future<UpdateDiscovererResponse> updateDiscoverer({
required String discovererId,
bool? crossAccount,
String? description,
}) async {
final $payload = <String, dynamic>{
if (crossAccount != null) 'CrossAccount': crossAccount,
if (description != null) 'Description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/discoverers/id/${Uri.encodeComponent(discovererId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateDiscovererResponse.fromJson(response);
}