import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListHostKeysRequest, ListHostKeysResponse } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, TransferClientResolvedConfig } from "../TransferClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListHostKeysCommand}. */ export interface ListHostKeysCommandInput extends ListHostKeysRequest { } /** * @public * * The output of {@link ListHostKeysCommand}. */ export interface ListHostKeysCommandOutput extends ListHostKeysResponse, __MetadataBearer { } declare const ListHostKeysCommand_base: { new (input: ListHostKeysCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ListHostKeysCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of host keys for the server that's specified by the ServerId parameter.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TransferClient, ListHostKeysCommand } from "@aws-sdk/client-transfer"; // ES Modules import * // const { TransferClient, ListHostKeysCommand } = require("@aws-sdk/client-transfer"); // CommonJS import * // import type { TransferClientConfig } from "@aws-sdk/client-transfer"; * const config = {}; // type is TransferClientConfig * const client = new TransferClient(config); * const input = { // ListHostKeysRequest * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * ServerId: "STRING_VALUE", // required * }; * const command = new ListHostKeysCommand(input); * const response = await client.send(command); * // { // ListHostKeysResponse * // NextToken: "STRING_VALUE", * // ServerId: "STRING_VALUE", // required * // HostKeys: [ // ListedHostKeys // required * // { // ListedHostKey * // Arn: "STRING_VALUE", // required * // HostKeyId: "STRING_VALUE", * // Fingerprint: "STRING_VALUE", * // Description: "STRING_VALUE", * // Type: "STRING_VALUE", * // DateImported: new Date("TIMESTAMP"), * // }, * // ], * // }; * * ``` * * @param ListHostKeysCommandInput - {@link ListHostKeysCommandInput} * @returns {@link ListHostKeysCommandOutput} * @see {@link ListHostKeysCommandInput} for command's `input` shape. * @see {@link ListHostKeysCommandOutput} for command's `response` shape. * @see {@link TransferClientResolvedConfig | config} for TransferClient's `config` shape. * * @throws {@link InternalServiceError} (server fault) *

This exception is thrown when an error occurs in the Transfer Family service.

* * @throws {@link InvalidNextTokenException} (client fault) *

The NextToken parameter that was passed is invalid.

* * @throws {@link InvalidRequestException} (client fault) *

This exception is thrown when the client submits a malformed request.

* * @throws {@link ResourceNotFoundException} (client fault) *

This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.

* * @throws {@link ServiceUnavailableException} (server fault) *

The request has failed because the Amazon Web ServicesTransfer Family service is not available.

* * @throws {@link TransferServiceException} *

Base exception class for all service exceptions from Transfer service.

* * * @public */ export declare class ListHostKeysCommand extends ListHostKeysCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListHostKeysRequest; output: ListHostKeysResponse; }; sdk: { input: ListHostKeysCommandInput; output: ListHostKeysCommandOutput; }; }; }