amazonka-cloudtrail-1.6.0: 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.Types

Contents

Description

 
Synopsis

Service Configuration

cloudTrail :: Service #

API version 2013-11-01 of the Amazon CloudTrail SDK configuration.

Errors

_InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError #

Occurs if the timestamp values are invalid. Either the start time occurs after the end time or the time range is outside the range of possible values.

_InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the policy on the S3 bucket is not sufficient.

_MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the maximum number of trails is reached.

_UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the requested operation is not supported.

_KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is deprecated.

_InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

_InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the policy on the SNS topic is not sufficient.

_InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided role is not valid.

_TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError #

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.

_CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

_InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError #

Occurs when an invalid lookup attribute is specified.

_InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
  • Start with a letter or number, and end with a letter or number
  • Be between 3 and 128 characters
  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
  • Not be in IP address format (for example, 192.168.5.4)

_InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided SNS topic name is not valid.

_ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the specified resource type is not supported by CloudTrail.

_CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError #

Cannot set a CloudWatch Logs delivery for this region.

_KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the KMS key does not exist, or when the S3 bucket and the KMS key are not in the same region.

_TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the trail with the given name is not found.

_InvalidEventSelectorsException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the PutEventSelectors operation is called with an invalid number of event selectors, data resources, or an invalid value for a parameter:

  • Specify a valid number of event selectors (1 to 5) for a trail.
  • Specify a valid number of data resources (1 to 250) for an event selector.
  • Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.

_TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is deprecated.

_InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided S3 bucket name is not valid.

_InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided CloudWatch log group is not valid.

_KMSException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.

_S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the specified S3 bucket does not exist.

_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError #

Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.

_InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the key or value specified for the tag does not match the regular expression ^([\p{L}\p{Z}\p{N}_.:/=+\-]*)$@ .

_OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the requested operation is not permitted.

_InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown if the limit specified is invalid.

_TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the specified trail already exists.

_InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the provided S3 prefix is not valid.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the specified resource is not found.

_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the combination of parameters provided is not valid.

_InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when the KMS key ARN is invalid.

_InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError #

This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.

LookupAttributeKey

data LookupAttributeKey #

Instances
Bounded LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Enum LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Eq LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Data LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Methods

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

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

toConstr :: LookupAttributeKey -> Constr #

dataTypeOf :: LookupAttributeKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Read LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Show LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Generic LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Associated Types

type Rep LookupAttributeKey :: * -> * #

Hashable LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToJSON LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToHeader LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToQuery LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToByteString LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

FromText LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToText LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

NFData LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Methods

rnf :: LookupAttributeKey -> () #

type Rep LookupAttributeKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

type Rep LookupAttributeKey = D1 (MetaData "LookupAttributeKey" "Network.AWS.CloudTrail.Types.Sum" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) ((C1 (MetaCons "EventId" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "EventName" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "EventSource" PrefixI False) (U1 :: * -> *))) :+: (C1 (MetaCons "ResourceName" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "ResourceType" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Username" PrefixI False) (U1 :: * -> *))))

ReadWriteType

data ReadWriteType #

Constructors

All 
ReadOnly 
WriteOnly 
Instances
Bounded ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Enum ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Eq ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Data ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Methods

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

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

toConstr :: ReadWriteType -> Constr #

dataTypeOf :: ReadWriteType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Read ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Show ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Generic ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Associated Types

type Rep ReadWriteType :: * -> * #

Hashable ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToJSON ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

FromJSON ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToHeader ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToQuery ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToByteString ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

FromText ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

ToText ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Methods

toText :: ReadWriteType -> Text #

NFData ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

Methods

rnf :: ReadWriteType -> () #

type Rep ReadWriteType # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Sum

type Rep ReadWriteType = D1 (MetaData "ReadWriteType" "Network.AWS.CloudTrail.Types.Sum" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "All" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "ReadOnly" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "WriteOnly" PrefixI False) (U1 :: * -> *)))

DataResource

data DataResource #

The Amazon S3 objects that you specify in your event selectors for your trail to log data events. Data events are object-level API operations that access S3 objects, such as GetObject , DeleteObject , and PutObject . You can specify up to 250 S3 buckets and object prefixes for a trail.

