import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutEventsRequest, PutEventsResponse } from "../models/models_1"; import type { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutEventsCommand}. */ export interface PutEventsCommandInput extends PutEventsRequest { } /** * @public * * The output of {@link PutEventsCommand}. */ export interface PutEventsCommandOutput extends PutEventsResponse, __MetadataBearer { } declare const PutEventsCommand_base: { new (input: PutEventsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutEventsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PinpointClient, PutEventsCommand } from "@aws-sdk/client-pinpoint"; // ES Modules import * // const { PinpointClient, PutEventsCommand } = require("@aws-sdk/client-pinpoint"); // CommonJS import * // import type { PinpointClientConfig } from "@aws-sdk/client-pinpoint"; * const config = {}; // type is PinpointClientConfig * const client = new PinpointClient(config); * const input = { // PutEventsRequest * ApplicationId: "STRING_VALUE", // required * EventsRequest: { // EventsRequest * BatchItem: { // MapOfEventsBatch // required * "": { // EventsBatch * Endpoint: { // PublicEndpoint * Address: "STRING_VALUE", * Attributes: { // MapOfListOf__string * "": [ // ListOf__string * "STRING_VALUE", * ], * }, * ChannelType: "PUSH" || "GCM" || "APNS" || "APNS_SANDBOX" || "APNS_VOIP" || "APNS_VOIP_SANDBOX" || "ADM" || "SMS" || "VOICE" || "EMAIL" || "BAIDU" || "CUSTOM" || "IN_APP", * Demographic: { // EndpointDemographic * AppVersion: "STRING_VALUE", * Locale: "STRING_VALUE", * Make: "STRING_VALUE", * Model: "STRING_VALUE", * ModelVersion: "STRING_VALUE", * Platform: "STRING_VALUE", * PlatformVersion: "STRING_VALUE", * Timezone: "STRING_VALUE", * }, * EffectiveDate: "STRING_VALUE", * EndpointStatus: "STRING_VALUE", * Location: { // EndpointLocation * City: "STRING_VALUE", * Country: "STRING_VALUE", * Latitude: Number("double"), * Longitude: Number("double"), * PostalCode: "STRING_VALUE", * Region: "STRING_VALUE", * }, * Metrics: { // MapOf__double * "": Number("double"), * }, * OptOut: "STRING_VALUE", * RequestId: "STRING_VALUE", * User: { // EndpointUser * UserAttributes: { * "": [ * "STRING_VALUE", * ], * }, * UserId: "STRING_VALUE", * }, * }, * Events: { // MapOfEvent // required * "": { // Event * AppPackageName: "STRING_VALUE", * AppTitle: "STRING_VALUE", * AppVersionCode: "STRING_VALUE", * Attributes: { // MapOf__string * "": "STRING_VALUE", * }, * ClientSdkVersion: "STRING_VALUE", * EventType: "STRING_VALUE", // required * Metrics: { * "": Number("double"), * }, * SdkName: "STRING_VALUE", * Session: { // Session * Duration: Number("int"), * Id: "STRING_VALUE", // required * StartTimestamp: "STRING_VALUE", // required * StopTimestamp: "STRING_VALUE", * }, * Timestamp: "STRING_VALUE", // required * }, * }, * }, * }, * }, * }; * const command = new PutEventsCommand(input); * const response = await client.send(command); * // { // PutEventsResponse * // EventsResponse: { // EventsResponse * // Results: { // MapOfItemResponse * // "": { // ItemResponse * // EndpointItemResponse: { // EndpointItemResponse * // Message: "STRING_VALUE", * // StatusCode: Number("int"), * // }, * // EventsItemResponse: { // MapOfEventItemResponse * // "": { // EventItemResponse * // Message: "STRING_VALUE", * // StatusCode: Number("int"), * // }, * // }, * // }, * // }, * // }, * // }; * * ``` * * @param PutEventsCommandInput - {@link PutEventsCommandInput} * @returns {@link PutEventsCommandOutput} * @see {@link PutEventsCommandInput} for command's `input` shape. * @see {@link PutEventsCommandOutput} for command's `response` shape. * @see {@link PinpointClientResolvedConfig | config} for PinpointClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link InternalServerErrorException} (server fault) *

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

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

Provides information about an API request or response.

* * @throws {@link PinpointServiceException} *

Base exception class for all service exceptions from Pinpoint service.

* * * @public */ export declare class PutEventsCommand extends PutEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutEventsRequest; output: PutEventsResponse; }; sdk: { input: PutEventsCommandInput; output: PutEventsCommandOutput; }; }; }