MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / usage

Function usage

go/cloudtrail/cloudtrailOps.go:312–329  ·  view source on GitHub ↗

snippet-end:[cloudtrail.go.list_trail_events] usage displays information on using this app Inputs: none Output: none

()

Source from the content-addressed store, hash-verified

310//
311// none
312func usage() {
313 fmt.Println("Usage:")
314 fmt.Println("")
315 fmt.Println(" go run sqsQueueOps.go OPERATION")
316 fmt.Println("")
317 fmt.Println("where OPERATION is one of:")
318 fmt.Println(" -l")
319 fmt.Println(" list your trails")
320 fmt.Println(" -c TRAIL-NAME BUCKET-NAME")
321 fmt.Println(" create trail TRAIL-NAME that gets events from bucket BUCKET-NAME")
322 fmt.Println(" -d TRAIL-NAME")
323 fmt.Println(" delete trail TRAIL-NAME")
324 fmt.Println(" -e USER-NAME TRAIL-NAME")
325 fmt.Println(" show events from the user USER-NAME for trail TRAIL-NAME")
326 fmt.Println(" -h")
327 fmt.Println(" print this message and quit")
328 fmt.Println("")
329}
330
331func main() {
332 // Parse args ourselves so the user can request only one operation

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected