Function
executionArnFromName
(stateMachineArn: string, name: string)
Source from the content-addressed store, hash-verified
| 65 | } |
| 66 | |
| 67 | function executionArnFromName(stateMachineArn: string, name: string): string { |
| 68 | // `arn:aws:states:<region>:<account>:stateMachine:<sm-name>` → |
| 69 | // `arn:aws:states:<region>:<account>:execution:<sm-name>:<exec-name>` |
| 70 | return stateMachineArn.replace(":stateMachine:", ":execution:") + `:${name}`; |
| 71 | } |
| 72 | |
| 73 | function statusColor(status: string): string { |
| 74 | switch (status) { |
Tested by
no test coverage detected