essentialworkflows.sf_delete_application.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-structure-client Show documentation
Show all versions of common-structure-client Show documentation
structure Client for Five Faces
{
"name": "deleteApplication",
"functionDefinition": {
"Comment": "Delete Application",
"StartAt": "Validate Delete Application",
"States": {
"Validate Delete Application": {
"Type": "Task",
"Resource": "arn:aws:states:::states:startExecution.sync",
"Parameters": {
"StateMachineArn": "arn:aws:states:ap-southeast-2:705130463218:stateMachine:${var.environment}_validateDeleteApplication",
"Input": {
"NeedCallback ": true,
"query.$": "$.query",
"AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$": "$$.Execution.Id"
}
},
"Next": "Delete Application",
"ResultPath": "$.input.validateDeleteApplication"
},
"Delete Application": {
"Type": "Task",
"Resource": "arn:aws:states:::apigateway:invoke",
"Parameters": {
"ApiEndpoint": "${var.structureEndpoint}",
"Path": "/structure/delete",
"Method": "POST",
"Headers": {
"Content-Type": [
"application/json"
]
},
"RequestBody": {
"type": "application",
"id.$": "$.query.id",
"criteria": [
{
"member": "$.id",
"type": "eq",
"string": true,
"value.$": "$.query.id"
}
]
},
"AuthType": "IAM_ROLE"
},
"End": true
}
}
}
}