import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetConnectionRequest, GetConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetConnectionCommand}. */ export interface GetConnectionCommandInput extends GetConnectionRequest { } /** * @public * * The output of {@link GetConnectionCommand}. */ export interface GetConnectionCommandOutput extends GetConnectionResponse, __MetadataBearer { } declare const GetConnectionCommand_base: { new (input: GetConnectionCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetConnectionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves connection information for the specified MQTT client.

*

Requires permission to access the GetConnection action.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTDataPlaneClient, GetConnectionCommand } from "@aws-sdk/client-iot-data-plane"; // ES Modules import * // const { IoTDataPlaneClient, GetConnectionCommand } = require("@aws-sdk/client-iot-data-plane"); // CommonJS import * // import type { IoTDataPlaneClientConfig } from "@aws-sdk/client-iot-data-plane"; * const config = {}; // type is IoTDataPlaneClientConfig * const client = new IoTDataPlaneClient(config); * const input = { // GetConnectionRequest * clientId: "STRING_VALUE", // required * includeSocketInformation: true || false, * }; * const command = new GetConnectionCommand(input); * const response = await client.send(command); * // { // GetConnectionResponse * // connected: true || false, * // thingName: "STRING_VALUE", * // cleanSession: true || false, * // sourceIp: "STRING_VALUE", * // sourcePort: Number("int"), * // targetIp: "STRING_VALUE", * // targetPort: Number("int"), * // keepAliveDuration: Number("int"), * // connectedSince: Number("long"), * // disconnectedSince: Number("long"), * // disconnectReason: "STRING_VALUE", * // sessionExpiry: Number("long"), * // clientId: "STRING_VALUE", * // vpcEndpointId: "STRING_VALUE", * // }; * * ``` * * @param GetConnectionCommandInput - {@link GetConnectionCommandInput} * @returns {@link GetConnectionCommandOutput} * @see {@link GetConnectionCommandInput} for command's `input` shape. * @see {@link GetConnectionCommandOutput} for command's `response` shape. * @see {@link IoTDataPlaneClientResolvedConfig | config} for IoTDataPlaneClient's `config` shape. * * @throws {@link ForbiddenException} (client fault) *

The caller isn't authorized to make the request.

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

An unexpected error has occurred.

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

The request is not valid.

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

The specified resource does not exist.

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

The rate exceeds the limit.

* * @throws {@link IoTDataPlaneServiceException} *

Base exception class for all service exceptions from IoTDataPlane service.

* * * @public */ export declare class GetConnectionCommand extends GetConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetConnectionRequest; output: GetConnectionResponse; }; sdk: { input: GetConnectionCommandInput; output: GetConnectionCommandOutput; }; }; }