Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIFunctionLink ¶
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 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 ¶
type APIToFunctionLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, cloudcontrolservice.Service, *aws.Config, lambdaservice.Service, ]
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 ¶
type AuthorizerToFunctionLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, cloudcontrolservice.Service, *aws.Config, lambdaservice.Service, ]
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).
Source Files
¶
- api__function_link.go
- api__function_link_annotations.go
- api__function_link_helpers.go
- api__function_link_manage_connections.go
- api__function_link_stage_changes.go
- api__function_link_update.go
- authorizer__function_link.go
- authorizer__function_link_stage_changes.go
- authorizer__function_link_update.go
- descriptions_embed.go