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 |
Deletes the specified key pair, by removing the public key from Amazon EC2.
Synopsis
- data DeleteKeyPair = DeleteKeyPair' {}
- newDeleteKeyPair :: DeleteKeyPair
- deleteKeyPair_dryRun :: Lens' DeleteKeyPair (Maybe Bool)
- deleteKeyPair_keyName :: Lens' DeleteKeyPair (Maybe Text)
- deleteKeyPair_keyPairId :: Lens' DeleteKeyPair (Maybe Text)
- data DeleteKeyPairResponse = DeleteKeyPairResponse' {
- newDeleteKeyPairResponse :: DeleteKeyPairResponse
Creating a Request
data DeleteKeyPair Source #
See: newDeleteKeyPair
smart constructor.
DeleteKeyPair' | |
|
Instances
newDeleteKeyPair :: DeleteKeyPair Source #
Create a value of DeleteKeyPair
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:DeleteKeyPair'
, deleteKeyPair_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
.
DeleteKeyPair
, deleteKeyPair_keyName
- The name of the key pair.
DeleteKeyPair
, deleteKeyPair_keyPairId
- The ID of the key pair.
Request Lenses
deleteKeyPair_dryRun :: Lens' DeleteKeyPair (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
.
deleteKeyPair_keyName :: Lens' DeleteKeyPair (Maybe Text) Source #
The name of the key pair.
deleteKeyPair_keyPairId :: Lens' DeleteKeyPair (Maybe Text) Source #
The ID of the key pair.
Destructuring the Response
data DeleteKeyPairResponse Source #
See: newDeleteKeyPairResponse
smart constructor.
Instances
Generic DeleteKeyPairResponse Source # | |
Defined in Amazonka.EC2.DeleteKeyPair type Rep DeleteKeyPairResponse :: Type -> Type # | |
Read DeleteKeyPairResponse Source # | |
Show DeleteKeyPairResponse Source # | |
Defined in Amazonka.EC2.DeleteKeyPair showsPrec :: Int -> DeleteKeyPairResponse -> ShowS # show :: DeleteKeyPairResponse -> String # showList :: [DeleteKeyPairResponse] -> ShowS # | |
NFData DeleteKeyPairResponse Source # | |
Defined in Amazonka.EC2.DeleteKeyPair rnf :: DeleteKeyPairResponse -> () # | |
Eq DeleteKeyPairResponse Source # | |
Defined in Amazonka.EC2.DeleteKeyPair (==) :: DeleteKeyPairResponse -> DeleteKeyPairResponse -> Bool # (/=) :: DeleteKeyPairResponse -> DeleteKeyPairResponse -> Bool # | |
type Rep DeleteKeyPairResponse Source # | |
newDeleteKeyPairResponse :: DeleteKeyPairResponse Source #
Create a value of DeleteKeyPairResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.