Get all available regions for the AWS Cloudtrail service.
Return type: | list |
---|---|
Returns: | A list of boto.regioninfo.RegionInfo |
AWS Cloud Trail 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.
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.
alias of JSONResponseError
From the command line, use create-subscription.
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
Support for passing Trail as a parameter ends as early as February 25, 2014. The request and response examples in this topic show the use of parameters as well as a Trail object. Until Trail is removed, you can use either Trail or the parameter list.
Parameters: |
|
---|
Retrieves the settings for some or all trails associated with an account.
Parameters: | trail_name_list (list) – The list of trails. |
---|
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.
The CloudTrail API is currently undergoing revision. This action currently returns both new fields and fields slated for removal from the API. The following lists indicate the plans for each field:
List of Members Planned for Ongoing Support
List of Members Scheduled for Removal
No replacements have been created for LatestDeliveryAttemptSucceeded and LatestNotificationAttemptSucceeded . Use LatestDeliveryError and LatestNotificationError to evaluate success or failure of log delivery or notification. Empty values returned for these fields indicate success. An error in LatestDeliveryError generally indicates either a missing bucket or insufficient permissions to write to the bucket. Similarly, an error in LatestNotificationError indicates either a missing topic or insufficient permissions.
Parameters: | name (string) – The name of the trail for which you are requesting the current status. |
---|
Starts the recording of AWS API calls and log file delivery for a trail.
Parameters: | name (string) – The name of the trail for which CloudTrail logs AWS API calls. |
---|
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.
Parameters: | name (string) – Communicates to CloudTrail the name of the trail for which to stop logging AWS API calls. |
---|
From the command line, use update-subscription.
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.
Support for passing Trail as a parameter ends as early as February 25, 2014. The request and response examples in this topic show the use of parameters as well as a Trail object. Until Trail is removed, you can use either Trail or the parameter list.
Parameters: |
|
---|
Exceptions that are specific to the cloudtrail module.
Raised when the S3 bucket does not allow Cloudtrail to write files into the prefix.
Raised when the SNS topic does not allow Cloudtrail to post messages.
Raised when there was an internal Cloudtrail error.
Raised when an invalid S3 bucket name is passed to Cloudtrail.
Raised when an invalid key prefix is given.
Raised when an invalid SNS topic name is passed to Cloudtrail.
Raised when the trail name is invalid.
Raised when no more trails can be created.
Raised when the given S3 bucket does not exist.
Raised when the given trail name already exists.
Raised when the given trail name is not found.
Raised when no trail name was provided.