import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateConnectionFunctionRequest, CreateConnectionFunctionResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateConnectionFunctionCommand}. */ export interface CreateConnectionFunctionCommandInput extends CreateConnectionFunctionRequest { } /** * @public * * The output of {@link CreateConnectionFunctionCommand}. */ export interface CreateConnectionFunctionCommandOutput extends CreateConnectionFunctionResult, __MetadataBearer { } declare const CreateConnectionFunctionCommand_base: { new (input: CreateConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a connection function.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, CreateConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, CreateConnectionFunctionCommand } = 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 = { // CreateConnectionFunctionRequest * Name: "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 * Tags: { // Tags * Items: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * }, * }; * const command = new CreateConnectionFunctionCommand(input); * const response = await client.send(command); * // { // CreateConnectionFunctionResult * // 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 * // }, * // Location: "STRING_VALUE", * // ETag: "STRING_VALUE", * // }; * * ``` * * @param CreateConnectionFunctionCommandInput - {@link CreateConnectionFunctionCommandInput} * @returns {@link CreateConnectionFunctionCommandOutput} * @see {@link CreateConnectionFunctionCommandInput} for command's `input` shape. * @see {@link CreateConnectionFunctionCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity already exists. You must provide a unique entity.

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

The entity limit has been exceeded.

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

The entity size limit was exceeded.

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

An argument is invalid.

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

The tagging specified is not valid.

* * @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 CreateConnectionFunctionCommand extends CreateConnectionFunctionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateConnectionFunctionRequest; output: CreateConnectionFunctionResult; }; sdk: { input: CreateConnectionFunctionCommandInput; output: CreateConnectionFunctionCommandOutput; }; }; }