An AWS AppSync resolver that interacts with and returns data about AWS StepFunctions
- states:DescribeExecution
- states:StopExecution
function.handler
{ "operation": "describeExecution", "arguments": { "executionArn": "arn" } } { "operation": "stopExecution", "arguments": { "executionArn": "arn", "error": "string" "cause": "string" } }
- operation - REQUIRED
- Can be one of
describeExecution
orstopExecution
. - describeExecution
executionArn: The Amazon Resource Name (ARN) of the execution to describe - REQUIRED - stopExecution
executionArn: The Amazon Resource Name (ARN) of the execution to stop - REQUIRED error: The error code of the failure cause: A more detailed explanation of the cause of the failure
Each of these requests can be batched via the BatchInvoke protocol from Appsync.
For describeExecution
and stopExecution
:
{ 'executionArn': 'string', 'stateMachineArn': 'string', 'name': 'string', 'status': 'RUNNING'|'SUCCEEDED'|'FAILED'|'TIMED_OUT'|'ABORTED', 'startDate': datetime(2015, 1, 1), 'stopDate': datetime(2015, 1, 1), 'input': 'string', 'output': 'string' }
type Execution { executionArn: String! stateMachineArn: String! name: String! status: String! startDate: AWSDateTime! stopDate: AWSDateTime! input: String! output: String } type Mutation { stopExecution(executionArn: String!, error: String, cause: String): Execution } type Query { describeExecution(executionArn: String!): Execution } schema { query: Query mutation: Mutation }
License: APL2