directconnect

package
v0.0.0-...-5c85c1b Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package directconnect provides a client for AWS Direct Connect.

Index

Constants

View Source
const (
	ConnectionStateAvailable = "available"
	ConnectionStateDeleted   = "deleted"
	ConnectionStateDeleting  = "deleting"
	ConnectionStateDown      = "down"
	ConnectionStateOrdering  = "ordering"
	ConnectionStatePending   = "pending"
	ConnectionStateRejected  = "rejected"
	ConnectionStateRequested = "requested"
)

Possible values for DirectConnect.

View Source
const (
	InterconnectStateAvailable = "available"
	InterconnectStateDeleted   = "deleted"
	InterconnectStateDeleting  = "deleting"
	InterconnectStateDown      = "down"
	InterconnectStatePending   = "pending"
	InterconnectStateRequested = "requested"
)

Possible values for DirectConnect.

View Source
const (
	VirtualInterfaceStateAvailable  = "available"
	VirtualInterfaceStateConfirming = "confirming"
	VirtualInterfaceStateDeleted    = "deleted"
	VirtualInterfaceStateDeleting   = "deleting"
	VirtualInterfaceStatePending    = "pending"
	VirtualInterfaceStateRejected   = "rejected"
	VirtualInterfaceStateVerifying  = "verifying"
)

Possible values for DirectConnect.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateConnectionOnInterconnectRequest

type AllocateConnectionOnInterconnectRequest struct {
	Bandwidth      aws.StringValue  `json:"bandwidth"`
	ConnectionName aws.StringValue  `json:"connectionName"`
	InterconnectID aws.StringValue  `json:"interconnectId"`
	OwnerAccount   aws.StringValue  `json:"ownerAccount"`
	VLAN           aws.IntegerValue `json:"vlan"`
}

AllocateConnectionOnInterconnectRequest is undocumented.

type AllocatePrivateVirtualInterfaceRequest

type AllocatePrivateVirtualInterfaceRequest struct {
	ConnectionID                         aws.StringValue                       `json:"connectionId"`
	NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `json:"newPrivateVirtualInterfaceAllocation"`
	OwnerAccount                         aws.StringValue                       `json:"ownerAccount"`
}

AllocatePrivateVirtualInterfaceRequest is undocumented.

type AllocatePublicVirtualInterfaceRequest

type AllocatePublicVirtualInterfaceRequest struct {
	ConnectionID                        aws.StringValue                      `json:"connectionId"`
	NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `json:"newPublicVirtualInterfaceAllocation"`
	OwnerAccount                        aws.StringValue                      `json:"ownerAccount"`
}

AllocatePublicVirtualInterfaceRequest is undocumented.

type ConfirmConnectionRequest

type ConfirmConnectionRequest struct {
	ConnectionID aws.StringValue `json:"connectionId"`
}

ConfirmConnectionRequest is undocumented.

type ConfirmConnectionResponse

type ConfirmConnectionResponse struct {
	ConnectionState aws.StringValue `json:"connectionState,omitempty"`
}

ConfirmConnectionResponse is undocumented.

type ConfirmPrivateVirtualInterfaceRequest

type ConfirmPrivateVirtualInterfaceRequest struct {
	VirtualGatewayID   aws.StringValue `json:"virtualGatewayId"`
	VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}

ConfirmPrivateVirtualInterfaceRequest is undocumented.

type ConfirmPrivateVirtualInterfaceResponse

type ConfirmPrivateVirtualInterfaceResponse struct {
	VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}

ConfirmPrivateVirtualInterfaceResponse is undocumented.

type ConfirmPublicVirtualInterfaceRequest

type ConfirmPublicVirtualInterfaceRequest struct {
	VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}

ConfirmPublicVirtualInterfaceRequest is undocumented.

type ConfirmPublicVirtualInterfaceResponse

type ConfirmPublicVirtualInterfaceResponse struct {
	VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}

ConfirmPublicVirtualInterfaceResponse is undocumented.

type Connection

type Connection struct {
	Bandwidth       aws.StringValue  `json:"bandwidth,omitempty"`
	ConnectionID    aws.StringValue  `json:"connectionId,omitempty"`
	ConnectionName  aws.StringValue  `json:"connectionName,omitempty"`
	ConnectionState aws.StringValue  `json:"connectionState,omitempty"`
	Location        aws.StringValue  `json:"location,omitempty"`
	OwnerAccount    aws.StringValue  `json:"ownerAccount,omitempty"`
	PartnerName     aws.StringValue  `json:"partnerName,omitempty"`
	Region          aws.StringValue  `json:"region,omitempty"`
	VLAN            aws.IntegerValue `json:"vlan,omitempty"`
}

