amazonka-cloudtrail-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Data StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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 # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Show StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Generic StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rep StopLogging :: Type -> Type #

Hashable StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

ToJSON StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

AWSRequest StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rs StopLogging :: Type #

ToHeaders StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

toHeaders :: StopLogging -> [Header] #

ToPath StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

ToQuery StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

NFData StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

rnf :: StopLogging -> () #

type Rep StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

type Rep StopLogging = D1 (MetaData "StopLogging" "Network.AWS.CloudTrail.StopLogging" "amazonka-cloudtrail-1.6.1-1ASQobB9oxr6dsaqg3j95A" True) (C1 (MetaCons "StopLogging'" PrefixI True) (S1 (MetaSel (Just "_slName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs StopLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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 # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Data StopLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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 # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Show StopLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Generic StopLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rep StopLoggingResponse :: Type -> Type #

NFData StopLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

rnf :: StopLoggingResponse -> () #

type Rep StopLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

type Rep StopLoggingResponse = D1 (MetaData "StopLoggingResponse" "Network.AWS.CloudTrail.StopLogging" "amazonka-cloudtrail-1.6.1-1ASQobB9oxr6dsaqg3j95A" True) (C1 (MetaCons "StopLoggingResponse'" PrefixI True) (S1 (MetaSel (Just "_slrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

slrsResponseStatus :: Lens' StopLoggingResponse Int Source #

  • - | The response status code.