github.com/Foodji/aws-lambda-go@v1.20.2/cfn/event.go (about)

     1  // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
     2  
     3  package cfn
     4  
     5  // RequestType represents the types of requests that
     6  // come from a CloudFormation stack being run
     7  type RequestType string
     8  
     9  const (
    10  	RequestCreate RequestType = "Create"
    11  	RequestUpdate RequestType = "Update"
    12  	RequestDelete RequestType = "Delete"
    13  )
    14  
    15  // Event is a representation of a Custom Resource
    16  // request
    17  type Event struct {
    18  	RequestType           RequestType            `json:"RequestType"`
    19  	RequestID             string                 `json:"RequestId"`
    20  	ResponseURL           string                 `json:"ResponseURL"`
    21  	ResourceType          string                 `json:"ResourceType"`
    22  	PhysicalResourceID    string                 `json:"PhysicalResourceId,omitempty"`
    23  	LogicalResourceID     string                 `json:"LogicalResourceId"`
    24  	StackID               string                 `json:"StackId"`
    25  	ResourceProperties    map[string]interface{} `json:"ResourceProperties"`
    26  	OldResourceProperties map[string]interface{} `json:"OldResourceProperties,omitempty"`
    27  }