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 Source #

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 Source #

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

See: startLogging smart constructor.

Instances

Eq StartLogging Source # 
Data StartLogging Source # 

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 Source # 
Show StartLogging Source # 
Generic StartLogging Source # 

Associated Types

type Rep StartLogging :: * -> * #

Hashable StartLogging Source # 
ToJSON StartLogging Source # 
NFData StartLogging Source # 

Methods

rnf :: StartLogging -> () #

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

Request Lenses

sName :: Lens' StartLogging Text Source #

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 Source #

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 Source #

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

See: startLoggingResponse smart constructor.

Instances

Eq StartLoggingResponse Source # 
Data StartLoggingResponse Source # 

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 Source # 
Show StartLoggingResponse Source # 
Generic StartLoggingResponse Source # 
NFData StartLoggingResponse Source # 

Methods

rnf :: StartLoggingResponse -> () #

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

Response Lenses

srsResponseStatus :: Lens' StartLoggingResponse Int Source #

  • - | The response status code.