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 Details

    • Builder

      public Builder()
  • Method Details

    • iotTopicRuleProps

      public IotToLambdaProps.Builder iotTopicRuleProps(software.amazon.awscdk.services.iot.CfnTopicRuleProps iotTopicRuleProps)
      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)
      Parameters:
      existingLambdaObj - Optional - instance of an existing Lambda Function object, providing both this and lambdaFunctionProps will cause an error.
      Returns:
      this
    • lambdaFunctionProps

      public IotToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
      Parameters:
      lambdaFunctionProps - Optional - user provided props to override the default props for the Lambda function. Providing both this and existingLambdaObj causes an error.
      Returns:
      this
    • build

      public IotToLambdaProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<IotToLambdaProps>
      Returns:
      a new instance of IotToLambdaProps
      Throws:
      NullPointerException - if any required attribute was not provided