getAuthorizer method

Future<Authorizer> getAuthorizer({
  1. required String authorizerId,
  2. required String restApiId,
})

Describe an existing Authorizer resource.

AWS CLI

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);
}