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 #

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 #

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

See: stopLogging smart constructor.

Instances
Eq StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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

Defined in Network.AWS.CloudTrail.StopLogging

Show StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Generic StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rep StopLogging :: Type -> Type #

Hashable StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

ToJSON StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

AWSRequest StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rs StopLogging :: Type #

ToHeaders StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

toHeaders :: StopLogging -> [Header] #

ToPath StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

ToQuery StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

NFData StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

rnf :: StopLogging -> () #

type Rep StopLogging # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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

Defined in Network.AWS.CloudTrail.StopLogging

Request Lenses

slName :: Lens' StopLogging Text #

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 #

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 #

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

See: stopLoggingResponse smart constructor.

Instances
Eq StopLoggingResponse # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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

Defined in Network.AWS.CloudTrail.StopLogging

Show StopLoggingResponse # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Generic StopLoggingResponse # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Associated Types

type Rep StopLoggingResponse :: Type -> Type #

NFData StopLoggingResponse # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

Methods

rnf :: StopLoggingResponse -> () #

type Rep StopLoggingResponse # 
Instance details

Defined in Network.AWS.CloudTrail.StopLogging

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

Response Lenses

slrsResponseStatus :: Lens' StopLoggingResponse Int #

  • - | The response status code.