@SdkInternalApi
    final PutAuditEventsResult executePutAuditEvents(PutAuditEventsRequest putAuditEventsRequest) {

        ExecutionContext executionContext = createExecutionContext(putAuditEventsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<PutAuditEventsRequest> request = null;
        Response<PutAuditEventsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new PutAuditEventsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putAuditEventsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudTrail Data");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutAuditEvents");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<PutAuditEventsResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutAuditEventsResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Ingests your application events into CloudTrail Lake. A required parameter, <code>auditEvents</code>, accepts the
JSON records (also called <i>payload</i>) of events that you want CloudTrail to ingest. You can add up to 100 of
these events (or up to 1 MB) per <code>PutAuditEvents</code> request.
</p>

@param putAuditEventsRequest
@return Result of the PutAuditEvents operation returned by the service.
@throws ChannelInsufficientPermissionException
        The caller's account ID must be the same as the channel owner's account ID.
@throws ChannelNotFoundException
        The channel could not be found.
@throws InvalidChannelARNException
        The specified channel ARN is not a valid channel ARN.
@throws ChannelUnsupportedSchemaException
        The schema type of the event is not supported.
@throws DuplicatedAuditEventIdException
        Two or more entries in the request have the same event ID.
@throws UnsupportedOperationException
        The operation requested is not supported in this region or account.
@sample AWSCloudTrailData.PutAuditEvents
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-data-2021-08-11/PutAuditEvents" target="_top">AWS
     API Documentation</a>
aws-java-sdk-cloudtraildata/src/main/java/com/amazonaws/services/cloudtraildata/AWSCloudTrailDataClient.java