All Downloads are FREE. Search and download functionalities are using the official Maven repository.

essentialworkflows.sf_create_workflow.json Maven / Gradle / Ivy

There is a newer version: 1.0.62
Show newest version
{
  "name": "createWorkflow",
  "functionDefinition": {
    "Comment": "A description of my state machine",
    "StartAt": "Validate Create Workflow",
    "States": {
      "Validate Create Workflow": {
        "Type": "Task",
        "Resource": "arn:aws:states:::states:startExecution.sync",
        "Parameters": {
          "StateMachineArn": "arn:aws:states:ap-southeast-2:705130463218:stateMachine:${var.environment}_validateCreateWorkflow",
          "Input": {
            "NeedCallback ": true,
            "query.$": "$.query",
            "AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$": "$$.Execution.Id"
          }
        },
        "Next": "Save Workflow",
        "ResultPath": "$.input.validateCreateWorkflow"
      },
      "Save Workflow": {
        "Type": "Task",
        "ResultPath": "$.input.saveWorkflow",
        "Resource": "arn:aws:states:::apigateway:invoke",
        "Parameters": {
          "ApiEndpoint": "${var.structureEndpoint}",
          "Path": "/structure/insert",
          "Method": "POST",
          "Headers": {
            "Content-Type": [
              "application/json"
            ]
          },
          "RequestBody": {
            "username.$": "$.query.authorization.username",
            "type": "workflow",
            "workflow": "createWorkflow",
            "properties": {
              "workflow": {
                "description": "workflow value",
                "type": "object"
              }
            },
            "query": {
              "workflow.$": "$.query.workflow"
            }
          },
          "AuthType": "IAM_ROLE"
        },
        "End": true
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy