Class: AWS.CloudTrail
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.CloudTrail
- Identifier:
- cloudtrail
- API Version:
- 2013-11-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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 Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.
See the CloudTrail User Guide for information about the data that is included with each Amazon Web Services API call listed in the log files.
Sending a Request Using CloudTrail
var cloudtrail = new AWS.CloudTrail();
cloudtrail.addTags(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the CloudTrail object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var cloudtrail = new AWS.CloudTrail({apiVersion: '2013-11-01'});
You can also set the API version globally in AWS.config.apiVersions using
the cloudtrail service identifier:
AWS.config.apiVersions = {
cloudtrail: '2013-11-01',
// other service API versions
};
var cloudtrail = new AWS.CloudTrail();
Constructor Summary collapse
-
new AWS.CloudTrail(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addTags(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to a trail, event data store, or channel, up to a limit of 50.
-
cancelQuery(params = {}, callback) ⇒ AWS.Request
Cancels a query if the query is not in a terminated state, such as
CANCELLED,FAILED,TIMED_OUT, orFINISHED. -
createChannel(params = {}, callback) ⇒ AWS.Request
Creates a channel for CloudTrail to ingest events from a partner or external source.
-
createEventDataStore(params = {}, callback) ⇒ AWS.Request
Creates a new event data store.
.
-
createTrail(params = {}, callback) ⇒ AWS.Request
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
-
deleteChannel(params = {}, callback) ⇒ AWS.Request
Deletes a channel.
.
-
deleteEventDataStore(params = {}, callback) ⇒ AWS.Request
Disables the event data store specified by
EventDataStore, which accepts an event data store ARN. -
deleteResourcePolicy(params = {}, callback) ⇒ AWS.Request
Deletes the resource-based policy attached to the CloudTrail channel.
-
deleteTrail(params = {}, callback) ⇒ AWS.Request
Deletes a trail.
-
deregisterOrganizationDelegatedAdmin(params = {}, callback) ⇒ AWS.Request
Removes CloudTrail delegated administrator permissions from a member account in an organization.
.
-
describeQuery(params = {}, callback) ⇒ AWS.Request
Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status.
-
describeTrails(params = {}, callback) ⇒ AWS.Request
Retrieves settings for one or more trails associated with the current Region for your account.
.
-
disableFederation(params = {}, callback) ⇒ AWS.Request
Disables Lake query federation on the specified event data store.
-
enableFederation(params = {}, callback) ⇒ AWS.Request
Enables Lake query federation on the specified event data store.
-
getChannel(params = {}, callback) ⇒ AWS.Request
Returns information about a specific channel.
-
getEventDataStore(params = {}, callback) ⇒ AWS.Request
Returns information about an event data store specified as either an ARN or the ID portion of the ARN.
.
-
getEventSelectors(params = {}, callback) ⇒ AWS.Request
Describes the settings for the event selectors that you configured for your trail.
-
getImport(params = {}, callback) ⇒ AWS.Request
Returns information about a specific import.
-
getInsightSelectors(params = {}, callback) ⇒ AWS.Request
Describes the settings for the Insights event selectors that you configured for your trail or event data store.
-
getQueryResults(params = {}, callback) ⇒ AWS.Request
Gets event data results of a query.
-
getResourcePolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel.
-
getTrail(params = {}, callback) ⇒ AWS.Request
Returns settings information for a specified trail.
.
-
getTrailStatus(params = {}, callback) ⇒ AWS.Request
Returns a JSON-formatted list of information about the specified trail.
-
listChannels(params = {}, callback) ⇒ AWS.Request
Lists the channels in the current account, and their source names.
-
listEventDataStores(params = {}, callback) ⇒ AWS.Request
Returns information about all event data stores in the account, in the current Region.
.
-
listImportFailures(params = {}, callback) ⇒ AWS.Request
Returns a list of failures for the specified import.
-
listImports(params = {}, callback) ⇒ AWS.Request
Returns information on all imports, or a select set of imports by
ImportStatusorDestination. -
listInsightsMetricData(params = {}, callback) ⇒ AWS.Request
Returns Insights metrics data for trails that have enabled Insights.
-
listPublicKeys(params = {}, callback) ⇒ AWS.Request
Returns all public keys whose private keys were used to sign the digest files within the specified time range.
-
listQueries(params = {}, callback) ⇒ AWS.Request
Returns a list of queries and query statuses for the past seven days.
-
listTags(params = {}, callback) ⇒ AWS.Request
Lists the tags for the specified trails, event data stores, or channels in the current Region.
.
-
listTrails(params = {}, callback) ⇒ AWS.Request
Lists trails that are in the current account.
.
-
lookupEvents(params = {}, callback) ⇒ AWS.Request
Looks up management events or CloudTrail Insights events that are captured by CloudTrail.
-
putEventSelectors(params = {}, callback) ⇒ AWS.Request
Configures an event selector or advanced event selectors for your trail.
-
putInsightSelectors(params = {}, callback) ⇒ AWS.Request
Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail or event data store.
-
putResourcePolicy(params = {}, callback) ⇒ AWS.Request
Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services.
-
registerOrganizationDelegatedAdmin(params = {}, callback) ⇒ AWS.Request
Registers an organization’s member account as the CloudTrail delegated administrator.
.
-
removeTags(params = {}, callback) ⇒ AWS.Request
Removes the specified tags from a trail, event data store, or channel.
.
-
restoreEventDataStore(params = {}, callback) ⇒ AWS.Request
Restores a deleted event data store specified by
EventDataStore, which accepts an event data store ARN. -
startEventDataStoreIngestion(params = {}, callback) ⇒ AWS.Request
Starts the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN.
-
startImport(params = {}, callback) ⇒ AWS.Request
Starts an import of logged trail events from a source S3 bucket to a destination event data store.
-
startLogging(params = {}, callback) ⇒ AWS.Request
Starts the recording of Amazon Web Services API calls and log file delivery for a trail.
-
startQuery(params = {}, callback) ⇒ AWS.Request
Starts a CloudTrail Lake query.
-
stopEventDataStoreIngestion(params = {}, callback) ⇒ AWS.Request
Stops the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN.
-
stopImport(params = {}, callback) ⇒ AWS.Request
Stops a specified import.