essentialworkflows.sf_update_structureDefinition.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": "updateStructureDefinition",
"functionDefinition": {
"Comment": "A description of my state machine",
"StartAt": "Validate Update Entity",
"States": {
"Validate Update Entity": {
"Type": "Task",
"Resource": "arn:aws:states:::states:startExecution.sync",
"Parameters": {
"StateMachineArn": "arn:aws:states:ap-southeast-2:705130463218:stateMachine:${var.environment}_validateUpdateStructureDefinition",
"Input": {
"NeedCallback ": true,
"query.$": "$.query",
"AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$": "$$.Execution.Id"
}
},
"Next": "Update Entity",
"ResultPath": "$.input.validateUpdateStructureDefinition"
},
"Update Entity": {
"Type": "Task",
"Resource": "arn:aws:states:::apigateway:invoke",
"Parameters": {
"ApiEndpoint": "${var.structureEndpoint}",
"Path": "/structure/update",
"Method": "POST",
"Headers": {
"Content-Type": [
"application/json"
]
},
"RequestBody": {
"username.$": "$.query.authorization.username",
"type": "structureDefinition",
"properties": {
"entity": {
"description": "entity value",
"type": "object"
}
},
"id.$": "$.query.id",
"version.$": "$.query.version",
"query": {
"id.$": "$.query.id",
"version.$": "$.query.version",
"name.$": "$.query.name",
"definition.$": "$.query.definition"
}
},
"AuthType": "IAM_ROLE"
},
"End": true
}
}
}
}