Interface CloudTrailDataClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudTrailDataClientBuilder
builder()
Create a builder that can be used to configure and create aCloudTrailDataClient
.static CloudTrailDataClient
create()
Create aCloudTrailDataClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default PutAuditEventsResponse
putAuditEvents
(Consumer<PutAuditEventsRequest.Builder> putAuditEventsRequest) Ingests your application events into CloudTrail Lake.default PutAuditEventsResponse
putAuditEvents
(PutAuditEventsRequest putAuditEventsRequest) Ingests your application events into CloudTrail Lake.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
putAuditEvents
default PutAuditEventsResponse putAuditEvents(PutAuditEventsRequest putAuditEventsRequest) throws ChannelInsufficientPermissionException, ChannelNotFoundException, InvalidChannelArnException, ChannelUnsupportedSchemaException, DuplicatedAuditEventIdException, UnsupportedOperationException, AwsServiceException, SdkClientException, CloudTrailDataException 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) perPutAuditEvents
request.- Parameters:
putAuditEventsRequest
-- Returns:
- Result of the PutAuditEvents operation returned by the service.
- See Also:
-
putAuditEvents
default PutAuditEventsResponse putAuditEvents(Consumer<PutAuditEventsRequest.Builder> putAuditEventsRequest) throws ChannelInsufficientPermissionException, ChannelNotFoundException, InvalidChannelArnException, ChannelUnsupportedSchemaException, DuplicatedAuditEventIdException, UnsupportedOperationException, AwsServiceException, SdkClientException, CloudTrailDataException 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) perPutAuditEvents
request.
This is a convenience which creates an instance of the
PutAuditEventsRequest.Builder
avoiding the need to create one manually viaPutAuditEventsRequest.builder()
- Parameters:
putAuditEventsRequest
- AConsumer
that will call methods onPutAuditEventsRequest.Builder
to create a request.- Returns:
- Result of the PutAuditEvents operation returned by the service.
- See Also:
-
create
Create aCloudTrailDataClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCloudTrailDataClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-