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.DownloadDefaultKeyPair

Description

Downloads the regional Amazon Lightsail default key pair.

This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.

Synopsis

Creating a Request

data DownloadDefaultKeyPair Source #

See: newDownloadDefaultKeyPair smart constructor.

Instances

Instances details
ToJSON DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

ToHeaders DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

ToPath DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

ToQuery DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

AWSRequest DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Associated Types

type AWSResponse DownloadDefaultKeyPair #

Generic DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Associated Types

type Rep DownloadDefaultKeyPair :: Type -> Type #

Read DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Show DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

NFData DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Methods

rnf :: DownloadDefaultKeyPair -> () #

Eq DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Hashable DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

type AWSResponse DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

type Rep DownloadDefaultKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

type Rep DownloadDefaultKeyPair = D1 ('MetaData "DownloadDefaultKeyPair" "Amazonka.Lightsail.DownloadDefaultKeyPair" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DownloadDefaultKeyPair'" 'PrefixI 'False) (U1 :: Type -> Type))

newDownloadDefaultKeyPair :: DownloadDefaultKeyPair Source #

Create a value of DownloadDefaultKeyPair with all optional fields omitted.

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

Destructuring the Response

data DownloadDefaultKeyPairResponse Source #

See: newDownloadDefaultKeyPairResponse smart constructor.

Constructors

DownloadDefaultKeyPairResponse' 

Fields

Instances

Instances details
Generic DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Associated Types

type Rep DownloadDefaultKeyPairResponse :: Type -> Type #

Read DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Show DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

NFData DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

Eq DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

type Rep DownloadDefaultKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DownloadDefaultKeyPair

type Rep DownloadDefaultKeyPairResponse = D1 ('MetaData "DownloadDefaultKeyPairResponse" "Amazonka.Lightsail.DownloadDefaultKeyPair" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DownloadDefaultKeyPairResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "privateKeyBase64") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "publicKeyBase64") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDownloadDefaultKeyPairResponse Source #

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

DownloadDefaultKeyPairResponse, downloadDefaultKeyPairResponse_createdAt - The timestamp when the default key pair was created.

$sel:privateKeyBase64:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_privateKeyBase64 - A base64-encoded RSA private key.

$sel:publicKeyBase64:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_publicKeyBase64 - A base64-encoded public key of the ssh-rsa type.

$sel:httpStatus:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_httpStatus - The response's http status code.

Response Lenses

downloadDefaultKeyPairResponse_createdAt :: Lens' DownloadDefaultKeyPairResponse (Maybe UTCTime) Source #

The timestamp when the default key pair was created.