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.

VpcAttachment

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

type VpcAttachment struct { State *string `locationName:"state" type:"string" enum:"AttachmentStatus"` VpcId *string `locationName:"vpcId" type:"string"` }

Describes an attachment between a virtual private gateway and a VPC.

State

Type: *string

The current state of the attachment.

VpcId

Type: *string

The ID of the VPC.

Method

GoString

func (s VpcAttachment) GoString() string

GoString returns the string representation

SetState

func (s *VpcAttachment) SetState(v string) *VpcAttachment

SetState sets the State field's value.

SetVpcId

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

SetVpcId sets the VpcId field's value.

String

func (s VpcAttachment) String() string

String returns the string representation

On this page: