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.

InstanceNetworkInterface

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

type InstanceNetworkInterface struct { Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"` Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"` Description *string `locationName:"description" type:"string"` Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"` Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"` MacAddress *string `locationName:"macAddress" type:"string"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` OwnerId *string `locationName:"ownerId" type:"string"` PrivateDnsName *string `locationName:"privateDnsName" type:"string"` PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"` SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"` Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"` SubnetId *string `locationName:"subnetId" type:"string"` VpcId *string `locationName:"vpcId" type:"string"` }

Describes a network interface.

Association

Describes association information for an Elastic IP address (IPv4).

Attachment

Describes a network interface attachment.

Description

Type: *string

The description.

Groups

Describes a security group.

Ipv6Addresses

Describes an IPv6 address.

MacAddress

Type: *string

The MAC address.

NetworkInterfaceId

Type: *string

The ID of the network interface.

OwnerId

Type: *string

The ID of the AWS account that created the network interface.

PrivateDnsName

Type: *string

The private DNS name.

PrivateIpAddress

Type: *string

The IPv4 address of the network interface within the subnet.

PrivateIpAddresses

Describes a private IPv4 address.

SourceDestCheck

Type: *bool

Indicates whether to validate network traffic to or from this network interface.

Status

Type: *string

The status of the network interface.

SubnetId

Type: *string

The ID of the subnet.

VpcId

Type: *string

The ID of the VPC.

Method

GoString

func (s InstanceNetworkInterface) GoString() string

GoString returns the string representation

SetAssociation

func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface

SetAssociation sets the Association field's value.

SetAttachment

func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface

SetAttachment sets the Attachment field's value.

SetDescription

func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface

SetDescription sets the Description field's value.

SetGroups

func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface

SetGroups sets the Groups field's value.

SetIpv6Addresses

func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface

SetIpv6Addresses sets the Ipv6Addresses field's value.

SetMacAddress

func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface

SetMacAddress sets the MacAddress field's value.

SetNetworkInterfaceId

func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetOwnerId

func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface

SetOwnerId sets the OwnerId field's value.

SetPrivateDnsName

func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface

SetPrivateDnsName sets the PrivateDnsName field's value.

SetPrivateIpAddress

func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPrivateIpAddresses

func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetSourceDestCheck

func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface

SetSourceDestCheck sets the SourceDestCheck field's value.

SetStatus

func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface

SetStatus sets the Status field's value.

SetSubnetId

func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface

SetSubnetId sets the SubnetId field's value.

SetVpcId

func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface

SetVpcId sets the VpcId field's value.

String

func (s InstanceNetworkInterface) String() string

String returns the string representation

On this page: