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 { DescribeConnectionRequest, DescribeConnectionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeConnectionCommand}. */ export interface DescribeConnectionCommandInput extends DescribeConnectionRequest { } /** * @public * * The output of {@link DescribeConnectionCommand}. */ export interface DescribeConnectionCommandOutput extends DescribeConnectionResponse, __MetadataBearer { } declare const DescribeConnectionCommand_base: { new (input: DescribeConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeConnectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves details about a connection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, DescribeConnectionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, DescribeConnectionCommand } = 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 = { // DescribeConnectionRequest * Name: "STRING_VALUE", // required * }; * const command = new DescribeConnectionCommand(input); * const response = await client.send(command); * // { // DescribeConnectionResponse * // ConnectionArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // InvocationConnectivityParameters: { // DescribeConnectionConnectivityParameters * // ResourceParameters: { // DescribeConnectionResourceParameters * // ResourceConfigurationArn: "STRING_VALUE", // required * // ResourceAssociationArn: "STRING_VALUE", // required * // }, * // }, * // ConnectionState: "CREATING" || "UPDATING" || "DELETING" || "AUTHORIZED" || "DEAUTHORIZED" || "AUTHORIZING" || "DEAUTHORIZING" || "ACTIVE" || "FAILED_CONNECTIVITY", * // StateReason: "STRING_VALUE", * // AuthorizationType: "BASIC" || "OAUTH_CLIENT_CREDENTIALS" || "API_KEY", * // SecretArn: "STRING_VALUE", * // KmsKeyIdentifier: "STRING_VALUE", * // AuthParameters: { // ConnectionAuthResponseParameters * // BasicAuthParameters: { // ConnectionBasicAuthResponseParameters * // Username: "STRING_VALUE", * // }, * // OAuthParameters: { // ConnectionOAuthResponseParameters * // ClientParameters: { // ConnectionOAuthClientResponseParameters * // ClientID: "STRING_VALUE", * // }, * // AuthorizationEndpoint: "STRING_VALUE", * // HttpMethod: "GET" || "POST" || "PUT", * // OAuthHttpParameters: { // ConnectionHttpParameters * // HeaderParameters: [ // ConnectionHeaderParametersList * // { // ConnectionHeaderParameter * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // QueryStringParameters: [ // ConnectionQueryStringParametersList * // { // ConnectionQueryStringParameter * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // BodyParameters: [ // ConnectionBodyParametersList * // { // ConnectionBodyParameter * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // }, * // }, * // ApiKeyAuthParameters: { // ConnectionApiKeyAuthResponseParameters * // ApiKeyName: "STRING_VALUE", * // }, * // InvocationHttpParameters: { * // HeaderParameters: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // QueryStringParameters: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // BodyParameters: [ * // { * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // IsValueSecret: true || false, * // }, * // ], * // }, * // ConnectivityParameters: { * // ResourceParameters: { * // ResourceConfigurationArn: "STRING_VALUE", // required * // ResourceAssociationArn: "STRING_VALUE", // required * // }, * // }, * // }, * // CreationTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // LastAuthorizedTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param DescribeConnectionCommandInput - {@link DescribeConnectionCommandInput} * @returns {@link DescribeConnectionCommandOutput} * @see {@link DescribeConnectionCommandInput} for command's `input` shape. * @see {@link DescribeConnectionCommandOutput} 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 ResourceNotFoundException} (client fault) *

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class DescribeConnectionCommand extends DescribeConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeConnectionRequest; output: DescribeConnectionResponse; }; sdk: { input: DescribeConnectionCommandInput; output: DescribeConnectionCommandOutput; }; }; }