handler

package
v0.0.0-...-f476983 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0, 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 EC2NatGatewayCreate

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

func EC2NatGatewayDelete

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

func EC2NatGatewayUpdate

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

Replace Nat Gateway. From the docs: If the custom resource requires a replacement, the new custom resource must send a response with the new physical ID. When AWS CloudFormation receives the response, it compares the PhysicalResourceId between the old and new custom resources. If they are different, AWS CloudFormation recognizes the update as a replacement and sends a delete request to the old resource http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cfn-customresource.html

func EC2RouteCreate

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

func EC2RouteDelete

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

func EC2RouteUpdate

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

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 ECSClusterCreate

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

func ECSClusterDelete

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

func ECSClusterUpdate

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

func ECSServiceCreate

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

func ECSServiceDelete

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

func ECSServiceReplacementRequired

func ECSServiceReplacementRequired(req Request) (bool, error)

According to the ECS Docs (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service.html): To change the load balancer name, the container name, or the container port associated with a service load balancer configuration, you must create a new service.

func ECSServiceUpdate

func ECSServiceUpdate(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)

func HandleEC2Route

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

func HandleECRRepository

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

func HandleECSCluster

func HandleECSCluster(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 HandleLambdaFunction

func HandleLambdaFunction(req Request) (string, error)

func HandleRequest

func HandleRequest(freq Request) error

func HandleS3BucketCleanup

func HandleS3BucketCleanup(req Request) (string, map[string]string, 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 LambdaFunctionCreate

func LambdaFunctionCreate(req Request) (string, error)

func LambdaFunctionDelete

func LambdaFunctionDelete(req Request) (string, error)

func LambdaFunctionUpdate

func LambdaFunctionUpdate(req Request) (string, error)

func Listen

func Listen()

func Region

func Region(req *Request) *string

func S3

func S3(req Request) *s3.S3

func S3BucketCleanupCreate

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

func S3BucketCleanupDelete

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

func S3BucketCleanupUpdate

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

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