| 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.ImportHostKey
Description
Adds a host key to the server that's specified by the ServerId
parameter.
Synopsis
- data ImportHostKey = ImportHostKey' {}
- newImportHostKey :: Text -> Text -> ImportHostKey
- importHostKey_description :: Lens' ImportHostKey (Maybe Text)
- importHostKey_tags :: Lens' ImportHostKey (Maybe (NonEmpty Tag))
- importHostKey_serverId :: Lens' ImportHostKey Text
- importHostKey_hostKeyBody :: Lens' ImportHostKey Text
- data ImportHostKeyResponse = ImportHostKeyResponse' {}
- newImportHostKeyResponse :: Int -> Text -> Text -> ImportHostKeyResponse
- importHostKeyResponse_httpStatus :: Lens' ImportHostKeyResponse Int
- importHostKeyResponse_serverId :: Lens' ImportHostKeyResponse Text
- importHostKeyResponse_hostKeyId :: Lens' ImportHostKeyResponse Text
Creating a Request
data ImportHostKey Source #
See: newImportHostKey smart constructor.
Constructors
| ImportHostKey' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ImportHostKey |
Create a value of ImportHostKey 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:
ImportHostKey, importHostKey_description - The text description that identifies this host key.
ImportHostKey, importHostKey_tags - Key-value pairs that can be used to group and search for host keys.
ImportHostKey, importHostKey_serverId - The identifier of the server that contains the host key that you are
importing.
$sel:hostKeyBody:ImportHostKey', importHostKey_hostKeyBody - The public key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
Request Lenses
importHostKey_description :: Lens' ImportHostKey (Maybe Text) Source #
The text description that identifies this host key.
importHostKey_tags :: Lens' ImportHostKey (Maybe (NonEmpty Tag)) Source #
Key-value pairs that can be used to group and search for host keys.
importHostKey_serverId :: Lens' ImportHostKey Text Source #
The identifier of the server that contains the host key that you are importing.
importHostKey_hostKeyBody :: Lens' ImportHostKey Text Source #
The public key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
Destructuring the Response
data ImportHostKeyResponse Source #
See: newImportHostKeyResponse smart constructor.
Constructors
| ImportHostKeyResponse' | |
Instances
newImportHostKeyResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> ImportHostKeyResponse |
Create a value of ImportHostKeyResponse 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:ImportHostKeyResponse', importHostKeyResponse_httpStatus - The response's http status code.
ImportHostKey, importHostKeyResponse_serverId - Returns the server identifier that contains the imported key.
ImportHostKeyResponse, importHostKeyResponse_hostKeyId - Returns the host key identifier for the imported key.
Response Lenses
importHostKeyResponse_httpStatus :: Lens' ImportHostKeyResponse Int Source #
The response's http status code.
importHostKeyResponse_serverId :: Lens' ImportHostKeyResponse Text Source #
Returns the server identifier that contains the imported key.
importHostKeyResponse_hostKeyId :: Lens' ImportHostKeyResponse Text Source #
Returns the host key identifier for the imported key.