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.

CreateVpnGatewayInput

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

type CreateVpnGatewayInput struct { AmazonSideAsn *int64 `type:"long"` AvailabilityZone *string `type:"string"` DryRun *bool `locationName:"dryRun" type:"boolean"` Type *string `type:"string" required:"true" enum:"GatewayType"` }

Contains the parameters for CreateVpnGateway.

AmazonSideAsn

Type: *int64

A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.

Default: 64512

AvailabilityZone

Type: *string

The Availability Zone for the virtual private gateway.

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.

Type

Type: *string

The type of VPN connection this virtual private gateway supports.

Type is a required field

Method

GoString

func (s CreateVpnGatewayInput) GoString() string

GoString returns the string representation

SetAmazonSideAsn

func (s *CreateVpnGatewayInput) SetAmazonSideAsn(v int64) *CreateVpnGatewayInput

SetAmazonSideAsn sets the AmazonSideAsn field's value.

SetAvailabilityZone

func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput

SetAvailabilityZone sets the AvailabilityZone field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetType

func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput

SetType sets the Type field's value.

String

func (s CreateVpnGatewayInput) String() string

String returns the string representation

Validate

func (s *CreateVpnGatewayInput) Validate() error

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

On this page: