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

Defined in Amazonka.Lightsail.ImportKeyPair

Read ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Show ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Generic ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

type Rep ImportKeyPair :: Type -> Type #

NFData ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Methods

rnf :: ImportKeyPair -> () #

Hashable ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

ToJSON ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

AWSRequest ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

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

type Rep ImportKeyPair Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

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

Defined in Amazonka.Lightsail.ImportKeyPair

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:

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

Defined in Amazonka.Lightsail.ImportKeyPair

Read ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Show ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Generic ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Associated Types

type Rep ImportKeyPairResponse :: Type -> Type #

NFData ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

Methods

rnf :: ImportKeyPairResponse -> () #

type Rep ImportKeyPairResponse Source # 
Instance details

Defined in Amazonka.Lightsail.ImportKeyPair

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