amazonka-cloudtrail-1.1.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.StopLogging

Contents

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.

Synopsis

Creating a Request

stopLogging Source

Arguments

:: Text

slName

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

Request Lenses

slName :: Lens' StopLogging Text Source

Communicates to CloudTrail the name of the trail for which to stop logging AWS API calls.

Destructuring the Response

stopLoggingResponse Source

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

slrsStatus :: Lens' StopLoggingResponse Int Source

The response status code.