| Copyright | (c) 2013-2021 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 |
Amazonka.Lightsail.DeleteKeyPair
Description
Deletes a specific SSH key pair.
The delete key pair operation supports tag-based access control via
resource tags applied to the resource identified by key pair name. For
more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DeleteKeyPair = DeleteKeyPair' {
- keyPairName :: Text
- newDeleteKeyPair :: Text -> DeleteKeyPair
- deleteKeyPair_keyPairName :: Lens' DeleteKeyPair Text
- data DeleteKeyPairResponse = DeleteKeyPairResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newDeleteKeyPairResponse :: Int -> DeleteKeyPairResponse
- deleteKeyPairResponse_operation :: Lens' DeleteKeyPairResponse (Maybe Operation)
- deleteKeyPairResponse_httpStatus :: Lens' DeleteKeyPairResponse Int
Creating a Request
data DeleteKeyPair Source #
See: newDeleteKeyPair smart constructor.
Constructors
| DeleteKeyPair' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteKeyPair |
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:keyPairName:DeleteKeyPair', deleteKeyPair_keyPairName - The name of the key pair to delete.
Request Lenses
deleteKeyPair_keyPairName :: Lens' DeleteKeyPair Text Source #
The name of the key pair to delete.
Destructuring the Response
data DeleteKeyPairResponse Source #
See: newDeleteKeyPairResponse smart constructor.
Constructors
| DeleteKeyPairResponse' | |
Fields
| |
Instances
newDeleteKeyPairResponse Source #
Create a value of DeleteKeyPairResponse 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:operation:DeleteKeyPairResponse', deleteKeyPairResponse_operation - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteKeyPairResponse', deleteKeyPairResponse_httpStatus - The response's http status code.
Response Lenses
deleteKeyPairResponse_operation :: Lens' DeleteKeyPairResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteKeyPairResponse_httpStatus :: Lens' DeleteKeyPairResponse Int Source #
The response's http status code.