package vpcendpoint

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

Package vpcendpoint knows how to build a VPC endpoint

Index

Types

type VPCEndpoint

type VPCEndpoint struct {
	StoredName    string
	SecurityGroup cfn.Namer
	VpcID         string
	DBSubnetIDs   []string
	ServiceName   string
}

VPCEndpoint contains the required state for building a cloud formation resource of a VPC endpoint

func New

func New(
	resourceName string,
	securityGroup cfn.Namer,
	vpcID string,
	dbSubnets []string,
	serviceName string,
) *VPCEndpoint

New returns an initialised VPC endpoint - https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints.html

func NewSecretsManager

func NewSecretsManager(
	resourceName string,
	securityGroup cfn.Namer,
	vpcID string,
	dbSubnets []string,
) *VPCEndpoint

NewSecretsManager returns an initialised vpc endpoint for the secrets manager

func (*VPCEndpoint) Name

func (e *VPCEndpoint) Name() string

Name returns the name of the cloud formation resource

func (*VPCEndpoint) NamedOutputs

func (e *VPCEndpoint) NamedOutputs() map[string]cloudformation.Output

NamedOutputs returns the resource outputs

func (*VPCEndpoint) Ref

func (e *VPCEndpoint) Ref() string

Ref returns a cloud formation intrinsic ref to the resource

func (*VPCEndpoint) Resource

func (e *VPCEndpoint) Resource() cloudformation.Resource

Resource returns the cloud formation resource for a VPC endpoint

Source Files

vpcendpoint.go

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

Tools for package owners.