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

essentialworkflows.sf_validate_update_workflow.json Maven / Gradle / Ivy

The newest version!
{
  "name": "validateUpdateWorkflow",
  "allowedRoles": ["ADMIN", "UNMANNED"],
  "workflowVersion": 1,
  "functionDefinition": {
    "Comment": "A description of my state machine",
    "StartAt": "Validate JSON",
    "States": {
      "Validate JSON": {
        "Type": "Task",
        "ResultPath": "$.input.validateJson",
        "Resource": "arn:aws:states:::apigateway:invoke",
        "Parameters": {
          "ApiEndpoint": "${var.structureEndpoint}",
          "Method": "POST",
          "Path": "/structure/validateUpdate",
          "Headers": {
            "Content-Type": [
              "application/json"
            ]
          },
          "RequestBody": {
            "type": "workflow",
            "query.$": "$.query"
          },
          "AuthType": "IAM_ROLE"
        },
        "Next": "Check Acceptable Transformation"
      },
      "Check Acceptable Transformation": {
        "Type": "Task",
        "ResultPath": "$.input.checkAcceptableTransformation",
        "Resource": "arn:aws:states:::apigateway:invoke",
        "Parameters": {
          "ApiEndpoint": "${var.structureEndpoint}",
          "Path": "/structure/transform-workflow-definition",
          "Method": "POST",
          "Headers": {
            "Content-Type": [
              "application/json"
            ]
          },
          "RequestBody": {
            "query.$": "$.query"
          },
          "AuthType": "IAM_ROLE"
        },
        "End": true
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy