CustomBinding Interface

Definition

Place this on a parameter to define a custom binding

  • Any native Java types such as int, String, byte[]
  • Nullable values using Optional
  • Any POJO type

The following example shows a Java function that uses a customBinding:

@FunctionName("CustomBindingTriggerSample")
 public void logCustomTriggerInput(
    @CustomBinding(direction = "in", name = "inputParameterName", type = "customBindingTrigger") String customTriggerInput
    final ExecutionContext context
 ) {
     context.getLogger().info(customTriggerInput);
 }
public interface CustomBinding implements Annotation
Implements
java.lang.annotation.Annotation

Methods

direction()

The variable name used in function.json to specify the direction of the binding: in or out

name()

The variable name used in function.json.

type()

The variable name used in function.json to specify the type of the binding.

Applies to