Enum Class LambdaInvokeType

java.lang.Object
java.lang.Enum<LambdaInvokeType>
software.amazon.awscdk.services.appsync.LambdaInvokeType
All Implemented Interfaces:
Serializable, Comparable<LambdaInvokeType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-05-22T23:39:46.064Z") @Stability(Stable) public enum LambdaInvokeType extends Enum<LambdaInvokeType>
Invoke types for direct Lambda data sources.

Example:

 EventApi api;
 AppSyncLambdaDataSource lambdaDataSource;
 // Lambda data source for publish handler
 api.addChannelNamespace("lambda-ns", ChannelNamespaceOptions.builder()
         .code(Code.fromInline("/* event handler code here.*/"))
         .publishHandlerConfig(HandlerConfig.builder()
                 .dataSource(lambdaDataSource)
                 .build())
         .build());
 // Direct Lambda data source for publish handler
 api.addChannelNamespace("lambda-direct-ns", ChannelNamespaceOptions.builder()
         .publishHandlerConfig(HandlerConfig.builder()
                 .dataSource(lambdaDataSource)
                 .direct(true)
                 .build())
         .build());
 api.addChannelNamespace("lambda-direct-async-ns", ChannelNamespaceOptions.builder()
         .publishHandlerConfig(HandlerConfig.builder()
                 .dataSource(lambdaDataSource)
                 .direct(true)
                 .lambdaInvokeType(LambdaInvokeType.EVENT)
                 .build())
         .build());
 
  • Enum Constant Details

    • EVENT

      @Stability(Stable) public static final LambdaInvokeType EVENT
      Invoke function asynchronously.
    • REQUEST_RESPONSE

      @Stability(Stable) public static final LambdaInvokeType REQUEST_RESPONSE
      Invoke function synchronously.
  • Method Details

    • values

      public static LambdaInvokeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LambdaInvokeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null