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

Defined in Network.AWS.CloudTrail.StartLogging

Data StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.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 Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Show StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Generic StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Associated Types

type Rep StartLogging :: Type -> Type #

Hashable StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

ToJSON StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

AWSRequest StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Associated Types

type Rs StartLogging :: Type #

ToHeaders StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

ToPath StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

ToQuery StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

NFData StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Methods

rnf :: StartLogging -> () #

type Rep StartLogging Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

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

Defined in Network.AWS.CloudTrail.StartLogging

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

Defined in Network.AWS.CloudTrail.StartLogging

Data StartLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

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

Defined in Network.AWS.CloudTrail.StartLogging

Show StartLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Generic StartLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Associated Types

type Rep StartLoggingResponse :: Type -> Type #

NFData StartLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

Methods

rnf :: StartLoggingResponse -> () #

type Rep StartLoggingResponse Source # 
Instance details

Defined in Network.AWS.CloudTrail.StartLogging

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

Response Lenses

srsResponseStatus :: Lens' StartLoggingResponse Int Source #

  • - | The response status code.