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.

CreateVpcPeeringConnectionInput

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

type CreateVpcPeeringConnectionInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` PeerOwnerId *string `locationName:"peerOwnerId" type:"string"` PeerRegion *string `type:"string"` PeerVpcId *string `locationName:"peerVpcId" type:"string"` VpcId *string `locationName:"vpcId" type:"string"` }

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.

PeerOwnerId

Type: *string

The AWS account ID of the owner of the accepter VPC.

Default: Your AWS account ID

PeerRegion

Type: *string

The region code for the accepter VPC, if the accepter VPC is located in a region other than the region in which you make the request.

Default: The region in which you make the request.

PeerVpcId

Type: *string

The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.

VpcId

Type: *string

The ID of the requester VPC. You must specify this parameter in the request.

Method

GoString

func (s CreateVpcPeeringConnectionInput) GoString() string

GoString returns the string representation

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetPeerOwnerId

func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput

SetPeerOwnerId sets the PeerOwnerId field's value.

SetPeerRegion

func (s *CreateVpcPeeringConnectionInput) SetPeerRegion(v string) *CreateVpcPeeringConnectionInput

SetPeerRegion sets the PeerRegion field's value.

SetPeerVpcId

func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput

SetPeerVpcId sets the PeerVpcId field's value.

SetVpcId

func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput

SetVpcId sets the VpcId field's value.

String

func (s CreateVpcPeeringConnectionInput) String() string

String returns the string representation

On this page: