apigatewayv2lambda

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIFunctionLink(
	iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service],
) func(APIToFunctionLinkDeps) provider.Link

APIFunctionLink returns a link implementation that routes API Gateway v2 requests to a Lambda function. The link manages an AWS_PROXY integration, a route to that integration, and the Lambda permission that lets API Gateway invoke the function. For WebSocket APIs it also (opt-in) grants the handler's execution role execute-api:ManageConnections so it can push messages to clients.

func AuthorizerFunctionLink() func(AuthorizerToFunctionLinkDeps) provider.Link

AuthorizerFunctionLink returns a link implementation that grants API Gateway permission to invoke a Lambda (REQUEST) authorizer's backing function. JWT authorizers have no backing function and do not use this link.

Types

type APIToFunctionLinkDeps

APIToFunctionLinkDeps is the core dependency set for a link from an API Gateway v2 API to a Lambda function. Both resources are Cloud Control–backed; the link reads their state and manages the integration, route and Lambda permission as Cloud Control intermediaries. It uses the Lambda service (resource B) and an IAM service only for the optional WebSocket execute-api:ManageConnections grant on the handler's execution role.

type AuthorizerToFunctionLinkDeps

AuthorizerToFunctionLinkDeps is the core dependency set for a link from an API Gateway v2 Lambda (REQUEST) authorizer to its backing Lambda function. Both resources are Cloud Control–backed; the link reads their state and manages the invoke permission as a Cloud Control intermediary, so it uses no AWS service directly (only the shared config store for region).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL