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.

InternetGatewayAttachment

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

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

Describes the attachment of a VPC to an internet gateway or an egress-only internet gateway.

State

Type: *string

The current state of the attachment. For an internet gateway, the state is available when attached to a VPC; otherwise, this value is not returned.

VpcId

Type: *string

The ID of the VPC.

Method

GoString

func (s InternetGatewayAttachment) GoString() string

GoString returns the string representation

SetState

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

SetState sets the State field's value.

SetVpcId

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

SetVpcId sets the VpcId field's value.

String

func (s InternetGatewayAttachment) String() string

String returns the string representation

On this page: