Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording.
Declaration Syntax
C# |
StopLoggingResponse StopLogging( StopLoggingRequest stopLoggingRequest )
Parameters
- stopLoggingRequest (StopLoggingRequest)
- Container for the necessary parameters to execute the StopLogging service method on AmazonCloudTrail.
Return Value
The response from the StopLogging service method, as returned by AmazonCloudTrail.
Exceptions
Exception | Condition |
---|---|
InvalidTrailNameException | |
TrailNotFoundException |