Skip to content
Proud to collaborate with Microsoft for Startups

spad.ltip.compensate_delete_distribution ​

Saga compensation: delete CloudFront distribution created by create_distribution

Delete the CloudFront distribution created by spad.ltip.create_distribution.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
distribution_refstringNo—Distribution id to delete; missing = nothing to undo
cloud_connection_uuidstringYes—AWS CloudConnection.id
s3_regionstringNo—Region hint; LTIP targets us-east-1 for CloudFront
site_uuidstringNo—Site id for log correlation
organization_uuidstringNo—Organization id for log correlation
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
compensatedbooleanYes—True once compensation ran (including no-op)
distribution_deletedbooleanNo—True iff a DeleteDistribution call was issued
skipped_reasonstringNo—Populated when compensation short-circuited
completed_atstringNo—ISO8601 timestamp when compensation completed
failed_atstringNo—ISO8601 timestamp when compensation failed
distribution_refstringNo—Distribution id to delete; missing = nothing to undo
cloud_connection_uuidstringNo—AWS CloudConnection.id
s3_regionstringNo—Region hint; LTIP targets us-east-1 for CloudFront
site_uuidstringNo—Site id for log correlation
organization_uuidstringNo—Organization id for log correlation
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata
failure_reasonstringNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runCompensation accepted
runNoNo—completeDeleting distribution
completedNoYesYes—Distribution deleted or absent
failedNoYesNo—Distribution deletion failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart compensation
runcompletecompletedMark compensation complete
* (any state)failfailedMark compensation failed

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "spad.ltip.compensate_delete_distribution",
  "initial_data": {
    "cloud_connection_uuid": "value"
  }
}