Values.GetAuthorizerResponseSourceGets an Authorizer.
type nonrec t = {enableSimpleResponses : bool option;Specifies whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs
*)identitySource : IdentitySourceList.t option;The identity source for which authorization is requested. For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs. For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.
*)identityValidationExpression : StringWithLengthBetween0And1024.t option;The validation expression does not apply to the REQUEST authorizer.
*)jwtConfiguration : JWTConfiguration.t option;Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.
*)name : StringWithLengthBetween1And128.t option;The name of the authorizer.
*)}type nonrec error = [ | `NotFoundException of NotFoundException.t| `TooManyRequestsException of TooManyRequestsException.t| `Unknown_operation_error of string * string option ]val make :
?authorizerCredentialsArn:??? ->
?authorizerId:??? ->
?authorizerPayloadFormatVersion:??? ->
?authorizerResultTtlInSeconds:??? ->
?authorizerType:??? ->
?authorizerUri:??? ->
?enableSimpleResponses:??? ->
?identitySource:??? ->
?identityValidationExpression:??? ->
?jwtConfiguration:??? ->
?name:??? ->
unit ->
tval error_of_json :
string ->
Yojson.Safe.t ->
[> `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of bool
| `Enum of string
| `Integer of IntegerWithLengthBetween0And3600.t
| `List of [> `String of string ] list
| `String of Arn.t
| `Structure of
(string
* [> `List of [> `String of string ] list
| `String of UriWithLengthBetween1And2048.t ])
list ])
list ]