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