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.StartLogging
Description
Starts the recording of AWS API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.
Creating a Request
Arguments
:: Text | |
-> StartLogging |
Creates a value of StartLogging
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sName
- Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is:arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
data StartLogging #
The request to CloudTrail to start logging AWS API calls for an account.
See: startLogging
smart constructor.
Instances
Request Lenses
sName :: Lens' StartLogging Text #
Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
Destructuring the Response
Arguments
:: Int | |
-> StartLoggingResponse |
Creates a value of StartLoggingResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srsResponseStatus
- -- | The response status code.
data StartLoggingResponse #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: startLoggingResponse
smart constructor.
Response Lenses
srsResponseStatus :: Lens' StartLoggingResponse Int #
- - | The response status code.