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 |
Adds a Secure Shell (SSH) public key to a user account identified by a
UserName
value assigned to the specific file transfer protocol-enabled
server, identified by ServerId
.
The response returns the UserName
value, the ServerId
value, and the
name of the SshPublicKeyId
.
Synopsis
- data ImportSshPublicKey = ImportSshPublicKey' {}
- newImportSshPublicKey :: Text -> Text -> Text -> ImportSshPublicKey
- importSshPublicKey_serverId :: Lens' ImportSshPublicKey Text
- importSshPublicKey_sshPublicKeyBody :: Lens' ImportSshPublicKey Text
- importSshPublicKey_userName :: Lens' ImportSshPublicKey Text
- data ImportSshPublicKeyResponse = ImportSshPublicKeyResponse' {
- httpStatus :: Int
- serverId :: Text
- sshPublicKeyId :: Text
- userName :: Text
- newImportSshPublicKeyResponse :: Int -> Text -> Text -> Text -> ImportSshPublicKeyResponse
- importSshPublicKeyResponse_httpStatus :: Lens' ImportSshPublicKeyResponse Int
- importSshPublicKeyResponse_serverId :: Lens' ImportSshPublicKeyResponse Text
- importSshPublicKeyResponse_sshPublicKeyId :: Lens' ImportSshPublicKeyResponse Text
- importSshPublicKeyResponse_userName :: Lens' ImportSshPublicKeyResponse Text
Creating a Request
data ImportSshPublicKey Source #
See: newImportSshPublicKey
smart constructor.
Instances
newImportSshPublicKey Source #
:: Text | |
-> Text | |
-> Text | |
-> ImportSshPublicKey |
Create a value of ImportSshPublicKey
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:serverId:ImportSshPublicKey'
, importSshPublicKey_serverId
- A system-assigned unique identifier for a server.
$sel:sshPublicKeyBody:ImportSshPublicKey'
, importSshPublicKey_sshPublicKeyBody
- The public key portion of an SSH key pair.
$sel:userName:ImportSshPublicKey'
, importSshPublicKey_userName
- The name of the user account that is assigned to one or more servers.
Request Lenses
importSshPublicKey_serverId :: Lens' ImportSshPublicKey Text Source #
A system-assigned unique identifier for a server.
importSshPublicKey_sshPublicKeyBody :: Lens' ImportSshPublicKey Text Source #
The public key portion of an SSH key pair.
importSshPublicKey_userName :: Lens' ImportSshPublicKey Text Source #
The name of the user account that is assigned to one or more servers.
Destructuring the Response
data ImportSshPublicKeyResponse Source #
Identifies the user, the server they belong to, and the identifier of the SSH public key associated with that user. A user can have more than one key on each server that they are associated with.
See: newImportSshPublicKeyResponse
smart constructor.
ImportSshPublicKeyResponse' | |
|
Instances
newImportSshPublicKeyResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> ImportSshPublicKeyResponse |
Create a value of ImportSshPublicKeyResponse
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:httpStatus:ImportSshPublicKeyResponse'
, importSshPublicKeyResponse_httpStatus
- The response's http status code.
$sel:serverId:ImportSshPublicKey'
, importSshPublicKeyResponse_serverId
- A system-assigned unique identifier for a server.
$sel:sshPublicKeyId:ImportSshPublicKeyResponse'
, importSshPublicKeyResponse_sshPublicKeyId
- The name given to a public key by the system that was imported.
$sel:userName:ImportSshPublicKey'
, importSshPublicKeyResponse_userName
- A user name assigned to the ServerID
value that you specified.
Response Lenses
importSshPublicKeyResponse_httpStatus :: Lens' ImportSshPublicKeyResponse Int Source #
The response's http status code.
importSshPublicKeyResponse_serverId :: Lens' ImportSshPublicKeyResponse Text Source #
A system-assigned unique identifier for a server.
importSshPublicKeyResponse_sshPublicKeyId :: Lens' ImportSshPublicKeyResponse Text Source #
The name given to a public key by the system that was imported.
importSshPublicKeyResponse_userName :: Lens' ImportSshPublicKeyResponse Text Source #
A user name assigned to the ServerID
value that you specified.