handler

package
v0.0.0-...-218c583 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageQueueUrl = os.Getenv("FORMATION_QUEUE")

Functions

func CloudFormation

func CloudFormation(req Request) *cloudformation.CloudFormation

func Credentials

func Credentials(req *Request) *credentials.Credentials

func EC2

func EC2(req Request) *ec2.EC2

func EC2AvailabilityZonesCreate

func EC2AvailabilityZonesCreate(req Request) (string, map[string]string, error)

func EC2AvailabilityZonesDelete

func EC2AvailabilityZonesDelete(req Request) (string, map[string]string, error)

func EC2AvailabilityZonesUpdate

func EC2AvailabilityZonesUpdate(req Request) (string, map[string]string, error)

func EC2NatGatewayDelete

func EC2NatGatewayDelete(req Request) (string, map[string]string, error)

EC2NatGatewayDelete deletes a Custom::EC2route TODO: delete

func EC2RouteDelete

func EC2RouteDelete(req Request) (string, map[string]string, error)

EC2RouteDelete deletes a Custom::EC2route TODO: delete

func ECR

func ECR(req Request) *ecr.ECR

func ECRRepositoryCreate

func ECRRepositoryCreate(req Request) (string, map[string]string, error)

func ECRRepositoryDelete

func ECRRepositoryDelete(req Request) (string, map[string]string, error)

func ECRRepositoryUpdate

func ECRRepositoryUpdate(req Request) (string, map[string]string, error)

func ECS

func ECS(req Request) *ecs.ECS

func ECSServiceDelete

func ECSServiceDelete(req Request) (string, map[string]string, error)

func ECSTaskDefinitionCreate

func ECSTaskDefinitionCreate(req Request) (string, map[string]string, error)

func ECSTaskDefinitionDelete

func ECSTaskDefinitionDelete(req Request) (string, map[string]string, error)

func HandleEC2AvailabilityZones

func HandleEC2AvailabilityZones(req Request) (string, map[string]string, error)

func HandleEC2NatGateway

func HandleEC2NatGateway(req Request) (string, map[string]string, error)

HandleEC2NatGateway handles the lifecycle of a Custom::EC2NatGateway

func HandleEC2Route

func HandleEC2Route(req Request) (string, map[string]string, error)

HandleEC2Route handles the lifecycle of a Custom::EC2Route

func HandleECRRepository

func HandleECRRepository(req Request) (string, map[string]string, error)

func HandleECSService

func HandleECSService(req Request) (string, map[string]string, error)

func HandleECSTaskDefinition

func HandleECSTaskDefinition(req Request) (string, map[string]string, error)

func HandleKMSKey

func HandleKMSKey(req Request) (string, map[string]string, error)

func HandleRequest

func HandleRequest(freq Request) error

func HandleSNSSubcription

func HandleSNSSubcription(req Request) (string, map[string]string, error)

func KMS

func KMS(req Request) *kms.KMS

func KMSKeyCreate

func KMSKeyCreate(req Request) (string, map[string]string, error)

func KMSKeyDelete

func KMSKeyDelete(req Request) (string, map[string]string, error)

func KMSKeyUpdate

func KMSKeyUpdate(req Request) (string, map[string]string, error)

func Lambda

func Lambda(req Request) *lambda.Lambda

func Listen

func Listen()

func Region

func Region(req *Request) *string

func S3

func S3(req Request) *s3.S3

func SNS

func SNS(req Request) *sns.SNS

func SNSSubscriptionCreate

func SNSSubscriptionCreate(req Request) (string, map[string]string, error)

func SNSSubscriptionDelete

func SNSSubscriptionDelete(req Request) (string, map[string]string, error)

func SNSSubscriptionUpdate

func SNSSubscriptionUpdate(req Request) (string, map[string]string, error)

func SQS

func SQS() *sqs.SQS

Types

type Message

type Message struct {
	MessageID     *string
	ReceiptHandle *string

	Type             string
	MessageId        string
	TopicArn         string
	Subject          string
	Message          string
	Timestamp        time.Time
	SignatureVersion string
	Signature        string
	SigningCertURL   string
	UnsubscribeURL   string
}

type Request

type Request struct {
	ResourceType string
	RequestType  string

	RequestId          string
	StackId            string
	LogicalResourceId  string
	PhysicalResourceId string
	ResponseURL        string

	ResourceProperties map[string]interface{}
}

type Response

type Response struct {
	RequestId         string
	StackId           string
	LogicalResourceId string

	Data               map[string]string
	PhysicalResourceId string
	Reason             string
	Status             string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL