import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PublishConnectionFunctionRequest, PublishConnectionFunctionResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PublishConnectionFunctionCommand}. */ export interface PublishConnectionFunctionCommandInput extends PublishConnectionFunctionRequest { } /** * @public * * The output of {@link PublishConnectionFunctionCommand}. */ export interface PublishConnectionFunctionCommandOutput extends PublishConnectionFunctionResult, __MetadataBearer { } declare const PublishConnectionFunctionCommand_base: { new (input: PublishConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; new (input: PublishConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Publishes a connection function.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, PublishConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, PublishConnectionFunctionCommand } = 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 = { // PublishConnectionFunctionRequest * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * }; * const command = new PublishConnectionFunctionCommand(input); * const response = await client.send(command); * // { // PublishConnectionFunctionResult * // 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 * // }, * // }; * * ``` * * @param PublishConnectionFunctionCommandInput - {@link PublishConnectionFunctionCommandInput} * @returns {@link PublishConnectionFunctionCommandOutput} * @see {@link PublishConnectionFunctionCommandInput} for command's `input` shape. * @see {@link PublishConnectionFunctionCommandOutput} 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 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 PublishConnectionFunctionCommand extends PublishConnectionFunctionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PublishConnectionFunctionRequest; output: PublishConnectionFunctionResult; }; sdk: { input: PublishConnectionFunctionCommandInput; output: PublishConnectionFunctionCommandOutput; }; }; }