aws.cloudtrail (version 0.1.5)

start_logging: logging

Description

Start/stop logging

Usage

start_logging(name, ...)

stop_logging(name, ...)

Arguments

name

A character string specifying the name of a Cloudtrail or the ARN for a Cloudtrail, or an object of class “aws_cloudtrail”.

Additional arguments passed to cloudtrailHTTP.

Details

start_logging starts a

References

http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StartLogging.html, http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html

See Also

create_trail, trail_status

Examples

Run this code

  require("aws.s3")
  # create a bucket
  mybucket <- "mybucket_for_cloudtrail"
  stopifnot(put_bucket(mybucket))
  
  # create a trail
  trail <- create_trail("exampletrail", mybucket)
  # confirm trail created
  get_trails()

  # start/stop logging to the trail
  start_logging(trail)
  stop_logging(trail)
  
  # check trail status
  trail_status(trail)
  
  # delete trail
  delete_trail(trail)

Run the code above in your browser using DataLab