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.

TransitGatewayVpcAttachment

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

type TransitGatewayVpcAttachment struct { CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"` State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"` SubnetIds []*string `locationName:"subnetIds" locationNameList:"item" type:"list"` Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` VpcId *string `locationName:"vpcId" type:"string"` VpcOwnerId *string `locationName:"vpcOwnerId" type:"string"` }

Describes a VPC attachment.

CreationTime

Type: *time.Time

The creation time.

Options

Describes the VPC attachment options.

State

Type: *string

The state of the VPC attachment.

SubnetIds

Type: []*string

The IDs of the subnets.

Tags

Describes a tag.

TransitGatewayAttachmentId

Type: *string

The ID of the attachment.

TransitGatewayId

Type: *string

The ID of the transit gateway.

VpcId

Type: *string

The ID of the VPC.

VpcOwnerId

Type: *string

The ID of the AWS account that owns the VPC.

Method

GoString

func (s TransitGatewayVpcAttachment) GoString() string

GoString returns the string representation

SetCreationTime

func (s *TransitGatewayVpcAttachment) SetCreationTime(v time.Time) *TransitGatewayVpcAttachment

SetCreationTime sets the CreationTime field's value.

SetOptions

func (s *TransitGatewayVpcAttachment) SetOptions(v *TransitGatewayVpcAttachmentOptions) *TransitGatewayVpcAttachment

SetOptions sets the Options field's value.

SetState

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

SetState sets the State field's value.

SetSubnetIds

func (s *TransitGatewayVpcAttachment) SetSubnetIds(v []*string) *TransitGatewayVpcAttachment

SetSubnetIds sets the SubnetIds field's value.

SetTags

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

SetTags sets the Tags field's value.

SetTransitGatewayAttachmentId

func (s *TransitGatewayVpcAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayVpcAttachment

SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value.

SetTransitGatewayId

func (s *TransitGatewayVpcAttachment) SetTransitGatewayId(v string) *TransitGatewayVpcAttachment

SetTransitGatewayId sets the TransitGatewayId field's value.

SetVpcId

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

SetVpcId sets the VpcId field's value.

SetVpcOwnerId

func (s *TransitGatewayVpcAttachment) SetVpcOwnerId(v string) *TransitGatewayVpcAttachment

SetVpcOwnerId sets the VpcOwnerId field's value.

String

func (s TransitGatewayVpcAttachment) String() string

String returns the string representation

On this page: