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.

AllocateAddressInput

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

type AllocateAddressInput struct { Address *string `type:"string"` Domain *string `type:"string" enum:"DomainType"` DryRun *bool `locationName:"dryRun" type:"boolean"` PublicIpv4Pool *string `type:"string"` }

Address

Type: *string

[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.

Domain

Type: *string

Set to vpc to allocate the address for use with instances in a VPC.

Default: The address is for use with instances in EC2-Classic.

DryRun

Type: *bool

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

PublicIpv4Pool

Type: *string

The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. To specify a specific address from the address pool, use the Address parameter instead.

Method

GoString

func (s AllocateAddressInput) GoString() string

GoString returns the string representation

SetAddress

func (s *AllocateAddressInput) SetAddress(v string) *AllocateAddressInput

SetAddress sets the Address field's value.

SetDomain

func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput

SetDomain sets the Domain field's value.

SetDryRun

func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput

SetDryRun sets the DryRun field's value.

SetPublicIpv4Pool

func (s *AllocateAddressInput) SetPublicIpv4Pool(v string) *AllocateAddressInput

SetPublicIpv4Pool sets the PublicIpv4Pool field's value.

String

func (s AllocateAddressInput) String() string

String returns the string representation

On this page: