describeAuthorizer method
Describes an authorizer.
May throw ResourceNotFoundException. May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter authorizerName
:
The name of the authorizer to describe.
Implementation
Future<DescribeAuthorizerResponse> describeAuthorizer({
required String authorizerName,
}) async {
ArgumentError.checkNotNull(authorizerName, 'authorizerName');
_s.validateStringLength(
'authorizerName',
authorizerName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/authorizer/${Uri.encodeComponent(authorizerName)}',
exceptionFnMap: _exceptionFns,
);
return DescribeAuthorizerResponse.fromJson(response);
}