get protocol-transformer
by name
name as 'web', 'sns', 'sqs'
broadcast body message via shared SNS
subscriptions. (see NotificationHandler
)
.service
will be self url like api://lemon-hello-api#1.2.3
the message-id if applicable.
the current execute context. (.identity
will be relayed).
the SNS endpoint like lemon-hello-out
, or full ARN.
the message body to broadcast.
asynchronous call to target function via 'SQS' (queue).
the calling param
Optional
callback: CallbackParamthe return target
Optional
delaySeconds: number(from AWS doc) The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies. When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.
synchronized call to target function via 'Lambda'.
the calling param
Optional
config: CoreConfigService(optional) custom config
Optional
uri: string(optional) custom uri to provide.
from string url, transform to protocol-param. mode is dependent on body condition.
the current execute context via controller.
url string must start with 'lemon://' like lemon://lemon-hello-api/hello/0
Optional
param: ProtocolBodyquery parameter (optional)
Optional
body: ProtocolBodypost body (optional)
get the current service's protocol uri
the current context.
Optional
type: string(optional) resource type
Optional
id: string(optional) resource id
Optional
cmd: string(optional) action command
asynchronous call to target function via 'SNS'.
the calling param
Optional
callback: CallbackParamthe return target
Generated using TypeDoc
class:
ProtocolService