Last active
March 10, 2020 15:42
-
-
Save bdwyertech/2864b0c281efadc1b5be2e3f5d0ba914 to your computer and use it in GitHub Desktop.
Cloud Custodian - SQS Notification Message - Go Struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CustodianSQSNotification struct { | |
Account string `json:"account"` | |
AccountID string `json:"account_id"` | |
Action struct { | |
To []string `json:"to"` | |
Transport struct { | |
Queue string `json:"queue"` | |
Type string `json:"type"` | |
} `json:"transport"` | |
Type string `json:"type"` | |
} `json:"action"` | |
Event interface{} `json:"event"` | |
ExecutionID string `json:"execution_id"` | |
ExecutionStart float64 `json:"execution_start"` | |
Policy struct { | |
Actions []struct { | |
To []string `json:"to"` | |
Transport struct { | |
Queue string `json:"queue"` | |
Type string `json:"type"` | |
} `json:"transport"` | |
Type string `json:"type"` | |
} `json:"actions"` | |
Description string `json:"description"` | |
Filters []interface{} `json:"filters"` | |
Name string `json:"name"` | |
Resource string `json:"resource"` | |
Tags []string `json:"tags"` | |
} `json:"policy"` | |
Region string `json:"region"` | |
Resources []interface{} `json:"resources"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment