import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { ListConnectionsRequest, ListConnectionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListConnectionsCommand}. */ export interface ListConnectionsCommandInput extends ListConnectionsRequest { } /** * @public * * The output of {@link ListConnectionsCommand}. */ export interface ListConnectionsCommandOutput extends ListConnectionsResponse, __MetadataBearer { } declare const ListConnectionsCommand_base: { new (input: ListConnectionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [ListConnectionsCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves a list of connections from the account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, ListConnectionsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, ListConnectionsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // ListConnectionsRequest * NamePrefix: "STRING_VALUE", * ConnectionState: "CREATING" || "UPDATING" || "DELETING" || "AUTHORIZED" || "DEAUTHORIZED" || "AUTHORIZING" || "DEAUTHORIZING" || "ACTIVE" || "FAILED_CONNECTIVITY", * NextToken: "STRING_VALUE", * Limit: Number("int"), * }; * const command = new ListConnectionsCommand(input); * const response = await client.send(command); * // { // ListConnectionsResponse * // Connections: [ // ConnectionResponseList * // { // Connection * // ConnectionArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // ConnectionState: "CREATING" || "UPDATING" || "DELETING" || "AUTHORIZED" || "DEAUTHORIZED" || "AUTHORIZING" || "DEAUTHORIZING" || "ACTIVE" || "FAILED_CONNECTIVITY", * // StateReason: "STRING_VALUE", * // AuthorizationType: "BASIC" || "OAUTH_CLIENT_CREDENTIALS" || "API_KEY", * // CreationTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // LastAuthorizedTime: new Date("TIMESTAMP"), * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListConnectionsCommandInput - {@link ListConnectionsCommandInput} * @returns {@link ListConnectionsCommandOutput} * @see {@link ListConnectionsCommandInput} for command's `input` shape. * @see {@link ListConnectionsCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class ListConnectionsCommand extends ListConnectionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListConnectionsRequest; output: ListConnectionsResponse; }; sdk: { input: ListConnectionsCommandInput; output: ListConnectionsCommandOutput; }; }; }