Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Attaches a network interface to an instance.
- attachNetworkInterface :: Text -> Text -> Int -> AttachNetworkInterface
- data AttachNetworkInterface
- aniDryRun :: Lens' AttachNetworkInterface (Maybe Bool)
- aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text
- aniInstanceId :: Lens' AttachNetworkInterface Text
- aniDeviceIndex :: Lens' AttachNetworkInterface Int
- attachNetworkInterfaceResponse :: Int -> AttachNetworkInterfaceResponse
- data AttachNetworkInterfaceResponse
- anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text)
- anirsResponseStatus :: Lens' AttachNetworkInterfaceResponse Int
Creating a Request
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:
data AttachNetworkInterface Source
See: attachNetworkInterface
smart constructor.
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.
aniInstanceId :: Lens' AttachNetworkInterface Text Source
The ID of the instance.
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:
data AttachNetworkInterfaceResponse Source
See: attachNetworkInterfaceResponse
smart constructor.
Response Lenses
anirsAttachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text) Source
The ID of the network interface attachment.
anirsResponseStatus :: Lens' AttachNetworkInterfaceResponse Int Source
The response status code.