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

essentialworkflows.sf_delete_structureDefinition.json Maven / Gradle / Ivy

The newest version!
{
  "name": "deleteStructureDefinition",
  "allowedRoles": ["ADMIN", "UNMANNED"],
  "workflowVersion": 1,
  "functionDefinition": {
    "Comment": "Delete Structure Definition",
    "StartAt": "Validate Delete Structure Definition",
    "States": {
      "Validate Delete Structure Definition": {
        "Type": "Task",
        "Resource": "arn:aws:states:::states:startExecution.sync",
        "Parameters": {
          "StateMachineArn": "arn:aws:states:ap-southeast-2:705130463218:stateMachine:${var.environment}_validateDeleteStructureDefinition",
          "Input": {
            "NeedCallback ": true,
            "query.$": "$.query",
            "AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$": "$$.Execution.Id"
          }
        },
        "Next": "Delete Structure Definition Workflows Etc",
        "ResultPath": "$.input.validateDeleteStructureDefinition"
      },
      "Delete Structure Definition Workflows Etc": {
        "Type": "Task",
        "Resource": "arn:aws:states:::apigateway:invoke",
        "Parameters": {
          "ApiEndpoint": "${var.structureEndpoint}",
          "Path": "/structure/destroy-structure",
          "Method": "POST",
          "Headers": {
            "Content-Type": [
              "application/json"
            ]
          },
          "RequestBody": {
            "id.$": "$.query.id"
          },
          "AuthType": "IAM_ROLE"
        },
        "End": true
      }
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy