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.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
Eq GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Read GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Show GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Generic GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPair :: Type -> Type #

NFData GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPair -> () #

Hashable GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

ToJSON GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

AWSRequest GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type AWSResponse 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

type Rep GetKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

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

Defined in Amazonka.Lightsail.GetKeyPair

newGetKeyPair Source #

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:

$sel:keyPairName: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
Eq GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Read GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Show GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Generic GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPairResponse :: Type -> Type #

NFData GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPairResponse -> () #

type Rep GetKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetKeyPair

type Rep GetKeyPairResponse = D1 ('MetaData "GetKeyPairResponse" "Amazonka.Lightsail.GetKeyPair" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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.