Documentation ¶
Overview ¶
CDK constructs for defining an interaction between an AWS Lambda function and an Amazon EventBridge.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaToEventbridge_IsConstruct ¶
func LambdaToEventbridge_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewLambdaToEventbridge_Override ¶
func NewLambdaToEventbridge_Override(l LambdaToEventbridge, scope constructs.Construct, id *string, props *LambdaToEventbridgeProps)
Types ¶
type LambdaToEventbridge ¶
type LambdaToEventbridge interface { constructs.Construct EventBus() awsevents.IEventBus LambdaFunction() awslambda.Function Node() constructs.Node Vpc() awsec2.IVpc ToString() *string }
func NewLambdaToEventbridge ¶
func NewLambdaToEventbridge(scope constructs.Construct, id *string, props *LambdaToEventbridgeProps) LambdaToEventbridge
type LambdaToEventbridgeProps ¶
type LambdaToEventbridgeProps struct { // Whether to deploy a new VPC. DeployVpc *bool `json:"deployVpc"` // Optional Name for the EventBus's name environment variable set for the Lambda function. EventBusEnvironmentVariableName *string `json:"eventBusEnvironmentVariableName"` // A new custom EventBus is created with provided props. EventBusProps *awsevents.EventBusProps `json:"eventBusProps"` // Existing instance of a custom EventBus. ExistingEventBusInterface awsevents.IEventBus `json:"existingEventBusInterface"` // Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. ExistingLambdaObj awslambda.Function `json:"existingLambdaObj"` // An existing VPC for the construct to use (construct will NOT create a new VPC in this case). ExistingVpc awsec2.IVpc `json:"existingVpc"` // User provided props to override the default props for the Lambda function. LambdaFunctionProps *awslambda.FunctionProps `json:"lambdaFunctionProps"` // Properties to override default properties if deployVpc is true. VpcProps *awsec2.VpcProps `json:"vpcProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.