amazonka-cloudtrail-1.6.0: Amazon CloudTrail SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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. 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.

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:

  • slName - 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

data StopLogging Source #

Passes the request to CloudTrail to stop logging AWS API calls for the specified account.

See: stopLogging smart constructor.

Instances

Eq StopLogging Source # 
Data StopLogging Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StopLogging -> c StopLogging #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StopLogging #

toConstr :: StopLogging -> Constr #

dataTypeOf :: StopLogging -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StopLogging) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StopLogging) #

gmapT :: (forall b. Data b => b -> b) -> StopLogging -> StopLogging #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StopLogging -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StopLogging -> r #

gmapQ :: (forall d. Data d => d -> u) -> StopLogging -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StopLogging -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StopLogging -> m StopLogging #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StopLogging -> m StopLogging #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StopLogging -> m StopLogging #

Read StopLogging Source # 
Show StopLogging Source # 
Generic StopLogging Source # 

Associated Types

type Rep StopLogging :: * -> * #

Hashable StopLogging Source # 
ToJSON StopLogging Source # 
NFData StopLogging Source # 

Methods

rnf :: StopLogging -> () #

AWSRequest StopLogging Source # 
ToHeaders StopLogging Source # 

Methods

toHeaders :: StopLogging -> [Header] #

ToPath StopLogging Source # 
ToQuery StopLogging Source # 
type Rep StopLogging Source # 
type Rep StopLogging = D1 * (MetaData "StopLogging" "Network.AWS.CloudTrail.StopLogging" "amazonka-cloudtrail-1.6.0-CIARAmXp7eLLpjoE8ijUGs" True) (C1 * (MetaCons "StopLogging'" PrefixI True) (S1 * (MetaSel (Just Symbol "_slName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs StopLogging Source # 

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

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.

Instances

Eq StopLoggingResponse Source # 
Data StopLoggingResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StopLoggingResponse -> c StopLoggingResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StopLoggingResponse #

toConstr :: StopLoggingResponse -> Constr #

dataTypeOf :: StopLoggingResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StopLoggingResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StopLoggingResponse) #

gmapT :: (forall b. Data b => b -> b) -> StopLoggingResponse -> StopLoggingResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StopLoggingResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StopLoggingResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> StopLoggingResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StopLoggingResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StopLoggingResponse -> m StopLoggingResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StopLoggingResponse -> m StopLoggingResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StopLoggingResponse -> m StopLoggingResponse #

Read StopLoggingResponse Source # 
Show StopLoggingResponse Source # 
Generic StopLoggingResponse Source # 
NFData StopLoggingResponse Source # 

Methods

rnf :: StopLoggingResponse -> () #

type Rep StopLoggingResponse Source # 
type Rep StopLoggingResponse = D1 * (MetaData "StopLoggingResponse" "Network.AWS.CloudTrail.StopLogging" "amazonka-cloudtrail-1.6.0-CIARAmXp7eLLpjoE8ijUGs" True) (C1 * (MetaCons "StopLoggingResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_slrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

slrsResponseStatus :: Lens' StopLoggingResponse Int Source #

  • - | The response status code.