Start/stop logging
start_logging(name, ...)stop_logging(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
.
start_logging
starts a
http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StartLogging.html, http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_StopLogging.html
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