Class IotToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.iotlambda.IotToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IotToLambdaProps>
- Enclosing interface:
IotToLambdaProps
public static final class IotToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<IotToLambdaProps>
A builder for
IotToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofIotToLambdaProps.getExistingLambdaObj()iotTopicRuleProps(software.amazon.awscdk.services.iot.CfnTopicRuleProps iotTopicRuleProps) Sets the value ofIotToLambdaProps.getIotTopicRuleProps()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofIotToLambdaProps.getLambdaFunctionProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iotTopicRuleProps
public IotToLambdaProps.Builder iotTopicRuleProps(software.amazon.awscdk.services.iot.CfnTopicRuleProps iotTopicRuleProps) Sets the value ofIotToLambdaProps.getIotTopicRuleProps()- Parameters:
iotTopicRuleProps- User provided CfnTopicRuleProps to override the defaults. This parameter is required.- Returns:
this
-
existingLambdaObj
public IotToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofIotToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
lambdaFunctionProps
public IotToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofIotToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IotToLambdaProps>- Returns:
- a new instance of
IotToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-