Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data SendSerialConsoleSSHPublicKey = SendSerialConsoleSSHPublicKey' {
- serialPort :: Maybe Natural
- instanceId :: Text
- sSHPublicKey :: Text
- newSendSerialConsoleSSHPublicKey :: Text -> Text -> SendSerialConsoleSSHPublicKey
- sendSerialConsoleSSHPublicKey_serialPort :: Lens' SendSerialConsoleSSHPublicKey (Maybe Natural)
- sendSerialConsoleSSHPublicKey_instanceId :: Lens' SendSerialConsoleSSHPublicKey Text
- sendSerialConsoleSSHPublicKey_sSHPublicKey :: Lens' SendSerialConsoleSSHPublicKey Text
- data SendSerialConsoleSSHPublicKeyResponse = SendSerialConsoleSSHPublicKeyResponse' {}
- newSendSerialConsoleSSHPublicKeyResponse :: Int -> SendSerialConsoleSSHPublicKeyResponse
- sendSerialConsoleSSHPublicKeyResponse_requestId :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Text)
- sendSerialConsoleSSHPublicKeyResponse_success :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Bool)
- sendSerialConsoleSSHPublicKeyResponse_httpStatus :: Lens' SendSerialConsoleSSHPublicKeyResponse Int
Creating a Request
data SendSerialConsoleSSHPublicKey Source #
See: newSendSerialConsoleSSHPublicKey
smart constructor.
SendSerialConsoleSSHPublicKey' | |
|
Instances
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_instanceId :: Lens' SendSerialConsoleSSHPublicKey Text Source #
The ID of the EC2 instance.
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 #
See: newSendSerialConsoleSSHPublicKeyResponse
smart constructor.
Instances
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.
sendSerialConsoleSSHPublicKeyResponse_success :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Bool) Source #
Is true if the request succeeds and an error otherwise.
sendSerialConsoleSSHPublicKeyResponse_httpStatus :: Lens' SendSerialConsoleSSHPublicKeyResponse Int Source #
The response's http status code.