Class LambdaInvokeFunction.Builder

java.lang.Object
software.amazon.awscdk.integtests.LambdaInvokeFunction.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaInvokeFunction>
Enclosing class:
LambdaInvokeFunction

@Stability(Experimental) public static final class LambdaInvokeFunction.Builder extends Object implements software.amazon.jsii.Builder<LambdaInvokeFunction>
(experimental) A fluent builder for LambdaInvokeFunction.
  • Method Details

    • create

      @Stability(Experimental) public static LambdaInvokeFunction.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of LambdaInvokeFunction.Builder.
    • functionName

      @Stability(Experimental) public LambdaInvokeFunction.Builder functionName(String functionName)
      (experimental) The name of the function to invoke.

      Parameters:
      functionName - The name of the function to invoke. This parameter is required.
      Returns:
      this
    • invocationType

      @Stability(Experimental) public LambdaInvokeFunction.Builder invocationType(InvocationType invocationType)
      (experimental) The type of invocation to use.

      Default: InvocationType.REQUEST_RESPONE

      Parameters:
      invocationType - The type of invocation to use. This parameter is required.
      Returns:
      this
    • logType

      @Stability(Experimental) public LambdaInvokeFunction.Builder logType(LogType logType)
      (experimental) Whether to return the logs as part of the response.

      Default: LogType.NONE

      Parameters:
      logType - Whether to return the logs as part of the response. This parameter is required.
      Returns:
      this
    • payload

      @Stability(Experimental) public LambdaInvokeFunction.Builder payload(String payload)
      (experimental) Payload to send as part of the invoke.

      Default: - no payload

      Parameters:
      payload - Payload to send as part of the invoke. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public LambdaInvokeFunction build()
      Specified by:
      build in interface software.amazon.jsii.Builder<LambdaInvokeFunction>
      Returns:
      a newly built instance of LambdaInvokeFunction.