| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.EC2.AttachNetworkInterface
Description
Attaches a network interface to an instance.
Synopsis
- attachNetworkInterface :: Int -> Text -> Text -> AttachNetworkInterface
- data AttachNetworkInterface
- aniDryRun :: Lens' AttachNetworkInterface (Maybe Bool)
- aniDeviceIndex :: Lens' AttachNetworkInterface Int
- aniInstanceId :: Lens' AttachNetworkInterface Text
- aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text
- attachNetworkInterfaceResponse :: Int -> AttachNetworkInterfaceResponse
- data AttachNetworkInterfaceResponse
- anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text)
- anirsResponseStatus :: Lens' AttachNetworkInterfaceResponse Int
Creating a Request
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> AttachNetworkInterface |
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:
aniDryRun- 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 isDryRunOperation. Otherwise, it isUnauthorizedOperation.aniDeviceIndex- The index of the device for the network interface attachment.aniInstanceId- The ID of the instance.aniNetworkInterfaceId- The ID of the network interface.
data AttachNetworkInterface #
Contains the parameters for AttachNetworkInterface.
See: attachNetworkInterface smart constructor.
Instances
Request Lenses
aniDryRun :: Lens' AttachNetworkInterface (Maybe 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 .
aniDeviceIndex :: Lens' AttachNetworkInterface Int #
The index of the device for the network interface attachment.
aniInstanceId :: Lens' AttachNetworkInterface Text #
The ID of the instance.
aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text #
The ID of the network interface.
Destructuring the Response
attachNetworkInterfaceResponse #
Arguments
| :: Int | |
| -> AttachNetworkInterfaceResponse |
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:
anirsAttachmentId- The ID of the network interface attachment.anirsResponseStatus- -- | The response status code.
data AttachNetworkInterfaceResponse #
Contains the output of AttachNetworkInterface.
See: attachNetworkInterfaceResponse smart constructor.
Instances
Response Lenses
anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text) #
The ID of the network interface attachment.
anirsResponseStatus :: Lens' AttachNetworkInterfaceResponse Int #
- - | The response status code.