Documentation ¶
Index ¶
- Constants
- Variables
- func BuildApiGatewayTemplateFromIngressRule(cfg *TemplateConfig) *cfn.Template
- func DeleteComplete(status string) bool
- func DescribeStack(cfnSvc cloudformationiface.CloudFormationAPI, stackName string) (*cloudformation.Stack, error)
- func GetResourceID(cfnSvc cloudformationiface.CloudFormationAPI, stackName string, ...) (string, error)
- func IsComplete(status string) bool
- func IsDeleting(status string) bool
- func IsDoesNotExist(err error, stackName string) bool
- func IsFailed(status string) bool
- func IsPending(status string) bool
- func StackDoesNotExist(err error) bool
- func StackOutputMap(stack *cloudformation.Stack) map[string]string
- type Output
- type PolicyDocument
- type Statement
- type TemplateConfig
Constants ¶
const ( OutputKeyRestApiID = "RestAPIID" OutputKeyAPIGatewayEndpoint = "APIGatewayEndpoint" OutputKeyClientARNS = "ClientARNS" )
Variables ¶
var CompleteStatuses = []string{ cloudformation.StackStatusCreateComplete, cloudformation.StackStatusUpdateComplete, cloudformation.StackStatusDeleteComplete, }
CompleteStatuses contains all CloudFormation status strings that we consider to be complete for a vpn
var FailedStatuses = []string{ cloudformation.StackStatusCreateFailed, cloudformation.StackStatusRollbackComplete, cloudformation.StackStatusRollbackFailed, cloudformation.StackStatusUpdateRollbackFailed, cloudformation.StackStatusUpdateRollbackComplete, cloudformation.StackStatusDeleteFailed, }
FailedStatuses contains all CloudFormation status strings that we consider to be failed for a vpn
var PendingStatuses = []string{ cloudformation.StackStatusCreateInProgress, cloudformation.StackStatusDeleteInProgress, cloudformation.StackStatusRollbackInProgress, cloudformation.StackStatusUpdateCompleteCleanupInProgress, cloudformation.StackStatusUpdateInProgress, cloudformation.StackStatusUpdateRollbackCompleteCleanupInProgress, cloudformation.StackStatusUpdateRollbackInProgress, cloudformation.StackStatusReviewInProgress, }
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 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 ¶
IsComplete tests if the specified string is considered a completed cloudformation stack state
func IsDeleting ¶
IsDeleting tests if the stack status is DELETE_IN_PROGRESS
func IsDoesNotExist ¶
func IsFailed ¶
IsFailed tests if the specified string is considered a failed cloudformation stack state
func IsPending ¶
IsPending tests if the specified string is considered a pending cloudformation stack state
func StackDoesNotExist ¶
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 PolicyDocument ¶
type TemplateConfig ¶
type TemplateConfig struct { Network *network.Network Rule extensionsv1beta1.IngressRule NodePort int StageName string Arns []string CustomDomainName string CertificateArn string }