| 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.ListHostKeys
Description
Returns a list of host keys for the server that's specified by the
 ServerId parameter.
Synopsis
- data ListHostKeys = ListHostKeys' {}
- newListHostKeys :: Text -> ListHostKeys
- listHostKeys_maxResults :: Lens' ListHostKeys (Maybe Natural)
- listHostKeys_nextToken :: Lens' ListHostKeys (Maybe Text)
- listHostKeys_serverId :: Lens' ListHostKeys Text
- data ListHostKeysResponse = ListHostKeysResponse' {- nextToken :: Maybe Text
- httpStatus :: Int
- serverId :: Text
- hostKeys :: [ListedHostKey]
 
- newListHostKeysResponse :: Int -> Text -> ListHostKeysResponse
- listHostKeysResponse_nextToken :: Lens' ListHostKeysResponse (Maybe Text)
- listHostKeysResponse_httpStatus :: Lens' ListHostKeysResponse Int
- listHostKeysResponse_serverId :: Lens' ListHostKeysResponse Text
- listHostKeysResponse_hostKeys :: Lens' ListHostKeysResponse [ListedHostKey]
Creating a Request
data ListHostKeys Source #
See: newListHostKeys smart constructor.
Constructors
| ListHostKeys' | |
| Fields 
 | |
Instances
Arguments
| :: Text | |
| -> ListHostKeys | 
Create a value of ListHostKeys 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:maxResults:ListHostKeys', listHostKeys_maxResults - The maximum number of host keys to return.
ListHostKeys, listHostKeys_nextToken - When there are additional results that were not returned, a NextToken
 parameter is returned. You can use that value for a subsequent call to
 ListHostKeys to continue listing results.
ListHostKeys, listHostKeys_serverId - The identifier of the server that contains the host keys that you want
 to view.
Request Lenses
listHostKeys_maxResults :: Lens' ListHostKeys (Maybe Natural) Source #
The maximum number of host keys to return.
listHostKeys_nextToken :: Lens' ListHostKeys (Maybe Text) Source #
When there are additional results that were not returned, a NextToken
 parameter is returned. You can use that value for a subsequent call to
 ListHostKeys to continue listing results.
listHostKeys_serverId :: Lens' ListHostKeys Text Source #
The identifier of the server that contains the host keys that you want to view.
Destructuring the Response
data ListHostKeysResponse Source #
See: newListHostKeysResponse smart constructor.
Constructors
| ListHostKeysResponse' | |
| Fields 
 | |
Instances
newListHostKeysResponse Source #
Create a value of ListHostKeysResponse 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:
ListHostKeys, listHostKeysResponse_nextToken - Returns a token that you can use to call ListHostKeys again and
 receive additional results, if there are any.
$sel:httpStatus:ListHostKeysResponse', listHostKeysResponse_httpStatus - The response's http status code.
ListHostKeys, listHostKeysResponse_serverId - Returns the server identifier that contains the listed host keys.
$sel:hostKeys:ListHostKeysResponse', listHostKeysResponse_hostKeys - Returns an array, where each item contains the details of a host key.
Response Lenses
listHostKeysResponse_nextToken :: Lens' ListHostKeysResponse (Maybe Text) Source #
Returns a token that you can use to call ListHostKeys again and
 receive additional results, if there are any.
listHostKeysResponse_httpStatus :: Lens' ListHostKeysResponse Int Source #
The response's http status code.
listHostKeysResponse_serverId :: Lens' ListHostKeysResponse Text Source #
Returns the server identifier that contains the listed host keys.
listHostKeysResponse_hostKeys :: Lens' ListHostKeysResponse [ListedHostKey] Source #
Returns an array, where each item contains the details of a host key.