amazonka-cloudtrail-1.2.0: Amazon CloudTrail SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudTrail.StartLogging

Contents

Description

Starts the recording of AWS API calls and log file delivery for a trail.

See: AWS API Reference for StartLogging.

Synopsis

Creating a Request

startLogging Source

Arguments

:: Text

sName

-> 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:

Request Lenses

sName :: Lens' StartLogging Text Source

The name of the trail for which CloudTrail logs AWS API calls.

Destructuring the Response

startLoggingResponse Source

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:

data StartLoggingResponse Source

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: startLoggingResponse smart constructor.

Response Lenses

srsStatus :: Lens' StartLoggingResponse Int Source

The response status code.