Copyright | (c) 2013-2016 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. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException
will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.
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.