public interface AWSCloudTrailAsync extends AWSCloudTrail
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.
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.
|
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.
|
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, setRegion, shutdown, startLogging, stopLogging, updateTrail
Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest) throws AmazonServiceException, AmazonClientException
Lists the tags for the trail in the current region.
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.Future<ListTagsResult> listTagsAsync(ListTagsRequest listTagsRequest, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the tags for the trail in the current region.
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.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.
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.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.
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.Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest removeTagsRequest) throws AmazonServiceException, AmazonClientException
Removes the specified tags from a trail.
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.Future<RemoveTagsResult> removeTagsAsync(RemoveTagsRequest removeTagsRequest, AsyncHandler<RemoveTagsRequest,RemoveTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Removes the specified tags from a trail.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.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.
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.Future<DescribeTrailsResult> describeTrailsAsync(DescribeTrailsRequest describeTrailsRequest) throws AmazonServiceException, AmazonClientException
Retrieves settings for the trail associated with the current region for your account.
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.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.
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.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.
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.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.
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.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.
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.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.
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.Future<StartLoggingResult> startLoggingAsync(StartLoggingRequest startLoggingRequest) throws AmazonServiceException, AmazonClientException
Starts the recording of AWS API calls and log file delivery for a trail.
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.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.
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.