Class LambdaInvokeFunction.Builder

java.lang.Object
software.amazon.awscdk.integtests.alpha.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_RESPONSE

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

      @Stability(Experimental) public LambdaInvokeFunction.Builder logRetention(RetentionDays logRetention)
      (experimental) How long, in days, the log contents will be retained.

      Default: - no retention days specified

      Parameters:
      logRetention - How long, in days, the log contents will be retained. 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.