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
 Declaration Syntax| C# | 
StopLoggingResponse StopLogging( StopLoggingRequest stopLoggingRequest )
 Parameters
 Parameters- stopLoggingRequest (StopLoggingRequest)
- Container for the necessary parameters to execute the StopLogging service method on AmazonCloudTrail.
 Return Value
 Return ValueThe response from the StopLogging service method, as returned by AmazonCloudTrail.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| InvalidTrailNameException | |
| TrailNotFoundException |