package natgateway
import "github.com/oslokommune/okctl/pkg/cfn/components/natgateway"
Package natgateway knows how to create cloud formation for a NATGW
Index ¶
Types ¶
type NatGateway ¶
type NatGateway struct { StoredName string Number int EIP cfn.Namer PublicSubnet cfn.NameReferencer GatewayAttachment cfn.Namer }
NatGateway stores required state for creating a cloud formation NATGW
func New ¶
func New(number int, gatewayAttachment cfn.Namer, eip cfn.Namer, publicSubnet cfn.NameReferencer) *NatGateway
New returns a cloud formation VPC NAT gateway attachment
Attaches an internet gateway, or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC.
func (*NatGateway) Name ¶
func (n *NatGateway) Name() string
Name returns the name of the resource
func (*NatGateway) Ref ¶
func (n *NatGateway) Ref() string
Ref returns a cloud formation intrinsic ref to the resource
func (*NatGateway) Resource ¶
func (n *NatGateway) Resource() cloudformation.Resource
Resource returns a cloud formation resource for creating a NATGW
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 days ago –
Tools for package owners.