@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface CloudTrailDataClient extends AwsClient
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static CloudTrailDataClientBuilder |
builder()
Create a builder that can be used to configure and create a
CloudTrailDataClient. |
static CloudTrailDataClient |
create()
Create a
CloudTrailDataClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
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.
|
default CloudTrailDataServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.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) per PutAuditEvents request.
putAuditEventsRequest - ChannelInsufficientPermissionException - The caller's account ID must be the same as the channel owner's account ID.ChannelNotFoundException - The channel could not be found.InvalidChannelArnException - The specified channel ARN is not a valid channel ARN.ChannelUnsupportedSchemaException - The schema type of the event is not supported.DuplicatedAuditEventIdException - Two or more entries in the request have the same event ID.UnsupportedOperationException - The operation requested is not supported in this region or account.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CloudTrailDataException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault 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) per PutAuditEvents request.
This is a convenience which creates an instance of the PutAuditEventsRequest.Builder avoiding the need to
create one manually via PutAuditEventsRequest.builder()
putAuditEventsRequest - A Consumer that will call methods on PutAuditEventsRequest.Builder to create a request.ChannelInsufficientPermissionException - The caller's account ID must be the same as the channel owner's account ID.ChannelNotFoundException - The channel could not be found.InvalidChannelArnException - The specified channel ARN is not a valid channel ARN.ChannelUnsupportedSchemaException - The schema type of the event is not supported.DuplicatedAuditEventIdException - Two or more entries in the request have the same event ID.UnsupportedOperationException - The operation requested is not supported in this region or account.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.CloudTrailDataException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic CloudTrailDataClient create()
CloudTrailDataClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CloudTrailDataClientBuilder builder()
CloudTrailDataClient.static ServiceMetadata serviceMetadata()
default CloudTrailDataServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.