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.

AssignPrivateIpAddressesInput

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

type AssignPrivateIpAddressesInput struct { AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"` SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` }

Contains the parameters for AssignPrivateIpAddresses.

AllowReassignment

Type: *bool

Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

NetworkInterfaceId

Type: *string

The ID of the network interface.

NetworkInterfaceId is a required field

PrivateIpAddresses

Type: []*string

One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.

If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.

SecondaryPrivateIpAddressCount

Type: *int64

The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.

Method

GoString

func (s AssignPrivateIpAddressesInput) GoString() string

GoString returns the string representation

SetAllowReassignment

func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput

SetAllowReassignment sets the AllowReassignment field's value.

SetNetworkInterfaceId

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

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

SetPrivateIpAddresses

func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput

SetPrivateIpAddresses sets the PrivateIpAddresses field's value.

SetSecondaryPrivateIpAddressCount

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

SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.

String

func (s AssignPrivateIpAddressesInput) String() string

String returns the string representation

Validate

func (s *AssignPrivateIpAddressesInput) Validate() error

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

On this page: