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.

InstanceNetworkInterfaceSpecification

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

type InstanceNetworkInterfaceSpecification struct { AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"` DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` Description *string `locationName:"description" type:"string"` DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"` Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"` SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` SubnetId *string `locationName:"subnetId" type:"string"` }

Describes a network interface.

AssociatePublicIpAddress

Type: *bool

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

DeleteOnTermination

Type: *bool

If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

Description

Type: *string

The description of the network interface. Applies only if creating a network interface when launching an instance.

DeviceIndex

Type: *int64

The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.

Groups

Type: []*string

The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

Ipv6AddressCount

Type: *int64

A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

Ipv6Addresses

Describes an IPv6 address.

NetworkInterfaceId

Type: *string

The ID of the network interface.

PrivateIpAddress

Type: *string

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

PrivateIpAddresses

Describes a secondary private IPv4 address for a network interface.

SecondaryPrivateIpAddressCount

Type: *int64

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

SubnetId

Type: *string

The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.

Method

GoString

func (s InstanceNetworkInterfaceSpecification) GoString() string

GoString returns the string representation

SetAssociatePublicIpAddress

func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification

SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.

SetDeleteOnTermination

func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification

SetDeleteOnTermination sets the DeleteOnTermination field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDeviceIndex

func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification

SetDeviceIndex sets the DeviceIndex field's value.

SetGroups

func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification

SetGroups sets the Groups field's value.

SetIpv6AddressCount

func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification

SetIpv6AddressCount sets the Ipv6AddressCount field's value.

SetIpv6Addresses

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

SetIpv6Addresses sets the Ipv6Addresses field's value.

SetNetworkInterfaceId

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

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateIpAddress

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

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPrivateIpAddresses

func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetSecondaryPrivateIpAddressCount

func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification

SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.

SetSubnetId

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

SetSubnetId sets the SubnetId field's value.

String

func (s InstanceNetworkInterfaceSpecification) String() string

String returns the string representation

On this page: