Amazon State Language specifies that "Resource field" MUST be a URI.
A Task State MUST include a “Resource” field, whose value MUST be
a URI that uniquely identifies the specific task to execute. The
States language does not constrain the URI scheme nor any other
part of the URI.
FaaS Shell looks up the following information form the "Resource field", and dispatch the function invocation to an appropriate FaaS vendor plug-in.
- Beginning with a lower-case letter indicates literal.
- Beginning with an upper-case letter indicates variable.
- ':' indicates a separator.
- '_' indicates an arbitrary value, that is ignored.
arn:aws:lambda:Region:Account:function:Functionor
frn:aws:lambda:Region:Account:function:Functionfrn:gcp:functions:Location:Project:function:Functionfrn:azure:functions:_:WebappName:function:Functionfrn:wsk:functions:_:_:function:Actionfrn:ifttt:webhooks:_:_:function:AppletIf "Resource field" matches URI either http or https, then FaaS Shell looks up the "Function" in the predefined RDF DB such as hello_world_task.ttl.
https://naohirotamura.github.io/faasshell/ns/faas#FunctionFaaS Shell judges that it's activity task state if "Resource field" matches the following pattern. This is common among FaaS.
arn:_:states:_:_:activity:Activityor
frn:_:states:_:_:activity:ActivityFaaS Shell judges that it's event state if "Resource field" matches the following pattern. This is common among FaaS.
frn:_:states:_:_:event:Event