vpc

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeTransitGateway

func DescribeTransitGateway(ctx context.Context, ec2client *ec2.Client, tg *string) (*ec2types.TransitGateway, error)

func GetEC2Client

func GetEC2Client(ctx context.Context, clients map[string]map[string]*ec2.Client, profile string, region *string) (*ec2.Client, error)

func GetGlobalNetworks

func GetGlobalNetworks(ctx context.Context, nmclient *nm.Client) ([]nmtypes.GlobalNetwork, error)

func GetTransitGatewayAttachmentsByAttachment

func GetTransitGatewayAttachmentsByAttachment(ctx context.Context, ec2client *ec2.Client, attachment string) ([]ec2types.TransitGatewayAttachment, error)

func GetTransitGatewayAttachmentsByTG

func GetTransitGatewayAttachmentsByTG(ctx context.Context, clients map[string]map[string]*ec2.Client, attachmentARN arn.ARN) ([]ec2types.TransitGatewayAttachment, error)

func NewEC2Client

func NewEC2Client(ctx context.Context, profile string, region *string) (*ec2.Client, error)

Types

type DescribeTGRegistrationsOutput

type DescribeTGRegistrationsOutput struct {
	Name        string
	Region      string
	Attachments []ec2types.TransitGatewayAttachment
	Resource    string
}

func DescribeTransitGatewayRegistrationsFromARN

func DescribeTransitGatewayRegistrationsFromARN(ctx context.Context, transitGatewaysARN []*string) ([]*DescribeTGRegistrationsOutput, error)

type DescribeTransitGatewayRouteTablesOutput

type DescribeTransitGatewayRouteTablesOutput struct {
	Name   string
	Routes []ec2types.TransitGatewayRoute
}

func DescribeTransitGatewayRouteTables

func DescribeTransitGatewayRouteTables(ctx context.Context, ec2client *ec2.Client) ([]*DescribeTransitGatewayRouteTablesOutput, error)

type GlobalNetwork

type GlobalNetwork struct {
	Connections                           []nmtypes.Connection
	CustomerGatewayAssociations           []nmtypes.CustomerGatewayAssociation
	Devices                               []nmtypes.Device
	LinkAssociations                      []nmtypes.LinkAssociation
	Links                                 []nmtypes.Link
	Sites                                 []nmtypes.Site
	TransitGatewayConnectPeerAssociations []nmtypes.TransitGatewayConnectPeerAssociation
	TransitGatewayRegistrations           []nmtypes.TransitGatewayRegistration
}

func DescribeGlobalNetwork

func DescribeGlobalNetwork(ctx context.Context, nmclient *nm.Client, network nmtypes.GlobalNetwork) (*GlobalNetwork, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL