amazonka-ec2-1.3.3.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.AttachNetworkInterface

Contents

Description

Attaches a network interface to an instance.

See: AWS API Reference for AttachNetworkInterface.

Synopsis

Creating a Request

attachNetworkInterface Source

Creates a value of AttachNetworkInterface with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

aniDryRun :: Lens' AttachNetworkInterface (Maybe Bool) Source

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.

aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text Source

The ID of the network interface.

aniDeviceIndex :: Lens' AttachNetworkInterface Int Source

The index of the device for the network interface attachment.

Destructuring the Response

attachNetworkInterfaceResponse Source

Creates a value of AttachNetworkInterfaceResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text) Source

The ID of the network interface attachment.