package vpc

import "github.com/oslokommune/okctl/pkg/cfn/components/vpc"

Package vpc knows how to create a cloud formation VPC

Index

Types

type VPC

type VPC struct {
	// contains filtered or unexported fields
}

VPC stores the state for creating a cloud formation VPC

func New

func New(cluster cfn.Namer, cidr *net.IPNet) *VPC

New returns a new VPC cloud formation resource

func (*VPC) Name

func (v *VPC) Name() string

Name returns the name of the resource

func (*VPC) NamedOutputs

func (v *VPC) NamedOutputs() map[string]cloudformation.Output

NamedOutputs returns the commonly used named outputs of a VPC

func (*VPC) Ref

func (v *VPC) Ref() string

Ref returns a cloud formation intrinsic ref to the resource

func (*VPC) Resource

func (v *VPC) Resource() cloudformation.Resource

Resource returns the cloud formation resource of the VPC

Source Files

vpc.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
5 minutes ago

Tools for package owners.