Documentation ¶
Overview ¶
Package cloudformation provides structs for working with AWS CloudFormation custom resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(h HandlerFunc)
HandleFunc handles CloudFormation Custom Resource events with a callback function.
Types ¶
type HandlerFunc ¶
HandlerFunc unmarshals CloudFormation Requests before passing control.
func (HandlerFunc) Handle ¶
func (h HandlerFunc) Handle(rawReq json.RawMessage, ctx *apex.Context) (interface{}, error)
Handle implements apex.Handler.
type Request ¶
type Request struct { RequestType string `json:"RequestType"` ResponseURL string `json:"ResponseURL"` StackID string `json:"StackId"` RequestID string `json:"RequestId"` ResourceType string `json:"ResourceType"` LogicalResourceID string `json:"LogicalResourceId"` ResourceProperties map[string]interface{} `json:"ResourceProperties"` }
Request is a request to a CloudFormation Custom Resource
type Response ¶
type Response struct { Status string `json:"Status"` Reason string `json:"Reason"` PhysicalResourceID string `json:"PhysicalResourceId"` StackID string `json:"StackId"` RequestID string `json:"RequestId"` LogicalResourceID string `json:"LogicalResourceId"` Data interface{} }
Response is the response sent to the ResponseURL of the CloudFormation service
Click to show internal directories.
Click to hide internal directories.