Expand description
Primitives shared across the Amazon SWF handlers: ARN synthesis, run-id minting, timestamps, and the type/token key derivation. Kept in one place so the register / describe / poll paths cannot diverge on wire format.
Functions§
- domain_
arn - Amazon SWF domain ARN,
arn:aws:swf:{region}:{account}:/domain/{name}. - new_
run_ id - A fresh, AWS-shaped SWF run id: a base64url-ish opaque token AWS returns from
StartWorkflowExecution. We mint a stable random 43-ish char id; the exact alphabet is opaque to clients, they only echo it back. - new_
task_ token - A fresh opaque task token (decision or activity). Clients treat it as opaque.
- now_
epoch - Current time as awsJson1_0 epoch-seconds (a floating-point number). SWF’s
Timestampshape carries no@timestampFormat, so awsJson1_0’s default epoch-seconds applies (SWF returns e.g.1420070400.123). - split_
type_ key - Split a
type_keyback into(name, version). - type_
key - Internal storage key for an activity or workflow type:
name+ a unit separator +version. The separator can never appear in a SmithyNameorVersionvalue, so the key round-trips unambiguously.