Copyright | (c) 2013-2017 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 |
Attaches a network interface to an instance.
- 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
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:
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 Source #
Contains the parameters for AttachNetworkInterface.
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
.
aniDeviceIndex :: Lens' AttachNetworkInterface Int Source #
The index of the device for the network interface attachment.
aniInstanceId :: Lens' AttachNetworkInterface Text Source #
The ID of the instance.
aniNetworkInterfaceId :: Lens' AttachNetworkInterface Text Source #
The ID of the network interface.
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:
anirsAttachmentId
- The ID of the network interface attachment.anirsResponseStatus
- -- | The response status code.
data AttachNetworkInterfaceResponse Source #
Contains the output of AttachNetworkInterface.
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.