@Retention(value=RUNTIME) public @interface CustomBinding
Place this on a parameter to define a custom binding
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);
}| Modifier and Type | Required Element and Description |
|---|---|
String |
direction
The variable name used in function.json to specify the direction of the binding: in or out
|
String |
name
The variable name used in function.json.
|
String |
type
The variable name used in function.json to specify the type of the binding.
|
public abstract String name
public abstract String type
public abstract String direction
Copyright © 2022. All rights reserved.