libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect
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.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Description

Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data SendSerialConsoleSSHPublicKey Source #

See: newSendSerialConsoleSSHPublicKey smart constructor.

Constructors

SendSerialConsoleSSHPublicKey' 

Fields

Instances

Instances details
Eq SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Read SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Show SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Generic SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Associated Types

type Rep SendSerialConsoleSSHPublicKey :: Type -> Type #

NFData SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Hashable SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToJSON SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

AWSRequest SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToHeaders SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToPath SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToQuery SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKey = D1 ('MetaData "SendSerialConsoleSSHPublicKey" "Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey" "libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect" 'False) (C1 ('MetaCons "SendSerialConsoleSSHPublicKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serialPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sSHPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

newSendSerialConsoleSSHPublicKey Source #

Create a value of SendSerialConsoleSSHPublicKey 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:serialPort:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_serialPort - The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

$sel:instanceId:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_instanceId - The ID of the EC2 instance.

$sel:sSHPublicKey:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_sSHPublicKey - The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

Request Lenses

sendSerialConsoleSSHPublicKey_serialPort :: Lens' SendSerialConsoleSSHPublicKey (Maybe Natural) Source #

The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

sendSerialConsoleSSHPublicKey_sSHPublicKey :: Lens' SendSerialConsoleSSHPublicKey Text Source #

The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

Destructuring the Response

data SendSerialConsoleSSHPublicKeyResponse Source #

Constructors

SendSerialConsoleSSHPublicKeyResponse' 

Fields

  • requestId :: Maybe Text

    The ID of the request. Please provide this ID when contacting AWS Support for assistance.

  • success :: Maybe Bool

    Is true if the request succeeds and an error otherwise.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Read SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Show SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Generic SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

NFData SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKeyResponse = D1 ('MetaData "SendSerialConsoleSSHPublicKeyResponse" "Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey" "libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect" 'False) (C1 ('MetaCons "SendSerialConsoleSSHPublicKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "success") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSendSerialConsoleSSHPublicKeyResponse Source #

Create a value of SendSerialConsoleSSHPublicKeyResponse 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:requestId:SendSerialConsoleSSHPublicKeyResponse', sendSerialConsoleSSHPublicKeyResponse_requestId - The ID of the request. Please provide this ID when contacting AWS Support for assistance.

$sel:success:SendSerialConsoleSSHPublicKeyResponse', sendSerialConsoleSSHPublicKeyResponse_success - Is true if the request succeeds and an error otherwise.

$sel:httpStatus:SendSerialConsoleSSHPublicKeyResponse', sendSerialConsoleSSHPublicKeyResponse_httpStatus - The response's http status code.

Response Lenses

sendSerialConsoleSSHPublicKeyResponse_requestId :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Text) Source #

The ID of the request. Please provide this ID when contacting AWS Support for assistance.