getService method
Retrieves given service by it's unique identifier
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter serviceId :
The unique identifier of the given service.
Implementation
Future<GetServiceOutput> getService({
required String serviceId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/services/${Uri.encodeComponent(serviceId)}',
hostPrefix: 'cp.',
exceptionFnMap: _exceptionFns,
);
return GetServiceOutput.fromJson(response);
}