Aller au contenu principal
Version: Next

FaaSMetadata

Index

Interfaces

APIGatewayTriggerOptions

APIGatewayTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmethod

method?: get | post | delete | put | head | patch | all

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

path

path: string

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

CDNTriggerOptions

CDNTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

EventTriggerOptions

EventTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

HSFTriggerOptions

HSFTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

HTTPTriggerOptions

HTTPTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmethod

method?: get | post | delete | put | head | patch | all

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

path

path: string

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

LogTriggerOptions

LogTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalinterval

interval?: number

optionalisDeploy

isDeploy?: boolean

deploy or not

log

log: string

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

project

project: string

optionalretryTime

retryTime?: number

optionalrole

role?: string

function invoke role, just for aliyun

source

source: string

optionalversion

version?: string

function publish version, just for aliyun

MQTriggerOptions

MQTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalregion

region?: string

optionalrole

role?: string

function invoke role, just for aliyun

optionalstrategy

strategy?: BACKOFF_RETRY | EXPONENTIAL_DECAY_RETRY

optionaltags

tags?: string

topic

topic: string

optionalversion

version?: string

function publish version, just for aliyun

MTopTriggerOptions

MTopTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

OSTriggerOptions

OSTriggerOptions:

bucket

bucket: string

events

events: string | string[]

optionalfilter

filter?: { prefix: string; suffix: string }

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

SSRTriggerOptions

SSRTriggerOptions:

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmethod

method?: get | post | delete | put | head | patch | all

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

path

path: string

optionalrole

role?: string

function invoke role, just for aliyun

optionalversion

version?: string

function publish version, just for aliyun

ServerlessFunctionOptions

ServerlessFunctionOptions:

optionalconcurrency

concurrency?: number

invoke concurrency, just for aliyun

optionaldescription

description?: string

function description

optionalenvironment

environment?: any

environment variable, key-value

optionalfunctionName

functionName?: string

function name

optionalhandlerName

handlerName?: string

function handler name, like ‘index.handler’

optionalinitTimeout

initTimeout?: number

function init timeout, just for aliyun

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmemorySize

memorySize?: number

function memory size, unit: M

optionalruntime

runtime?: string

function runtime, nodejs10, nodejs12, nodejs14

optionalstage

stage?: string

function invoke stage, like env, just for tencent

optionaltimeout

timeout?: number

function timeout value, unit: seconds

TimerTriggerOptions

TimerTriggerOptions:

optionalenable

enable?: boolean

optionalfunctionName

functionName?: string

function name

optionalisDeploy

isDeploy?: boolean

deploy or not

optionalmiddleware

middleware?: any[]

function middleware

optionalname

name?: string

serverless event name

optionalpayload

payload?: string

optionalrole

role?: string

function invoke role, just for aliyun

type

type: every | cron | interval

value

value: string

optionalversion

version?: string

function publish version, just for aliyun

TriggerMetadata

TriggerMetadata:

optionalfunctionName

functionName?: string

optionalhandlerName

handlerName?: string

metadata

optionalmethodName

methodName?: string

type

type: string

Type Aliases

EventTriggerUnionOptions