cloudformation

package
v0.0.0-...-d496eb2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputKeyRestApiID          = "RestAPIID"
	OutputKeyAPIGatewayEndpoint = "APIGatewayEndpoint"
	OutputKeyClientARNS         = "ClientARNS"
)

Variables

CompleteStatuses contains all CloudFormation status strings that we consider to be complete for a vpn

FailedStatuses contains all CloudFormation status strings that we consider to be failed for a vpn

PendingStatuses contains all CloudFormation status strings that we consider to be pending for a vpn

Functions

func BuildApiGatewayTemplateFromIngressRule

func BuildApiGatewayTemplateFromIngressRule(cfg *TemplateConfig) *cfn.Template

func DeleteComplete

func DeleteComplete(status string) bool

func DescribeStack

func DescribeStack(cfnSvc cloudformationiface.CloudFormationAPI, stackName string) (*cloudformation.Stack, error)

func GetResourceID

func GetResourceID(cfnSvc cloudformationiface.CloudFormationAPI, stackName string, logicalID string) (string, error)

func IsComplete

func IsComplete(status string) bool

IsComplete tests if the specified string is considered a completed cloudformation stack state

func IsDeleting

func IsDeleting(status string) bool

IsDeleting tests if the stack status is DELETE_IN_PROGRESS

func IsDoesNotExist

func IsDoesNotExist(err error, stackName string) bool

func IsFailed

func IsFailed(status string) bool

IsFailed tests if the specified string is considered a failed cloudformation stack state

func IsPending

func IsPending(status string) bool

IsPending tests if the specified string is considered a pending cloudformation stack state

func StackDoesNotExist

func StackDoesNotExist(err error) bool

StackDoesNotExist Checks if the error recieved for DescribeStacks denotes if the stack is non exsistent

func StackOutputMap

func StackOutputMap(stack *cloudformation.Stack) map[string]string

Types

type Output

type Output struct {
	Value string
}

type PolicyDocument

type PolicyDocument struct {
	Version   string      `json:"Version"`
	Statement []Statement `json:"Statement"`
}

type Statement

type Statement struct {
	Effect    string              `json:"Effect"`
	Principal map[string][]string `json:"Principal"`
	Action    []string            `json:"Action"`
	Resource  []string            `json:"Resource"`
}

type TemplateConfig

type TemplateConfig struct {
	Network          *network.Network
	Rule             extensionsv1beta1.IngressRule
	NodePort         int
	StageName        string
	Arns             []string
	CustomDomainName string
	CertificateArn   string
}

Jump to

Keyboard shortcuts

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