amazonka-cloudtrail-1.4.5: Amazon CloudTrail SDK.

Copyright(c) 2013-2016 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. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.

Synopsis

Creating a Request

startLogging #

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:

  • sName - Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

data StartLogging #

The request to CloudTrail to start logging AWS API calls for an account.

See: startLogging smart constructor.

Instances

Eq StartLogging # 
Data StartLogging # 

Methods

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

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

toConstr :: StartLogging -> Constr #

dataTypeOf :: StartLogging -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartLogging # 
Show StartLogging # 
Generic StartLogging # 

Associated Types

type Rep StartLogging :: * -> * #

Hashable StartLogging # 
ToJSON StartLogging # 
NFData StartLogging # 

Methods

rnf :: StartLogging -> () #

AWSRequest StartLogging # 
ToQuery StartLogging # 
ToPath StartLogging # 
ToHeaders StartLogging # 
type Rep StartLogging # 
type Rep StartLogging = D1 (MetaData "StartLogging" "Network.AWS.CloudTrail.StartLogging" "amazonka-cloudtrail-1.4.5-G6tTUvTzOJJEaWPMBOp3on" True) (C1 (MetaCons "StartLogging'" PrefixI True) (S1 (MetaSel (Just Symbol "_sName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs StartLogging # 

Request Lenses

sName :: Lens' StartLogging Text #

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs AWS API calls. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

Destructuring the Response

startLoggingResponse #

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 #

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

See: startLoggingResponse smart constructor.

Instances

Eq StartLoggingResponse # 
Data StartLoggingResponse # 

Methods

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

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

toConstr :: StartLoggingResponse -> Constr #

dataTypeOf :: StartLoggingResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StartLoggingResponse # 
Show StartLoggingResponse # 
Generic StartLoggingResponse # 
NFData StartLoggingResponse # 

Methods

rnf :: StartLoggingResponse -> () #

type Rep StartLoggingResponse # 
type Rep StartLoggingResponse = D1 (MetaData "StartLoggingResponse" "Network.AWS.CloudTrail.StartLogging" "amazonka-cloudtrail-1.4.5-G6tTUvTzOJJEaWPMBOp3on" True) (C1 (MetaCons "StartLoggingResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_srsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

srsResponseStatus :: Lens' StartLoggingResponse Int #

  • - | The response status code.