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 ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
distribution_ref | string | No | — | Distribution id to delete; missing = nothing to undo |
cloud_connection_uuid | string | Yes | — | AWS CloudConnection.id |
s3_region | string | No | — | Region hint; LTIP targets us-east-1 for CloudFront |
site_uuid | string | No | — | Site id for log correlation |
organization_uuid | string | No | — | Organization id for log correlation |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
compensated | boolean | Yes | — | True once compensation ran (including no-op) |
distribution_deleted | boolean | No | — | True iff a DeleteDistribution call was issued |
skipped_reason | string | No | — | Populated when compensation short-circuited |
completed_at | string | No | — | ISO8601 timestamp when compensation completed |
failed_at | string | No | — | ISO8601 timestamp when compensation failed |
distribution_ref | string | No | — | Distribution id to delete; missing = nothing to undo |
cloud_connection_uuid | string | No | — | AWS CloudConnection.id |
s3_region | string | No | — | Region hint; LTIP targets us-east-1 for CloudFront |
site_uuid | string | No | — | Site id for log correlation |
organization_uuid | string | No | — | Organization id for log correlation |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
failure_reason | string | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | Compensation accepted |
run | No | No | — | complete | Deleting distribution |
completed | No | Yes | Yes | — | Distribution deleted or absent |
failed | No | Yes | No | — | Distribution deletion failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | Start compensation |
run | complete | completed | Mark compensation complete |
* (any state) | fail | failed | Mark 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"
}
}