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 for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.
Synopsis
- data SendSSHPublicKey = SendSSHPublicKey' {}
- newSendSSHPublicKey :: Text -> Text -> Text -> Text -> SendSSHPublicKey
- sendSSHPublicKey_instanceId :: Lens' SendSSHPublicKey Text
- sendSSHPublicKey_instanceOSUser :: Lens' SendSSHPublicKey Text
- sendSSHPublicKey_sSHPublicKey :: Lens' SendSSHPublicKey Text
- sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey Text
- data SendSSHPublicKeyResponse = SendSSHPublicKeyResponse' {}
- newSendSSHPublicKeyResponse :: Int -> SendSSHPublicKeyResponse
- sendSSHPublicKeyResponse_requestId :: Lens' SendSSHPublicKeyResponse (Maybe Text)
- sendSSHPublicKeyResponse_success :: Lens' SendSSHPublicKeyResponse (Maybe Bool)
- sendSSHPublicKeyResponse_httpStatus :: Lens' SendSSHPublicKeyResponse Int
Creating a Request
data SendSSHPublicKey Source #
See: newSendSSHPublicKey
smart constructor.
SendSSHPublicKey' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> SendSSHPublicKey |
Create a value of SendSSHPublicKey
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:instanceId:SendSSHPublicKey'
, sendSSHPublicKey_instanceId
- The ID of the EC2 instance.
$sel:instanceOSUser:SendSSHPublicKey'
, sendSSHPublicKey_instanceOSUser
- The OS user on the EC2 instance for whom the key can be used to
authenticate.
$sel:sSHPublicKey:SendSSHPublicKey'
, sendSSHPublicKey_sSHPublicKey
- The public key material. To use the public key, you must have the
matching private key.
$sel:availabilityZone:SendSSHPublicKey'
, sendSSHPublicKey_availabilityZone
- The Availability Zone in which the EC2 instance was launched.
Request Lenses
sendSSHPublicKey_instanceId :: Lens' SendSSHPublicKey Text Source #
The ID of the EC2 instance.
sendSSHPublicKey_instanceOSUser :: Lens' SendSSHPublicKey Text Source #
The OS user on the EC2 instance for whom the key can be used to authenticate.
sendSSHPublicKey_sSHPublicKey :: Lens' SendSSHPublicKey Text Source #
The public key material. To use the public key, you must have the matching private key.
sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey Text Source #
The Availability Zone in which the EC2 instance was launched.
Destructuring the Response
data SendSSHPublicKeyResponse Source #
See: newSendSSHPublicKeyResponse
smart constructor.
Instances
newSendSSHPublicKeyResponse Source #
Create a value of SendSSHPublicKeyResponse
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:SendSSHPublicKeyResponse'
, sendSSHPublicKeyResponse_requestId
- The ID of the request. Please provide this ID when contacting AWS
Support for assistance.
$sel:success:SendSSHPublicKeyResponse'
, sendSSHPublicKeyResponse_success
- Is true if the request succeeds and an error otherwise.
$sel:httpStatus:SendSSHPublicKeyResponse'
, sendSSHPublicKeyResponse_httpStatus
- The response's http status code.
Response Lenses
sendSSHPublicKeyResponse_requestId :: Lens' SendSSHPublicKeyResponse (Maybe Text) Source #
The ID of the request. Please provide this ID when contacting AWS Support for assistance.
sendSSHPublicKeyResponse_success :: Lens' SendSSHPublicKeyResponse (Maybe Bool) Source #
Is true if the request succeeds and an error otherwise.
sendSSHPublicKeyResponse_httpStatus :: Lens' SendSSHPublicKeyResponse Int Source #
The response's http status code.