import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EvidentlyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EvidentlyClient"; import type { PutProjectEventsRequest, PutProjectEventsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutProjectEventsCommand}. */ export interface PutProjectEventsCommandInput extends PutProjectEventsRequest { } /** * @public * * The output of {@link PutProjectEventsCommand}. */ export interface PutProjectEventsCommandOutput extends PutProjectEventsResponse, __MetadataBearer { } declare const PutProjectEventsCommand_base: { new (input: PutProjectEventsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutProjectEventsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Sends performance events to Evidently. These events can be used to evaluate a launch or an experiment.

* * @deprecated AWS CloudWatch Evidently has been deprecated since 11/17/2025. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EvidentlyClient, PutProjectEventsCommand } from "@aws-sdk/client-evidently"; // ES Modules import * // const { EvidentlyClient, PutProjectEventsCommand } = require("@aws-sdk/client-evidently"); // CommonJS import * // import type { EvidentlyClientConfig } from "@aws-sdk/client-evidently"; * const config = {}; // type is EvidentlyClientConfig * const client = new EvidentlyClient(config); * const input = { // PutProjectEventsRequest * project: "STRING_VALUE", // required * events: [ // EventList // required * { // Event * timestamp: new Date("TIMESTAMP"), // required * type: "STRING_VALUE", // required * data: "STRING_VALUE", // required * }, * ], * }; * const command = new PutProjectEventsCommand(input); * const response = await client.send(command); * // { // PutProjectEventsResponse * // failedEventCount: Number("int"), * // eventResults: [ // PutProjectEventsResultEntryList * // { // PutProjectEventsResultEntry * // eventId: "STRING_VALUE", * // errorCode: "STRING_VALUE", * // errorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param PutProjectEventsCommandInput - {@link PutProjectEventsCommandInput} * @returns {@link PutProjectEventsCommandOutput} * @see {@link PutProjectEventsCommandInput} for command's `input` shape. * @see {@link PutProjectEventsCommandOutput} for command's `response` shape. * @see {@link EvidentlyClientResolvedConfig | config} for EvidentlyClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

The request references a resource that does not exist.

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

The request was denied because of request throttling. Retry the request.

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

The value of a parameter in the request caused an error.

* * @throws {@link EvidentlyServiceException} *

Base exception class for all service exceptions from Evidently service.

* * * @example Post evaluation Event for Project * ```javascript * // * const input = { * events: [ * { * data: `{"feature":"ExampleFeature","entityId":"username@email.com","entityAttributes":{"browser":{"s":"Chrome"}},"variation":"variationA","type":"EXPERIMENT_RULE_MATCH","details":{"experiment":"Jan2020_landing_page_banner","treatment":"control","salt":"ADJNC1237ASDNU"}}`, * timestamp: 1627580583, * type: "aws.evidently.evaluation" * } * ], * project: "ExampleProject" * }; * const command = new PutProjectEventsCommand(input); * const response = await client.send(command); * /* response is * { * eventResults: [ * { * errorCode: "null", * errorMessage: "null", * eventId: "e55c1f5f-309b-440e-b0d8-64506987c20f" * } * ], * failedEventCount: 0 * } * *\/ * ``` * * @public */ export declare class PutProjectEventsCommand extends PutProjectEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutProjectEventsRequest; output: PutProjectEventsResponse; }; sdk: { input: PutProjectEventsCommandInput; output: PutProjectEventsCommandOutput; }; }; }