import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { TestConnectionFunctionRequest, TestConnectionFunctionResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link TestConnectionFunctionCommand}. */ export interface TestConnectionFunctionCommandInput extends TestConnectionFunctionRequest { } /** * @public * * The output of {@link TestConnectionFunctionCommand}. */ export interface TestConnectionFunctionCommandOutput extends TestConnectionFunctionResult, __MetadataBearer { } declare const TestConnectionFunctionCommand_base: { new (input: TestConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; new (input: TestConnectionFunctionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Tests a connection function.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, TestConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, TestConnectionFunctionCommand } = 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 = { // TestConnectionFunctionRequest * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * Stage: "DEVELOPMENT" || "LIVE", * ConnectionObject: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * }; * const command = new TestConnectionFunctionCommand(input); * const response = await client.send(command); * // { // TestConnectionFunctionResult * // ConnectionFunctionTestResult: { // ConnectionFunctionTestResult * // 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 * // }, * // ComputeUtilization: "STRING_VALUE", * // ConnectionFunctionExecutionLogs: [ // FunctionExecutionLogList * // "STRING_VALUE", * // ], * // ConnectionFunctionErrorMessage: "STRING_VALUE", * // ConnectionFunctionOutput: "STRING_VALUE", * // }, * // }; * * ``` * * @param TestConnectionFunctionCommandInput - {@link TestConnectionFunctionCommandInput} * @returns {@link TestConnectionFunctionCommandOutput} * @see {@link TestConnectionFunctionCommandInput} for command's `input` shape. * @see {@link TestConnectionFunctionCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @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 TestFunctionFailed} (server fault) *

The CloudFront function failed.

* * @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 TestConnectionFunctionCommand extends TestConnectionFunctionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TestConnectionFunctionRequest; output: TestConnectionFunctionResult; }; sdk: { input: TestConnectionFunctionCommandInput; output: TestConnectionFunctionCommandOutput; }; }; }