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.

CreateVpcInput

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

type CreateVpcInput struct { AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"` CidrBlock *string `type:"string" required:"true"` DryRun *bool `locationName:"dryRun" type:"boolean"` InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"` }

AmazonProvidedIpv6CidrBlock

Type: *bool

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IP addresses, or the size of the CIDR block.

CidrBlock

Type: *string

The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

CidrBlock is a required field

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.

InstanceTenancy

Type: *string

The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

Default: default

Method

GoString

func (s CreateVpcInput) GoString() string

GoString returns the string representation

SetAmazonProvidedIpv6CidrBlock

func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput

SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.

SetCidrBlock

func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput

SetCidrBlock sets the CidrBlock field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetInstanceTenancy

func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput

SetInstanceTenancy sets the InstanceTenancy field's value.

String

func (s CreateVpcInput) String() string

String returns the string representation

Validate

func (s *CreateVpcInput) Validate() error

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

On this page: