Skip to content

Instantly share code, notes, and snippets.

@bdwyertech
Last active March 10, 2020 15:42
Show Gist options
  • Save bdwyertech/2864b0c281efadc1b5be2e3f5d0ba914 to your computer and use it in GitHub Desktop.
Save bdwyertech/2864b0c281efadc1b5be2e3f5d0ba914 to your computer and use it in GitHub Desktop.
Cloud Custodian - SQS Notification Message - Go Struct
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