Class LambdaToEventbridgeProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdaeventbridge.LambdaToEventbridgeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToEventbridgeProps>
- Enclosing interface:
LambdaToEventbridgeProps
public static final class LambdaToEventbridgeProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToEventbridgeProps>
A builder for
LambdaToEventbridgeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofLambdaToEventbridgeProps.getDeployVpc()eventBusEnvironmentVariableName(String eventBusEnvironmentVariableName) Sets the value ofLambdaToEventbridgeProps.getEventBusEnvironmentVariableName()eventBusProps(software.amazon.awscdk.services.events.EventBusProps eventBusProps) Sets the value ofLambdaToEventbridgeProps.getEventBusProps()existingEventBusInterface(software.amazon.awscdk.services.events.IEventBus existingEventBusInterface) Sets the value ofLambdaToEventbridgeProps.getExistingEventBusInterface()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToEventbridgeProps.getExistingLambdaObj()existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToEventbridgeProps.getExistingVpc()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToEventbridgeProps.getLambdaFunctionProps()vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToEventbridgeProps.getVpcProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deployVpc
Sets the value ofLambdaToEventbridgeProps.getDeployVpc()- Parameters:
deployVpc- Whether to deploy a new VPC.- Returns:
this
-
eventBusEnvironmentVariableName
public LambdaToEventbridgeProps.Builder eventBusEnvironmentVariableName(String eventBusEnvironmentVariableName) Sets the value ofLambdaToEventbridgeProps.getEventBusEnvironmentVariableName()- Parameters:
eventBusEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the name of the Event bus.- Returns:
this
-
eventBusProps
public LambdaToEventbridgeProps.Builder eventBusProps(software.amazon.awscdk.services.events.EventBusProps eventBusProps) Sets the value ofLambdaToEventbridgeProps.getEventBusProps()- Parameters:
eventBusProps- A new custom EventBus is created with provided props.- Returns:
this
-
existingEventBusInterface
public LambdaToEventbridgeProps.Builder existingEventBusInterface(software.amazon.awscdk.services.events.IEventBus existingEventBusInterface) Sets the value ofLambdaToEventbridgeProps.getExistingEventBusInterface()- Parameters:
existingEventBusInterface- Existing instance of a custom EventBus.- Returns:
this
-
existingLambdaObj
public LambdaToEventbridgeProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToEventbridgeProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingVpc
public LambdaToEventbridgeProps.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToEventbridgeProps.getExistingVpc()- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Returns:
this
-
lambdaFunctionProps
public LambdaToEventbridgeProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToEventbridgeProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
vpcProps
public LambdaToEventbridgeProps.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToEventbridgeProps.getVpcProps()- Parameters:
vpcProps- Properties to override default properties if deployVpc is true.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToEventbridgeProps>- Returns:
- a new instance of
LambdaToEventbridgeProps - Throws:
NullPointerException- if any required attribute was not provided
-