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.

CreateNatGatewayInput

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

type CreateNatGatewayInput struct { AllocationId *string `type:"string" required:"true"` ClientToken *string `type:"string"` SubnetId *string `type:"string" required:"true"` }

AllocationId

Type: *string

The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

AllocationId is a required field

ClientToken

Type: *string

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).

Constraint: Maximum 64 ASCII characters.

SubnetId

Type: *string

The subnet in which to create the NAT gateway.

SubnetId is a required field

Method

GoString

func (s CreateNatGatewayInput) GoString() string

GoString returns the string representation

SetAllocationId

func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput

SetAllocationId sets the AllocationId field's value.

SetClientToken

func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput

SetClientToken sets the ClientToken field's value.

SetSubnetId

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

SetSubnetId sets the SubnetId field's value.

String

func (s CreateNatGatewayInput) String() string

String returns the string representation

Validate

func (s *CreateNatGatewayInput) Validate() error

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

On this page: