import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListTunnelsRequest, ListTunnelsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListTunnelsCommand}. */ export interface ListTunnelsCommandInput extends ListTunnelsRequest { } /** * @public * * The output of {@link ListTunnelsCommand}. */ export interface ListTunnelsCommandOutput extends ListTunnelsResponse, __MetadataBearer { } declare const ListTunnelsCommand_base: { new (input: ListTunnelsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListTunnelsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

List all tunnels for an Amazon Web Services account. Tunnels are listed by creation time in * descending order, newer tunnels will be listed before older tunnels.

*

Requires permission to access the ListTunnels action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTSecureTunnelingClient, ListTunnelsCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import * // const { IoTSecureTunnelingClient, ListTunnelsCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import * // import type { IoTSecureTunnelingClientConfig } from "@aws-sdk/client-iotsecuretunneling"; * const config = {}; // type is IoTSecureTunnelingClientConfig * const client = new IoTSecureTunnelingClient(config); * const input = { // ListTunnelsRequest * thingName: "STRING_VALUE", * maxResults: Number("int"), * nextToken: "STRING_VALUE", * }; * const command = new ListTunnelsCommand(input); * const response = await client.send(command); * // { // ListTunnelsResponse * // tunnelSummaries: [ // TunnelSummaryList * // { // TunnelSummary * // tunnelId: "STRING_VALUE", * // tunnelArn: "STRING_VALUE", * // status: "OPEN" || "CLOSED", * // description: "STRING_VALUE", * // createdAt: new Date("TIMESTAMP"), * // lastUpdatedAt: new Date("TIMESTAMP"), * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTunnelsCommandInput - {@link ListTunnelsCommandInput} * @returns {@link ListTunnelsCommandOutput} * @see {@link ListTunnelsCommandInput} for command's `input` shape. * @see {@link ListTunnelsCommandOutput} for command's `response` shape. * @see {@link IoTSecureTunnelingClientResolvedConfig | config} for IoTSecureTunnelingClient's `config` shape. * * @throws {@link IoTSecureTunnelingServiceException} *

Base exception class for all service exceptions from IoTSecureTunneling service.

* * * @public */ export declare class ListTunnelsCommand extends ListTunnelsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTunnelsRequest; output: ListTunnelsResponse; }; sdk: { input: ListTunnelsCommandInput; output: ListTunnelsCommandOutput; }; }; }