import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutAuditEventsRequest, PutAuditEventsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutAuditEventsCommand}. */ export interface PutAuditEventsCommandInput extends PutAuditEventsRequest { } /** * @public * * The output of {@link PutAuditEventsCommand}. */ export interface PutAuditEventsCommandOutput extends PutAuditEventsResponse, __MetadataBearer { } declare const PutAuditEventsCommand_base: { new (input: PutAuditEventsCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutAuditEventsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Ingests your application events into CloudTrail Lake. A required parameter, * auditEvents, accepts the JSON records (also called * payload) of events that you want CloudTrail to ingest. You * can add up to 100 of these events (or up to 1 MB) per PutAuditEvents * request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailDataClient, PutAuditEventsCommand } from "@aws-sdk/client-cloudtrail-data"; // ES Modules import * // const { CloudTrailDataClient, PutAuditEventsCommand } = require("@aws-sdk/client-cloudtrail-data"); // CommonJS import * // import type { CloudTrailDataClientConfig } from "@aws-sdk/client-cloudtrail-data"; * const config = {}; // type is CloudTrailDataClientConfig * const client = new CloudTrailDataClient(config); * const input = { // PutAuditEventsRequest * auditEvents: [ // AuditEvents // required * { // AuditEvent * id: "STRING_VALUE", // required * eventData: "STRING_VALUE", // required * eventDataChecksum: "STRING_VALUE", * }, * ], * channelArn: "STRING_VALUE", // required * externalId: "STRING_VALUE", * }; * const command = new PutAuditEventsCommand(input); * const response = await client.send(command); * // { // PutAuditEventsResponse * // successful: [ // AuditEventResultEntries // required * // { // AuditEventResultEntry * // id: "STRING_VALUE", // required * // eventID: "STRING_VALUE", // required * // }, * // ], * // failed: [ // ResultErrorEntries // required * // { // ResultErrorEntry * // id: "STRING_VALUE", // required * // errorCode: "STRING_VALUE", // required * // errorMessage: "STRING_VALUE", // required * // }, * // ], * // }; * * ``` * * @param PutAuditEventsCommandInput - {@link PutAuditEventsCommandInput} * @returns {@link PutAuditEventsCommandOutput} * @see {@link PutAuditEventsCommandInput} for command's `input` shape. * @see {@link PutAuditEventsCommandOutput} for command's `response` shape. * @see {@link CloudTrailDataClientResolvedConfig | config} for CloudTrailDataClient's `config` shape. * * @throws {@link ChannelInsufficientPermission} (client fault) *

The caller's account ID must be the same as the channel owner's account ID.

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

The channel could not be found.

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

The schema type of the event is not supported.

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

Two or more entries in the request have the same event ID.

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

The specified channel ARN is not a valid * channel ARN.

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

The operation requested is not supported in this region or account.

* * @throws {@link CloudTrailDataServiceException} *

Base exception class for all service exceptions from CloudTrailData service.

* * * @public */ export declare class PutAuditEventsCommand extends PutAuditEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutAuditEventsRequest; output: PutAuditEventsResponse; }; sdk: { input: PutAuditEventsCommandInput; output: PutAuditEventsCommandOutput; }; }; }