libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data DeleteKeyPair Source #

See: newDeleteKeyPair smart constructor.

Constructors

DeleteKeyPair' 

Fields

Instances

Instances details
Eq DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Read DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Show DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Generic DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Associated Types

type Rep DeleteKeyPair :: Type -> Type #

NFData DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Methods

rnf :: DeleteKeyPair -> () #

Hashable DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

ToJSON DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

AWSRequest DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Associated Types

type AWSResponse DeleteKeyPair #

ToHeaders DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

ToPath DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

ToQuery DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

type Rep DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

type Rep DeleteKeyPair = D1 ('MetaData "DeleteKeyPair" "Amazonka.Lightsail.DeleteKeyPair" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteKeyPair'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyPairName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

newDeleteKeyPair 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: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

  • operation :: Maybe 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Read DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Show DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Generic DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Associated Types

type Rep DeleteKeyPairResponse :: Type -> Type #

NFData DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

Methods

rnf :: DeleteKeyPairResponse -> () #

type Rep DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteKeyPair

type Rep DeleteKeyPairResponse = D1 ('MetaData "DeleteKeyPairResponse" "Amazonka.Lightsail.DeleteKeyPair" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteKeyPairResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.