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.

AttachNetworkInterfaceInput

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

type AttachNetworkInterfaceInput struct { DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"` DryRun *bool `locationName:"dryRun" type:"boolean"` InstanceId *string `locationName:"instanceId" type:"string" required:"true"` NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"` }

Contains the parameters for AttachNetworkInterface.

DeviceIndex

Type: *int64

The index of the device for the network interface attachment.

DeviceIndex is a required field

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.

InstanceId

Type: *string

The ID of the instance.

InstanceId is a required field

NetworkInterfaceId

Type: *string

The ID of the network interface.

NetworkInterfaceId is a required field

Method

GoString

func (s AttachNetworkInterfaceInput) GoString() string

GoString returns the string representation

SetDeviceIndex

func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput

SetDeviceIndex sets the DeviceIndex field's value.

SetDryRun

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

SetDryRun sets the DryRun field's value.

SetInstanceId

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

SetInstanceId sets the InstanceId field's value.

SetNetworkInterfaceId

func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

String

func (s AttachNetworkInterfaceInput) String() string

String returns the string representation

Validate

func (s *AttachNetworkInterfaceInput) Validate() error

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

On this page: