Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionTopicLink ¶
func FunctionTopicLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToTopicLinkDeps) provider.Link
FunctionTopicLink returns a link implementation for a link from a Lambda function to an SNS topic. The Lambda function is granted permission to publish to the topic and, optionally, environment variables referencing the topic.
Types ¶
type FunctionToTopicLinkDeps ¶
type FunctionToTopicLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, cloudcontrolservice.Service, ]
FunctionToTopicLinkDeps is a type alias for the core dependencies for a link from a Lambda function to an SNS topic. The topic is a Cloud Control–backed resource, so resource B's service is the Cloud Control service; the link only reads the topic ARN from state and does not call it.
Click to show internal directories.
Click to hide internal directories.