Class LambdaToEventbridge.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdaeventbridge.LambdaToEventbridge.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToEventbridge>
- Enclosing class:
LambdaToEventbridge
public static final class LambdaToEventbridge.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToEventbridge>
A fluent builder for
LambdaToEventbridge.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static LambdaToEventbridge.BuilderWhether to deploy a new VPC.eventBusEnvironmentVariableName(String eventBusEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the name of the Event bus.eventBusProps(software.amazon.awscdk.services.events.EventBusProps eventBusProps) A new custom EventBus is created with provided props.existingEventBusInterface(software.amazon.awscdk.services.events.IEventBus existingEventBusInterface) Existing instance of a custom EventBus.existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) An existing VPC for the construct to use (construct will NOT create a new VPC in this case).lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Properties to override default properties if deployVpc is true.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
LambdaToEventbridge.Builder.
-
deployVpc
Whether to deploy a new VPC.Default: - false
- Parameters:
deployVpc- Whether to deploy a new VPC. This parameter is required.- Returns:
this
-
eventBusEnvironmentVariableName
public LambdaToEventbridge.Builder eventBusEnvironmentVariableName(String eventBusEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the name of the Event bus.Default: - EVENTBUS_NAME
- Parameters:
eventBusEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the name of the Event bus. This parameter is required.- Returns:
this
-
eventBusProps
public LambdaToEventbridge.Builder eventBusProps(software.amazon.awscdk.services.events.EventBusProps eventBusProps) A new custom EventBus is created with provided props.Default: - None
- Parameters:
eventBusProps- A new custom EventBus is created with provided props. This parameter is required.- Returns:
this
-
existingEventBusInterface
public LambdaToEventbridge.Builder existingEventBusInterface(software.amazon.awscdk.services.events.IEventBus existingEventBusInterface) Existing instance of a custom EventBus.Default: - None
- Parameters:
existingEventBusInterface- Existing instance of a custom EventBus. This parameter is required.- Returns:
this
-
existingLambdaObj
public LambdaToEventbridge.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.Default: - None
- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error. This parameter is required.- Returns:
this
-
existingVpc
public LambdaToEventbridge.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case). This parameter is required.- Returns:
this
-
lambdaFunctionProps
public LambdaToEventbridge.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.Default: - Default properties are used.
- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function. This parameter is required.- Returns:
this
-
vpcProps
Properties to override default properties if deployVpc is true.- Parameters:
vpcProps- Properties to override default properties if deployVpc is true. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToEventbridge>- Returns:
- a newly built instance of
LambdaToEventbridge.
-