getAuthorizer method

Future<GetAuthorizerResponse> getAuthorizer({
  1. required String apiId,
  2. required String authorizerId,
})

Gets an Authorizer.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter authorizerId : The authorizer identifier.

Implementation

Future<GetAuthorizerResponse> getAuthorizer({
  required String apiId,
  required String authorizerId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(authorizerId, 'authorizerId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/authorizers/${Uri.encodeComponent(authorizerId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAuthorizerResponse.fromJson(response);
}