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

Updates settings for a connection.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, UpdateConnectionCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, UpdateConnectionCommand } = 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 = { // UpdateConnectionRequest * Name: "STRING_VALUE", // required * Description: "STRING_VALUE", * AuthorizationType: "BASIC" || "OAUTH_CLIENT_CREDENTIALS" || "API_KEY", * AuthParameters: { // UpdateConnectionAuthRequestParameters * BasicAuthParameters: { // UpdateConnectionBasicAuthRequestParameters * Username: "STRING_VALUE", * Password: "STRING_VALUE", * }, * OAuthParameters: { // UpdateConnectionOAuthRequestParameters * ClientParameters: { // UpdateConnectionOAuthClientRequestParameters * ClientID: "STRING_VALUE", * ClientSecret: "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: { // UpdateConnectionApiKeyAuthRequestParameters * ApiKeyName: "STRING_VALUE", * ApiKeyValue: "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: { // ConnectivityResourceParameters * ResourceParameters: { // ConnectivityResourceConfigurationArn * ResourceConfigurationArn: "STRING_VALUE", // required * }, * }, * }, * InvocationConnectivityParameters: { * ResourceParameters: { * ResourceConfigurationArn: "STRING_VALUE", // required * }, * }, * KmsKeyIdentifier: "STRING_VALUE", * }; * const command = new UpdateConnectionCommand(input); * const response = await client.send(command); * // { // UpdateConnectionResponse * // ConnectionArn: "STRING_VALUE", * // ConnectionState: "CREATING" || "UPDATING" || "DELETING" || "AUTHORIZED" || "DEAUTHORIZED" || "AUTHORIZING" || "DEAUTHORIZING" || "ACTIVE" || "FAILED_CONNECTIVITY", * // CreationTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // LastAuthorizedTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param UpdateConnectionCommandInput - {@link UpdateConnectionCommandInput} * @returns {@link UpdateConnectionCommandOutput} * @see {@link UpdateConnectionCommandInput} for command's `input` shape. * @see {@link UpdateConnectionCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have the necessary permissions for this action.

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

There is concurrent modification on a rule, target, archive, or replay.

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

This exception occurs due to unexpected causes.

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

The request failed because it attempted to create resource beyond the allowed service * quota.

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

An entity that you specified does not exist.

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

This request cannot be completed due to throttling issues.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class UpdateConnectionCommand extends UpdateConnectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateConnectionRequest; output: UpdateConnectionResponse; }; sdk: { input: UpdateConnectionCommandInput; output: UpdateConnectionCommandOutput; }; }; }