Connection is undocumented.

type Connections

type Connections struct {
	Connections []Connection `json:"connections,omitempty"`
}

Connections is undocumented.

type CreateConnectionRequest

type CreateConnectionRequest struct {
	Bandwidth      aws.StringValue `json:"bandwidth"`
	ConnectionName aws.StringValue `json:"connectionName"`
	Location       aws.StringValue `json:"location"`
}

CreateConnectionRequest is undocumented.

type CreateInterconnectRequest

type CreateInterconnectRequest struct {
	Bandwidth        aws.StringValue `json:"bandwidth"`
	InterconnectName aws.StringValue `json:"interconnectName"`
	Location         aws.StringValue `json:"location"`
}

CreateInterconnectRequest is undocumented.

type CreatePrivateVirtualInterfaceRequest

type CreatePrivateVirtualInterfaceRequest struct {
	ConnectionID               aws.StringValue             `json:"connectionId"`
	NewPrivateVirtualInterface *NewPrivateVirtualInterface `json:"newPrivateVirtualInterface"`
}

CreatePrivateVirtualInterfaceRequest is undocumented.

type CreatePublicVirtualInterfaceRequest

type CreatePublicVirtualInterfaceRequest struct {
	ConnectionID              aws.StringValue            `json:"connectionId"`
	NewPublicVirtualInterface *NewPublicVirtualInterface `json:"newPublicVirtualInterface"`
}

CreatePublicVirtualInterfaceRequest is undocumented.

type DeleteConnectionRequest

type DeleteConnectionRequest struct {
	ConnectionID aws.StringValue `json:"connectionId"`
}

DeleteConnectionRequest is undocumented.

type DeleteInterconnectRequest

type DeleteInterconnectRequest struct {
	InterconnectID aws.StringValue `json:"interconnectId"`
}

DeleteInterconnectRequest is undocumented.

type DeleteInterconnectResponse

type DeleteInterconnectResponse struct {
	InterconnectState aws.StringValue `json:"interconnectState,omitempty"`
}

DeleteInterconnectResponse is undocumented.

type DeleteVirtualInterfaceRequest

type DeleteVirtualInterfaceRequest struct {
	VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}

DeleteVirtualInterfaceRequest is undocumented.

type DeleteVirtualInterfaceResponse

type DeleteVirtualInterfaceResponse struct {
	VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}

DeleteVirtualInterfaceResponse is undocumented.

type DescribeConnectionsOnInterconnectRequest

type DescribeConnectionsOnInterconnectRequest struct {
	InterconnectID aws.StringValue `json:"interconnectId"`
}

DescribeConnectionsOnInterconnectRequest is undocumented.

type DescribeConnectionsRequest

type DescribeConnectionsRequest struct {
	ConnectionID aws.StringValue `json:"connectionId,omitempty"`
}

DescribeConnectionsRequest is undocumented.

type DescribeInterconnectsRequest

type DescribeInterconnectsRequest struct {
	InterconnectID aws.StringValue `json:"interconnectId,omitempty"`
}

DescribeInterconnectsRequest is undocumented.

type DescribeVirtualInterfacesRequest

type DescribeVirtualInterfacesRequest struct {
	ConnectionID       aws.StringValue `json:"connectionId,omitempty"`
	VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId,omitempty"`
}

DescribeVirtualInterfacesRequest is undocumented.

type DirectConnect

type DirectConnect struct {
	// contains filtered or unexported fields
}

DirectConnect is a client for AWS Direct Connect.

func New

func New(creds aws.CredentialsProvider, region string, client *http.Client) *DirectConnect

New returns a new DirectConnect client.

func (*DirectConnect) AllocateConnectionOnInterconnect

func (c *DirectConnect) AllocateConnectionOnInterconnect(req *AllocateConnectionOnInterconnectRequest) (resp *Connection, err error)

AllocateConnectionOnInterconnect creates a hosted connection on an interconnect. Allocates a number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

func (*DirectConnect) AllocatePrivateVirtualInterface

func (c *DirectConnect) AllocatePrivateVirtualInterface(req *AllocatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error)

AllocatePrivateVirtualInterface provisions a private virtual interface to be owned by a different customer. The owner of a connection calls this function to provision a private virtual interface which will be owned by another AWS customer. Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPrivateVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

func (*DirectConnect) AllocatePublicVirtualInterface

func (c *DirectConnect) AllocatePublicVirtualInterface(req *AllocatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error)

AllocatePublicVirtualInterface provisions a public virtual interface to be owned by a different customer. The owner of a connection calls this function to provision a public virtual interface which will be owned by another AWS customer. Virtual interfaces created using this function must be confirmed by the virtual interface owner by calling ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.

func (*DirectConnect) ConfirmConnection

func (c *DirectConnect) ConfirmConnection(req *ConfirmConnectionRequest) (resp *ConfirmConnectionResponse, err error)

ConfirmConnection confirm the creation of a hosted connection on an interconnect. Upon creation, the hosted connection is initially in the 'Ordering' state, and will remain in this state until the owner calls ConfirmConnection to confirm creation of the hosted connection.

func (*DirectConnect) ConfirmPrivateVirtualInterface

func (c *DirectConnect) ConfirmPrivateVirtualInterface(req *ConfirmPrivateVirtualInterfaceRequest) (resp *ConfirmPrivateVirtualInterfaceResponse, err error)

ConfirmPrivateVirtualInterface accept ownership of a private virtual interface created by another customer. After the virtual interface owner calls this function, the virtual interface will be created and attached to the given virtual private gateway, and will be available for handling traffic.

func (*DirectConnect) ConfirmPublicVirtualInterface

func (c *DirectConnect) ConfirmPublicVirtualInterface(req *ConfirmPublicVirtualInterfaceRequest) (resp *ConfirmPublicVirtualInterfaceResponse, err error)

ConfirmPublicVirtualInterface accept ownership of a public virtual interface created by another customer. After the virtual interface owner calls this function, the specified virtual interface will be created and made available for handling traffic.

func (*DirectConnect) CreateConnection

func (c *DirectConnect) CreateConnection(req *CreateConnectionRequest) (resp *Connection, err error)

CreateConnection creates a new connection between the customer network and a specific AWS Direct Connect location. A connection links your internal network to an AWS Direct Connect location over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. An AWS Direct Connect location provides access to Amazon Web Services in the region it is associated with. You can establish connections with AWS Direct Connect locations in multiple regions, but a connection in one region does not provide connectivity to other regions.

func (*DirectConnect) CreateInterconnect

func (c *DirectConnect) CreateInterconnect(req *CreateInterconnectRequest) (resp *Interconnect, err error)

CreateInterconnect creates a new interconnect between a AWS Direct Connect partner's network and a specific AWS Direct Connect location. An interconnect is a connection which is capable of hosting other connections. The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do not have their own connections. Like a standard connection, an interconnect links the AWS Direct Connect partner's network to an AWS Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the partner's router, the other to an AWS Direct Connect router. For each end customer, the AWS Direct Connect partner provisions a connection on their interconnect by calling AllocateConnectionOnInterconnect. The end customer can then connect to AWS resources by creating a virtual interface on their connection, using the assigned to them by the AWS Direct Connect partner.

func (*DirectConnect) CreatePrivateVirtualInterface

func (c *DirectConnect) CreatePrivateVirtualInterface(req *CreatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error)

CreatePrivateVirtualInterface creates a new private virtual interface. A virtual interface is the that transports AWS Direct Connect traffic. A private virtual interface supports sending traffic to a single virtual private cloud

func (*DirectConnect) CreatePublicVirtualInterface

func (c *DirectConnect) CreatePublicVirtualInterface(req *CreatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error)

CreatePublicVirtualInterface creates a new public virtual interface. A virtual interface is the that transports AWS Direct Connect traffic. A public virtual interface supports sending traffic to public services of AWS such as Amazon Simple Storage Service (Amazon S3).

func (*DirectConnect) DeleteConnection

func (c *DirectConnect) DeleteConnection(req *DeleteConnectionRequest) (resp *Connection, err error)

DeleteConnection deletes the connection. Deleting a connection only stops the AWS Direct Connect port hour and data transfer charges. You need to cancel separately with the providers any services or charges for cross-connects or network circuits that connect you to the AWS Direct Connect location.

func (*DirectConnect) DeleteInterconnect

func (c *DirectConnect) DeleteInterconnect(req *DeleteInterconnectRequest) (resp *DeleteInterconnectResponse, err error)

DeleteInterconnect is undocumented.

func (*DirectConnect) DeleteVirtualInterface

func (c *DirectConnect) DeleteVirtualInterface(req *DeleteVirtualInterfaceRequest) (resp *DeleteVirtualInterfaceResponse, err error)

DeleteVirtualInterface is undocumented.

func (*DirectConnect) DescribeConnections

func (c *DirectConnect) DescribeConnections(req *DescribeConnectionsRequest) (resp *Connections, err error)

DescribeConnections displays all connections in this region. If a connection ID is provided, the call returns only that particular connection.

func (*DirectConnect) DescribeConnectionsOnInterconnect

func (c *DirectConnect) DescribeConnectionsOnInterconnect(req *DescribeConnectionsOnInterconnectRequest) (resp *Connections, err error)

DescribeConnectionsOnInterconnect return a list of connections that have been provisioned on the given interconnect.

func (*DirectConnect) DescribeInterconnects

func (c *DirectConnect) DescribeInterconnects(req *DescribeInterconnectsRequest) (resp *Interconnects, err error)

DescribeInterconnects returns a list of interconnects owned by the AWS account. If an interconnect ID is provided, it will only return this particular interconnect.

func (*DirectConnect) DescribeLocations

func (c *DirectConnect) DescribeLocations() (resp *Locations, err error)

DescribeLocations returns the list of AWS Direct Connect locations in the current AWS region. These are the locations that may be selected when calling CreateConnection or CreateInterconnect.

func (*DirectConnect) DescribeVirtualGateways

func (c *DirectConnect) DescribeVirtualGateways() (resp *VirtualGateways, err error)

DescribeVirtualGateways returns a list of virtual private gateways owned by the AWS account. You can create one or more AWS Direct Connect private virtual interfaces linking to a virtual private gateway. A virtual private gateway can be managed via Amazon Virtual Private Cloud console or the EC2 CreateVpnGateway action.

func (*DirectConnect) DescribeVirtualInterfaces

func (c *DirectConnect) DescribeVirtualInterfaces(req *DescribeVirtualInterfacesRequest) (resp *VirtualInterfaces, err error)

DescribeVirtualInterfaces displays all virtual interfaces for an AWS account. Virtual interfaces deleted fewer than 15 minutes before DescribeVirtualInterfaces is called are also returned. If a connection ID is included then only virtual interfaces associated with this connection will be returned. If a virtual interface ID is included then only a single virtual interface will be returned. A virtual interface transmits the traffic between the AWS Direct Connect location and the customer. If a connection ID is provided, only virtual interfaces provisioned on the specified connection will be returned. If a virtual interface ID is provided, only this particular virtual interface will be returned.

type Interconnect

type Interconnect struct {
	Bandwidth         aws.StringValue `json:"bandwidth,omitempty"`
	InterconnectID    aws.StringValue `json:"interconnectId,omitempty"`
	InterconnectName  aws.StringValue `json:"interconnectName,omitempty"`
	InterconnectState aws.StringValue `json:"interconnectState,omitempty"`
	Location          aws.StringValue `json:"location,omitempty"`
	Region            aws.StringValue `json:"region,omitempty"`
}

Interconnect is undocumented.

type Interconnects

type Interconnects struct {
	Interconnects []Interconnect `json:"interconnects,omitempty"`
}

Interconnects is undocumented.

type Location

type Location struct {
	LocationCode aws.StringValue `json:"locationCode,omitempty"`
	LocationName aws.StringValue `json:"locationName,omitempty"`
}

Location is undocumented.

type Locations

type Locations struct {
	Locations []Location `json:"locations,omitempty"`
}

Locations is undocumented.

type NewPrivateVirtualInterface

type NewPrivateVirtualInterface struct {
	AmazonAddress        aws.StringValue  `json:"amazonAddress,omitempty"`
	ASN                  aws.IntegerValue `json:"asn"`
	AuthKey              aws.StringValue  `json:"authKey,omitempty"`
	CustomerAddress      aws.StringValue  `json:"customerAddress,omitempty"`
	VirtualGatewayID     aws.StringValue  `json:"virtualGatewayId"`
	VirtualInterfaceName aws.StringValue  `json:"virtualInterfaceName"`
	VLAN                 aws.IntegerValue `json:"vlan"`
}

NewPrivateVirtualInterface is undocumented.

type NewPrivateVirtualInterfaceAllocation

type NewPrivateVirtualInterfaceAllocation struct {
	AmazonAddress        aws.StringValue  `json:"amazonAddress,omitempty"`
	ASN                  aws.IntegerValue `json:"asn"`
	AuthKey              aws.StringValue  `json:"authKey,omitempty"`
	CustomerAddress      aws.StringValue  `json:"customerAddress,omitempty"`
	VirtualInterfaceName aws.StringValue  `json:"virtualInterfaceName"`
	VLAN                 aws.IntegerValue `json:"vlan"`
}

NewPrivateVirtualInterfaceAllocation is undocumented.

type NewPublicVirtualInterface

type NewPublicVirtualInterface struct {
	AmazonAddress        aws.StringValue     `json:"amazonAddress"`
	ASN                  aws.IntegerValue    `json:"asn"`
	AuthKey              aws.StringValue     `json:"authKey,omitempty"`
	CustomerAddress      aws.StringValue     `json:"customerAddress"`
	RouteFilterPrefixes  []RouteFilterPrefix `json:"routeFilterPrefixes"`
	VirtualInterfaceName aws.StringValue     `json:"virtualInterfaceName"`
	VLAN                 aws.IntegerValue    `json:"vlan"`
}

NewPublicVirtualInterface is undocumented.

type NewPublicVirtualInterfaceAllocation

type NewPublicVirtualInterfaceAllocation struct {
	AmazonAddress        aws.StringValue     `json:"amazonAddress"`
	ASN                  aws.IntegerValue    `json:"asn"`
	AuthKey              aws.StringValue     `json:"authKey,omitempty"`
	CustomerAddress      aws.StringValue     `json:"customerAddress"`
	RouteFilterPrefixes  []RouteFilterPrefix `json:"routeFilterPrefixes"`
	VirtualInterfaceName aws.StringValue     `json:"virtualInterfaceName"`
	VLAN                 aws.IntegerValue    `json:"vlan"`
}

NewPublicVirtualInterfaceAllocation is undocumented.

type RouteFilterPrefix

type RouteFilterPrefix struct {
	CIDR aws.StringValue `json:"cidr,omitempty"`
}

RouteFilterPrefix is undocumented.

type VirtualGateway

type VirtualGateway struct {
	VirtualGatewayID    aws.StringValue `json:"virtualGatewayId,omitempty"`
	VirtualGatewayState aws.StringValue `json:"virtualGatewayState,omitempty"`
}

VirtualGateway is undocumented.

type VirtualGateways

type VirtualGateways struct {
	VirtualGateways []VirtualGateway `json:"virtualGateways,omitempty"`
}

VirtualGateways is undocumented.

type VirtualInterface

type VirtualInterface struct {
	AmazonAddress         aws.StringValue     `json:"amazonAddress,omitempty"`
	ASN                   aws.IntegerValue    `json:"asn,omitempty"`
	AuthKey               aws.StringValue     `json:"authKey,omitempty"`
	ConnectionID          aws.StringValue     `json:"connectionId,omitempty"`
	CustomerAddress       aws.StringValue     `json:"customerAddress,omitempty"`
	CustomerRouterConfig  aws.StringValue     `json:"customerRouterConfig,omitempty"`
	Location              aws.StringValue     `json:"location,omitempty"`
	OwnerAccount          aws.StringValue     `json:"ownerAccount,omitempty"`
	RouteFilterPrefixes   []RouteFilterPrefix `json:"routeFilterPrefixes,omitempty"`
	VirtualGatewayID      aws.StringValue     `json:"virtualGatewayId,omitempty"`
	VirtualInterfaceID    aws.StringValue     `json:"virtualInterfaceId,omitempty"`
	VirtualInterfaceName  aws.StringValue     `json:"virtualInterfaceName,omitempty"`
	VirtualInterfaceState aws.StringValue     `json:"virtualInterfaceState,omitempty"`
	VirtualInterfaceType  aws.StringValue     `json:"virtualInterfaceType,omitempty"`
	VLAN                  aws.IntegerValue    `json:"vlan,omitempty"`
}

VirtualInterface is undocumented.

type VirtualInterfaces

type VirtualInterfaces struct {
	VirtualInterfaces []VirtualInterface `json:"virtualInterfaces,omitempty"`
}

VirtualInterfaces is undocumented.

Jump to

Keyboard shortcuts

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