Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Attaches a network interface to an instance.
Synopsis
- data AttachNetworkInterface = AttachNetworkInterface' {}
- newAttachNetworkInterface :: Int -> Text -> Text -> AttachNetworkInterface
- attachNetworkInterface_dryRun :: Lens' AttachNetworkInterface (Maybe Bool)
- attachNetworkInterface_enaSrdSpecification :: Lens' AttachNetworkInterface (Maybe EnaSrdSpecification)
- attachNetworkInterface_networkCardIndex :: Lens' AttachNetworkInterface (Maybe Int)
- attachNetworkInterface_deviceIndex :: Lens' AttachNetworkInterface Int
- attachNetworkInterface_instanceId :: Lens' AttachNetworkInterface Text
- attachNetworkInterface_networkInterfaceId :: Lens' AttachNetworkInterface Text
- data AttachNetworkInterfaceResponse = AttachNetworkInterfaceResponse' {}
- newAttachNetworkInterfaceResponse :: Int -> AttachNetworkInterfaceResponse
- attachNetworkInterfaceResponse_attachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text)
- attachNetworkInterfaceResponse_networkCardIndex :: Lens' AttachNetworkInterfaceResponse (Maybe Int)
- attachNetworkInterfaceResponse_httpStatus :: Lens' AttachNetworkInterfaceResponse Int
Creating a Request
data AttachNetworkInterface Source #
Contains the parameters for AttachNetworkInterface.
See: newAttachNetworkInterface
smart constructor.
AttachNetworkInterface' | |
|
Instances
newAttachNetworkInterface Source #
:: Int | |
-> Text | |
-> Text | |
-> AttachNetworkInterface |
Create a value of AttachNetworkInterface
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:AttachNetworkInterface'
, attachNetworkInterface_dryRun
- 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
.
AttachNetworkInterface
, attachNetworkInterface_enaSrdSpecification
- Configures ENA Express for the network interface that this action
attaches to the instance.
AttachNetworkInterface
, attachNetworkInterface_networkCardIndex
- The index of the network card. Some instance types support multiple
network cards. The primary network interface must be assigned to network
card index 0. The default is network card index 0.
AttachNetworkInterface
, attachNetworkInterface_deviceIndex
- The index of the device for the network interface attachment.
AttachNetworkInterface
, attachNetworkInterface_instanceId
- The ID of the instance.
AttachNetworkInterface
, attachNetworkInterface_networkInterfaceId
- The ID of the network interface.
Request Lenses
attachNetworkInterface_dryRun :: 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
.
attachNetworkInterface_enaSrdSpecification :: Lens' AttachNetworkInterface (Maybe EnaSrdSpecification) Source #
Configures ENA Express for the network interface that this action attaches to the instance.
attachNetworkInterface_networkCardIndex :: Lens' AttachNetworkInterface (Maybe Int) Source #
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
attachNetworkInterface_deviceIndex :: Lens' AttachNetworkInterface Int Source #
The index of the device for the network interface attachment.
attachNetworkInterface_instanceId :: Lens' AttachNetworkInterface Text Source #
The ID of the instance.
attachNetworkInterface_networkInterfaceId :: Lens' AttachNetworkInterface Text Source #
The ID of the network interface.
Destructuring the Response
data AttachNetworkInterfaceResponse Source #
Contains the output of AttachNetworkInterface.
See: newAttachNetworkInterfaceResponse
smart constructor.
AttachNetworkInterfaceResponse' | |
|
Instances
newAttachNetworkInterfaceResponse Source #
Create a value of AttachNetworkInterfaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
AttachNetworkInterfaceResponse
, attachNetworkInterfaceResponse_attachmentId
- The ID of the network interface attachment.
AttachNetworkInterface
, attachNetworkInterfaceResponse_networkCardIndex
- The index of the network card.
$sel:httpStatus:AttachNetworkInterfaceResponse'
, attachNetworkInterfaceResponse_httpStatus
- The response's http status code.
Response Lenses
attachNetworkInterfaceResponse_attachmentId :: Lens' AttachNetworkInterfaceResponse (Maybe Text) Source #
The ID of the network interface attachment.
attachNetworkInterfaceResponse_networkCardIndex :: Lens' AttachNetworkInterfaceResponse (Maybe Int) Source #
The index of the network card.
attachNetworkInterfaceResponse_httpStatus :: Lens' AttachNetworkInterfaceResponse Int Source #
The response's http status code.