amazonka-lightsail-2.0: Amazon Lightsail 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.Lightsail.GetKeyPair

Description

Returns information about a specific key pair.

Synopsis

Creating a Request

data GetKeyPair Source #

See: newGetKeyPair smart constructor.

Constructors

GetKeyPair' 

Fields

  • keyPairName :: Text

    The name of the key pair for which you are requesting information.

Instances

Instances details
ToJSON GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

ToHeaders GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Methods

toHeaders :: GetKeyPair -> [Header] #

ToPath GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

ToQuery GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

AWSRequest GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type AWSResponse GetKeyPair #

Generic GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPair :: Type -> Type #

Read GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Show GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

NFData GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPair -> () #

Eq GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Hashable GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type AWSResponse GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type Rep GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type Rep GetKeyPair = D1 ('MetaData "GetKeyPair" "Amazonka.Lightsail.GetKeyPair" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetKeyPair'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyPairName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetKeyPair Source #

Arguments

:: Text

GetKeyPair

-> GetKeyPair 

Create a value of GetKeyPair 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:

GetKeyPair, getKeyPair_keyPairName - The name of the key pair for which you are requesting information.

Request Lenses

getKeyPair_keyPairName :: Lens' GetKeyPair Text Source #

The name of the key pair for which you are requesting information.

Destructuring the Response

data GetKeyPairResponse Source #

See: newGetKeyPairResponse smart constructor.

Constructors

GetKeyPairResponse' 

Fields

Instances

Instances details
Generic GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPairResponse :: Type -> Type #

Read GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Show GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

NFData GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPairResponse -> () #

Eq GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type Rep GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type Rep GetKeyPairResponse = D1 ('MetaData "GetKeyPairResponse" "Amazonka.Lightsail.GetKeyPair" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetKeyPairResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyPair") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe KeyPair)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetKeyPairResponse Source #

Create a value of GetKeyPairResponse 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:keyPair:GetKeyPairResponse', getKeyPairResponse_keyPair - An array of key-value pairs containing information about the key pair.

$sel:httpStatus:GetKeyPairResponse', getKeyPairResponse_httpStatus - The response's http status code.

Response Lenses

getKeyPairResponse_keyPair :: Lens' GetKeyPairResponse (Maybe KeyPair) Source #

An array of key-value pairs containing information about the key pair.