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.

InternetGateway

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

type InternetGateway struct { Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"` InternetGatewayId *string `locationName:"internetGatewayId" type:"string"` OwnerId *string `locationName:"ownerId" type:"string"` Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` }

Describes an internet gateway.

Attachments

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

InternetGatewayId

Type: *string

The ID of the internet gateway.

OwnerId

Type: *string

The ID of the AWS account that owns the internet gateway.

Tags

Describes a tag.

Method

GoString

func (s InternetGateway) GoString() string

GoString returns the string representation

SetAttachments

func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway

SetAttachments sets the Attachments field's value.

SetInternetGatewayId

func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway

SetInternetGatewayId sets the InternetGatewayId field's value.

SetOwnerId

func (s *InternetGateway) SetOwnerId(v string) *InternetGateway

SetOwnerId sets the OwnerId field's value.

SetTags

func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway

SetTags sets the Tags field's value.

String

func (s InternetGateway) String() string

String returns the string representation

On this page: