AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

NewPublicVirtualInterfaceAllocation

import "github.com/aws/aws-sdk-go/service/directconnect"

type NewPublicVirtualInterfaceAllocation struct { AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` AmazonAddress *string `locationName:"amazonAddress" type:"string"` Asn *int64 `locationName:"asn" type:"integer" required:"true"` AuthKey *string `locationName:"authKey" type:"string"` CustomerAddress *string `locationName:"customerAddress" type:"string"` RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` }

Information about a public virtual interface to be provisioned on a connection.

AddressFamily

Type: *string

The address family for the BGP peer.

AmazonAddress

Type: *string

The IP address assigned to the Amazon interface.

Asn

Type: *int64

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Asn is a required field

AuthKey

Type: *string

The authentication key for BGP configuration.

CustomerAddress

Type: *string

The IP address assigned to the customer interface.

RouteFilterPrefixes

Information about a route filter prefix that a customer can advertise through Border Gateway Protocol (BGP) over a public virtual interface.

VirtualInterfaceName

Type: *string

The name of the virtual interface assigned by the customer network.

VirtualInterfaceName is a required field

Vlan

Type: *int64

The ID of the VLAN.

Vlan is a required field

Method

GoString

func (s NewPublicVirtualInterfaceAllocation) GoString() string

GoString returns the string representation

SetAddressFamily

func (s *NewPublicVirtualInterfaceAllocation) SetAddressFamily(v string) *NewPublicVirtualInterfaceAllocation

SetAddressFamily sets the AddressFamily field's value.

SetAmazonAddress

func (s *NewPublicVirtualInterfaceAllocation) SetAmazonAddress(v string) *NewPublicVirtualInterfaceAllocation

SetAmazonAddress sets the AmazonAddress field's value.

SetAsn

func (s *NewPublicVirtualInterfaceAllocation) SetAsn(v int64) *NewPublicVirtualInterfaceAllocation

SetAsn sets the Asn field's value.

SetAuthKey

func (s *NewPublicVirtualInterfaceAllocation) SetAuthKey(v string) *NewPublicVirtualInterfaceAllocation

SetAuthKey sets the AuthKey field's value.

SetCustomerAddress

func (s *NewPublicVirtualInterfaceAllocation) SetCustomerAddress(v string) *NewPublicVirtualInterfaceAllocation

SetCustomerAddress sets the CustomerAddress field's value.

SetRouteFilterPrefixes

func (s *NewPublicVirtualInterfaceAllocation) SetRouteFilterPrefixes(v []*RouteFilterPrefix) *NewPublicVirtualInterfaceAllocation

SetRouteFilterPrefixes sets the RouteFilterPrefixes field's value.

SetVirtualInterfaceName

func (s *NewPublicVirtualInterfaceAllocation) SetVirtualInterfaceName(v string) *NewPublicVirtualInterfaceAllocation

SetVirtualInterfaceName sets the VirtualInterfaceName field's value.

SetVlan

func (s *NewPublicVirtualInterfaceAllocation) SetVlan(v int64) *NewPublicVirtualInterfaceAllocation

SetVlan sets the Vlan field's value.

String

func (s NewPublicVirtualInterfaceAllocation) String() string

String returns the string representation

Validate

func (s *NewPublicVirtualInterfaceAllocation) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: