@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCloudTrailDataAsyncClient extends AWSCloudTrailDataClient implements AWSCloudTrailDataAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
The CloudTrail Data Service lets you ingest events into CloudTrail from any source in your hybrid environments, such
as in-house or SaaS applications hosted on-premises or in the cloud, virtual machines, or containers. You can store,
access, analyze, troubleshoot and take action on this data without maintaining multiple log aggregators and reporting
tools. After you run PutAuditEvents
to ingest your application activity into CloudTrail, you can use
CloudTrail Lake to search, query, and analyze the data that is logged from your applications.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSCloudTrailDataAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<PutAuditEventsResult> |
putAuditEventsAsync(PutAuditEventsRequest request)
Ingests your application events into CloudTrail Lake.
|
Future<PutAuditEventsResult> |
putAuditEventsAsync(PutAuditEventsRequest request,
AsyncHandler<PutAuditEventsRequest,PutAuditEventsResult> asyncHandler)
Ingests your application events into CloudTrail Lake.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, putAuditEvents
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCachedResponseMetadata, putAuditEvents
public static AWSCloudTrailDataAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<PutAuditEventsResult> putAuditEventsAsync(PutAuditEventsRequest request)
AWSCloudTrailDataAsync
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.
putAuditEventsAsync
in interface AWSCloudTrailDataAsync
public Future<PutAuditEventsResult> putAuditEventsAsync(PutAuditEventsRequest request, AsyncHandler<PutAuditEventsRequest,PutAuditEventsResult> asyncHandler)
AWSCloudTrailDataAsync
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.
putAuditEventsAsync
in interface AWSCloudTrailDataAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSCloudTrailData
shutdown
in class AWSCloudTrailDataClient