import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListConnectionsRequest, ListConnectionsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @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/core/client").CommandImpl; new (...[input]: [] | [ListConnectionsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").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 { CloudWatchEventsClient, ListConnectionsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import * // const { CloudWatchEventsClient, ListConnectionsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import * // import type { CloudWatchEventsClientConfig } from "@aws-sdk/client-cloudwatch-events"; * const config = {}; // type is CloudWatchEventsClientConfig * const client = new CloudWatchEventsClient(config); * const input = { // ListConnectionsRequest * NamePrefix: "STRING_VALUE", * ConnectionState: "CREATING" || "UPDATING" || "DELETING" || "AUTHORIZED" || "DEAUTHORIZED" || "AUTHORIZING" || "DEAUTHORIZING", * 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", * // 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 CloudWatchEventsClientResolvedConfig | config} for CloudWatchEventsClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link CloudWatchEventsServiceException} *

Base exception class for all service exceptions from CloudWatchEvents 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; }; }; }