logging: logging

Description Usage Arguments Details References See Also Examples

Description

Start/stop logging

Usage

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
  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)

## End(Not run)

aws.cloudtrail documentation built on May 2, 2019, 10:25 a.m.