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
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudTrailDataClientBuilderbuilder()Create a builder that can be used to configure and create aCloudTrailDataClient.static CloudTrailDataClientcreate()Create aCloudTrailDataClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default PutAuditEventsResponseputAuditEvents(Consumer<PutAuditEventsRequest.Builder> putAuditEventsRequest) Ingests your application events into CloudTrail Lake.default PutAuditEventsResponseputAuditEvents(PutAuditEventsRequest putAuditEventsRequest) Ingests your application events into CloudTrail Lake.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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) perPutAuditEventsrequest.- 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) perPutAuditEventsrequest.
This is a convenience which creates an instance of the
PutAuditEventsRequest.Builderavoiding the need to create one manually viaPutAuditEventsRequest.builder()- Parameters:
putAuditEventsRequest- AConsumerthat will call methods onPutAuditEventsRequest.Builderto create a request.- Returns:
- Result of the PutAuditEvents operation returned by the service.
- See Also:
-
create
Create aCloudTrailDataClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aCloudTrailDataClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-