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.

AttachClassicLinkVpcInput

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

type AttachClassicLinkVpcInput struct { DryRun *bool `locationName:"dryRun" type:"boolean"` Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"` InstanceId *string `locationName:"instanceId" type:"string" required:"true"` VpcId *string `locationName:"vpcId" type:"string" required:"true"` }

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.

Groups

Type: []*string

The ID of one or more of the VPC's security groups. You cannot specify security groups from a different VPC.

Groups is a required field

InstanceId

Type: *string

The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.

InstanceId is a required field

VpcId

Type: *string

The ID of a ClassicLink-enabled VPC.

VpcId is a required field

Method

GoString

func (s AttachClassicLinkVpcInput) GoString() string

GoString returns the string representation

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetGroups

func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput

SetGroups sets the Groups field's value.

SetInstanceId

func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput

SetInstanceId sets the InstanceId field's value.

SetVpcId

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

SetVpcId sets the VpcId field's value.

String

func (s AttachClassicLinkVpcInput) String() string

String returns the string representation

Validate

func (s *AttachClassicLinkVpcInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: