ConnectorTriggerOptions interface
Options for registering a connector trigger function with connectorTrigger.
Includes the polling and batching options from @azure/functions.
- Extends
-
Pick<ConnectorTriggerOptions, "deliveryMode" | "connection" | "triggerConfigName" | "cardinality" | "maxBatchSize" | "maxConcurrentCalls" | "targetPendingEventThreshold">
Properties
| extra |
Optional extra input bindings (e.g., blob storage, connector content). |
| extra |
Optional extra output bindings (e.g., blob storage). |
| handler | The handler function that processes the trigger event. |
| return | Optional return output binding. |
Inherited Properties
| cardinality | Set to |
| connection | The connector connection setting. Required when |
| delivery |
The connector event delivery mode. Accepts enum members or the supported string values.
Defaults to |
| max |
An optional per-function override for the maximum number of events per batch. If omitted, Poll delivery uses the extension's app-wide host.json default. |
| max |
An optional per-function override for the maximum number of concurrent single-event invocations. If omitted, Poll delivery uses the extension's app-wide host.json default. Batched invocations are processed one at a time by the extension. |
| target |
The target number of pending events per function instance used for scaling. |
| trigger |
The connector trigger configuration name. Supports app setting expressions such as |
Property Details
extraInputs
Optional extra input bindings (e.g., blob storage, connector content).
extraInputs?: FunctionInput[]
Property Value
extraOutputs
Optional extra output bindings (e.g., blob storage).
extraOutputs?: FunctionOutput[]
Property Value
handler
The handler function that processes the trigger event.
handler: ConnectorTriggerHandler<TItem, TContext>
Property Value
ConnectorTriggerHandler<TItem, TContext>
return
Inherited Property Details
cardinality
Set to many to enable batching. Accepts enum members or the supported string values.
Defaults to one, which passes a single event to the function.
For batches, use an array as the handler's payload type, for example app.connectorTrigger<MyEvent[]>.
cardinality?: Cardinality | "many" | "one"
Property Value
@azure/functions.Cardinality | "many" | "one"
Inherited From Pick.cardinality
connection
The connector connection setting. Required when deliveryMode is Poll.
connection?: string
Property Value
string
Inherited From Pick.connection
deliveryMode
The connector event delivery mode. Accepts enum members or the supported string values.
Defaults to Webhook when omitted.
deliveryMode?: DeliveryMode | "Poll" | "Webhook"
Property Value
@azure/functions.DeliveryMode | "Poll" | "Webhook"
Inherited From Pick.deliveryMode
maxBatchSize
An optional per-function override for the maximum number of events per batch. If omitted, Poll delivery uses the extension's app-wide host.json default.
maxBatchSize?: number
Property Value
number
Inherited From Pick.maxBatchSize
maxConcurrentCalls
An optional per-function override for the maximum number of concurrent single-event invocations. If omitted, Poll delivery uses the extension's app-wide host.json default. Batched invocations are processed one at a time by the extension.
maxConcurrentCalls?: number
Property Value
number
Inherited From Pick.maxConcurrentCalls
targetPendingEventThreshold
The target number of pending events per function instance used for scaling.
targetPendingEventThreshold?: number
Property Value
number
Inherited From Pick.targetPendingEventThreshold
triggerConfigName
The connector trigger configuration name. Supports app setting expressions such as %TriggerConfigName%.
Required when deliveryMode is Poll.
triggerConfigName?: string
Property Value
string
Inherited From Pick.triggerConfigName