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.

LaunchTemplateInstanceNetworkInterfaceSpecification

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

type LaunchTemplateInstanceNetworkInterfaceSpecification 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:"groupSet" locationNameList:"groupId" type:"list"` Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"` Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" 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 associate a public IPv4 address with eth0 for a new network interface.

DeleteOnTermination

Type: *bool

Indicates whether the network interface is deleted when the instance is terminated.

Description

Type: *string

A description for the network interface.

DeviceIndex

Type: *int64

The device index for the network interface attachment.

Groups

Type: []*string

The IDs of one or more security groups.

Ipv6AddressCount

Type: *int64

The number of IPv6 addresses for the network interface.

Ipv6Addresses

Describes an IPv6 address.

NetworkInterfaceId

Type: *string

The ID of the network interface.

PrivateIpAddress

Type: *string

The primary private IPv4 address of the network interface.

PrivateIpAddresses

Describes a secondary private IPv4 address for a network interface.

SecondaryPrivateIpAddressCount

Type: *int64

The number of secondary private IPv4 addresses for the network interface.

SubnetId

Type: *string

The ID of the subnet for the network interface.

Method

GoString

func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string

GoString returns the string representation

SetAssociatePublicIpAddress

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

SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.

SetDeleteOnTermination

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

SetDeleteOnTermination sets the DeleteOnTermination field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDeviceIndex

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

SetDeviceIndex sets the DeviceIndex field's value.

SetGroups

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

SetGroups sets the Groups field's value.

SetIpv6AddressCount

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

SetIpv6AddressCount sets the Ipv6AddressCount field's value.

SetIpv6Addresses

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

SetIpv6Addresses sets the Ipv6Addresses field's value.

SetNetworkInterfaceId

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

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateIpAddress

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

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPrivateIpAddresses

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

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetSecondaryPrivateIpAddressCount

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

SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.

SetSubnetId

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

SetSubnetId sets the SubnetId field's value.

String

func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string

String returns the string representation

LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

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

type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { AssociatePublicIpAddress *bool `type:"boolean"` DeleteOnTermination *bool `type:"boolean"` Description *string `type:"string"` DeviceIndex *int64 `type:"integer"` Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` Ipv6AddressCount *int64 `type:"integer"` Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"` NetworkInterfaceId *string `type:"string"` PrivateIpAddress *string `type:"string"` PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"` SecondaryPrivateIpAddressCount *int64 `type:"integer"` SubnetId *string `type:"string"` }

The parameters for a network interface.

AssociatePublicIpAddress

Type: *bool

Associates a public IPv4 address with eth0 for a new network interface.

DeleteOnTermination

Type: *bool

Indicates whether the network interface is deleted when the instance is terminated.

Description

Type: *string

A description for the network interface.

DeviceIndex

Type: *int64

The device index for the network interface attachment.

Groups

Type: []*string

The IDs of one or more security groups.

Ipv6AddressCount

Type: *int64

The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.

Ipv6Addresses

Describes an IPv6 address.

NetworkInterfaceId

Type: *string

The ID of the network interface.

PrivateIpAddress

Type: *string

The primary private IPv4 address of the network interface.

PrivateIpAddresses

Describes a secondary private IPv4 address for a network interface.

SecondaryPrivateIpAddressCount

Type: *int64

The number of secondary private IPv4 addresses to assign to a network interface.

SubnetId

Type: *string

The ID of the subnet for the network interface.

Method

GoString

func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string

GoString returns the string representation

SetAssociatePublicIpAddress

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

SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.

SetDeleteOnTermination

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

SetDeleteOnTermination sets the DeleteOnTermination field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetDeviceIndex

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

SetDeviceIndex sets the DeviceIndex field's value.

SetGroups

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

SetGroups sets the Groups field's value.

SetIpv6AddressCount

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

SetIpv6AddressCount sets the Ipv6AddressCount field's value.

SetIpv6Addresses

func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest

SetIpv6Addresses sets the Ipv6Addresses field's value.

SetNetworkInterfaceId

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

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateIpAddress

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

SetPrivateIpAddress sets the PrivateIpAddress field's value.

SetPrivateIpAddresses

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

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetSecondaryPrivateIpAddressCount

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

SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.

SetSubnetId

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

SetSubnetId sets the SubnetId field's value.

String

func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string

String returns the string representation