ApiGatewayV1Authorizer
Reference doc for the `sst.aws.ApiGatewayV1Authorizer` component.
The ApiGatewayV1Authorizer
component is internally used by the ApiGatewayV1
component
to add authorizers to Amazon API Gateway REST API.
You’ll find this component returned by the addAuthorizer
method of the ApiGatewayV1
component.
Constructor
Parameters
-
name
string
-
args
AuthorizerArgs
-
opts?
ComponentResourceOptions
Properties
id
Type Output
<
string
>
The ID of the authorizer.
nodes
Type Object
The underlying resources this component creates.
nodes.authorizer
Type Authorizer
The API Gateway Authorizer.
nodes.function
Type Output
<
Function
>
The Lambda function used by the authorizer.
AuthorizerArgs
api
Type Input
<
Object
>
The API Gateway to use for the route.
api.executionArn
Type Input
<
string
>
The execution ARN of the API Gateway.
api.id
Type Input
<
string
>
The ID of the API Gateway.
api.name
Type Input
<
string
>
The name of the API Gateway.
identitySource?
Type Input
<
string
>
Default “method.request.header.Authorization”
Specifies where to extract the authorization token from the request.
name
Type string
The name of the authorizer.
requestFunction?
Type Input
<
string
|
FunctionArgs
>
The Lambda request authorizer function. Takes the handler path or the function args.
tokenFunction?
Type Input
<
string
|
FunctionArgs
>
The Lambda token authorizer function. Takes the handler path or the function args.
transform?
Type Object
Transform how this component creates its underlying resources.
transform.authorizer?
Type AuthorizerArgs
|
(
args
:
AuthorizerArgs
,
opts
:
ComponentResourceOptions
,
name
:
string
)
=>
void
Transform the API Gateway authorizer resource.
ttl?
Type Input
<
number
>
Default 300
Time to live for cached authorizer results in seconds.
userPools?
Type Input
<
Input
<
string
>
[]
>
A list of user pools used as the authorizer.
Where userPool
is: