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

Description

Imports a public SSH key from a specific key pair.

Synopsis

Creating a Request

data ImportKeyPair Source #

See: newImportKeyPair smart constructor.

Constructors

ImportKeyPair' 

Fields

Instances

Instances details
ToJSON ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

ToHeaders ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

ToPath ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

ToQuery ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

AWSRequest ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

type AWSResponse ImportKeyPair #

Generic ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

type Rep ImportKeyPair :: Type -> Type #

Read ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Show ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

NFData ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Methods

rnf :: ImportKeyPair -> () #

Eq ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Hashable ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

type AWSResponse ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

type Rep ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

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

newImportKeyPair Source #

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

ImportKeyPair, importKeyPair_keyPairName - The name of the key pair for which you want to import the public key.

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

Request Lenses

importKeyPair_keyPairName :: Lens' ImportKeyPair Text Source #

The name of the key pair for which you want to import the public key.

importKeyPair_publicKeyBase64 :: Lens' ImportKeyPair Text Source #

A base64-encoded public key of the ssh-rsa type.

Destructuring the Response

data ImportKeyPairResponse Source #

See: newImportKeyPairResponse smart constructor.

Constructors

ImportKeyPairResponse' 

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
Generic ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

type Rep ImportKeyPairResponse :: Type -> Type #

Read ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Show ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

NFData ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Methods

rnf :: ImportKeyPairResponse -> () #

Eq ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

type Rep ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

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

newImportKeyPairResponse Source #

Create a value of ImportKeyPairResponse 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:ImportKeyPairResponse', importKeyPairResponse_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:ImportKeyPairResponse', importKeyPairResponse_httpStatus - The response's http status code.

Response Lenses

importKeyPairResponse_operation :: Lens' ImportKeyPairResponse (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.