package eip

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

Package eip provides a simplified interface for creating cloud formation resources

Index

Types

type EIP

type EIP struct {
	StoredName        string
	Number            int
	GatewayAttachment cfn.Namer
}

EIP stores the state for creating a cloud formation EIP resource

func New

func New(number int, gatewayAttachment cfn.Namer) *EIP

New creates an EIP for use with the NAT GW

Specifies an Elastic IP (EIP) address

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html

func (*EIP) Name

func (i *EIP) Name() string

Name returns the name of the resource

func (*EIP) Ref

func (i *EIP) Ref() string

Ref returns a cloud formation intrinsic ref to the resource

func (*EIP) Resource

func (i *EIP) Resource() cloudformation.Resource

Resource returns the cloud formation resource for an EIP

Source Files

eip.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
4 packages
Last checked
18 hours ago

Tools for package owners.