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 |
Amazonka.EC2.DeleteNetworkInterface
Description
Deletes the specified network interface. You must detach the network interface before you can delete it.
Synopsis
- data DeleteNetworkInterface = DeleteNetworkInterface' {}
- newDeleteNetworkInterface :: Text -> DeleteNetworkInterface
- deleteNetworkInterface_dryRun :: Lens' DeleteNetworkInterface (Maybe Bool)
- deleteNetworkInterface_networkInterfaceId :: Lens' DeleteNetworkInterface Text
- data DeleteNetworkInterfaceResponse = DeleteNetworkInterfaceResponse' {
- newDeleteNetworkInterfaceResponse :: DeleteNetworkInterfaceResponse
Creating a Request
data DeleteNetworkInterface Source #
Contains the parameters for DeleteNetworkInterface.
See: newDeleteNetworkInterface
smart constructor.
Constructors
DeleteNetworkInterface' | |
Fields
|
Instances
newDeleteNetworkInterface Source #
Arguments
:: Text | |
-> DeleteNetworkInterface |
Create a value of DeleteNetworkInterface
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:DeleteNetworkInterface'
, deleteNetworkInterface_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
.
DeleteNetworkInterface
, deleteNetworkInterface_networkInterfaceId
- The ID of the network interface.
Request Lenses
deleteNetworkInterface_dryRun :: Lens' DeleteNetworkInterface (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
.
deleteNetworkInterface_networkInterfaceId :: Lens' DeleteNetworkInterface Text Source #
The ID of the network interface.
Destructuring the Response
data DeleteNetworkInterfaceResponse Source #
See: newDeleteNetworkInterfaceResponse
smart constructor.
Constructors
DeleteNetworkInterfaceResponse' | |
Instances
Generic DeleteNetworkInterfaceResponse Source # | |
Defined in Amazonka.EC2.DeleteNetworkInterface Associated Types type Rep DeleteNetworkInterfaceResponse :: Type -> Type # | |
Read DeleteNetworkInterfaceResponse Source # | |
Show DeleteNetworkInterfaceResponse Source # | |
Defined in Amazonka.EC2.DeleteNetworkInterface Methods showsPrec :: Int -> DeleteNetworkInterfaceResponse -> ShowS # show :: DeleteNetworkInterfaceResponse -> String # showList :: [DeleteNetworkInterfaceResponse] -> ShowS # | |
NFData DeleteNetworkInterfaceResponse Source # | |
Defined in Amazonka.EC2.DeleteNetworkInterface Methods rnf :: DeleteNetworkInterfaceResponse -> () # | |
Eq DeleteNetworkInterfaceResponse Source # | |
Defined in Amazonka.EC2.DeleteNetworkInterface | |
type Rep DeleteNetworkInterfaceResponse Source # | |
Defined in Amazonka.EC2.DeleteNetworkInterface |
newDeleteNetworkInterfaceResponse :: DeleteNetworkInterfaceResponse Source #
Create a value of DeleteNetworkInterfaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.