Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionQueueLink ¶
func FunctionQueueLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToQueueLinkDeps) provider.Link
FunctionQueueLink returns a link implementation for a link from a Lambda function to an SQS queue. The Lambda function is granted permission to send to (and optionally receive from) the queue and, optionally, an environment variable referencing the queue URL. This is the producer side of the queue; the consumer side (an SQS event source mapping) is the aws/sqs/queue -> aws/lambda/function link.
Types ¶
type FunctionToQueueLinkDeps ¶
type FunctionToQueueLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToQueueLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an SQS queue. The queue is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the queue URL and ARN from state.