amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DeleteKeyPair

Description

Deletes the specified key pair, by removing the public key from Amazon EC2.

Synopsis

Creating a Request

data DeleteKeyPair Source #

See: newDeleteKeyPair smart constructor.

Constructors

DeleteKeyPair' 

Fields

  • dryRun :: Maybe Bool

    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.

  • keyName :: Maybe Text

    The name of the key pair.

  • keyPairId :: Maybe Text

    The ID of the key pair.

Instances

Instances details
ToHeaders DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

ToPath DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

ToQuery DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

AWSRequest DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Associated Types

type AWSResponse DeleteKeyPair #

Generic DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPair :: Type -> Type #

Read DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Show DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

NFData DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPair -> () #

Eq DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Hashable DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

type AWSResponse DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

type Rep DeleteKeyPair Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

type Rep DeleteKeyPair = D1 ('MetaData "DeleteKeyPair" "Amazonka.EC2.DeleteKeyPair" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteKeyPair'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "keyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "keyPairId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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.

Destructuring the Response

data DeleteKeyPairResponse Source #

See: newDeleteKeyPairResponse smart constructor.

Instances

Instances details
Generic DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPairResponse :: Type -> Type #

Read DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Show DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

NFData DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPairResponse -> () #

Eq DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

type Rep DeleteKeyPairResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteKeyPair

type Rep DeleteKeyPairResponse = D1 ('MetaData "DeleteKeyPairResponse" "Amazonka.EC2.DeleteKeyPair" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteKeyPairResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteKeyPairResponse :: DeleteKeyPairResponse Source #

Create a value of DeleteKeyPairResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.