Learn R Programming

paws (version 0.1.12)

cloudtrail: AWS CloudTrail

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 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 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 AWS CloudTrail User Guide for information about the data that is included with each AWS API call listed in the log files.

Usage

cloudtrail(config = list())

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

Service syntax

svc <- cloudtrail(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string"
    ),
    endpoint = "string",
    region = "string"
  )
)

Operations

add_tagsAdds one or more tags to a trail, up to a limit of 50
create_trailCreates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket
delete_trailDeletes a trail
describe_trailsRetrieves settings for one or more trails associated with the current region for your account
get_event_selectorsDescribes the settings for the event selectors that you configured for your trail
get_insight_selectorsDescribes the settings for the Insights event selectors that you configured for your trail
get_trailReturns settings information for a specified trail
get_trail_statusReturns a JSON-formatted list of information about the specified trail
list_public_keysReturns all public keys whose private keys were used to sign the digest files within the specified time range
list_tagsLists the tags for the trail in the current region
list_trailsLists trails that are in the current account
lookup_eventsLooks up management events or CloudTrail Insights events that are captured by CloudTrail
put_event_selectorsConfigures an event selector or advanced event selectors for your trail
put_insight_selectorsLets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail
remove_tagsRemoves the specified tags from a trail
start_loggingStarts the recording of AWS API calls and log file delivery for a trail
stop_loggingSuspends the recording of AWS API calls and log file delivery for the specified trail
update_trailUpdates the settings that specify delivery of log files

Examples

Run this code
if (FALSE) {
svc <- cloudtrail()
svc$add_tags(
  Foo = 123
)
}

Run the code above in your browser using DataLab