public class AWSCloudTrailAsyncClient extends AWSCloudTrailClient implements AWSCloudTrailAsync
This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.
CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.
NOTE: As an alternative to using the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page.
See the CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSCloudTrailAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail.
|
AWSCloudTrailAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials.
|
AWSCloudTrailAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials,
executor service, and client configuration options.
|
AWSCloudTrailAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials
and executor service.
|
AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials provider.
|
AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials
provider and client configuration options.
|
AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail using the specified AWS account credentials provider
and executor service.
|
AWSCloudTrailAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AWSCloudTrail.
|
Modifier and Type | Method and Description |
---|---|
Future<AddTagsResult> |
addTagsAsync(AddTagsRequest addTagsRequest)
Adds one or more tags to a trail, up to a limit of 10.
|
Future<AddTagsResult> |
addTagsAsync(AddTagsRequest addTagsRequest,
AsyncHandler<AddTagsRequest,AddTagsResult> asyncHandler)
Adds one or more tags to a trail, up to a limit of 10.
|
Future<CreateTrailResult> |
createTrailAsync(CreateTrailRequest createTrailRequest)
Creates a trail that specifies the settings for delivery of log data
to an Amazon S3 bucket.
|
Future<CreateTrailResult> |
createTrailAsync(CreateTrailRequest createTrailRequest,
AsyncHandler<CreateTrailRequest,CreateTrailResult> asyncHandler)
Creates a trail that specifies the settings for delivery of log data
to an Amazon S3 bucket.
|
Future<DeleteTrailResult> |
deleteTrailAsync(DeleteTrailRequest deleteTrailRequest)
Deletes a trail.
|
Future<DeleteTrailResult> |
deleteTrailAsync(DeleteTrailRequest deleteTrailRequest,
AsyncHandler<DeleteTrailRequest,DeleteTrailResult> asyncHandler)
Deletes a trail.
|
Future<DescribeTrailsResult> |
describeTrailsAsync(DescribeTrailsRequest describeTrailsRequest)
Retrieves settings for the trail associated with the current region
for your account.
|
Future<DescribeTrailsResult> |
describeTrailsAsync(DescribeTrailsRequest describeTrailsRequest,
AsyncHandler<DescribeTrailsRequest,DescribeTrailsResult> asyncHandler)
Retrieves settings for the trail associated with the current region
for your account.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<GetTrailStatusResult> |
getTrailStatusAsync(GetTrailStatusRequest getTrailStatusRequest)
Returns a JSON-formatted list of information about the specified
trail.
|
Future<GetTrailStatusResult> |
getTrailStatusAsync(GetTrailStatusRequest getTrailStatusRequest,
AsyncHandler<GetTrailStatusRequest,GetTrailStatusResult> asyncHandler)
Returns a JSON-formatted list of information about the specified
trail.
|
Future<ListPublicKeysResult> |
listPublicKeysAsync(ListPublicKeysRequest listPublicKeysRequest)
Returns all public keys whose private keys were used to sign the
digest files within the specified time range.
|
Future<ListPublicKeysResult> |
listPublicKeysAsync(ListPublicKeysRequest listPublicKeysRequest,
AsyncHandler<ListPublicKeysRequest,ListPublicKeysResult> asyncHandler)
Returns all public keys whose private keys were used to sign the
digest files within the specified time range.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest listTagsRequest)
Lists the tags for the trail in the current region.
|
Future<ListTagsResult> |
listTagsAsync(ListTagsRequest listTagsRequest,
AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
Lists the tags for the trail in the current region.
|
Future<LookupEventsResult> |
lookupEventsAsync(LookupEventsRequest lookupEventsRequest)
Looks up API activity events captured by CloudTrail that create,
update, or delete resources in your account.
|
Future<LookupEventsResult> |
lookupEventsAsync(LookupEventsRequest lookupEventsRequest,
AsyncHandler<LookupEventsRequest,LookupEventsResult> asyncHandler)
Looks up API activity events captured by CloudTrail that create,
update, or delete resources in your account.
|
Future<RemoveTagsResult> |
removeTagsAsync(RemoveTagsRequest removeTagsRequest)
Removes the specified tags from a trail.
|
Future<RemoveTagsResult> |
removeTagsAsync(RemoveTagsRequest removeTagsRequest,
AsyncHandler<RemoveTagsRequest,RemoveTagsResult> asyncHandler)
Removes the specified tags from a trail.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartLoggingResult> |
startLoggingAsync(StartLoggingRequest startLoggingRequest)
Starts the recording of AWS API calls and log file delivery for a
trail.
|
Future<StartLoggingResult> |
startLoggingAsync(StartLoggingRequest startLoggingRequest,
AsyncHandler<StartLoggingRequest,StartLoggingResult> asyncHandler)
Starts the recording of AWS API calls and log file delivery for a
trail.
|
Future<StopLoggingResult> |
stopLoggingAsync(StopLoggingRequest stopLoggingRequest)
Suspends the recording of AWS API calls and log file delivery for the
specified trail.
|
Future<StopLoggingResult> |
stopLoggingAsync(StopLoggingRequest stopLoggingRequest,
AsyncHandler<StopLoggingRequest,StopLoggingResult> asyncHandler)
Suspends the recording of AWS API calls and log file delivery for the
specified trail.
|
Future<UpdateTrailResult> |
updateTrailAsync(UpdateTrailRequest updateTrailRequest)
Updates the settings that specify delivery of log files.
|
Future<UpdateTrailResult> |
updateTrailAsync(UpdateTrailRequest updateTrailRequest,
AsyncHandler<UpdateTrailRequest,UpdateTrailResult> asyncHandler)
Updates the settings that specify delivery of log files.
|
addTags, createTrail, deleteTrail, describeTrails, describeTrails, getCachedResponseMetadata, getTrailStatus, listPublicKeys, listPublicKeys, listTags, lookupEvents, lookupEvents, removeTags, setEndpoint, setEndpoint, startLogging, stopLogging, updateTrail
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTags, createTrail, deleteTrail, describeTrails, describeTrails, getCachedResponseMetadata, getTrailStatus, listPublicKeys, listPublicKeys, listTags, lookupEvents, lookupEvents, removeTags, setEndpoint, setRegion, startLogging, stopLogging, updateTrail
public AWSCloudTrailAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AWSCloudTrailAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AWSCloudTrail
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AWSCloudTrailAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AWSCloudTrailAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AWSCloudTrailAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).public AWSCloudTrailAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AWSCloudTrail
shutdown
in class AmazonWebServiceClient
public Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest) throws AmazonServiceException, AmazonClientException
Lists the tags for the trail in the current region.
listTagsAsync
in interface AWSCloudTrailAsync
listTagsRequest
- Container for the necessary parameters to
execute the ListTags operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the tags for the trail in the current region.
listTagsAsync
in interface AWSCloudTrailAsync
listTagsRequest
- Container for the necessary parameters to
execute the ListTags operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<GetTrailStatusResult> getTrailStatusAsync(GetTrailStatusRequest getTrailStatusRequest) throws AmazonServiceException, AmazonClientException
Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.
getTrailStatusAsync
in interface AWSCloudTrailAsync
getTrailStatusRequest
- Container for the necessary parameters to
execute the GetTrailStatus operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<GetTrailStatusResult> getTrailStatusAsync(GetTrailStatusRequest getTrailStatusRequest, AsyncHandler<GetTrailStatusRequest,GetTrailStatusResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.
getTrailStatusAsync
in interface AWSCloudTrailAsync
getTrailStatusRequest
- Container for the necessary parameters to
execute the GetTrailStatus operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest removeTagsRequest) throws AmazonServiceException, AmazonClientException
Removes the specified tags from a trail.
removeTagsAsync
in interface AWSCloudTrailAsync
removeTagsRequest
- Container for the necessary parameters to
execute the RemoveTags operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest removeTagsRequest, AsyncHandler<RemoveTagsRequest,RemoveTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified tags from a trail.
removeTagsAsync
in interface AWSCloudTrailAsync
removeTagsRequest
- Container for the necessary parameters to
execute the RemoveTags operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<DeleteTrailResult> deleteTrailAsync(DeleteTrailRequest deleteTrailRequest) throws AmazonServiceException, AmazonClientException
Deletes a trail. This operation must be called from the region in which the trail was created.
deleteTrailAsync
in interface AWSCloudTrailAsync
deleteTrailRequest
- Container for the necessary parameters to
execute the DeleteTrail operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<DeleteTrailResult> deleteTrailAsync(DeleteTrailRequest deleteTrailRequest, AsyncHandler<DeleteTrailRequest,DeleteTrailResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes a trail. This operation must be called from the region in which the trail was created.
deleteTrailAsync
in interface AWSCloudTrailAsync
deleteTrailRequest
- Container for the necessary parameters to
execute the DeleteTrail operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<LookupEventsResult> lookupEventsAsync(LookupEventsRequest lookupEventsRequest) throws AmazonServiceException, AmazonClientException
Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports five different attributes: time range (defined by a start time and end time), user name, event name, resource type, and resource name. All attributes are optional. The maximum number of attributes that can be specified in any one lookup request are time range and one other attribute. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
IMPORTANT:The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.
IMPORTANT:Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.
lookupEventsAsync
in interface AWSCloudTrailAsync
lookupEventsRequest
- Container for the necessary parameters to
execute the LookupEvents operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<LookupEventsResult> lookupEventsAsync(LookupEventsRequest lookupEventsRequest, AsyncHandler<LookupEventsRequest,LookupEventsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports five different attributes: time range (defined by a start time and end time), user name, event name, resource type, and resource name. All attributes are optional. The maximum number of attributes that can be specified in any one lookup request are time range and one other attribute. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
IMPORTANT:The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.
IMPORTANT:Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.
lookupEventsAsync
in interface AWSCloudTrailAsync
lookupEventsRequest
- Container for the necessary parameters to
execute the LookupEvents operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<CreateTrailResult> createTrailAsync(CreateTrailRequest createTrailRequest) throws AmazonServiceException, AmazonClientException
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
createTrailAsync
in interface AWSCloudTrailAsync
createTrailRequest
- Container for the necessary parameters to
execute the CreateTrail operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<CreateTrailResult> createTrailAsync(CreateTrailRequest createTrailRequest, AsyncHandler<CreateTrailRequest,CreateTrailResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
createTrailAsync
in interface AWSCloudTrailAsync
createTrailRequest
- Container for the necessary parameters to
execute the CreateTrail operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateTrailResult> updateTrailAsync(UpdateTrailRequest updateTrailRequest) throws AmazonServiceException, AmazonClientException
Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket.
updateTrailAsync
in interface AWSCloudTrailAsync
updateTrailRequest
- Container for the necessary parameters to
execute the UpdateTrail operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateTrailResult> updateTrailAsync(UpdateTrailRequest updateTrailRequest, AsyncHandler<UpdateTrailRequest,UpdateTrailResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket.
updateTrailAsync
in interface AWSCloudTrailAsync
updateTrailRequest
- Container for the necessary parameters to
execute the UpdateTrail operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<StopLoggingResult> stopLoggingAsync(StopLoggingRequest stopLoggingRequest) throws AmazonServiceException, AmazonClientException
Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording.
stopLoggingAsync
in interface AWSCloudTrailAsync
stopLoggingRequest
- Container for the necessary parameters to
execute the StopLogging operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<StopLoggingResult> stopLoggingAsync(StopLoggingRequest stopLoggingRequest, AsyncHandler<StopLoggingRequest,StopLoggingResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording.
stopLoggingAsync
in interface AWSCloudTrailAsync
stopLoggingRequest
- Container for the necessary parameters to
execute the StopLogging operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTrailsResult> describeTrailsAsync(DescribeTrailsRequest describeTrailsRequest) throws AmazonServiceException, AmazonClientException
Retrieves settings for the trail associated with the current region for your account.
describeTrailsAsync
in interface AWSCloudTrailAsync
describeTrailsRequest
- Container for the necessary parameters to
execute the DescribeTrails operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeTrailsResult> describeTrailsAsync(DescribeTrailsRequest describeTrailsRequest, AsyncHandler<DescribeTrailsRequest,DescribeTrailsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Retrieves settings for the trail associated with the current region for your account.
describeTrailsAsync
in interface AWSCloudTrailAsync
describeTrailsRequest
- Container for the necessary parameters to
execute the DescribeTrails operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<ListPublicKeysResult> listPublicKeysAsync(ListPublicKeysRequest listPublicKeysRequest) throws AmazonServiceException, AmazonClientException
Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.
NOTE:CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.
listPublicKeysAsync
in interface AWSCloudTrailAsync
listPublicKeysRequest
- Container for the necessary parameters to
execute the ListPublicKeys operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<ListPublicKeysResult> listPublicKeysAsync(ListPublicKeysRequest listPublicKeysRequest, AsyncHandler<ListPublicKeysRequest,ListPublicKeysResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.
NOTE:CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.
listPublicKeysAsync
in interface AWSCloudTrailAsync
listPublicKeysRequest
- Container for the necessary parameters to
execute the ListPublicKeys operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<AddTagsResult> addTagsAsync(AddTagsRequest addTagsRequest) throws AmazonServiceException, AmazonClientException
Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null.
addTagsAsync
in interface AWSCloudTrailAsync
addTagsRequest
- Container for the necessary parameters to
execute the AddTags operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<AddTagsResult> addTagsAsync(AddTagsRequest addTagsRequest, AsyncHandler<AddTagsRequest,AddTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null.
addTagsAsync
in interface AWSCloudTrailAsync
addTagsRequest
- Container for the necessary parameters to
execute the AddTags operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<StartLoggingResult> startLoggingAsync(StartLoggingRequest startLoggingRequest) throws AmazonServiceException, AmazonClientException
Starts the recording of AWS API calls and log file delivery for a trail.
startLoggingAsync
in interface AWSCloudTrailAsync
startLoggingRequest
- Container for the necessary parameters to
execute the StartLogging operation on AWSCloudTrail.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.public Future<StartLoggingResult> startLoggingAsync(StartLoggingRequest startLoggingRequest, AsyncHandler<StartLoggingRequest,StartLoggingResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Starts the recording of AWS API calls and log file delivery for a trail.
startLoggingAsync
in interface AWSCloudTrailAsync
startLoggingRequest
- Container for the necessary parameters to
execute the StartLogging operation on AWSCloudTrail.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AWSCloudTrail indicating
either a problem with the data in the request, or a server side issue.Copyright © 2015. All rights reserved.