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.

NetworkInterface

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

type NetworkInterface struct { Ipv6Addresses []*string `locationName:"ipv6Addresses" type:"list"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` PrivateDnsName *string `locationName:"privateDnsName" type:"string"` PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` PrivateIpAddresses []*PrivateIp `locationName:"privateIpAddresses" type:"list"` PublicDnsName *string `locationName:"publicDnsName" type:"string"` PublicIp *string `locationName:"publicIp" type:"string"` SecurityGroups []*SecurityGroup `locationName:"securityGroups" type:"list"` SubnetId *string `locationName:"subnetId" type:"string"` VpcId *string `locationName:"vpcId" type:"string"` }

Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.

Ipv6Addresses

Type: []*string

The IP addresses associated with the network interface.

NetworkInterfaceId

Type: *string

The ID of the network interface.

PrivateDnsName

Type: *string

The name of a private DNS associated with the network interface.

PrivateIpAddress

Type: *string

The private IP address associated with the network interface.

PrivateIpAddresses

Contains information about a private IP address associated with a network interface. This data type is used as a response element in the DescribeFindings action.

PublicDnsName

Type: *string

The name of a public DNS associated with the network interface.

PublicIp

Type: *string

The public IP address from which the network interface is reachable.

SecurityGroups

Contains information about a security group associated with a network interface. This data type is used as one of the elements of the NetworkInterface data type.

SubnetId

Type: *string

The ID of a subnet associated with the network interface.

VpcId

Type: *string

The ID of a VPC associated with the network interface.

Method

GoString

func (s NetworkInterface) GoString() string

GoString returns the string representation

SetIpv6Addresses

func (s *NetworkInterface) SetIpv6Addresses(v []*string) *NetworkInterface

SetIpv6Addresses sets the Ipv6Addresses field's value.

SetNetworkInterfaceId

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

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateDnsName

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

SetPrivateDnsName sets the PrivateDnsName field's value.

SetPrivateIpAddress

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

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPrivateIpAddresses

func (s *NetworkInterface) SetPrivateIpAddresses(v []*PrivateIp) *NetworkInterface

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetPublicDnsName

func (s *NetworkInterface) SetPublicDnsName(v string) *NetworkInterface

SetPublicDnsName sets the PublicDnsName field's value.

SetPublicIp

func (s *NetworkInterface) SetPublicIp(v string) *NetworkInterface

SetPublicIp sets the PublicIp field's value.

SetSecurityGroups

func (s *NetworkInterface) SetSecurityGroups(v []*SecurityGroup) *NetworkInterface

SetSecurityGroups sets the SecurityGroups field's value.

SetSubnetId

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

SetSubnetId sets the SubnetId field's value.

SetVpcId

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

SetVpcId sets the VpcId field's value.

String

func (s NetworkInterface) String() string

String returns the string representation

On this page: