| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Transfer.ImportSshPublicKey
Description
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.
Constructors
| ImportSshPublicKey' | |
Instances
newImportSshPublicKey Source #
Arguments
| :: 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:
ImportSshPublicKey, importSshPublicKey_serverId - A system-assigned unique identifier for a server.
ImportSshPublicKey, importSshPublicKey_sshPublicKeyBody - The public key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
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.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
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.
Constructors
| ImportSshPublicKeyResponse' | |
Fields
| |
Instances
newImportSshPublicKeyResponse Source #
Arguments
| :: 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.
ImportSshPublicKey, importSshPublicKeyResponse_serverId - A system-assigned unique identifier for a server.
ImportSshPublicKeyResponse, importSshPublicKeyResponse_sshPublicKeyId - The name given to a public key by the system that was imported.
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.