public MyStack() { var example = new Aws.ApiGatewayV2.Authorizer("example", new Aws.ApiGatewayV2.AuthorizerArgs { ApiId = aws_apigatewayv2_api.Example.Id, AuthorizerType = "REQUEST", AuthorizerUri = aws_lambda_function.Example.Invoke_arn, IdentitySources = { "route.request.header.Auth", }, }); }
public MyStack() { var example = new Aws.ApiGatewayV2.Authorizer("example", new Aws.ApiGatewayV2.AuthorizerArgs { ApiId = aws_apigatewayv2_api.Example.Id, AuthorizerType = "JWT", IdentitySources = { "$request.header.Authorization", }, JwtConfiguration = new Aws.ApiGatewayV2.Inputs.AuthorizerJwtConfigurationArgs { Audience = { "example", }, Issuer = $"https://{aws_cognito_user_pool.Example.Endpoint}", }, }); }