getAuthorizer method
Describe an existing Authorizer resource.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter authorizerId :
The identifier of the Authorizer resource.
Parameter restApiId :
The string identifier of the associated RestApi.
Implementation
Future<Authorizer> getAuthorizer({
required String authorizerId,
required String restApiId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/authorizers/${Uri.encodeComponent(authorizerId)}',
exceptionFnMap: _exceptionFns,
);
return Authorizer.fromJson(response);
}