Example

  • You create an event selector for a trail and specify an S3 bucket and an empty prefix, such as arn:aws:s3:::bucket-1/ .
  • You upload an image file to bucket-1 .
  • The PutObject API operation occurs on an object in the S3 bucket that you specified in the event selector. The trail processes and logs the event.
  • You upload another image file to a different S3 bucket named arn:aws:s3:::bucket-2 .
  • The event occurs on an object in an S3 bucket that you didn't specify in the event selector. The trail doesn’t log the event.

See: dataResource smart constructor.

Instances
Eq DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: DataResource -> Constr #

dataTypeOf :: DataResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep DataResource :: * -> * #

Hashable DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

ToJSON DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

FromJSON DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: DataResource -> () #

type Rep DataResource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep DataResource = D1 (MetaData "DataResource" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "DataResource'" PrefixI True) (S1 (MetaSel (Just "_drValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_drType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

dataResource :: DataResource #

Creates a value of DataResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • drValues - A list of ARN-like strings for the specified S3 objects. To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as arn:aws:s3:::bucket-1/ . The trail logs data events for all objects in this S3 bucket. To log data events for specific objects, specify the S3 bucket and object prefix such as arn:aws:s3:::bucket-1/example-images . The trail logs data events for objects in this S3 bucket that match the prefix.
  • drType - The resource type in which you want to log data events. You can specify only the following value: AWS::S3::Object .

drValues :: Lens' DataResource [Text] #

A list of ARN-like strings for the specified S3 objects. To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as arn:aws:s3:::bucket-1/ . The trail logs data events for all objects in this S3 bucket. To log data events for specific objects, specify the S3 bucket and object prefix such as arn:aws:s3:::bucket-1/example-images . The trail logs data events for objects in this S3 bucket that match the prefix.

drType :: Lens' DataResource (Maybe Text) #

The resource type in which you want to log data events. You can specify only the following value: AWS::S3::Object .

Event

data Event #

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

See: event smart constructor.

Instances
Eq Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Data Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: Event -> Constr #

dataTypeOf :: Event -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep Event :: * -> * #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

Hashable Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

hashWithSalt :: Int -> Event -> Int #

hash :: Event -> Int #

FromJSON Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: Event -> () #

type Rep Event # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

event :: Event #

Creates a value of Event with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • eUsername - A user name or role name of the requester that called the API in the event returned.
  • eResources - A list of resources referenced by the event returned.
  • eEventTime - The date and time of the event returned.
  • eCloudTrailEvent - A JSON string that contains a representation of the event returned.
  • eEventName - The name of the event returned.
  • eEventSource - The AWS service that the request was made to.
  • eEventId - The CloudTrail ID of the event returned.

eUsername :: Lens' Event (Maybe Text) #

A user name or role name of the requester that called the API in the event returned.

eResources :: Lens' Event [Resource] #

A list of resources referenced by the event returned.

eEventTime :: Lens' Event (Maybe UTCTime) #

The date and time of the event returned.

eCloudTrailEvent :: Lens' Event (Maybe Text) #

A JSON string that contains a representation of the event returned.

eEventName :: Lens' Event (Maybe Text) #

The name of the event returned.

eEventSource :: Lens' Event (Maybe Text) #

The AWS service that the request was made to.

eEventId :: Lens' Event (Maybe Text) #

The CloudTrail ID of the event returned.

EventSelector

data EventSelector #

Use event selectors to specify whether you want your trail to log management and/or data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.

You can configure up to five event selectors for a trail.

See: eventSelector smart constructor.

Instances
Eq EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: EventSelector -> Constr #

dataTypeOf :: EventSelector -> DataType #

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

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

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

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

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

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

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

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

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

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

Read EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep EventSelector :: * -> * #

Hashable EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

ToJSON EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

FromJSON EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: EventSelector -> () #

type Rep EventSelector # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep EventSelector = D1 (MetaData "EventSelector" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "EventSelector'" PrefixI True) (S1 (MetaSel (Just "_esDataResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DataResource])) :*: (S1 (MetaSel (Just "_esReadWriteType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReadWriteType)) :*: S1 (MetaSel (Just "_esIncludeManagementEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))

eventSelector :: EventSelector #

Creates a value of EventSelector with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • esDataResources - CloudTrail supports logging only data events for S3 objects. You can specify up to 250 S3 buckets and object prefixes for a trail. For more information, see Data Events in the AWS CloudTrail User Guide .
  • esReadWriteType - Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation. By default, the value is All .
  • esIncludeManagementEvents - Specify if you want your event selector to include management events for your trail. For more information, see Management Events in the AWS CloudTrail User Guide . By default, the value is true .

esDataResources :: Lens' EventSelector [DataResource] #

CloudTrail supports logging only data events for S3 objects. You can specify up to 250 S3 buckets and object prefixes for a trail. For more information, see Data Events in the AWS CloudTrail User Guide .

esReadWriteType :: Lens' EventSelector (Maybe ReadWriteType) #

Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation. By default, the value is All .

esIncludeManagementEvents :: Lens' EventSelector (Maybe Bool) #

Specify if you want your event selector to include management events for your trail. For more information, see Management Events in the AWS CloudTrail User Guide . By default, the value is true .

LookupAttribute

data LookupAttribute #

Specifies an attribute and value that filter the events returned.

See: lookupAttribute smart constructor.

Instances
Eq LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: LookupAttribute -> Constr #

dataTypeOf :: LookupAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep LookupAttribute :: * -> * #

Hashable LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

ToJSON LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: LookupAttribute -> () #

type Rep LookupAttribute # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep LookupAttribute = D1 (MetaData "LookupAttribute" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "LookupAttribute'" PrefixI True) (S1 (MetaSel (Just "_laAttributeKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 LookupAttributeKey) :*: S1 (MetaSel (Just "_laAttributeValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))

lookupAttribute #

Creates a value of LookupAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

laAttributeKey :: Lens' LookupAttribute LookupAttributeKey #

Specifies an attribute on which to filter the events returned.

laAttributeValue :: Lens' LookupAttribute Text #

Specifies a value for the specified AttributeKey.

PublicKey

data PublicKey #

Contains information about a returned public key.

See: publicKey smart constructor.

Instances
Eq PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: PublicKey -> Constr #

dataTypeOf :: PublicKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep PublicKey :: * -> * #

Hashable PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

FromJSON PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: PublicKey -> () #

type Rep PublicKey # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep PublicKey = D1 (MetaData "PublicKey" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "PublicKey'" PrefixI True) ((S1 (MetaSel (Just "_pkFingerprint") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pkValidityEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_pkValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Base64)) :*: S1 (MetaSel (Just "_pkValidityStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)))))

publicKey :: PublicKey #

Creates a value of PublicKey with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pkFingerprint - The fingerprint of the public key.
  • pkValidityEndTime - The ending time of validity of the public key.
  • pkValue - The DER encoded public key value in PKCS#1 format.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.
  • pkValidityStartTime - The starting time of validity of the public key.

pkFingerprint :: Lens' PublicKey (Maybe Text) #

The fingerprint of the public key.

pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime) #

The ending time of validity of the public key.

pkValue :: Lens' PublicKey (Maybe ByteString) #

The DER encoded public key value in PKCS#1 format.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime) #

The starting time of validity of the public key.

Resource

data Resource #

Specifies the type and name of a resource referenced by an event.

See: resource smart constructor.

Instances
Eq Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: Resource -> Constr #

dataTypeOf :: Resource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep Resource :: * -> * #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

Hashable Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

FromJSON Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: Resource -> () #

type Rep Resource # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep Resource = D1 (MetaData "Resource" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "Resource'" PrefixI True) (S1 (MetaSel (Just "_rResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

resource :: Resource #

Creates a value of Resource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rResourceType - The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup .
  • rResourceName - The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.

rResourceType :: Lens' Resource (Maybe Text) #

The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup .

rResourceName :: Lens' Resource (Maybe Text) #

The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.

ResourceTag

data ResourceTag #

A resource tag.

See: resourceTag smart constructor.

Instances
Eq ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Data ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: ResourceTag -> Constr #

dataTypeOf :: ResourceTag -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Generic ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep ResourceTag :: * -> * #

Hashable ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

FromJSON ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: ResourceTag -> () #

type Rep ResourceTag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep ResourceTag = D1 (MetaData "ResourceTag" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "ResourceTag'" PrefixI True) (S1 (MetaSel (Just "_rResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rTagsList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag]))))

resourceTag :: ResourceTag #

Creates a value of ResourceTag with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rResourceId :: Lens' ResourceTag (Maybe Text) #

Specifies the ARN of the resource.

rTagsList :: Lens' ResourceTag [Tag] #

A list of tags.

Tag

data Tag #

A custom key-value pair associated with a resource such as a CloudTrail trail.

See: tag smart constructor.

Instances
Eq Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Data Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: Tag -> Constr #

dataTypeOf :: Tag -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Generic Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep Tag :: * -> * #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Hashable Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

ToJSON Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

FromJSON Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: Tag -> () #

type Rep Tag # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep Tag = D1 (MetaData "Tag" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "Tag'" PrefixI True) (S1 (MetaSel (Just "_tagValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tagKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))

tag #

Arguments

:: Text

tagKey

-> Tag 

Creates a value of Tag with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tagValue - The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
  • tagKey - The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

tagValue :: Lens' Tag (Maybe Text) #

The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.

tagKey :: Lens' Tag Text #

The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

Trail

data Trail #

The settings for a trail.

See: trail smart constructor.

Instances
Eq Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

(==) :: Trail -> Trail -> Bool #

(/=) :: Trail -> Trail -> Bool #

Data Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

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

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

toConstr :: Trail -> Constr #

dataTypeOf :: Trail -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Show Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

showsPrec :: Int -> Trail -> ShowS #

show :: Trail -> String #

showList :: [Trail] -> ShowS #

Generic Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Associated Types

type Rep Trail :: * -> * #

Methods

from :: Trail -> Rep Trail x #

to :: Rep Trail x -> Trail #

Hashable Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

hashWithSalt :: Int -> Trail -> Int #

hash :: Trail -> Int #

FromJSON Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

NFData Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

Methods

rnf :: Trail -> () #

type Rep Trail # 
Instance details

Defined in Network.AWS.CloudTrail.Types.Product

type Rep Trail = D1 (MetaData "Trail" "Network.AWS.CloudTrail.Types.Product" "amazonka-cloudtrail-1.6.0-DUpPQNLzTaD9qmm6mzqnGe" False) (C1 (MetaCons "Trail'" PrefixI True) (((S1 (MetaSel (Just "_tLogFileValidationEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_tTrailARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tS3KeyPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_tSNSTopicARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tSNSTopicName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_tCloudWatchLogsLogGroupARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_tHomeRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tIncludeGlobalServiceEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 (MetaSel (Just "_tHasCustomEventSelectors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_tCloudWatchLogsRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_tS3BucketName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tIsMultiRegionTrail") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))))

trail :: Trail #

Creates a value of Trail with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tLogFileValidationEnabled - Specifies whether log file validation is enabled.
  • tTrailARN - Specifies the ARN of the trail. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
  • tS3KeyPrefix - Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files .The maximum length is 200 characters.
  • tSNSTopicARN - Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is: arn:aws:sns:us-east-1:123456789012:MyTopic
  • tSNSTopicName - This field is deprecated. Use SnsTopicARN.
  • tCloudWatchLogsLogGroupARN - Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.
  • tKMSKeyId - Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
  • tHomeRegion - The region in which the trail was created.
  • tName - Name of the trail set by calling CreateTrail . The maximum length is 128 characters.
  • tIncludeGlobalServiceEvents - Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False .
  • tHasCustomEventSelectors - Specifies if the trail has custom event selectors.
  • tCloudWatchLogsRoleARN - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
  • tS3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements .
  • tIsMultiRegionTrail - Specifies whether the trail belongs only to one region or exists in all regions.

tLogFileValidationEnabled :: Lens' Trail (Maybe Bool) #

Specifies whether log file validation is enabled.

tTrailARN :: Lens' Trail (Maybe Text) #

Specifies the ARN of the trail. The format of a trail ARN is: arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

tS3KeyPrefix :: Lens' Trail (Maybe Text) #

Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files .The maximum length is 200 characters.

tSNSTopicARN :: Lens' Trail (Maybe Text) #

Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is: arn:aws:sns:us-east-1:123456789012:MyTopic

tSNSTopicName :: Lens' Trail (Maybe Text) #

This field is deprecated. Use SnsTopicARN.

tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text) #

Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

tKMSKeyId :: Lens' Trail (Maybe Text) #

Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

tHomeRegion :: Lens' Trail (Maybe Text) #

The region in which the trail was created.

tName :: Lens' Trail (Maybe Text) #

Name of the trail set by calling CreateTrail . The maximum length is 128 characters.

tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool) #

Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False .

tHasCustomEventSelectors :: Lens' Trail (Maybe Bool) #

Specifies if the trail has custom event selectors.

tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text) #

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

tS3BucketName :: Lens' Trail (Maybe Text) #

Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements .

tIsMultiRegionTrail :: Lens' Trail (Maybe Bool) #

Specifies whether the trail belongs only to one region or exists in all regions.