import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateConnectionFunctionRequest, UpdateConnectionFunctionResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateConnectionFunctionCommand}. */ export interface UpdateConnectionFunctionCommandInput extends UpdateConnectionFunctionRequest { } /** * @public * * The output of {@link UpdateConnectionFunctionCommand}. */ export interface UpdateConnectionFunctionCommandOutput extends UpdateConnectionFunctionResult, __MetadataBearer { } declare const UpdateConnectionFunctionCommand_base: { new (input: UpdateConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates a connection function.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, UpdateConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, UpdateConnectionFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront"; * const config = {}; // type is CloudFrontClientConfig * const client = new CloudFrontClient(config); * const input = { // UpdateConnectionFunctionRequest * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * ConnectionFunctionConfig: { // FunctionConfig * Comment: "STRING_VALUE", // required * Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required * KeyValueStoreAssociations: { // KeyValueStoreAssociations * Quantity: Number("int"), // required * Items: [ // KeyValueStoreAssociationList * { // KeyValueStoreAssociation * KeyValueStoreARN: "STRING_VALUE", // required * }, * ], * }, * }, * ConnectionFunctionCode: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * }; * const command = new UpdateConnectionFunctionCommand(input); * const response = await client.send(command); * // { // UpdateConnectionFunctionResult * // ConnectionFunctionSummary: { // ConnectionFunctionSummary * // Name: "STRING_VALUE", // required * // Id: "STRING_VALUE", // required * // ConnectionFunctionConfig: { // FunctionConfig * // Comment: "STRING_VALUE", // required * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required * // KeyValueStoreAssociations: { // KeyValueStoreAssociations * // Quantity: Number("int"), // required * // Items: [ // KeyValueStoreAssociationList * // { // KeyValueStoreAssociation * // KeyValueStoreARN: "STRING_VALUE", // required * // }, * // ], * // }, * // }, * // ConnectionFunctionArn: "STRING_VALUE", // required * // Status: "STRING_VALUE", // required * // Stage: "DEVELOPMENT" || "LIVE", // required * // CreatedTime: new Date("TIMESTAMP"), // required * // LastModifiedTime: new Date("TIMESTAMP"), // required * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param UpdateConnectionFunctionCommandInput - {@link UpdateConnectionFunctionCommandInput} * @returns {@link UpdateConnectionFunctionCommandOutput} * @see {@link UpdateConnectionFunctionCommandInput} for command's `input` shape. * @see {@link UpdateConnectionFunctionCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity was not found.

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

The entity size limit was exceeded.

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

An argument is invalid.

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

The If-Match version is missing or not valid.

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

The precondition in one or more of the request fields evaluated to false.

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

This operation is not supported in this Amazon Web Services Region.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class UpdateConnectionFunctionCommand extends UpdateConnectionFunctionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateConnectionFunctionRequest; output: UpdateConnectionFunctionResult; }; sdk: { input: UpdateConnectionFunctionCommandInput; output: UpdateConnectionFunctionCommandOutput; }; }; }