package routetable
import "github.com/oslokommune/okctl/pkg/cfn/components/routetable"
Package routetable knows how to create cloud formation for a route table
Index ¶
Types ¶
type RouteTable ¶
type RouteTable struct { StoredName string Number int VPC cfn.Referencer }
RouteTable stores required state for creating a cloud formation route table resource
func NewPrivate ¶
func NewPrivate(number int, vpc cfn.Referencer) *RouteTable
NewPrivate returns a route table for the RouteTable subnets
Specifies a route table for a specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html
func NewPublic ¶
func NewPublic(vpc cfn.Referencer) *RouteTable
NewPublic returns a route table for the Public subnets
Specifies a route table for a specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html
func (*RouteTable) Name ¶
func (p *RouteTable) Name() string
Name returns the name of the resource
func (*RouteTable) Ref ¶
func (p *RouteTable) Ref() string
Ref return a cloud formation intrinsic ref to the resource
func (*RouteTable) Resource ¶
func (p *RouteTable) Resource() cloudformation.Resource
Resource returns the cloud formation route table
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 hours ago –
Tools for package owners.