Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.CloudTrail.StopLogging
Description
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.
See: AWS API Reference for StopLogging.
Creating a Request
Arguments
:: Text | |
-> StopLogging |
Creates a value of StopLogging
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data StopLogging Source
Passes the request to CloudTrail to stop logging AWS API calls for the specified account.
See: stopLogging
smart constructor.
Instances
Request Lenses
slName :: Lens' StopLogging Text Source
Specifies the name or the CloudTrail ARN of the trail for which CloudTrail will stop logging AWS API calls. The format of a trail ARN is 'arn:aws:cloudtrail:us-east-1:123456789012:trail\/MyTrail'.
Destructuring the Response
Arguments
:: Int | |
-> StopLoggingResponse |
Creates a value of StopLoggingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data StopLoggingResponse Source
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: stopLoggingResponse
smart constructor.
Response Lenses
slrsResponseStatus :: Lens' StopLoggingResponse Int Source
The response status code.