Documentation
¶
Index ¶
- func DynamoDBTableLambdaFunctionLink(iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service]) func(DynamoDBTableToLambdaFunctionLinkDeps) provider.Link
- func FunctionDynamoDBTableLink(iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ...) func(FunctionToDynamoDBTableLinkDeps) provider.Link
- type DynamoDBTableToLambdaFunctionLinkDeps
- type FunctionToDynamoDBTableLinkDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamoDBTableLambdaFunctionLink ¶
func DynamoDBTableLambdaFunctionLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ) func(DynamoDBTableToLambdaFunctionLinkDeps) provider.Link
DynamoDBTableLambdaFunctionLink returns a link implementation for a link from a DynamoDB table to a Lambda function. This creates an Event Source Mapping that triggers the Lambda function when records are written to the DynamoDB table's stream. It also adds IAM permissions to the Lambda function's execution role to read from the DynamoDB stream, and enables DynamoDB Streams on the table if not already enabled.
func FunctionDynamoDBTableLink ¶
func FunctionDynamoDBTableLink( iamServiceFactory pluginutils.ServiceFactory[*aws.Config, iamservice.Service], ec2ServiceFactory pluginutils.ServiceFactory[*aws.Config, ec2service.Service], ) func(FunctionToDynamoDBTableLinkDeps) provider.Link
FunctionDynamoDBTableLink returns a link implementation for a link from a lambda function to a DynamoDB table. The lambda function will be configured with environment variables and IAM permissions to access the DynamoDB table.
Types ¶
type DynamoDBTableToLambdaFunctionLinkDeps ¶
type DynamoDBTableToLambdaFunctionLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, dynamodbservice.Service, *aws.Config, lambdaservice.Service, ]
DynamoDBTableToLambdaFunctionLinkDeps is a type alias for the core dependencies for a link from a DynamoDB table to a Lambda function (stream trigger).
type FunctionToDynamoDBTableLinkDeps ¶
type FunctionToDynamoDBTableLinkDeps pluginutils.LinkServiceDeps[ *aws.Config, lambdaservice.Service, *aws.Config, dynamodbservice.Service, ]
FunctionToDynamoDBTableLinkDeps is a type alias for the core dependencies for a link from a lambda function to a DynamoDB table.