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 event, 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 event 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. The request includes a Trail structure that specifies the following:
Returns the appropriate HTTP status code if successful. If not, it returns either one of the CommonErrors or a FrontEndException with one of the following error codes:
MaximumNumberOfTrailsExceeded
An attempt was made to create more trails than allowed. You can only create one trail for each account in each region.
TrailAlreadyExists
At attempt was made to create a trail with a name that already exists.
S3BucketDoesNotExist
Specified Amazon S3 bucket does not exist.
InsufficientS3BucketPolicy
Policy on Amazon S3 bucket does not permit CloudTrail to write to your bucket. See the AWS AWS CloudTrail User Guide for the required bucket policy.
InsufficientSnsTopicPolicy
The policy on Amazon SNS topic does not permit CloudTrail to write to it. Can also occur when an Amazon SNS topic does not exist.
Parameters: | trail (dict) – Contains the Trail structure that specifies the settings for each trail. |
---|
Deletes a trail.
Parameters: | name (string) – The name of a trail to be deleted. |
---|
Retrieves the settings for some or all trails associated with an account. Returns a list of Trail structures in JSON format.
Parameters: | trail_name_list (list) – The list of Trail object names. |
---|
Returns GetTrailStatusResult, which contains a JSON-formatted list of information about the trail specified in the request. JSON fields include information such as delivery errors, Amazon SNS and Amazon S3 errors, and times that logging started and stopped for each trail.
Parameters: | name (string) – The name of the trail for which you are requesting the current status. |
---|
Starts the processing of recording user activity events and log file delivery for a trail.
Parameters: | name (string) – The name of the Trail for which CloudTrail logs events. |
---|
Suspends the recording of user activity events 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 logging activity.
Parameters: | name (string) – Communicates to CloudTrail the name of the Trail for which to stop logging events. |
---|
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. You can use this action to designate an existing bucket for log delivery, or to create a new bucket and prefix. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. If you create a new bucket using UpdateTrail, you need to apply the policy to the bucket using one of the means provided by the Amazon S3 service.
The request includes a Trail structure that specifies the following:
CreateTrail returns the appropriate HTTP status code if successful. If not, it returns either one of the common errors or one of the exceptions listed at the end of this page.
Parameters: | trail (dict) – Represents the Trail structure that contains the CloudTrail setting for an account. |
---|
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.