packages feed

amazonka-cloudtrail 1.6.1 → 2.0

raw patch · 168 files changed

+19460/−4681 lines, 168 filesdep +case-insensitivedep ~amazonka-coredep ~amazonka-testdep ~basesetup-changedPVP ok

version bump matches the API change (PVP)

Dependencies added: case-insensitive

Dependency ranges changed: amazonka-core, amazonka-test, base

API changes (from Hackage documentation)

- Network.AWS.CloudTrail: All :: ReadWriteType
- Network.AWS.CloudTrail: EventId :: LookupAttributeKey
- Network.AWS.CloudTrail: EventName :: LookupAttributeKey
- Network.AWS.CloudTrail: EventSource :: LookupAttributeKey
- Network.AWS.CloudTrail: ReadOnly :: ReadWriteType
- Network.AWS.CloudTrail: ResourceName :: LookupAttributeKey
- Network.AWS.CloudTrail: ResourceType :: LookupAttributeKey
- Network.AWS.CloudTrail: Username :: LookupAttributeKey
- Network.AWS.CloudTrail: WriteOnly :: ReadWriteType
- Network.AWS.CloudTrail: _CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidEventSelectorsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _KMSException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: _UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail: cloudTrail :: Service
- Network.AWS.CloudTrail: data DataResource
- Network.AWS.CloudTrail: data Event
- Network.AWS.CloudTrail: data EventSelector
- Network.AWS.CloudTrail: data LookupAttribute
- Network.AWS.CloudTrail: data LookupAttributeKey
- Network.AWS.CloudTrail: data PublicKey
- Network.AWS.CloudTrail: data ReadWriteType
- Network.AWS.CloudTrail: data Resource
- Network.AWS.CloudTrail: data ResourceTag
- Network.AWS.CloudTrail: data Tag
- Network.AWS.CloudTrail: data Trail
- Network.AWS.CloudTrail: dataResource :: DataResource
- Network.AWS.CloudTrail: drType :: Lens' DataResource (Maybe Text)
- Network.AWS.CloudTrail: drValues :: Lens' DataResource [Text]
- Network.AWS.CloudTrail: eCloudTrailEvent :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail: eEventId :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail: eEventName :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail: eEventSource :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail: eEventTime :: Lens' Event (Maybe UTCTime)
- Network.AWS.CloudTrail: eResources :: Lens' Event [Resource]
- Network.AWS.CloudTrail: eUsername :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail: esDataResources :: Lens' EventSelector [DataResource]
- Network.AWS.CloudTrail: esIncludeManagementEvents :: Lens' EventSelector (Maybe Bool)
- Network.AWS.CloudTrail: esReadWriteType :: Lens' EventSelector (Maybe ReadWriteType)
- Network.AWS.CloudTrail: event :: Event
- Network.AWS.CloudTrail: eventSelector :: EventSelector
- Network.AWS.CloudTrail: laAttributeKey :: Lens' LookupAttribute LookupAttributeKey
- Network.AWS.CloudTrail: laAttributeValue :: Lens' LookupAttribute Text
- Network.AWS.CloudTrail: lookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
- Network.AWS.CloudTrail: pkFingerprint :: Lens' PublicKey (Maybe Text)
- Network.AWS.CloudTrail: pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime)
- Network.AWS.CloudTrail: pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime)
- Network.AWS.CloudTrail: pkValue :: Lens' PublicKey (Maybe ByteString)
- Network.AWS.CloudTrail: publicKey :: PublicKey
- Network.AWS.CloudTrail: rResourceId :: Lens' ResourceTag (Maybe Text)
- Network.AWS.CloudTrail: rResourceName :: Lens' Resource (Maybe Text)
- Network.AWS.CloudTrail: rResourceType :: Lens' Resource (Maybe Text)
- Network.AWS.CloudTrail: rTagsList :: Lens' ResourceTag [Tag]
- Network.AWS.CloudTrail: resource :: Resource
- Network.AWS.CloudTrail: resourceTag :: ResourceTag
- Network.AWS.CloudTrail: tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tHasCustomEventSelectors :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail: tHomeRegion :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail: tIsMultiRegionTrail :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail: tKMSKeyId :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tLogFileValidationEnabled :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail: tName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tS3BucketName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tS3KeyPrefix :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tSNSTopicARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tSNSTopicName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tTrailARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail: tag :: Text -> Tag
- Network.AWS.CloudTrail: tagKey :: Lens' Tag Text
- Network.AWS.CloudTrail: tagValue :: Lens' Tag (Maybe Text)
- Network.AWS.CloudTrail: trail :: Trail
- Network.AWS.CloudTrail.AddTags: addTags :: Text -> AddTags
- Network.AWS.CloudTrail.AddTags: addTagsResponse :: Int -> AddTagsResponse
- Network.AWS.CloudTrail.AddTags: atResourceId :: Lens' AddTags Text
- Network.AWS.CloudTrail.AddTags: atTagsList :: Lens' AddTags [Tag]
- Network.AWS.CloudTrail.AddTags: atrsResponseStatus :: Lens' AddTagsResponse Int
- Network.AWS.CloudTrail.AddTags: data AddTags
- Network.AWS.CloudTrail.AddTags: data AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Data.Data.Data Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Data.Data.Data Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance GHC.Read.Read Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance GHC.Read.Read Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance GHC.Show.Show Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance GHC.Show.Show Network.AWS.CloudTrail.AddTags.AddTagsResponse
- Network.AWS.CloudTrail.AddTags: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.AddTags: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.AddTags.AddTags
- Network.AWS.CloudTrail.CreateTrail: createTrail :: Text -> Text -> CreateTrail
- Network.AWS.CloudTrail.CreateTrail: createTrailResponse :: Int -> CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: ctCloudWatchLogsLogGroupARN :: Lens' CreateTrail (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctCloudWatchLogsRoleARN :: Lens' CreateTrail (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctEnableLogFileValidation :: Lens' CreateTrail (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctIsMultiRegionTrail :: Lens' CreateTrail (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctKMSKeyId :: Lens' CreateTrail (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctName :: Lens' CreateTrail Text
- Network.AWS.CloudTrail.CreateTrail: ctS3BucketName :: Lens' CreateTrail Text
- Network.AWS.CloudTrail.CreateTrail: ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctSNSTopicName :: Lens' CreateTrail (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsCloudWatchLogsLogGroupARN :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsCloudWatchLogsRoleARN :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctrsIsMultiRegionTrail :: Lens' CreateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctrsKMSKeyId :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsLogFileValidationEnabled :: Lens' CreateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.CreateTrail: ctrsName :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsResponseStatus :: Lens' CreateTrailResponse Int
- Network.AWS.CloudTrail.CreateTrail: ctrsS3BucketName :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsSNSTopicARN :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsSNSTopicName :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: ctrsTrailARN :: Lens' CreateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.CreateTrail: data CreateTrail
- Network.AWS.CloudTrail.CreateTrail: data CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Data.Data.Data Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Data.Data.Data Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Read.Read Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Read.Read Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Show.Show Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance GHC.Show.Show Network.AWS.CloudTrail.CreateTrail.CreateTrailResponse
- Network.AWS.CloudTrail.CreateTrail: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.CreateTrail: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.CreateTrail.CreateTrail
- Network.AWS.CloudTrail.DeleteTrail: data DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: data DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: deleteTrail :: Text -> DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: deleteTrailResponse :: Int -> DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: drsResponseStatus :: Lens' DeleteTrailResponse Int
- Network.AWS.CloudTrail.DeleteTrail: dtName :: Lens' DeleteTrail Text
- Network.AWS.CloudTrail.DeleteTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Data.Data.Data Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Data.Data.Data Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Read.Read Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Read.Read Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Show.Show Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance GHC.Show.Show Network.AWS.CloudTrail.DeleteTrail.DeleteTrailResponse
- Network.AWS.CloudTrail.DeleteTrail: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DeleteTrail: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.DeleteTrail.DeleteTrail
- Network.AWS.CloudTrail.DescribeTrails: data DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: data DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: describeTrails :: DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: describeTrailsResponse :: Int -> DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: dtIncludeShadowTrails :: Lens' DescribeTrails (Maybe Bool)
- Network.AWS.CloudTrail.DescribeTrails: dtTrailNameList :: Lens' DescribeTrails [Text]
- Network.AWS.CloudTrail.DescribeTrails: dtrsResponseStatus :: Lens' DescribeTrailsResponse Int
- Network.AWS.CloudTrail.DescribeTrails: dtrsTrailList :: Lens' DescribeTrailsResponse [Trail]
- Network.AWS.CloudTrail.DescribeTrails: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Data.Data.Data Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Data.Data.Data Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Classes.Eq Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Classes.Eq Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Generics.Generic Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Generics.Generic Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Read.Read Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Read.Read Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Show.Show Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance GHC.Show.Show Network.AWS.CloudTrail.DescribeTrails.DescribeTrailsResponse
- Network.AWS.CloudTrail.DescribeTrails: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.DescribeTrails: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.DescribeTrails.DescribeTrails
- Network.AWS.CloudTrail.GetEventSelectors: data GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: data GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: gesTrailName :: Lens' GetEventSelectors Text
- Network.AWS.CloudTrail.GetEventSelectors: gesrsEventSelectors :: Lens' GetEventSelectorsResponse [EventSelector]
- Network.AWS.CloudTrail.GetEventSelectors: gesrsResponseStatus :: Lens' GetEventSelectorsResponse Int
- Network.AWS.CloudTrail.GetEventSelectors: gesrsTrailARN :: Lens' GetEventSelectorsResponse (Maybe Text)
- Network.AWS.CloudTrail.GetEventSelectors: getEventSelectors :: Text -> GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: getEventSelectorsResponse :: Int -> GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Data.Data.Data Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Data.Data.Data Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Classes.Eq Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Classes.Eq Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Generics.Generic Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Generics.Generic Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Read.Read Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Read.Read Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Show.Show Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance GHC.Show.Show Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
- Network.AWS.CloudTrail.GetEventSelectors: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetEventSelectors: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.GetEventSelectors.GetEventSelectors
- Network.AWS.CloudTrail.GetTrailStatus: data GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: data GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: getTrailStatus :: Text -> GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: getTrailStatusResponse :: Int -> GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: gtsName :: Lens' GetTrailStatus Text
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsIsLogging :: Lens' GetTrailStatusResponse (Maybe Bool)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestCloudWatchLogsDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDeliveryAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDeliveryAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDigestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestDigestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestNotificationAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestNotificationAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestNotificationError :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsLatestNotificationTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsResponseStatus :: Lens' GetTrailStatusResponse Int
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsStartLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsStopLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsTimeLoggingStarted :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: gtsrsTimeLoggingStopped :: Lens' GetTrailStatusResponse (Maybe Text)
- Network.AWS.CloudTrail.GetTrailStatus: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Data.Data.Data Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Data.Data.Data Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Classes.Eq Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Classes.Eq Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Generics.Generic Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Generics.Generic Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Read.Read Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Read.Read Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Show.Show Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance GHC.Show.Show Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatusResponse
- Network.AWS.CloudTrail.GetTrailStatus: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.GetTrailStatus: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.GetTrailStatus.GetTrailStatus
- Network.AWS.CloudTrail.ListPublicKeys: data ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: data ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Data.Data.Data Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Data.Data.Data Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Classes.Eq Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Classes.Eq Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Generics.Generic Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Generics.Generic Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Read.Read Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Read.Read Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Show.Show Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance GHC.Show.Show Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.ListPublicKeys.ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: listPublicKeys :: ListPublicKeys
- Network.AWS.CloudTrail.ListPublicKeys: listPublicKeysResponse :: Int -> ListPublicKeysResponse
- Network.AWS.CloudTrail.ListPublicKeys: lpkEndTime :: Lens' ListPublicKeys (Maybe UTCTime)
- Network.AWS.CloudTrail.ListPublicKeys: lpkNextToken :: Lens' ListPublicKeys (Maybe Text)
- Network.AWS.CloudTrail.ListPublicKeys: lpkStartTime :: Lens' ListPublicKeys (Maybe UTCTime)
- Network.AWS.CloudTrail.ListPublicKeys: lpkrsNextToken :: Lens' ListPublicKeysResponse (Maybe Text)
- Network.AWS.CloudTrail.ListPublicKeys: lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey]
- Network.AWS.CloudTrail.ListPublicKeys: lpkrsResponseStatus :: Lens' ListPublicKeysResponse Int
- Network.AWS.CloudTrail.ListTags: data ListTags
- Network.AWS.CloudTrail.ListTags: data ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Data.Data.Data Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Data.Data.Data Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance GHC.Read.Read Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance GHC.Read.Read Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance GHC.Show.Show Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance GHC.Show.Show Network.AWS.CloudTrail.ListTags.ListTagsResponse
- Network.AWS.CloudTrail.ListTags: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.ListTags.ListTags
- Network.AWS.CloudTrail.ListTags: listTags :: ListTags
- Network.AWS.CloudTrail.ListTags: listTagsResponse :: Int -> ListTagsResponse
- Network.AWS.CloudTrail.ListTags: ltNextToken :: Lens' ListTags (Maybe Text)
- Network.AWS.CloudTrail.ListTags: ltResourceIdList :: Lens' ListTags [Text]
- Network.AWS.CloudTrail.ListTags: ltrsNextToken :: Lens' ListTagsResponse (Maybe Text)
- Network.AWS.CloudTrail.ListTags: ltrsResourceTagList :: Lens' ListTagsResponse [ResourceTag]
- Network.AWS.CloudTrail.ListTags: ltrsResponseStatus :: Lens' ListTagsResponse Int
- Network.AWS.CloudTrail.LookupEvents: data LookupEvents
- Network.AWS.CloudTrail.LookupEvents: data LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Data.Data.Data Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Data.Data.Data Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Classes.Eq Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Classes.Eq Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Generics.Generic Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Generics.Generic Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Read.Read Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Read.Read Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Show.Show Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance GHC.Show.Show Network.AWS.CloudTrail.LookupEvents.LookupEventsResponse
- Network.AWS.CloudTrail.LookupEvents: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Network.AWS.Pager.AWSPager Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.LookupEvents.LookupEvents
- Network.AWS.CloudTrail.LookupEvents: leEndTime :: Lens' LookupEvents (Maybe UTCTime)
- Network.AWS.CloudTrail.LookupEvents: leLookupAttributes :: Lens' LookupEvents [LookupAttribute]
- Network.AWS.CloudTrail.LookupEvents: leMaxResults :: Lens' LookupEvents (Maybe Natural)
- Network.AWS.CloudTrail.LookupEvents: leNextToken :: Lens' LookupEvents (Maybe Text)
- Network.AWS.CloudTrail.LookupEvents: leStartTime :: Lens' LookupEvents (Maybe UTCTime)
- Network.AWS.CloudTrail.LookupEvents: lersEvents :: Lens' LookupEventsResponse [Event]
- Network.AWS.CloudTrail.LookupEvents: lersNextToken :: Lens' LookupEventsResponse (Maybe Text)
- Network.AWS.CloudTrail.LookupEvents: lersResponseStatus :: Lens' LookupEventsResponse Int
- Network.AWS.CloudTrail.LookupEvents: lookupEvents :: LookupEvents
- Network.AWS.CloudTrail.LookupEvents: lookupEventsResponse :: Int -> LookupEventsResponse
- Network.AWS.CloudTrail.PutEventSelectors: data PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: data PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Data.Data.Data Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Data.Data.Data Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Classes.Eq Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Classes.Eq Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Generics.Generic Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Generics.Generic Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Read.Read Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Read.Read Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Show.Show Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance GHC.Show.Show Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
- Network.AWS.CloudTrail.PutEventSelectors: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.PutEventSelectors.PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: pesEventSelectors :: Lens' PutEventSelectors [EventSelector]
- Network.AWS.CloudTrail.PutEventSelectors: pesTrailName :: Lens' PutEventSelectors Text
- Network.AWS.CloudTrail.PutEventSelectors: pesrsEventSelectors :: Lens' PutEventSelectorsResponse [EventSelector]
- Network.AWS.CloudTrail.PutEventSelectors: pesrsResponseStatus :: Lens' PutEventSelectorsResponse Int
- Network.AWS.CloudTrail.PutEventSelectors: pesrsTrailARN :: Lens' PutEventSelectorsResponse (Maybe Text)
- Network.AWS.CloudTrail.PutEventSelectors: putEventSelectors :: Text -> PutEventSelectors
- Network.AWS.CloudTrail.PutEventSelectors: putEventSelectorsResponse :: Int -> PutEventSelectorsResponse
- Network.AWS.CloudTrail.RemoveTags: data RemoveTags
- Network.AWS.CloudTrail.RemoveTags: data RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Data.Data.Data Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Data.Data.Data Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Classes.Eq Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Generics.Generic Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Read.Read Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Read.Read Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Show.Show Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance GHC.Show.Show Network.AWS.CloudTrail.RemoveTags.RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.RemoveTags.RemoveTags
- Network.AWS.CloudTrail.RemoveTags: removeTags :: Text -> RemoveTags
- Network.AWS.CloudTrail.RemoveTags: removeTagsResponse :: Int -> RemoveTagsResponse
- Network.AWS.CloudTrail.RemoveTags: rtResourceId :: Lens' RemoveTags Text
- Network.AWS.CloudTrail.RemoveTags: rtTagsList :: Lens' RemoveTags [Tag]
- Network.AWS.CloudTrail.RemoveTags: rtrsResponseStatus :: Lens' RemoveTagsResponse Int
- Network.AWS.CloudTrail.StartLogging: data StartLogging
- Network.AWS.CloudTrail.StartLogging: data StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Data.Data.Data Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Data.Data.Data Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance GHC.Classes.Eq Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance GHC.Classes.Eq Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance GHC.Generics.Generic Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance GHC.Generics.Generic Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance GHC.Read.Read Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance GHC.Read.Read Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance GHC.Show.Show Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance GHC.Show.Show Network.AWS.CloudTrail.StartLogging.StartLoggingResponse
- Network.AWS.CloudTrail.StartLogging: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.StartLogging.StartLogging
- Network.AWS.CloudTrail.StartLogging: sName :: Lens' StartLogging Text
- Network.AWS.CloudTrail.StartLogging: srsResponseStatus :: Lens' StartLoggingResponse Int
- Network.AWS.CloudTrail.StartLogging: startLogging :: Text -> StartLogging
- Network.AWS.CloudTrail.StartLogging: startLoggingResponse :: Int -> StartLoggingResponse
- Network.AWS.CloudTrail.StopLogging: data StopLogging
- Network.AWS.CloudTrail.StopLogging: data StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Data.Data.Data Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Data.Data.Data Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance GHC.Classes.Eq Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance GHC.Classes.Eq Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance GHC.Generics.Generic Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance GHC.Generics.Generic Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance GHC.Read.Read Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance GHC.Read.Read Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance GHC.Show.Show Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance GHC.Show.Show Network.AWS.CloudTrail.StopLogging.StopLoggingResponse
- Network.AWS.CloudTrail.StopLogging: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.StopLogging.StopLogging
- Network.AWS.CloudTrail.StopLogging: slName :: Lens' StopLogging Text
- Network.AWS.CloudTrail.StopLogging: slrsResponseStatus :: Lens' StopLoggingResponse Int
- Network.AWS.CloudTrail.StopLogging: stopLogging :: Text -> StopLogging
- Network.AWS.CloudTrail.StopLogging: stopLoggingResponse :: Int -> StopLoggingResponse
- Network.AWS.CloudTrail.Types: All :: ReadWriteType
- Network.AWS.CloudTrail.Types: EventId :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: EventName :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: EventSource :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: ReadOnly :: ReadWriteType
- Network.AWS.CloudTrail.Types: ResourceName :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: ResourceType :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: Username :: LookupAttributeKey
- Network.AWS.CloudTrail.Types: WriteOnly :: ReadWriteType
- Network.AWS.CloudTrail.Types: _CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidEventSelectorsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _KMSException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: _UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError
- Network.AWS.CloudTrail.Types: cloudTrail :: Service
- Network.AWS.CloudTrail.Types: data DataResource
- Network.AWS.CloudTrail.Types: data Event
- Network.AWS.CloudTrail.Types: data EventSelector
- Network.AWS.CloudTrail.Types: data LookupAttribute
- Network.AWS.CloudTrail.Types: data LookupAttributeKey
- Network.AWS.CloudTrail.Types: data PublicKey
- Network.AWS.CloudTrail.Types: data ReadWriteType
- Network.AWS.CloudTrail.Types: data Resource
- Network.AWS.CloudTrail.Types: data ResourceTag
- Network.AWS.CloudTrail.Types: data Tag
- Network.AWS.CloudTrail.Types: data Trail
- Network.AWS.CloudTrail.Types: dataResource :: DataResource
- Network.AWS.CloudTrail.Types: drType :: Lens' DataResource (Maybe Text)
- Network.AWS.CloudTrail.Types: drValues :: Lens' DataResource [Text]
- Network.AWS.CloudTrail.Types: eCloudTrailEvent :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail.Types: eEventId :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail.Types: eEventName :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail.Types: eEventSource :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail.Types: eEventTime :: Lens' Event (Maybe UTCTime)
- Network.AWS.CloudTrail.Types: eResources :: Lens' Event [Resource]
- Network.AWS.CloudTrail.Types: eUsername :: Lens' Event (Maybe Text)
- Network.AWS.CloudTrail.Types: esDataResources :: Lens' EventSelector [DataResource]
- Network.AWS.CloudTrail.Types: esIncludeManagementEvents :: Lens' EventSelector (Maybe Bool)
- Network.AWS.CloudTrail.Types: esReadWriteType :: Lens' EventSelector (Maybe ReadWriteType)
- Network.AWS.CloudTrail.Types: event :: Event
- Network.AWS.CloudTrail.Types: eventSelector :: EventSelector
- Network.AWS.CloudTrail.Types: laAttributeKey :: Lens' LookupAttribute LookupAttributeKey
- Network.AWS.CloudTrail.Types: laAttributeValue :: Lens' LookupAttribute Text
- Network.AWS.CloudTrail.Types: lookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
- Network.AWS.CloudTrail.Types: pkFingerprint :: Lens' PublicKey (Maybe Text)
- Network.AWS.CloudTrail.Types: pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime)
- Network.AWS.CloudTrail.Types: pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime)
- Network.AWS.CloudTrail.Types: pkValue :: Lens' PublicKey (Maybe ByteString)
- Network.AWS.CloudTrail.Types: publicKey :: PublicKey
- Network.AWS.CloudTrail.Types: rResourceId :: Lens' ResourceTag (Maybe Text)
- Network.AWS.CloudTrail.Types: rResourceName :: Lens' Resource (Maybe Text)
- Network.AWS.CloudTrail.Types: rResourceType :: Lens' Resource (Maybe Text)
- Network.AWS.CloudTrail.Types: rTagsList :: Lens' ResourceTag [Tag]
- Network.AWS.CloudTrail.Types: resource :: Resource
- Network.AWS.CloudTrail.Types: resourceTag :: ResourceTag
- Network.AWS.CloudTrail.Types: tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tHasCustomEventSelectors :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail.Types: tHomeRegion :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail.Types: tIsMultiRegionTrail :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail.Types: tKMSKeyId :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tLogFileValidationEnabled :: Lens' Trail (Maybe Bool)
- Network.AWS.CloudTrail.Types: tName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tS3BucketName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tS3KeyPrefix :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tSNSTopicARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tSNSTopicName :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tTrailARN :: Lens' Trail (Maybe Text)
- Network.AWS.CloudTrail.Types: tag :: Text -> Tag
- Network.AWS.CloudTrail.Types: tagKey :: Lens' Tag Text
- Network.AWS.CloudTrail.Types: tagValue :: Lens' Tag (Maybe Text)
- Network.AWS.CloudTrail.Types: trail :: Trail
- Network.AWS.CloudTrail.UpdateTrail: data UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: data UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Control.DeepSeq.NFData Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Data.Data.Data Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Data.Data.Data Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance Data.Hashable.Class.Hashable Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Classes.Eq Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Generics.Generic Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Read.Read Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Read.Read Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Show.Show Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance GHC.Show.Show Network.AWS.CloudTrail.UpdateTrail.UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Network.AWS.Data.Path.ToPath Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Network.AWS.Data.Query.ToQuery Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: instance Network.AWS.Types.AWSRequest Network.AWS.CloudTrail.UpdateTrail.UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: updateTrail :: Text -> UpdateTrail
- Network.AWS.CloudTrail.UpdateTrail: updateTrailResponse :: Int -> UpdateTrailResponse
- Network.AWS.CloudTrail.UpdateTrail: utCloudWatchLogsLogGroupARN :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utCloudWatchLogsRoleARN :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utEnableLogFileValidation :: Lens' UpdateTrail (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utIsMultiRegionTrail :: Lens' UpdateTrail (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utKMSKeyId :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utName :: Lens' UpdateTrail Text
- Network.AWS.CloudTrail.UpdateTrail: utS3BucketName :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utS3KeyPrefix :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utSNSTopicName :: Lens' UpdateTrail (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsCloudWatchLogsLogGroupARN :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsCloudWatchLogsRoleARN :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utrsIsMultiRegionTrail :: Lens' UpdateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utrsKMSKeyId :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsLogFileValidationEnabled :: Lens' UpdateTrailResponse (Maybe Bool)
- Network.AWS.CloudTrail.UpdateTrail: utrsName :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsResponseStatus :: Lens' UpdateTrailResponse Int
- Network.AWS.CloudTrail.UpdateTrail: utrsS3BucketName :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsS3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsSNSTopicARN :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsSNSTopicName :: Lens' UpdateTrailResponse (Maybe Text)
- Network.AWS.CloudTrail.UpdateTrail: utrsTrailARN :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail: AddTags' :: Text -> [Tag] -> AddTags
+ Amazonka.CloudTrail: AddTagsResponse' :: Int -> AddTagsResponse
+ Amazonka.CloudTrail: AdvancedEventSelector' :: Maybe Text -> NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail: AdvancedFieldSelector' :: Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail: CancelQuery' :: Maybe Text -> Text -> CancelQuery
+ Amazonka.CloudTrail: CancelQueryResponse' :: Int -> Text -> QueryStatus -> CancelQueryResponse
+ Amazonka.CloudTrail: Channel' :: Maybe Text -> Maybe Text -> Channel
+ Amazonka.CloudTrail: CreateEventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Natural -> Maybe [Tag] -> Maybe Bool -> Text -> CreateEventDataStore
+ Amazonka.CloudTrail: CreateEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe [Tag] -> Maybe Bool -> Maybe POSIX -> Int -> CreateEventDataStoreResponse
+ Amazonka.CloudTrail: CreateTrail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Tag] -> Text -> Text -> CreateTrail
+ Amazonka.CloudTrail: CreateTrailResponse' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> CreateTrailResponse
+ Amazonka.CloudTrail: DataResource' :: Maybe Text -> Maybe [Text] -> DataResource
+ Amazonka.CloudTrail: DeleteEventDataStore' :: Text -> DeleteEventDataStore
+ Amazonka.CloudTrail: DeleteEventDataStoreResponse' :: Int -> DeleteEventDataStoreResponse
+ Amazonka.CloudTrail: DeleteTrail' :: Text -> DeleteTrail
+ Amazonka.CloudTrail: DeleteTrailResponse' :: Int -> DeleteTrailResponse
+ Amazonka.CloudTrail: DeliveryStatus' :: Text -> DeliveryStatus
+ Amazonka.CloudTrail: DeregisterOrganizationDelegatedAdmin' :: Text -> DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: DeregisterOrganizationDelegatedAdminResponse' :: Int -> DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: DescribeQuery' :: Maybe Text -> Text -> DescribeQuery
+ Amazonka.CloudTrail: DescribeQueryResponse' :: Maybe Text -> Maybe DeliveryStatus -> Maybe Text -> Maybe Text -> Maybe QueryStatisticsForDescribeQuery -> Maybe QueryStatus -> Maybe Text -> Int -> DescribeQueryResponse
+ Amazonka.CloudTrail: DescribeTrails' :: Maybe Bool -> Maybe [Text] -> DescribeTrails
+ Amazonka.CloudTrail: DescribeTrailsResponse' :: Maybe [Trail] -> Int -> DescribeTrailsResponse
+ Amazonka.CloudTrail: Destination' :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail: DestinationType' :: Text -> DestinationType
+ Amazonka.CloudTrail: Event' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe [Resource] -> Maybe Text -> Event
+ Amazonka.CloudTrail: EventCategory' :: Text -> EventCategory
+ Amazonka.CloudTrail: EventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> EventDataStore
+ Amazonka.CloudTrail: EventDataStoreStatus' :: Text -> EventDataStoreStatus
+ Amazonka.CloudTrail: EventSelector' :: Maybe [DataResource] -> Maybe [Text] -> Maybe Bool -> Maybe ReadWriteType -> EventSelector
+ Amazonka.CloudTrail: GetChannel' :: Text -> GetChannel
+ Amazonka.CloudTrail: GetChannelResponse' :: Maybe Text -> Maybe (NonEmpty Destination) -> Maybe Text -> Maybe Text -> Maybe SourceConfig -> Int -> GetChannelResponse
+ Amazonka.CloudTrail: GetEventDataStore' :: Text -> GetEventDataStore
+ Amazonka.CloudTrail: GetEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> GetEventDataStoreResponse
+ Amazonka.CloudTrail: GetEventSelectors' :: Text -> GetEventSelectors
+ Amazonka.CloudTrail: GetEventSelectorsResponse' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Maybe Text -> Int -> GetEventSelectorsResponse
+ Amazonka.CloudTrail: GetImport' :: Text -> GetImport
+ Amazonka.CloudTrail: GetImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatistics -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> GetImportResponse
+ Amazonka.CloudTrail: GetInsightSelectors' :: Text -> GetInsightSelectors
+ Amazonka.CloudTrail: GetInsightSelectorsResponse' :: Maybe [InsightSelector] -> Maybe Text -> Int -> GetInsightSelectorsResponse
+ Amazonka.CloudTrail: GetQueryResults' :: Maybe Text -> Maybe Natural -> Maybe Text -> Text -> GetQueryResults
+ Amazonka.CloudTrail: GetQueryResultsResponse' :: Maybe Text -> Maybe Text -> Maybe [[HashMap Text Text]] -> Maybe QueryStatistics -> Maybe QueryStatus -> Int -> GetQueryResultsResponse
+ Amazonka.CloudTrail: GetTrail' :: Text -> GetTrail
+ Amazonka.CloudTrail: GetTrailResponse' :: Maybe Trail -> Int -> GetTrailResponse
+ Amazonka.CloudTrail: GetTrailStatus' :: Text -> GetTrailStatus
+ Amazonka.CloudTrail: GetTrailStatusResponse' :: Maybe Bool -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Int -> GetTrailStatusResponse
+ Amazonka.CloudTrail: ImportFailureListItem' :: Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe ImportFailureStatus -> ImportFailureListItem
+ Amazonka.CloudTrail: ImportFailureStatus' :: Text -> ImportFailureStatus
+ Amazonka.CloudTrail: ImportSource' :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail: ImportStatistics' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> ImportStatistics
+ Amazonka.CloudTrail: ImportStatus' :: Text -> ImportStatus
+ Amazonka.CloudTrail: ImportsListItem' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe Text -> Maybe ImportStatus -> Maybe POSIX -> ImportsListItem
+ Amazonka.CloudTrail: InsightSelector' :: Maybe InsightType -> InsightSelector
+ Amazonka.CloudTrail: InsightType' :: Text -> InsightType
+ Amazonka.CloudTrail: ListChannels' :: Maybe Natural -> Maybe Text -> ListChannels
+ Amazonka.CloudTrail: ListChannelsResponse' :: Maybe [Channel] -> Maybe Text -> Int -> ListChannelsResponse
+ Amazonka.CloudTrail: ListEventDataStores' :: Maybe Natural -> Maybe Text -> ListEventDataStores
+ Amazonka.CloudTrail: ListEventDataStoresResponse' :: Maybe [EventDataStore] -> Maybe Text -> Int -> ListEventDataStoresResponse
+ Amazonka.CloudTrail: ListImportFailures' :: Maybe Natural -> Maybe Text -> Text -> ListImportFailures
+ Amazonka.CloudTrail: ListImportFailuresResponse' :: Maybe [ImportFailureListItem] -> Maybe Text -> Int -> ListImportFailuresResponse
+ Amazonka.CloudTrail: ListImports' :: Maybe Text -> Maybe ImportStatus -> Maybe Natural -> Maybe Text -> ListImports
+ Amazonka.CloudTrail: ListImportsResponse' :: Maybe [ImportsListItem] -> Maybe Text -> Int -> ListImportsResponse
+ Amazonka.CloudTrail: ListPublicKeys' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> ListPublicKeys
+ Amazonka.CloudTrail: ListPublicKeysResponse' :: Maybe Text -> Maybe [PublicKey] -> Int -> ListPublicKeysResponse
+ Amazonka.CloudTrail: ListQueries' :: Maybe POSIX -> Maybe Natural -> Maybe Text -> Maybe QueryStatus -> Maybe POSIX -> Text -> ListQueries
+ Amazonka.CloudTrail: ListQueriesResponse' :: Maybe Text -> Maybe [Query] -> Int -> ListQueriesResponse
+ Amazonka.CloudTrail: ListTags' :: Maybe Text -> [Text] -> ListTags
+ Amazonka.CloudTrail: ListTagsResponse' :: Maybe Text -> Maybe [ResourceTag] -> Int -> ListTagsResponse
+ Amazonka.CloudTrail: ListTrails' :: Maybe Text -> ListTrails
+ Amazonka.CloudTrail: ListTrailsResponse' :: Maybe Text -> Maybe [TrailInfo] -> Int -> ListTrailsResponse
+ Amazonka.CloudTrail: LookupAttribute' :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail: LookupAttributeKey' :: Text -> LookupAttributeKey
+ Amazonka.CloudTrail: LookupEvents' :: Maybe POSIX -> Maybe EventCategory -> Maybe [LookupAttribute] -> Maybe Natural -> Maybe Text -> Maybe POSIX -> LookupEvents
+ Amazonka.CloudTrail: LookupEventsResponse' :: Maybe [Event] -> Maybe Text -> Int -> LookupEventsResponse
+ Amazonka.CloudTrail: PublicKey' :: Maybe Text -> Maybe POSIX -> Maybe POSIX -> Maybe Base64 -> PublicKey
+ Amazonka.CloudTrail: PutEventSelectors' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Text -> PutEventSelectors
+ Amazonka.CloudTrail: PutEventSelectorsResponse' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Maybe Text -> Int -> PutEventSelectorsResponse
+ Amazonka.CloudTrail: PutInsightSelectors' :: Text -> [InsightSelector] -> PutInsightSelectors
+ Amazonka.CloudTrail: PutInsightSelectorsResponse' :: Maybe [InsightSelector] -> Maybe Text -> Int -> PutInsightSelectorsResponse
+ Amazonka.CloudTrail: Query' :: Maybe POSIX -> Maybe Text -> Maybe QueryStatus -> Query
+ Amazonka.CloudTrail: QueryStatistics' :: Maybe Integer -> Maybe Int -> Maybe Int -> QueryStatistics
+ Amazonka.CloudTrail: QueryStatisticsForDescribeQuery' :: Maybe Integer -> Maybe POSIX -> Maybe Integer -> Maybe Integer -> Maybe Int -> QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail: QueryStatus' :: Text -> QueryStatus
+ Amazonka.CloudTrail: ReadWriteType' :: Text -> ReadWriteType
+ Amazonka.CloudTrail: RegisterOrganizationDelegatedAdmin' :: Text -> RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: RegisterOrganizationDelegatedAdminResponse' :: Int -> RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: RemoveTags' :: Text -> [Tag] -> RemoveTags
+ Amazonka.CloudTrail: RemoveTagsResponse' :: Int -> RemoveTagsResponse
+ Amazonka.CloudTrail: Resource' :: Maybe Text -> Maybe Text -> Resource
+ Amazonka.CloudTrail: ResourceTag' :: Maybe Text -> Maybe [Tag] -> ResourceTag
+ Amazonka.CloudTrail: RestoreEventDataStore' :: Text -> RestoreEventDataStore
+ Amazonka.CloudTrail: RestoreEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> RestoreEventDataStoreResponse
+ Amazonka.CloudTrail: S3ImportSource' :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail: SourceConfig' :: Maybe [AdvancedEventSelector] -> Maybe Bool -> SourceConfig
+ Amazonka.CloudTrail: StartImport' :: Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe POSIX -> StartImport
+ Amazonka.CloudTrail: StartImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> StartImportResponse
+ Amazonka.CloudTrail: StartLogging' :: Text -> StartLogging
+ Amazonka.CloudTrail: StartLoggingResponse' :: Int -> StartLoggingResponse
+ Amazonka.CloudTrail: StartQuery' :: Maybe Text -> Text -> StartQuery
+ Amazonka.CloudTrail: StartQueryResponse' :: Maybe Text -> Int -> StartQueryResponse
+ Amazonka.CloudTrail: StopImport' :: Text -> StopImport
+ Amazonka.CloudTrail: StopImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatistics -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> StopImportResponse
+ Amazonka.CloudTrail: StopLogging' :: Text -> StopLogging
+ Amazonka.CloudTrail: StopLoggingResponse' :: Int -> StopLoggingResponse
+ Amazonka.CloudTrail: Tag' :: Maybe Text -> Text -> Tag
+ Amazonka.CloudTrail: Trail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Trail
+ Amazonka.CloudTrail: TrailInfo' :: Maybe Text -> Maybe Text -> Maybe Text -> TrailInfo
+ Amazonka.CloudTrail: UpdateEventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe Bool -> Text -> UpdateEventDataStore
+ Amazonka.CloudTrail: UpdateEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> UpdateEventDataStoreResponse
+ Amazonka.CloudTrail: UpdateTrail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> UpdateTrail
+ Amazonka.CloudTrail: UpdateTrailResponse' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> UpdateTrailResponse
+ Amazonka.CloudTrail: [fromDeliveryStatus] :: DeliveryStatus -> Text
+ Amazonka.CloudTrail: [fromDestinationType] :: DestinationType -> Text
+ Amazonka.CloudTrail: [fromEventCategory] :: EventCategory -> Text
+ Amazonka.CloudTrail: [fromEventDataStoreStatus] :: EventDataStoreStatus -> Text
+ Amazonka.CloudTrail: [fromImportFailureStatus] :: ImportFailureStatus -> Text
+ Amazonka.CloudTrail: [fromImportStatus] :: ImportStatus -> Text
+ Amazonka.CloudTrail: [fromInsightType] :: InsightType -> Text
+ Amazonka.CloudTrail: [fromLookupAttributeKey] :: LookupAttributeKey -> Text
+ Amazonka.CloudTrail: [fromQueryStatus] :: QueryStatus -> Text
+ Amazonka.CloudTrail: [fromReadWriteType] :: ReadWriteType -> Text
+ Amazonka.CloudTrail: _AccountHasOngoingImportException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _AccountNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _AccountNotRegisteredException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _AccountRegisteredException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _CannotDelegateManagementAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ChannelARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ChannelNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _CloudTrailARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _CloudTrailAccessNotEnabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _CloudTrailInvalidClientTokenIdException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _CloudWatchLogsDeliveryUnavailableException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ConflictException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _DelegatedAdminAccountLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreAlreadyExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreHasOngoingImportException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreMaxLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _EventDataStoreTerminationProtectedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ImportNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InactiveEventDataStoreException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InactiveQueryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InsightNotEnabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InsufficientDependencyServiceAccessPermissionException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InsufficientEncryptionPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InsufficientS3BucketPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InsufficientSnsTopicPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidCloudWatchLogsLogGroupArnException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidCloudWatchLogsRoleArnException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidDateRangeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidEventCategoryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidEventDataStoreCategoryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidEventDataStoreStatusException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidEventSelectorsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidHomeRegionException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidImportSourceException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidInsightSelectorsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidKmsKeyIdException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidLookupAttributesException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidMaxResultsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidNextTokenException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidParameterCombinationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidQueryStatementException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidQueryStatusException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidS3BucketNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidS3PrefixException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidSnsTopicNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidTagParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidTimeRangeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidTokenException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _InvalidTrailNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _KmsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _KmsKeyDisabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _KmsKeyNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _MaxConcurrentQueriesException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _MaximumNumberOfTrailsExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _NoManagementAccountSLRExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _NotOrganizationManagementAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _NotOrganizationMasterAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _OperationNotPermittedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _OrganizationNotInAllFeaturesModeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _OrganizationsNotInUseException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _QueryIdNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ResourceNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _ResourceTypeNotSupportedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _S3BucketDoesNotExistException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _TagsLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _TrailAlreadyExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _TrailNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _TrailNotProvidedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: _UnsupportedOperationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail: data AddTags
+ Amazonka.CloudTrail: data AddTagsResponse
+ Amazonka.CloudTrail: data AdvancedEventSelector
+ Amazonka.CloudTrail: data AdvancedFieldSelector
+ Amazonka.CloudTrail: data CancelQuery
+ Amazonka.CloudTrail: data CancelQueryResponse
+ Amazonka.CloudTrail: data Channel
+ Amazonka.CloudTrail: data CreateEventDataStore
+ Amazonka.CloudTrail: data CreateEventDataStoreResponse
+ Amazonka.CloudTrail: data CreateTrail
+ Amazonka.CloudTrail: data CreateTrailResponse
+ Amazonka.CloudTrail: data DataResource
+ Amazonka.CloudTrail: data DeleteEventDataStore
+ Amazonka.CloudTrail: data DeleteEventDataStoreResponse
+ Amazonka.CloudTrail: data DeleteTrail
+ Amazonka.CloudTrail: data DeleteTrailResponse
+ Amazonka.CloudTrail: data DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: data DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: data DescribeQuery
+ Amazonka.CloudTrail: data DescribeQueryResponse
+ Amazonka.CloudTrail: data DescribeTrails
+ Amazonka.CloudTrail: data DescribeTrailsResponse
+ Amazonka.CloudTrail: data Destination
+ Amazonka.CloudTrail: data Event
+ Amazonka.CloudTrail: data EventDataStore
+ Amazonka.CloudTrail: data EventSelector
+ Amazonka.CloudTrail: data GetChannel
+ Amazonka.CloudTrail: data GetChannelResponse
+ Amazonka.CloudTrail: data GetEventDataStore
+ Amazonka.CloudTrail: data GetEventDataStoreResponse
+ Amazonka.CloudTrail: data GetEventSelectors
+ Amazonka.CloudTrail: data GetEventSelectorsResponse
+ Amazonka.CloudTrail: data GetImport
+ Amazonka.CloudTrail: data GetImportResponse
+ Amazonka.CloudTrail: data GetInsightSelectors
+ Amazonka.CloudTrail: data GetInsightSelectorsResponse
+ Amazonka.CloudTrail: data GetQueryResults
+ Amazonka.CloudTrail: data GetQueryResultsResponse
+ Amazonka.CloudTrail: data GetTrail
+ Amazonka.CloudTrail: data GetTrailResponse
+ Amazonka.CloudTrail: data GetTrailStatus
+ Amazonka.CloudTrail: data GetTrailStatusResponse
+ Amazonka.CloudTrail: data ImportFailureListItem
+ Amazonka.CloudTrail: data ImportSource
+ Amazonka.CloudTrail: data ImportStatistics
+ Amazonka.CloudTrail: data ImportsListItem
+ Amazonka.CloudTrail: data InsightSelector
+ Amazonka.CloudTrail: data ListChannels
+ Amazonka.CloudTrail: data ListChannelsResponse
+ Amazonka.CloudTrail: data ListEventDataStores
+ Amazonka.CloudTrail: data ListEventDataStoresResponse
+ Amazonka.CloudTrail: data ListImportFailures
+ Amazonka.CloudTrail: data ListImportFailuresResponse
+ Amazonka.CloudTrail: data ListImports
+ Amazonka.CloudTrail: data ListImportsResponse
+ Amazonka.CloudTrail: data ListPublicKeys
+ Amazonka.CloudTrail: data ListPublicKeysResponse
+ Amazonka.CloudTrail: data ListQueries
+ Amazonka.CloudTrail: data ListQueriesResponse
+ Amazonka.CloudTrail: data ListTags
+ Amazonka.CloudTrail: data ListTagsResponse
+ Amazonka.CloudTrail: data ListTrails
+ Amazonka.CloudTrail: data ListTrailsResponse
+ Amazonka.CloudTrail: data LookupAttribute
+ Amazonka.CloudTrail: data LookupEvents
+ Amazonka.CloudTrail: data LookupEventsResponse
+ Amazonka.CloudTrail: data PublicKey
+ Amazonka.CloudTrail: data PutEventSelectors
+ Amazonka.CloudTrail: data PutEventSelectorsResponse
+ Amazonka.CloudTrail: data PutInsightSelectors
+ Amazonka.CloudTrail: data PutInsightSelectorsResponse
+ Amazonka.CloudTrail: data Query
+ Amazonka.CloudTrail: data QueryStatistics
+ Amazonka.CloudTrail: data QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail: data RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: data RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: data RemoveTags
+ Amazonka.CloudTrail: data RemoveTagsResponse
+ Amazonka.CloudTrail: data Resource
+ Amazonka.CloudTrail: data ResourceTag
+ Amazonka.CloudTrail: data RestoreEventDataStore
+ Amazonka.CloudTrail: data RestoreEventDataStoreResponse
+ Amazonka.CloudTrail: data S3ImportSource
+ Amazonka.CloudTrail: data SourceConfig
+ Amazonka.CloudTrail: data StartImport
+ Amazonka.CloudTrail: data StartImportResponse
+ Amazonka.CloudTrail: data StartLogging
+ Amazonka.CloudTrail: data StartLoggingResponse
+ Amazonka.CloudTrail: data StartQuery
+ Amazonka.CloudTrail: data StartQueryResponse
+ Amazonka.CloudTrail: data StopImport
+ Amazonka.CloudTrail: data StopImportResponse
+ Amazonka.CloudTrail: data StopLogging
+ Amazonka.CloudTrail: data StopLoggingResponse
+ Amazonka.CloudTrail: data Tag
+ Amazonka.CloudTrail: data Trail
+ Amazonka.CloudTrail: data TrailInfo
+ Amazonka.CloudTrail: data UpdateEventDataStore
+ Amazonka.CloudTrail: data UpdateEventDataStoreResponse
+ Amazonka.CloudTrail: data UpdateTrail
+ Amazonka.CloudTrail: data UpdateTrailResponse
+ Amazonka.CloudTrail: defaultService :: Service
+ Amazonka.CloudTrail: newAddTags :: Text -> AddTags
+ Amazonka.CloudTrail: newAddTagsResponse :: Int -> AddTagsResponse
+ Amazonka.CloudTrail: newAdvancedEventSelector :: NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail: newAdvancedFieldSelector :: Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail: newCancelQuery :: Text -> CancelQuery
+ Amazonka.CloudTrail: newCancelQueryResponse :: Int -> Text -> QueryStatus -> CancelQueryResponse
+ Amazonka.CloudTrail: newChannel :: Channel
+ Amazonka.CloudTrail: newCreateEventDataStore :: Text -> CreateEventDataStore
+ Amazonka.CloudTrail: newCreateEventDataStoreResponse :: Int -> CreateEventDataStoreResponse
+ Amazonka.CloudTrail: newCreateTrail :: Text -> Text -> CreateTrail
+ Amazonka.CloudTrail: newCreateTrailResponse :: Int -> CreateTrailResponse
+ Amazonka.CloudTrail: newDataResource :: DataResource
+ Amazonka.CloudTrail: newDeleteEventDataStore :: Text -> DeleteEventDataStore
+ Amazonka.CloudTrail: newDeleteEventDataStoreResponse :: Int -> DeleteEventDataStoreResponse
+ Amazonka.CloudTrail: newDeleteTrail :: Text -> DeleteTrail
+ Amazonka.CloudTrail: newDeleteTrailResponse :: Int -> DeleteTrailResponse
+ Amazonka.CloudTrail: newDeregisterOrganizationDelegatedAdmin :: Text -> DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: newDeregisterOrganizationDelegatedAdminResponse :: Int -> DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: newDescribeQuery :: Text -> DescribeQuery
+ Amazonka.CloudTrail: newDescribeQueryResponse :: Int -> DescribeQueryResponse
+ Amazonka.CloudTrail: newDescribeTrails :: DescribeTrails
+ Amazonka.CloudTrail: newDescribeTrailsResponse :: Int -> DescribeTrailsResponse
+ Amazonka.CloudTrail: newDestination :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail: newEvent :: Event
+ Amazonka.CloudTrail: newEventDataStore :: EventDataStore
+ Amazonka.CloudTrail: newEventSelector :: EventSelector
+ Amazonka.CloudTrail: newGetChannel :: Text -> GetChannel
+ Amazonka.CloudTrail: newGetChannelResponse :: Int -> GetChannelResponse
+ Amazonka.CloudTrail: newGetEventDataStore :: Text -> GetEventDataStore
+ Amazonka.CloudTrail: newGetEventDataStoreResponse :: Int -> GetEventDataStoreResponse
+ Amazonka.CloudTrail: newGetEventSelectors :: Text -> GetEventSelectors
+ Amazonka.CloudTrail: newGetEventSelectorsResponse :: Int -> GetEventSelectorsResponse
+ Amazonka.CloudTrail: newGetImport :: Text -> GetImport
+ Amazonka.CloudTrail: newGetImportResponse :: Int -> GetImportResponse
+ Amazonka.CloudTrail: newGetInsightSelectors :: Text -> GetInsightSelectors
+ Amazonka.CloudTrail: newGetInsightSelectorsResponse :: Int -> GetInsightSelectorsResponse
+ Amazonka.CloudTrail: newGetQueryResults :: Text -> GetQueryResults
+ Amazonka.CloudTrail: newGetQueryResultsResponse :: Int -> GetQueryResultsResponse
+ Amazonka.CloudTrail: newGetTrail :: Text -> GetTrail
+ Amazonka.CloudTrail: newGetTrailResponse :: Int -> GetTrailResponse
+ Amazonka.CloudTrail: newGetTrailStatus :: Text -> GetTrailStatus
+ Amazonka.CloudTrail: newGetTrailStatusResponse :: Int -> GetTrailStatusResponse
+ Amazonka.CloudTrail: newImportFailureListItem :: ImportFailureListItem
+ Amazonka.CloudTrail: newImportSource :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail: newImportStatistics :: ImportStatistics
+ Amazonka.CloudTrail: newImportsListItem :: ImportsListItem
+ Amazonka.CloudTrail: newInsightSelector :: InsightSelector
+ Amazonka.CloudTrail: newListChannels :: ListChannels
+ Amazonka.CloudTrail: newListChannelsResponse :: Int -> ListChannelsResponse
+ Amazonka.CloudTrail: newListEventDataStores :: ListEventDataStores
+ Amazonka.CloudTrail: newListEventDataStoresResponse :: Int -> ListEventDataStoresResponse
+ Amazonka.CloudTrail: newListImportFailures :: Text -> ListImportFailures
+ Amazonka.CloudTrail: newListImportFailuresResponse :: Int -> ListImportFailuresResponse
+ Amazonka.CloudTrail: newListImports :: ListImports
+ Amazonka.CloudTrail: newListImportsResponse :: Int -> ListImportsResponse
+ Amazonka.CloudTrail: newListPublicKeys :: ListPublicKeys
+ Amazonka.CloudTrail: newListPublicKeysResponse :: Int -> ListPublicKeysResponse
+ Amazonka.CloudTrail: newListQueries :: Text -> ListQueries
+ Amazonka.CloudTrail: newListQueriesResponse :: Int -> ListQueriesResponse
+ Amazonka.CloudTrail: newListTags :: ListTags
+ Amazonka.CloudTrail: newListTagsResponse :: Int -> ListTagsResponse
+ Amazonka.CloudTrail: newListTrails :: ListTrails
+ Amazonka.CloudTrail: newListTrailsResponse :: Int -> ListTrailsResponse
+ Amazonka.CloudTrail: newLookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail: newLookupEvents :: LookupEvents
+ Amazonka.CloudTrail: newLookupEventsResponse :: Int -> LookupEventsResponse
+ Amazonka.CloudTrail: newPublicKey :: PublicKey
+ Amazonka.CloudTrail: newPutEventSelectors :: Text -> PutEventSelectors
+ Amazonka.CloudTrail: newPutEventSelectorsResponse :: Int -> PutEventSelectorsResponse
+ Amazonka.CloudTrail: newPutInsightSelectors :: Text -> PutInsightSelectors
+ Amazonka.CloudTrail: newPutInsightSelectorsResponse :: Int -> PutInsightSelectorsResponse
+ Amazonka.CloudTrail: newQuery :: Query
+ Amazonka.CloudTrail: newQueryStatistics :: QueryStatistics
+ Amazonka.CloudTrail: newQueryStatisticsForDescribeQuery :: QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail: newRegisterOrganizationDelegatedAdmin :: Text -> RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail: newRegisterOrganizationDelegatedAdminResponse :: Int -> RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail: newRemoveTags :: Text -> RemoveTags
+ Amazonka.CloudTrail: newRemoveTagsResponse :: Int -> RemoveTagsResponse
+ Amazonka.CloudTrail: newResource :: Resource
+ Amazonka.CloudTrail: newResourceTag :: ResourceTag
+ Amazonka.CloudTrail: newRestoreEventDataStore :: Text -> RestoreEventDataStore
+ Amazonka.CloudTrail: newRestoreEventDataStoreResponse :: Int -> RestoreEventDataStoreResponse
+ Amazonka.CloudTrail: newS3ImportSource :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail: newSourceConfig :: SourceConfig
+ Amazonka.CloudTrail: newStartImport :: StartImport
+ Amazonka.CloudTrail: newStartImportResponse :: Int -> StartImportResponse
+ Amazonka.CloudTrail: newStartLogging :: Text -> StartLogging
+ Amazonka.CloudTrail: newStartLoggingResponse :: Int -> StartLoggingResponse
+ Amazonka.CloudTrail: newStartQuery :: Text -> StartQuery
+ Amazonka.CloudTrail: newStartQueryResponse :: Int -> StartQueryResponse
+ Amazonka.CloudTrail: newStopImport :: Text -> StopImport
+ Amazonka.CloudTrail: newStopImportResponse :: Int -> StopImportResponse
+ Amazonka.CloudTrail: newStopLogging :: Text -> StopLogging
+ Amazonka.CloudTrail: newStopLoggingResponse :: Int -> StopLoggingResponse
+ Amazonka.CloudTrail: newTag :: Text -> Tag
+ Amazonka.CloudTrail: newTrail :: Trail
+ Amazonka.CloudTrail: newTrailInfo :: TrailInfo
+ Amazonka.CloudTrail: newUpdateEventDataStore :: Text -> UpdateEventDataStore
+ Amazonka.CloudTrail: newUpdateEventDataStoreResponse :: Int -> UpdateEventDataStoreResponse
+ Amazonka.CloudTrail: newUpdateTrail :: Text -> UpdateTrail
+ Amazonka.CloudTrail: newUpdateTrailResponse :: Int -> UpdateTrailResponse
+ Amazonka.CloudTrail: newtype DeliveryStatus
+ Amazonka.CloudTrail: newtype DestinationType
+ Amazonka.CloudTrail: newtype EventCategory
+ Amazonka.CloudTrail: newtype EventDataStoreStatus
+ Amazonka.CloudTrail: newtype ImportFailureStatus
+ Amazonka.CloudTrail: newtype ImportStatus
+ Amazonka.CloudTrail: newtype InsightType
+ Amazonka.CloudTrail: newtype LookupAttributeKey
+ Amazonka.CloudTrail: newtype QueryStatus
+ Amazonka.CloudTrail: newtype ReadWriteType
+ Amazonka.CloudTrail: pattern DeliveryStatus_ACCESS_DENIED :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_ACCESS_DENIED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_CANCELLED :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_FAILED :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_FAILED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_PENDING :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_RESOURCE_NOT_FOUND :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_SUCCESS :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DeliveryStatus_UNKNOWN :: DeliveryStatus
+ Amazonka.CloudTrail: pattern DestinationType_AWS_SERVICE :: DestinationType
+ Amazonka.CloudTrail: pattern DestinationType_EVENT_DATA_STORE :: DestinationType
+ Amazonka.CloudTrail: pattern EventCategory_Insight :: EventCategory
+ Amazonka.CloudTrail: pattern EventDataStoreStatus_CREATED :: EventDataStoreStatus
+ Amazonka.CloudTrail: pattern EventDataStoreStatus_ENABLED :: EventDataStoreStatus
+ Amazonka.CloudTrail: pattern EventDataStoreStatus_PENDING_DELETION :: EventDataStoreStatus
+ Amazonka.CloudTrail: pattern ImportFailureStatus_FAILED :: ImportFailureStatus
+ Amazonka.CloudTrail: pattern ImportFailureStatus_RETRY :: ImportFailureStatus
+ Amazonka.CloudTrail: pattern ImportFailureStatus_SUCCEEDED :: ImportFailureStatus
+ Amazonka.CloudTrail: pattern ImportStatus_COMPLETED :: ImportStatus
+ Amazonka.CloudTrail: pattern ImportStatus_FAILED :: ImportStatus
+ Amazonka.CloudTrail: pattern ImportStatus_INITIALIZING :: ImportStatus
+ Amazonka.CloudTrail: pattern ImportStatus_IN_PROGRESS :: ImportStatus
+ Amazonka.CloudTrail: pattern ImportStatus_STOPPED :: ImportStatus
+ Amazonka.CloudTrail: pattern InsightType_ApiCallRateInsight :: InsightType
+ Amazonka.CloudTrail: pattern InsightType_ApiErrorRateInsight :: InsightType
+ Amazonka.CloudTrail: pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_EventId :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_EventName :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_EventSource :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_ResourceName :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_ResourceType :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern LookupAttributeKey_Username :: LookupAttributeKey
+ Amazonka.CloudTrail: pattern QueryStatus_CANCELLED :: QueryStatus
+ Amazonka.CloudTrail: pattern QueryStatus_FAILED :: QueryStatus
+ Amazonka.CloudTrail: pattern QueryStatus_FINISHED :: QueryStatus
+ Amazonka.CloudTrail: pattern QueryStatus_QUEUED :: QueryStatus
+ Amazonka.CloudTrail: pattern QueryStatus_RUNNING :: QueryStatus
+ Amazonka.CloudTrail: pattern QueryStatus_TIMED_OUT :: QueryStatus
+ Amazonka.CloudTrail: pattern ReadWriteType_All :: ReadWriteType
+ Amazonka.CloudTrail: pattern ReadWriteType_ReadOnly :: ReadWriteType
+ Amazonka.CloudTrail: pattern ReadWriteType_WriteOnly :: ReadWriteType
+ Amazonka.CloudTrail.AddTags: AddTags' :: Text -> [Tag] -> AddTags
+ Amazonka.CloudTrail.AddTags: AddTagsResponse' :: Int -> AddTagsResponse
+ Amazonka.CloudTrail.AddTags: [$sel:httpStatus:AddTagsResponse'] :: AddTagsResponse -> Int
+ Amazonka.CloudTrail.AddTags: [$sel:resourceId:AddTags'] :: AddTags -> Text
+ Amazonka.CloudTrail.AddTags: [$sel:tagsList:AddTags'] :: AddTags -> [Tag]
+ Amazonka.CloudTrail.AddTags: addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
+ Amazonka.CloudTrail.AddTags: addTags_resourceId :: Lens' AddTags Text
+ Amazonka.CloudTrail.AddTags: addTags_tagsList :: Lens' AddTags [Tag]
+ Amazonka.CloudTrail.AddTags: data AddTags
+ Amazonka.CloudTrail.AddTags: data AddTagsResponse
+ Amazonka.CloudTrail.AddTags: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.AddTags.AddTagsResponse
+ Amazonka.CloudTrail.AddTags: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance GHC.Classes.Eq Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance GHC.Classes.Eq Amazonka.CloudTrail.AddTags.AddTagsResponse
+ Amazonka.CloudTrail.AddTags: instance GHC.Generics.Generic Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance GHC.Generics.Generic Amazonka.CloudTrail.AddTags.AddTagsResponse
+ Amazonka.CloudTrail.AddTags: instance GHC.Read.Read Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance GHC.Read.Read Amazonka.CloudTrail.AddTags.AddTagsResponse
+ Amazonka.CloudTrail.AddTags: instance GHC.Show.Show Amazonka.CloudTrail.AddTags.AddTags
+ Amazonka.CloudTrail.AddTags: instance GHC.Show.Show Amazonka.CloudTrail.AddTags.AddTagsResponse
+ Amazonka.CloudTrail.AddTags: newAddTags :: Text -> AddTags
+ Amazonka.CloudTrail.AddTags: newAddTagsResponse :: Int -> AddTagsResponse
+ Amazonka.CloudTrail.CancelQuery: CancelQuery' :: Maybe Text -> Text -> CancelQuery
+ Amazonka.CloudTrail.CancelQuery: CancelQueryResponse' :: Int -> Text -> QueryStatus -> CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: [$sel:eventDataStore:CancelQuery'] :: CancelQuery -> Maybe Text
+ Amazonka.CloudTrail.CancelQuery: [$sel:httpStatus:CancelQueryResponse'] :: CancelQueryResponse -> Int
+ Amazonka.CloudTrail.CancelQuery: [$sel:queryId:CancelQuery'] :: CancelQuery -> Text
+ Amazonka.CloudTrail.CancelQuery: [$sel:queryId:CancelQueryResponse'] :: CancelQueryResponse -> Text
+ Amazonka.CloudTrail.CancelQuery: [$sel:queryStatus:CancelQueryResponse'] :: CancelQueryResponse -> QueryStatus
+ Amazonka.CloudTrail.CancelQuery: cancelQueryResponse_httpStatus :: Lens' CancelQueryResponse Int
+ Amazonka.CloudTrail.CancelQuery: cancelQueryResponse_queryId :: Lens' CancelQueryResponse Text
+ Amazonka.CloudTrail.CancelQuery: cancelQueryResponse_queryStatus :: Lens' CancelQueryResponse QueryStatus
+ Amazonka.CloudTrail.CancelQuery: cancelQuery_eventDataStore :: Lens' CancelQuery (Maybe Text)
+ Amazonka.CloudTrail.CancelQuery: cancelQuery_queryId :: Lens' CancelQuery Text
+ Amazonka.CloudTrail.CancelQuery: data CancelQuery
+ Amazonka.CloudTrail.CancelQuery: data CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CancelQuery.CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.CancelQuery.CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.CancelQuery.CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Read.Read Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Read.Read Amazonka.CloudTrail.CancelQuery.CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Show.Show Amazonka.CloudTrail.CancelQuery.CancelQuery
+ Amazonka.CloudTrail.CancelQuery: instance GHC.Show.Show Amazonka.CloudTrail.CancelQuery.CancelQueryResponse
+ Amazonka.CloudTrail.CancelQuery: newCancelQuery :: Text -> CancelQuery
+ Amazonka.CloudTrail.CancelQuery: newCancelQueryResponse :: Int -> Text -> QueryStatus -> CancelQueryResponse
+ Amazonka.CloudTrail.CreateEventDataStore: CreateEventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Natural -> Maybe [Tag] -> Maybe Bool -> Text -> CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: CreateEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe [Tag] -> Maybe Bool -> Maybe POSIX -> Int -> CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:advancedEventSelectors:CreateEventDataStore'] :: CreateEventDataStore -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:advancedEventSelectors:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:createdTimestamp:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:eventDataStoreArn:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:httpStatus:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Int
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:kmsKeyId:CreateEventDataStore'] :: CreateEventDataStore -> Maybe Text
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:kmsKeyId:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:multiRegionEnabled:CreateEventDataStore'] :: CreateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:multiRegionEnabled:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:name:CreateEventDataStore'] :: CreateEventDataStore -> Text
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:name:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:organizationEnabled:CreateEventDataStore'] :: CreateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:organizationEnabled:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:retentionPeriod:CreateEventDataStore'] :: CreateEventDataStore -> Maybe Natural
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:retentionPeriod:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Natural
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:status:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:tagsList:CreateEventDataStore'] :: CreateEventDataStore -> Maybe [Tag]
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:tagsList:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe [Tag]
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:terminationProtectionEnabled:CreateEventDataStore'] :: CreateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:terminationProtectionEnabled:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateEventDataStore: [$sel:updatedTimestamp:CreateEventDataStoreResponse'] :: CreateEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_advancedEventSelectors :: Lens' CreateEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_createdTimestamp :: Lens' CreateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_eventDataStoreArn :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_httpStatus :: Lens' CreateEventDataStoreResponse Int
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_kmsKeyId :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_multiRegionEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_name :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_organizationEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_retentionPeriod :: Lens' CreateEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_status :: Lens' CreateEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_tagsList :: Lens' CreateEventDataStoreResponse (Maybe [Tag])
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_terminationProtectionEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStoreResponse_updatedTimestamp :: Lens' CreateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_advancedEventSelectors :: Lens' CreateEventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_kmsKeyId :: Lens' CreateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_multiRegionEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_name :: Lens' CreateEventDataStore Text
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_organizationEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_retentionPeriod :: Lens' CreateEventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_tagsList :: Lens' CreateEventDataStore (Maybe [Tag])
+ Amazonka.CloudTrail.CreateEventDataStore: createEventDataStore_terminationProtectionEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.CreateEventDataStore: data CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: data CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.CreateEventDataStore.CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateEventDataStore: newCreateEventDataStore :: Text -> CreateEventDataStore
+ Amazonka.CloudTrail.CreateEventDataStore: newCreateEventDataStoreResponse :: Int -> CreateEventDataStoreResponse
+ Amazonka.CloudTrail.CreateTrail: CreateTrail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe [Tag] -> Text -> Text -> CreateTrail
+ Amazonka.CloudTrail.CreateTrail: CreateTrailResponse' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: [$sel:cloudWatchLogsLogGroupArn:CreateTrail'] :: CreateTrail -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:cloudWatchLogsLogGroupArn:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:cloudWatchLogsRoleArn:CreateTrail'] :: CreateTrail -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:cloudWatchLogsRoleArn:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:enableLogFileValidation:CreateTrail'] :: CreateTrail -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:httpStatus:CreateTrailResponse'] :: CreateTrailResponse -> Int
+ Amazonka.CloudTrail.CreateTrail: [$sel:includeGlobalServiceEvents:CreateTrail'] :: CreateTrail -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:includeGlobalServiceEvents:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:isMultiRegionTrail:CreateTrail'] :: CreateTrail -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:isMultiRegionTrail:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:isOrganizationTrail:CreateTrail'] :: CreateTrail -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:isOrganizationTrail:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:kmsKeyId:CreateTrail'] :: CreateTrail -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:kmsKeyId:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:logFileValidationEnabled:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.CreateTrail: [$sel:name:CreateTrail'] :: CreateTrail -> Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:name:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:s3BucketName:CreateTrail'] :: CreateTrail -> Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:s3BucketName:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:s3KeyPrefix:CreateTrail'] :: CreateTrail -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:s3KeyPrefix:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:snsTopicARN:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:snsTopicName:CreateTrail'] :: CreateTrail -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:snsTopicName:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: [$sel:tagsList:CreateTrail'] :: CreateTrail -> Maybe [Tag]
+ Amazonka.CloudTrail.CreateTrail: [$sel:trailARN:CreateTrailResponse'] :: CreateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_cloudWatchLogsLogGroupArn :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_cloudWatchLogsRoleArn :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_httpStatus :: Lens' CreateTrailResponse Int
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_includeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_isMultiRegionTrail :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_isOrganizationTrail :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_kmsKeyId :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_logFileValidationEnabled :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_name :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_s3BucketName :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_s3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_snsTopicARN :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_snsTopicName :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrailResponse_trailARN :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_cloudWatchLogsLogGroupArn :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_cloudWatchLogsRoleArn :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_enableLogFileValidation :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrail_includeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrail_isMultiRegionTrail :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrail_isOrganizationTrail :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.CreateTrail: createTrail_kmsKeyId :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_name :: Lens' CreateTrail Text
+ Amazonka.CloudTrail.CreateTrail: createTrail_s3BucketName :: Lens' CreateTrail Text
+ Amazonka.CloudTrail.CreateTrail: createTrail_s3KeyPrefix :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_snsTopicName :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.CreateTrail: createTrail_tagsList :: Lens' CreateTrail (Maybe [Tag])
+ Amazonka.CloudTrail.CreateTrail: data CreateTrail
+ Amazonka.CloudTrail.CreateTrail: data CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.CreateTrail.CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.CreateTrail.CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.CreateTrail.CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Read.Read Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Read.Read Amazonka.CloudTrail.CreateTrail.CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Show.Show Amazonka.CloudTrail.CreateTrail.CreateTrail
+ Amazonka.CloudTrail.CreateTrail: instance GHC.Show.Show Amazonka.CloudTrail.CreateTrail.CreateTrailResponse
+ Amazonka.CloudTrail.CreateTrail: newCreateTrail :: Text -> Text -> CreateTrail
+ Amazonka.CloudTrail.CreateTrail: newCreateTrailResponse :: Int -> CreateTrailResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: DeleteEventDataStore' :: Text -> DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: DeleteEventDataStoreResponse' :: Int -> DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: [$sel:eventDataStore:DeleteEventDataStore'] :: DeleteEventDataStore -> Text
+ Amazonka.CloudTrail.DeleteEventDataStore: [$sel:httpStatus:DeleteEventDataStoreResponse'] :: DeleteEventDataStoreResponse -> Int
+ Amazonka.CloudTrail.DeleteEventDataStore: data DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: data DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: deleteEventDataStoreResponse_httpStatus :: Lens' DeleteEventDataStoreResponse Int
+ Amazonka.CloudTrail.DeleteEventDataStore: deleteEventDataStore_eventDataStore :: Lens' DeleteEventDataStore Text
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.DeleteEventDataStore.DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteEventDataStore: newDeleteEventDataStore :: Text -> DeleteEventDataStore
+ Amazonka.CloudTrail.DeleteEventDataStore: newDeleteEventDataStoreResponse :: Int -> DeleteEventDataStoreResponse
+ Amazonka.CloudTrail.DeleteTrail: DeleteTrail' :: Text -> DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: DeleteTrailResponse' :: Int -> DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: [$sel:httpStatus:DeleteTrailResponse'] :: DeleteTrailResponse -> Int
+ Amazonka.CloudTrail.DeleteTrail: [$sel:name:DeleteTrail'] :: DeleteTrail -> Text
+ Amazonka.CloudTrail.DeleteTrail: data DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: data DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: deleteTrailResponse_httpStatus :: Lens' DeleteTrailResponse Int
+ Amazonka.CloudTrail.DeleteTrail: deleteTrail_name :: Lens' DeleteTrail Text
+ Amazonka.CloudTrail.DeleteTrail: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeleteTrail.DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.DeleteTrail.DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.DeleteTrail.DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Read.Read Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Read.Read Amazonka.CloudTrail.DeleteTrail.DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Show.Show Amazonka.CloudTrail.DeleteTrail.DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: instance GHC.Show.Show Amazonka.CloudTrail.DeleteTrail.DeleteTrailResponse
+ Amazonka.CloudTrail.DeleteTrail: newDeleteTrail :: Text -> DeleteTrail
+ Amazonka.CloudTrail.DeleteTrail: newDeleteTrailResponse :: Int -> DeleteTrailResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: DeregisterOrganizationDelegatedAdmin' :: Text -> DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: DeregisterOrganizationDelegatedAdminResponse' :: Int -> DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: [$sel:delegatedAdminAccountId:DeregisterOrganizationDelegatedAdmin'] :: DeregisterOrganizationDelegatedAdmin -> Text
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: [$sel:httpStatus:DeregisterOrganizationDelegatedAdminResponse'] :: DeregisterOrganizationDelegatedAdminResponse -> Int
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: data DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: data DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: deregisterOrganizationDelegatedAdminResponse_httpStatus :: Lens' DeregisterOrganizationDelegatedAdminResponse Int
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId :: Lens' DeregisterOrganizationDelegatedAdmin Text
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Classes.Eq Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Classes.Eq Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Generics.Generic Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Generics.Generic Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Read.Read Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Read.Read Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Show.Show Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: instance GHC.Show.Show Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin.DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: newDeregisterOrganizationDelegatedAdmin :: Text -> DeregisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin: newDeregisterOrganizationDelegatedAdminResponse :: Int -> DeregisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.DescribeQuery: DescribeQuery' :: Maybe Text -> Text -> DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: DescribeQueryResponse' :: Maybe Text -> Maybe DeliveryStatus -> Maybe Text -> Maybe Text -> Maybe QueryStatisticsForDescribeQuery -> Maybe QueryStatus -> Maybe Text -> Int -> DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: [$sel:deliveryS3Uri:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe Text
+ Amazonka.CloudTrail.DescribeQuery: [$sel:deliveryStatus:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe DeliveryStatus
+ Amazonka.CloudTrail.DescribeQuery: [$sel:errorMessage:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe Text
+ Amazonka.CloudTrail.DescribeQuery: [$sel:eventDataStore:DescribeQuery'] :: DescribeQuery -> Maybe Text
+ Amazonka.CloudTrail.DescribeQuery: [$sel:httpStatus:DescribeQueryResponse'] :: DescribeQueryResponse -> Int
+ Amazonka.CloudTrail.DescribeQuery: [$sel:queryId:DescribeQuery'] :: DescribeQuery -> Text
+ Amazonka.CloudTrail.DescribeQuery: [$sel:queryId:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe Text
+ Amazonka.CloudTrail.DescribeQuery: [$sel:queryStatistics:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: [$sel:queryStatus:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe QueryStatus
+ Amazonka.CloudTrail.DescribeQuery: [$sel:queryString:DescribeQueryResponse'] :: DescribeQueryResponse -> Maybe Text
+ Amazonka.CloudTrail.DescribeQuery: data DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: data DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_deliveryS3Uri :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_deliveryStatus :: Lens' DescribeQueryResponse (Maybe DeliveryStatus)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_errorMessage :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_httpStatus :: Lens' DescribeQueryResponse Int
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_queryId :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_queryStatistics :: Lens' DescribeQueryResponse (Maybe QueryStatisticsForDescribeQuery)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_queryStatus :: Lens' DescribeQueryResponse (Maybe QueryStatus)
+ Amazonka.CloudTrail.DescribeQuery: describeQueryResponse_queryString :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.DescribeQuery: describeQuery_eventDataStore :: Lens' DescribeQuery (Maybe Text)
+ Amazonka.CloudTrail.DescribeQuery: describeQuery_queryId :: Lens' DescribeQuery Text
+ Amazonka.CloudTrail.DescribeQuery: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DescribeQuery.DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.DescribeQuery.DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.DescribeQuery.DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Read.Read Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Read.Read Amazonka.CloudTrail.DescribeQuery.DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Show.Show Amazonka.CloudTrail.DescribeQuery.DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: instance GHC.Show.Show Amazonka.CloudTrail.DescribeQuery.DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeQuery: newDescribeQuery :: Text -> DescribeQuery
+ Amazonka.CloudTrail.DescribeQuery: newDescribeQueryResponse :: Int -> DescribeQueryResponse
+ Amazonka.CloudTrail.DescribeTrails: DescribeTrails' :: Maybe Bool -> Maybe [Text] -> DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: DescribeTrailsResponse' :: Maybe [Trail] -> Int -> DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: [$sel:httpStatus:DescribeTrailsResponse'] :: DescribeTrailsResponse -> Int
+ Amazonka.CloudTrail.DescribeTrails: [$sel:includeShadowTrails:DescribeTrails'] :: DescribeTrails -> Maybe Bool
+ Amazonka.CloudTrail.DescribeTrails: [$sel:trailList:DescribeTrailsResponse'] :: DescribeTrailsResponse -> Maybe [Trail]
+ Amazonka.CloudTrail.DescribeTrails: [$sel:trailNameList:DescribeTrails'] :: DescribeTrails -> Maybe [Text]
+ Amazonka.CloudTrail.DescribeTrails: data DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: data DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: describeTrailsResponse_httpStatus :: Lens' DescribeTrailsResponse Int
+ Amazonka.CloudTrail.DescribeTrails: describeTrailsResponse_trailList :: Lens' DescribeTrailsResponse (Maybe [Trail])
+ Amazonka.CloudTrail.DescribeTrails: describeTrails_includeShadowTrails :: Lens' DescribeTrails (Maybe Bool)
+ Amazonka.CloudTrail.DescribeTrails: describeTrails_trailNameList :: Lens' DescribeTrails (Maybe [Text])
+ Amazonka.CloudTrail.DescribeTrails: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Control.DeepSeq.NFData Amazonka.CloudTrail.DescribeTrails.DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Classes.Eq Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Classes.Eq Amazonka.CloudTrail.DescribeTrails.DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Generics.Generic Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Generics.Generic Amazonka.CloudTrail.DescribeTrails.DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Read.Read Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Read.Read Amazonka.CloudTrail.DescribeTrails.DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Show.Show Amazonka.CloudTrail.DescribeTrails.DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: instance GHC.Show.Show Amazonka.CloudTrail.DescribeTrails.DescribeTrailsResponse
+ Amazonka.CloudTrail.DescribeTrails: newDescribeTrails :: DescribeTrails
+ Amazonka.CloudTrail.DescribeTrails: newDescribeTrailsResponse :: Int -> DescribeTrailsResponse
+ Amazonka.CloudTrail.GetChannel: GetChannel' :: Text -> GetChannel
+ Amazonka.CloudTrail.GetChannel: GetChannelResponse' :: Maybe Text -> Maybe (NonEmpty Destination) -> Maybe Text -> Maybe Text -> Maybe SourceConfig -> Int -> GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: [$sel:channel:GetChannel'] :: GetChannel -> Text
+ Amazonka.CloudTrail.GetChannel: [$sel:channelArn:GetChannelResponse'] :: GetChannelResponse -> Maybe Text
+ Amazonka.CloudTrail.GetChannel: [$sel:destinations:GetChannelResponse'] :: GetChannelResponse -> Maybe (NonEmpty Destination)
+ Amazonka.CloudTrail.GetChannel: [$sel:httpStatus:GetChannelResponse'] :: GetChannelResponse -> Int
+ Amazonka.CloudTrail.GetChannel: [$sel:name:GetChannelResponse'] :: GetChannelResponse -> Maybe Text
+ Amazonka.CloudTrail.GetChannel: [$sel:source:GetChannelResponse'] :: GetChannelResponse -> Maybe Text
+ Amazonka.CloudTrail.GetChannel: [$sel:sourceConfig:GetChannelResponse'] :: GetChannelResponse -> Maybe SourceConfig
+ Amazonka.CloudTrail.GetChannel: data GetChannel
+ Amazonka.CloudTrail.GetChannel: data GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_channelArn :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_destinations :: Lens' GetChannelResponse (Maybe (NonEmpty Destination))
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_httpStatus :: Lens' GetChannelResponse Int
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_name :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_source :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.GetChannel: getChannelResponse_sourceConfig :: Lens' GetChannelResponse (Maybe SourceConfig)
+ Amazonka.CloudTrail.GetChannel: getChannel_channel :: Lens' GetChannel Text
+ Amazonka.CloudTrail.GetChannel: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetChannel.GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance GHC.Classes.Eq Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance GHC.Classes.Eq Amazonka.CloudTrail.GetChannel.GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: instance GHC.Generics.Generic Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance GHC.Generics.Generic Amazonka.CloudTrail.GetChannel.GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: instance GHC.Read.Read Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance GHC.Read.Read Amazonka.CloudTrail.GetChannel.GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: instance GHC.Show.Show Amazonka.CloudTrail.GetChannel.GetChannel
+ Amazonka.CloudTrail.GetChannel: instance GHC.Show.Show Amazonka.CloudTrail.GetChannel.GetChannelResponse
+ Amazonka.CloudTrail.GetChannel: newGetChannel :: Text -> GetChannel
+ Amazonka.CloudTrail.GetChannel: newGetChannelResponse :: Int -> GetChannelResponse
+ Amazonka.CloudTrail.GetEventDataStore: GetEventDataStore' :: Text -> GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: GetEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:advancedEventSelectors:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:createdTimestamp:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:eventDataStore:GetEventDataStore'] :: GetEventDataStore -> Text
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:eventDataStoreArn:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:httpStatus:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Int
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:kmsKeyId:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:multiRegionEnabled:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:name:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:organizationEnabled:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:retentionPeriod:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Natural
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:status:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:terminationProtectionEnabled:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.GetEventDataStore: [$sel:updatedTimestamp:GetEventDataStoreResponse'] :: GetEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetEventDataStore: data GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: data GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_advancedEventSelectors :: Lens' GetEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_createdTimestamp :: Lens' GetEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_eventDataStoreArn :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_httpStatus :: Lens' GetEventDataStoreResponse Int
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_kmsKeyId :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_multiRegionEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_name :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_organizationEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_retentionPeriod :: Lens' GetEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_status :: Lens' GetEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_terminationProtectionEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStoreResponse_updatedTimestamp :: Lens' GetEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetEventDataStore: getEventDataStore_eventDataStore :: Lens' GetEventDataStore Text
+ Amazonka.CloudTrail.GetEventDataStore: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetEventDataStore.GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.GetEventDataStore.GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.GetEventDataStore.GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.GetEventDataStore.GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.GetEventDataStore.GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.GetEventDataStore.GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventDataStore: newGetEventDataStore :: Text -> GetEventDataStore
+ Amazonka.CloudTrail.GetEventDataStore: newGetEventDataStoreResponse :: Int -> GetEventDataStoreResponse
+ Amazonka.CloudTrail.GetEventSelectors: GetEventSelectors' :: Text -> GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: GetEventSelectorsResponse' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Maybe Text -> Int -> GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: [$sel:advancedEventSelectors:GetEventSelectorsResponse'] :: GetEventSelectorsResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.GetEventSelectors: [$sel:eventSelectors:GetEventSelectorsResponse'] :: GetEventSelectorsResponse -> Maybe [EventSelector]
+ Amazonka.CloudTrail.GetEventSelectors: [$sel:httpStatus:GetEventSelectorsResponse'] :: GetEventSelectorsResponse -> Int
+ Amazonka.CloudTrail.GetEventSelectors: [$sel:trailARN:GetEventSelectorsResponse'] :: GetEventSelectorsResponse -> Maybe Text
+ Amazonka.CloudTrail.GetEventSelectors: [$sel:trailName:GetEventSelectors'] :: GetEventSelectors -> Text
+ Amazonka.CloudTrail.GetEventSelectors: data GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: data GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: getEventSelectorsResponse_advancedEventSelectors :: Lens' GetEventSelectorsResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.GetEventSelectors: getEventSelectorsResponse_eventSelectors :: Lens' GetEventSelectorsResponse (Maybe [EventSelector])
+ Amazonka.CloudTrail.GetEventSelectors: getEventSelectorsResponse_httpStatus :: Lens' GetEventSelectorsResponse Int
+ Amazonka.CloudTrail.GetEventSelectors: getEventSelectorsResponse_trailARN :: Lens' GetEventSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.GetEventSelectors: getEventSelectors_trailName :: Lens' GetEventSelectors Text
+ Amazonka.CloudTrail.GetEventSelectors: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Read.Read Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Read.Read Amazonka.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Show.Show Amazonka.CloudTrail.GetEventSelectors.GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: instance GHC.Show.Show Amazonka.CloudTrail.GetEventSelectors.GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetEventSelectors: newGetEventSelectors :: Text -> GetEventSelectors
+ Amazonka.CloudTrail.GetEventSelectors: newGetEventSelectorsResponse :: Int -> GetEventSelectorsResponse
+ Amazonka.CloudTrail.GetImport: GetImport' :: Text -> GetImport
+ Amazonka.CloudTrail.GetImport: GetImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatistics -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> GetImportResponse
+ Amazonka.CloudTrail.GetImport: [$sel:createdTimestamp:GetImportResponse'] :: GetImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetImport: [$sel:destinations:GetImportResponse'] :: GetImportResponse -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.GetImport: [$sel:endEventTime:GetImportResponse'] :: GetImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetImport: [$sel:httpStatus:GetImportResponse'] :: GetImportResponse -> Int
+ Amazonka.CloudTrail.GetImport: [$sel:importId:GetImport'] :: GetImport -> Text
+ Amazonka.CloudTrail.GetImport: [$sel:importId:GetImportResponse'] :: GetImportResponse -> Maybe Text
+ Amazonka.CloudTrail.GetImport: [$sel:importSource:GetImportResponse'] :: GetImportResponse -> Maybe ImportSource
+ Amazonka.CloudTrail.GetImport: [$sel:importStatistics:GetImportResponse'] :: GetImportResponse -> Maybe ImportStatistics
+ Amazonka.CloudTrail.GetImport: [$sel:importStatus:GetImportResponse'] :: GetImportResponse -> Maybe ImportStatus
+ Amazonka.CloudTrail.GetImport: [$sel:startEventTime:GetImportResponse'] :: GetImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetImport: [$sel:updatedTimestamp:GetImportResponse'] :: GetImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetImport: data GetImport
+ Amazonka.CloudTrail.GetImport: data GetImportResponse
+ Amazonka.CloudTrail.GetImport: getImportResponse_createdTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetImport: getImportResponse_destinations :: Lens' GetImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.GetImport: getImportResponse_endEventTime :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetImport: getImportResponse_httpStatus :: Lens' GetImportResponse Int
+ Amazonka.CloudTrail.GetImport: getImportResponse_importId :: Lens' GetImportResponse (Maybe Text)
+ Amazonka.CloudTrail.GetImport: getImportResponse_importSource :: Lens' GetImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.GetImport: getImportResponse_importStatistics :: Lens' GetImportResponse (Maybe ImportStatistics)
+ Amazonka.CloudTrail.GetImport: getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.GetImport: getImportResponse_startEventTime :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetImport: getImportResponse_updatedTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetImport: getImport_importId :: Lens' GetImport Text
+ Amazonka.CloudTrail.GetImport: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetImport.GetImportResponse
+ Amazonka.CloudTrail.GetImport: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance GHC.Classes.Eq Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance GHC.Classes.Eq Amazonka.CloudTrail.GetImport.GetImportResponse
+ Amazonka.CloudTrail.GetImport: instance GHC.Generics.Generic Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance GHC.Generics.Generic Amazonka.CloudTrail.GetImport.GetImportResponse
+ Amazonka.CloudTrail.GetImport: instance GHC.Read.Read Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance GHC.Read.Read Amazonka.CloudTrail.GetImport.GetImportResponse
+ Amazonka.CloudTrail.GetImport: instance GHC.Show.Show Amazonka.CloudTrail.GetImport.GetImport
+ Amazonka.CloudTrail.GetImport: instance GHC.Show.Show Amazonka.CloudTrail.GetImport.GetImportResponse
+ Amazonka.CloudTrail.GetImport: newGetImport :: Text -> GetImport
+ Amazonka.CloudTrail.GetImport: newGetImportResponse :: Int -> GetImportResponse
+ Amazonka.CloudTrail.GetInsightSelectors: GetInsightSelectors' :: Text -> GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: GetInsightSelectorsResponse' :: Maybe [InsightSelector] -> Maybe Text -> Int -> GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: [$sel:httpStatus:GetInsightSelectorsResponse'] :: GetInsightSelectorsResponse -> Int
+ Amazonka.CloudTrail.GetInsightSelectors: [$sel:insightSelectors:GetInsightSelectorsResponse'] :: GetInsightSelectorsResponse -> Maybe [InsightSelector]
+ Amazonka.CloudTrail.GetInsightSelectors: [$sel:trailARN:GetInsightSelectorsResponse'] :: GetInsightSelectorsResponse -> Maybe Text
+ Amazonka.CloudTrail.GetInsightSelectors: [$sel:trailName:GetInsightSelectors'] :: GetInsightSelectors -> Text
+ Amazonka.CloudTrail.GetInsightSelectors: data GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: data GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: getInsightSelectorsResponse_httpStatus :: Lens' GetInsightSelectorsResponse Int
+ Amazonka.CloudTrail.GetInsightSelectors: getInsightSelectorsResponse_insightSelectors :: Lens' GetInsightSelectorsResponse (Maybe [InsightSelector])
+ Amazonka.CloudTrail.GetInsightSelectors: getInsightSelectorsResponse_trailARN :: Lens' GetInsightSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.GetInsightSelectors: getInsightSelectors_trailName :: Lens' GetInsightSelectors Text
+ Amazonka.CloudTrail.GetInsightSelectors: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Read.Read Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Read.Read Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Show.Show Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: instance GHC.Show.Show Amazonka.CloudTrail.GetInsightSelectors.GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetInsightSelectors: newGetInsightSelectors :: Text -> GetInsightSelectors
+ Amazonka.CloudTrail.GetInsightSelectors: newGetInsightSelectorsResponse :: Int -> GetInsightSelectorsResponse
+ Amazonka.CloudTrail.GetQueryResults: GetQueryResults' :: Maybe Text -> Maybe Natural -> Maybe Text -> Text -> GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: GetQueryResultsResponse' :: Maybe Text -> Maybe Text -> Maybe [[HashMap Text Text]] -> Maybe QueryStatistics -> Maybe QueryStatus -> Int -> GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: [$sel:errorMessage:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Maybe Text
+ Amazonka.CloudTrail.GetQueryResults: [$sel:eventDataStore:GetQueryResults'] :: GetQueryResults -> Maybe Text
+ Amazonka.CloudTrail.GetQueryResults: [$sel:httpStatus:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Int
+ Amazonka.CloudTrail.GetQueryResults: [$sel:maxQueryResults:GetQueryResults'] :: GetQueryResults -> Maybe Natural
+ Amazonka.CloudTrail.GetQueryResults: [$sel:nextToken:GetQueryResults'] :: GetQueryResults -> Maybe Text
+ Amazonka.CloudTrail.GetQueryResults: [$sel:nextToken:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Maybe Text
+ Amazonka.CloudTrail.GetQueryResults: [$sel:queryId:GetQueryResults'] :: GetQueryResults -> Text
+ Amazonka.CloudTrail.GetQueryResults: [$sel:queryResultRows:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Maybe [[HashMap Text Text]]
+ Amazonka.CloudTrail.GetQueryResults: [$sel:queryStatistics:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Maybe QueryStatistics
+ Amazonka.CloudTrail.GetQueryResults: [$sel:queryStatus:GetQueryResultsResponse'] :: GetQueryResultsResponse -> Maybe QueryStatus
+ Amazonka.CloudTrail.GetQueryResults: data GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: data GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_errorMessage :: Lens' GetQueryResultsResponse (Maybe Text)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_httpStatus :: Lens' GetQueryResultsResponse Int
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_nextToken :: Lens' GetQueryResultsResponse (Maybe Text)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_queryResultRows :: Lens' GetQueryResultsResponse (Maybe [[HashMap Text Text]])
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_queryStatistics :: Lens' GetQueryResultsResponse (Maybe QueryStatistics)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResultsResponse_queryStatus :: Lens' GetQueryResultsResponse (Maybe QueryStatus)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResults_eventDataStore :: Lens' GetQueryResults (Maybe Text)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResults_maxQueryResults :: Lens' GetQueryResults (Maybe Natural)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResults_nextToken :: Lens' GetQueryResults (Maybe Text)
+ Amazonka.CloudTrail.GetQueryResults: getQueryResults_queryId :: Lens' GetQueryResults Text
+ Amazonka.CloudTrail.GetQueryResults: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetQueryResults.GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Classes.Eq Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Classes.Eq Amazonka.CloudTrail.GetQueryResults.GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Generics.Generic Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Generics.Generic Amazonka.CloudTrail.GetQueryResults.GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Read.Read Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Read.Read Amazonka.CloudTrail.GetQueryResults.GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Show.Show Amazonka.CloudTrail.GetQueryResults.GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: instance GHC.Show.Show Amazonka.CloudTrail.GetQueryResults.GetQueryResultsResponse
+ Amazonka.CloudTrail.GetQueryResults: newGetQueryResults :: Text -> GetQueryResults
+ Amazonka.CloudTrail.GetQueryResults: newGetQueryResultsResponse :: Int -> GetQueryResultsResponse
+ Amazonka.CloudTrail.GetTrail: GetTrail' :: Text -> GetTrail
+ Amazonka.CloudTrail.GetTrail: GetTrailResponse' :: Maybe Trail -> Int -> GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: [$sel:httpStatus:GetTrailResponse'] :: GetTrailResponse -> Int
+ Amazonka.CloudTrail.GetTrail: [$sel:name:GetTrail'] :: GetTrail -> Text
+ Amazonka.CloudTrail.GetTrail: [$sel:trail:GetTrailResponse'] :: GetTrailResponse -> Maybe Trail
+ Amazonka.CloudTrail.GetTrail: data GetTrail
+ Amazonka.CloudTrail.GetTrail: data GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: getTrailResponse_httpStatus :: Lens' GetTrailResponse Int
+ Amazonka.CloudTrail.GetTrail: getTrailResponse_trail :: Lens' GetTrailResponse (Maybe Trail)
+ Amazonka.CloudTrail.GetTrail: getTrail_name :: Lens' GetTrail Text
+ Amazonka.CloudTrail.GetTrail: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetTrail.GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.GetTrail.GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.GetTrail.GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: instance GHC.Read.Read Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance GHC.Read.Read Amazonka.CloudTrail.GetTrail.GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: instance GHC.Show.Show Amazonka.CloudTrail.GetTrail.GetTrail
+ Amazonka.CloudTrail.GetTrail: instance GHC.Show.Show Amazonka.CloudTrail.GetTrail.GetTrailResponse
+ Amazonka.CloudTrail.GetTrail: newGetTrail :: Text -> GetTrail
+ Amazonka.CloudTrail.GetTrail: newGetTrailResponse :: Int -> GetTrailResponse
+ Amazonka.CloudTrail.GetTrailStatus: GetTrailStatus' :: Text -> GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: GetTrailStatusResponse' :: Maybe Bool -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe POSIX -> Maybe POSIX -> Maybe Text -> Maybe Text -> Int -> GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:httpStatus:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Int
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:isLogging:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Bool
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestCloudWatchLogsDeliveryError:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestCloudWatchLogsDeliveryTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDeliveryAttemptSucceeded:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDeliveryAttemptTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDeliveryError:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDeliveryTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDigestDeliveryError:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestDigestDeliveryTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestNotificationAttemptSucceeded:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestNotificationAttemptTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestNotificationError:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:latestNotificationTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:name:GetTrailStatus'] :: GetTrailStatus -> Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:startLoggingTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:stopLoggingTime:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe POSIX
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:timeLoggingStarted:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: [$sel:timeLoggingStopped:GetTrailStatusResponse'] :: GetTrailStatusResponse -> Maybe Text
+ Amazonka.CloudTrail.GetTrailStatus: data GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: data GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_httpStatus :: Lens' GetTrailStatusResponse Int
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_isLogging :: Lens' GetTrailStatusResponse (Maybe Bool)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestCloudWatchLogsDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDeliveryAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDeliveryAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDigestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestDigestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestNotificationAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestNotificationAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestNotificationError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_latestNotificationTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_startLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_stopLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_timeLoggingStarted :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatusResponse_timeLoggingStopped :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.GetTrailStatus: getTrailStatus_name :: Lens' GetTrailStatus Text
+ Amazonka.CloudTrail.GetTrailStatus: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.GetTrailStatus.GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.GetTrailStatus.GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.GetTrailStatus.GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Read.Read Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Read.Read Amazonka.CloudTrail.GetTrailStatus.GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Show.Show Amazonka.CloudTrail.GetTrailStatus.GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: instance GHC.Show.Show Amazonka.CloudTrail.GetTrailStatus.GetTrailStatusResponse
+ Amazonka.CloudTrail.GetTrailStatus: newGetTrailStatus :: Text -> GetTrailStatus
+ Amazonka.CloudTrail.GetTrailStatus: newGetTrailStatusResponse :: Int -> GetTrailStatusResponse
+ Amazonka.CloudTrail.Lens: addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
+ Amazonka.CloudTrail.Lens: addTags_resourceId :: Lens' AddTags Text
+ Amazonka.CloudTrail.Lens: addTags_tagsList :: Lens' AddTags [Tag]
+ Amazonka.CloudTrail.Lens: advancedEventSelector_fieldSelectors :: Lens' AdvancedEventSelector (NonEmpty AdvancedFieldSelector)
+ Amazonka.CloudTrail.Lens: advancedEventSelector_name :: Lens' AdvancedEventSelector (Maybe Text)
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_endsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_equals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_field :: Lens' AdvancedFieldSelector Text
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_notEndsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_notEquals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_notStartsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: advancedFieldSelector_startsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: cancelQueryResponse_httpStatus :: Lens' CancelQueryResponse Int
+ Amazonka.CloudTrail.Lens: cancelQueryResponse_queryId :: Lens' CancelQueryResponse Text
+ Amazonka.CloudTrail.Lens: cancelQueryResponse_queryStatus :: Lens' CancelQueryResponse QueryStatus
+ Amazonka.CloudTrail.Lens: cancelQuery_eventDataStore :: Lens' CancelQuery (Maybe Text)
+ Amazonka.CloudTrail.Lens: cancelQuery_queryId :: Lens' CancelQuery Text
+ Amazonka.CloudTrail.Lens: channel_channelArn :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Lens: channel_name :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_advancedEventSelectors :: Lens' CreateEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_createdTimestamp :: Lens' CreateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_eventDataStoreArn :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_httpStatus :: Lens' CreateEventDataStoreResponse Int
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_kmsKeyId :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_multiRegionEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_name :: Lens' CreateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_organizationEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_retentionPeriod :: Lens' CreateEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_status :: Lens' CreateEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_tagsList :: Lens' CreateEventDataStoreResponse (Maybe [Tag])
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_terminationProtectionEnabled :: Lens' CreateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createEventDataStoreResponse_updatedTimestamp :: Lens' CreateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: createEventDataStore_advancedEventSelectors :: Lens' CreateEventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: createEventDataStore_kmsKeyId :: Lens' CreateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Lens: createEventDataStore_multiRegionEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createEventDataStore_name :: Lens' CreateEventDataStore Text
+ Amazonka.CloudTrail.Lens: createEventDataStore_organizationEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createEventDataStore_retentionPeriod :: Lens' CreateEventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.Lens: createEventDataStore_tagsList :: Lens' CreateEventDataStore (Maybe [Tag])
+ Amazonka.CloudTrail.Lens: createEventDataStore_terminationProtectionEnabled :: Lens' CreateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrailResponse_cloudWatchLogsLogGroupArn :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_cloudWatchLogsRoleArn :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_httpStatus :: Lens' CreateTrailResponse Int
+ Amazonka.CloudTrail.Lens: createTrailResponse_includeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrailResponse_isMultiRegionTrail :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrailResponse_isOrganizationTrail :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrailResponse_kmsKeyId :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_logFileValidationEnabled :: Lens' CreateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrailResponse_name :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_s3BucketName :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_s3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_snsTopicARN :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_snsTopicName :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrailResponse_trailARN :: Lens' CreateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_cloudWatchLogsLogGroupArn :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_cloudWatchLogsRoleArn :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_enableLogFileValidation :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrail_includeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrail_isMultiRegionTrail :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrail_isOrganizationTrail :: Lens' CreateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: createTrail_kmsKeyId :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_name :: Lens' CreateTrail Text
+ Amazonka.CloudTrail.Lens: createTrail_s3BucketName :: Lens' CreateTrail Text
+ Amazonka.CloudTrail.Lens: createTrail_s3KeyPrefix :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_snsTopicName :: Lens' CreateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: createTrail_tagsList :: Lens' CreateTrail (Maybe [Tag])
+ Amazonka.CloudTrail.Lens: dataResource_type :: Lens' DataResource (Maybe Text)
+ Amazonka.CloudTrail.Lens: dataResource_values :: Lens' DataResource (Maybe [Text])
+ Amazonka.CloudTrail.Lens: deleteEventDataStoreResponse_httpStatus :: Lens' DeleteEventDataStoreResponse Int
+ Amazonka.CloudTrail.Lens: deleteEventDataStore_eventDataStore :: Lens' DeleteEventDataStore Text
+ Amazonka.CloudTrail.Lens: deleteTrailResponse_httpStatus :: Lens' DeleteTrailResponse Int
+ Amazonka.CloudTrail.Lens: deleteTrail_name :: Lens' DeleteTrail Text
+ Amazonka.CloudTrail.Lens: deregisterOrganizationDelegatedAdminResponse_httpStatus :: Lens' DeregisterOrganizationDelegatedAdminResponse Int
+ Amazonka.CloudTrail.Lens: deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId :: Lens' DeregisterOrganizationDelegatedAdmin Text
+ Amazonka.CloudTrail.Lens: describeQueryResponse_deliveryS3Uri :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_deliveryStatus :: Lens' DescribeQueryResponse (Maybe DeliveryStatus)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_errorMessage :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_httpStatus :: Lens' DescribeQueryResponse Int
+ Amazonka.CloudTrail.Lens: describeQueryResponse_queryId :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_queryStatistics :: Lens' DescribeQueryResponse (Maybe QueryStatisticsForDescribeQuery)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_queryStatus :: Lens' DescribeQueryResponse (Maybe QueryStatus)
+ Amazonka.CloudTrail.Lens: describeQueryResponse_queryString :: Lens' DescribeQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: describeQuery_eventDataStore :: Lens' DescribeQuery (Maybe Text)
+ Amazonka.CloudTrail.Lens: describeQuery_queryId :: Lens' DescribeQuery Text
+ Amazonka.CloudTrail.Lens: describeTrailsResponse_httpStatus :: Lens' DescribeTrailsResponse Int
+ Amazonka.CloudTrail.Lens: describeTrailsResponse_trailList :: Lens' DescribeTrailsResponse (Maybe [Trail])
+ Amazonka.CloudTrail.Lens: describeTrails_includeShadowTrails :: Lens' DescribeTrails (Maybe Bool)
+ Amazonka.CloudTrail.Lens: describeTrails_trailNameList :: Lens' DescribeTrails (Maybe [Text])
+ Amazonka.CloudTrail.Lens: destination_location :: Lens' Destination Text
+ Amazonka.CloudTrail.Lens: destination_type :: Lens' Destination DestinationType
+ Amazonka.CloudTrail.Lens: eventDataStore_advancedEventSelectors :: Lens' EventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: eventDataStore_createdTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: eventDataStore_eventDataStoreArn :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Lens: eventDataStore_multiRegionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: eventDataStore_name :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Lens: eventDataStore_organizationEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: eventDataStore_retentionPeriod :: Lens' EventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.Lens: eventDataStore_status :: Lens' EventDataStore (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Lens: eventDataStore_terminationProtectionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: eventDataStore_updatedTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: eventSelector_dataResources :: Lens' EventSelector (Maybe [DataResource])
+ Amazonka.CloudTrail.Lens: eventSelector_excludeManagementEventSources :: Lens' EventSelector (Maybe [Text])
+ Amazonka.CloudTrail.Lens: eventSelector_includeManagementEvents :: Lens' EventSelector (Maybe Bool)
+ Amazonka.CloudTrail.Lens: eventSelector_readWriteType :: Lens' EventSelector (Maybe ReadWriteType)
+ Amazonka.CloudTrail.Lens: event_accessKeyId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_cloudTrailEvent :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_eventId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_eventName :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_eventSource :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_eventTime :: Lens' Event (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: event_readOnly :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: event_resources :: Lens' Event (Maybe [Resource])
+ Amazonka.CloudTrail.Lens: event_username :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Lens: getChannelResponse_channelArn :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getChannelResponse_destinations :: Lens' GetChannelResponse (Maybe (NonEmpty Destination))
+ Amazonka.CloudTrail.Lens: getChannelResponse_httpStatus :: Lens' GetChannelResponse Int
+ Amazonka.CloudTrail.Lens: getChannelResponse_name :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getChannelResponse_source :: Lens' GetChannelResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getChannelResponse_sourceConfig :: Lens' GetChannelResponse (Maybe SourceConfig)
+ Amazonka.CloudTrail.Lens: getChannel_channel :: Lens' GetChannel Text
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_advancedEventSelectors :: Lens' GetEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_createdTimestamp :: Lens' GetEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_eventDataStoreArn :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_httpStatus :: Lens' GetEventDataStoreResponse Int
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_kmsKeyId :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_multiRegionEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_name :: Lens' GetEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_organizationEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_retentionPeriod :: Lens' GetEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_status :: Lens' GetEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_terminationProtectionEnabled :: Lens' GetEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: getEventDataStoreResponse_updatedTimestamp :: Lens' GetEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getEventDataStore_eventDataStore :: Lens' GetEventDataStore Text
+ Amazonka.CloudTrail.Lens: getEventSelectorsResponse_advancedEventSelectors :: Lens' GetEventSelectorsResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: getEventSelectorsResponse_eventSelectors :: Lens' GetEventSelectorsResponse (Maybe [EventSelector])
+ Amazonka.CloudTrail.Lens: getEventSelectorsResponse_httpStatus :: Lens' GetEventSelectorsResponse Int
+ Amazonka.CloudTrail.Lens: getEventSelectorsResponse_trailARN :: Lens' GetEventSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getEventSelectors_trailName :: Lens' GetEventSelectors Text
+ Amazonka.CloudTrail.Lens: getImportResponse_createdTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getImportResponse_destinations :: Lens' GetImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: getImportResponse_endEventTime :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getImportResponse_httpStatus :: Lens' GetImportResponse Int
+ Amazonka.CloudTrail.Lens: getImportResponse_importId :: Lens' GetImportResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getImportResponse_importSource :: Lens' GetImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.Lens: getImportResponse_importStatistics :: Lens' GetImportResponse (Maybe ImportStatistics)
+ Amazonka.CloudTrail.Lens: getImportResponse_importStatus :: Lens' GetImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.Lens: getImportResponse_startEventTime :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getImportResponse_updatedTimestamp :: Lens' GetImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getImport_importId :: Lens' GetImport Text
+ Amazonka.CloudTrail.Lens: getInsightSelectorsResponse_httpStatus :: Lens' GetInsightSelectorsResponse Int
+ Amazonka.CloudTrail.Lens: getInsightSelectorsResponse_insightSelectors :: Lens' GetInsightSelectorsResponse (Maybe [InsightSelector])
+ Amazonka.CloudTrail.Lens: getInsightSelectorsResponse_trailARN :: Lens' GetInsightSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getInsightSelectors_trailName :: Lens' GetInsightSelectors Text
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_errorMessage :: Lens' GetQueryResultsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_httpStatus :: Lens' GetQueryResultsResponse Int
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_nextToken :: Lens' GetQueryResultsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_queryResultRows :: Lens' GetQueryResultsResponse (Maybe [[HashMap Text Text]])
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_queryStatistics :: Lens' GetQueryResultsResponse (Maybe QueryStatistics)
+ Amazonka.CloudTrail.Lens: getQueryResultsResponse_queryStatus :: Lens' GetQueryResultsResponse (Maybe QueryStatus)
+ Amazonka.CloudTrail.Lens: getQueryResults_eventDataStore :: Lens' GetQueryResults (Maybe Text)
+ Amazonka.CloudTrail.Lens: getQueryResults_maxQueryResults :: Lens' GetQueryResults (Maybe Natural)
+ Amazonka.CloudTrail.Lens: getQueryResults_nextToken :: Lens' GetQueryResults (Maybe Text)
+ Amazonka.CloudTrail.Lens: getQueryResults_queryId :: Lens' GetQueryResults Text
+ Amazonka.CloudTrail.Lens: getTrailResponse_httpStatus :: Lens' GetTrailResponse Int
+ Amazonka.CloudTrail.Lens: getTrailResponse_trail :: Lens' GetTrailResponse (Maybe Trail)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_httpStatus :: Lens' GetTrailStatusResponse Int
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_isLogging :: Lens' GetTrailStatusResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestCloudWatchLogsDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDeliveryAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDeliveryAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDigestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestDigestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestNotificationAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestNotificationAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestNotificationError :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_latestNotificationTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_startLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_stopLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_timeLoggingStarted :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatusResponse_timeLoggingStopped :: Lens' GetTrailStatusResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: getTrailStatus_name :: Lens' GetTrailStatus Text
+ Amazonka.CloudTrail.Lens: getTrail_name :: Lens' GetTrail Text
+ Amazonka.CloudTrail.Lens: importFailureListItem_errorMessage :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Lens: importFailureListItem_errorType :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Lens: importFailureListItem_lastUpdatedTime :: Lens' ImportFailureListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: importFailureListItem_location :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Lens: importFailureListItem_status :: Lens' ImportFailureListItem (Maybe ImportFailureStatus)
+ Amazonka.CloudTrail.Lens: importSource_s3 :: Lens' ImportSource S3ImportSource
+ Amazonka.CloudTrail.Lens: importStatistics_eventsCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: importStatistics_failedEntries :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: importStatistics_filesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: importStatistics_prefixesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: importStatistics_prefixesFound :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: importsListItem_createdTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: importsListItem_destinations :: Lens' ImportsListItem (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: importsListItem_importId :: Lens' ImportsListItem (Maybe Text)
+ Amazonka.CloudTrail.Lens: importsListItem_importStatus :: Lens' ImportsListItem (Maybe ImportStatus)
+ Amazonka.CloudTrail.Lens: importsListItem_updatedTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: insightSelector_insightType :: Lens' InsightSelector (Maybe InsightType)
+ Amazonka.CloudTrail.Lens: listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel])
+ Amazonka.CloudTrail.Lens: listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
+ Amazonka.CloudTrail.Lens: listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
+ Amazonka.CloudTrail.Lens: listChannels_nextToken :: Lens' ListChannels (Maybe Text)
+ Amazonka.CloudTrail.Lens: listEventDataStoresResponse_eventDataStores :: Lens' ListEventDataStoresResponse (Maybe [EventDataStore])
+ Amazonka.CloudTrail.Lens: listEventDataStoresResponse_httpStatus :: Lens' ListEventDataStoresResponse Int
+ Amazonka.CloudTrail.Lens: listEventDataStoresResponse_nextToken :: Lens' ListEventDataStoresResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listEventDataStores_maxResults :: Lens' ListEventDataStores (Maybe Natural)
+ Amazonka.CloudTrail.Lens: listEventDataStores_nextToken :: Lens' ListEventDataStores (Maybe Text)
+ Amazonka.CloudTrail.Lens: listImportFailuresResponse_failures :: Lens' ListImportFailuresResponse (Maybe [ImportFailureListItem])
+ Amazonka.CloudTrail.Lens: listImportFailuresResponse_httpStatus :: Lens' ListImportFailuresResponse Int
+ Amazonka.CloudTrail.Lens: listImportFailuresResponse_nextToken :: Lens' ListImportFailuresResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listImportFailures_importId :: Lens' ListImportFailures Text
+ Amazonka.CloudTrail.Lens: listImportFailures_maxResults :: Lens' ListImportFailures (Maybe Natural)
+ Amazonka.CloudTrail.Lens: listImportFailures_nextToken :: Lens' ListImportFailures (Maybe Text)
+ Amazonka.CloudTrail.Lens: listImportsResponse_httpStatus :: Lens' ListImportsResponse Int
+ Amazonka.CloudTrail.Lens: listImportsResponse_imports :: Lens' ListImportsResponse (Maybe [ImportsListItem])
+ Amazonka.CloudTrail.Lens: listImportsResponse_nextToken :: Lens' ListImportsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listImports_destination :: Lens' ListImports (Maybe Text)
+ Amazonka.CloudTrail.Lens: listImports_importStatus :: Lens' ListImports (Maybe ImportStatus)
+ Amazonka.CloudTrail.Lens: listImports_maxResults :: Lens' ListImports (Maybe Natural)
+ Amazonka.CloudTrail.Lens: listImports_nextToken :: Lens' ListImports (Maybe Text)
+ Amazonka.CloudTrail.Lens: listPublicKeysResponse_httpStatus :: Lens' ListPublicKeysResponse Int
+ Amazonka.CloudTrail.Lens: listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listPublicKeysResponse_publicKeyList :: Lens' ListPublicKeysResponse (Maybe [PublicKey])
+ Amazonka.CloudTrail.Lens: listPublicKeys_endTime :: Lens' ListPublicKeys (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text)
+ Amazonka.CloudTrail.Lens: listPublicKeys_startTime :: Lens' ListPublicKeys (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: listQueriesResponse_httpStatus :: Lens' ListQueriesResponse Int
+ Amazonka.CloudTrail.Lens: listQueriesResponse_nextToken :: Lens' ListQueriesResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listQueriesResponse_queries :: Lens' ListQueriesResponse (Maybe [Query])
+ Amazonka.CloudTrail.Lens: listQueries_endTime :: Lens' ListQueries (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: listQueries_eventDataStore :: Lens' ListQueries Text
+ Amazonka.CloudTrail.Lens: listQueries_maxResults :: Lens' ListQueries (Maybe Natural)
+ Amazonka.CloudTrail.Lens: listQueries_nextToken :: Lens' ListQueries (Maybe Text)
+ Amazonka.CloudTrail.Lens: listQueries_queryStatus :: Lens' ListQueries (Maybe QueryStatus)
+ Amazonka.CloudTrail.Lens: listQueries_startTime :: Lens' ListQueries (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
+ Amazonka.CloudTrail.Lens: listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listTagsResponse_resourceTagList :: Lens' ListTagsResponse (Maybe [ResourceTag])
+ Amazonka.CloudTrail.Lens: listTags_nextToken :: Lens' ListTags (Maybe Text)
+ Amazonka.CloudTrail.Lens: listTags_resourceIdList :: Lens' ListTags [Text]
+ Amazonka.CloudTrail.Lens: listTrailsResponse_httpStatus :: Lens' ListTrailsResponse Int
+ Amazonka.CloudTrail.Lens: listTrailsResponse_nextToken :: Lens' ListTrailsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: listTrailsResponse_trails :: Lens' ListTrailsResponse (Maybe [TrailInfo])
+ Amazonka.CloudTrail.Lens: listTrails_nextToken :: Lens' ListTrails (Maybe Text)
+ Amazonka.CloudTrail.Lens: lookupAttribute_attributeKey :: Lens' LookupAttribute LookupAttributeKey
+ Amazonka.CloudTrail.Lens: lookupAttribute_attributeValue :: Lens' LookupAttribute Text
+ Amazonka.CloudTrail.Lens: lookupEventsResponse_events :: Lens' LookupEventsResponse (Maybe [Event])
+ Amazonka.CloudTrail.Lens: lookupEventsResponse_httpStatus :: Lens' LookupEventsResponse Int
+ Amazonka.CloudTrail.Lens: lookupEventsResponse_nextToken :: Lens' LookupEventsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: lookupEvents_endTime :: Lens' LookupEvents (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: lookupEvents_eventCategory :: Lens' LookupEvents (Maybe EventCategory)
+ Amazonka.CloudTrail.Lens: lookupEvents_lookupAttributes :: Lens' LookupEvents (Maybe [LookupAttribute])
+ Amazonka.CloudTrail.Lens: lookupEvents_maxResults :: Lens' LookupEvents (Maybe Natural)
+ Amazonka.CloudTrail.Lens: lookupEvents_nextToken :: Lens' LookupEvents (Maybe Text)
+ Amazonka.CloudTrail.Lens: lookupEvents_startTime :: Lens' LookupEvents (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: publicKey_fingerprint :: Lens' PublicKey (Maybe Text)
+ Amazonka.CloudTrail.Lens: publicKey_validityEndTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: publicKey_validityStartTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: publicKey_value :: Lens' PublicKey (Maybe ByteString)
+ Amazonka.CloudTrail.Lens: putEventSelectorsResponse_advancedEventSelectors :: Lens' PutEventSelectorsResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: putEventSelectorsResponse_eventSelectors :: Lens' PutEventSelectorsResponse (Maybe [EventSelector])
+ Amazonka.CloudTrail.Lens: putEventSelectorsResponse_httpStatus :: Lens' PutEventSelectorsResponse Int
+ Amazonka.CloudTrail.Lens: putEventSelectorsResponse_trailARN :: Lens' PutEventSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: putEventSelectors_advancedEventSelectors :: Lens' PutEventSelectors (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: putEventSelectors_eventSelectors :: Lens' PutEventSelectors (Maybe [EventSelector])
+ Amazonka.CloudTrail.Lens: putEventSelectors_trailName :: Lens' PutEventSelectors Text
+ Amazonka.CloudTrail.Lens: putInsightSelectorsResponse_httpStatus :: Lens' PutInsightSelectorsResponse Int
+ Amazonka.CloudTrail.Lens: putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector])
+ Amazonka.CloudTrail.Lens: putInsightSelectorsResponse_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: putInsightSelectors_insightSelectors :: Lens' PutInsightSelectors [InsightSelector]
+ Amazonka.CloudTrail.Lens: putInsightSelectors_trailName :: Lens' PutInsightSelectors Text
+ Amazonka.CloudTrail.Lens: queryStatisticsForDescribeQuery_bytesScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Lens: queryStatisticsForDescribeQuery_creationTime :: Lens' QueryStatisticsForDescribeQuery (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: queryStatisticsForDescribeQuery_eventsMatched :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Lens: queryStatisticsForDescribeQuery_eventsScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Lens: queryStatisticsForDescribeQuery_executionTimeInMillis :: Lens' QueryStatisticsForDescribeQuery (Maybe Int)
+ Amazonka.CloudTrail.Lens: queryStatistics_bytesScanned :: Lens' QueryStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Lens: queryStatistics_resultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Lens: queryStatistics_totalResultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Lens: query_creationTime :: Lens' Query (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: query_queryId :: Lens' Query (Maybe Text)
+ Amazonka.CloudTrail.Lens: query_queryStatus :: Lens' Query (Maybe QueryStatus)
+ Amazonka.CloudTrail.Lens: registerOrganizationDelegatedAdminResponse_httpStatus :: Lens' RegisterOrganizationDelegatedAdminResponse Int
+ Amazonka.CloudTrail.Lens: registerOrganizationDelegatedAdmin_memberAccountId :: Lens' RegisterOrganizationDelegatedAdmin Text
+ Amazonka.CloudTrail.Lens: removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int
+ Amazonka.CloudTrail.Lens: removeTags_resourceId :: Lens' RemoveTags Text
+ Amazonka.CloudTrail.Lens: removeTags_tagsList :: Lens' RemoveTags [Tag]
+ Amazonka.CloudTrail.Lens: resourceTag_resourceId :: Lens' ResourceTag (Maybe Text)
+ Amazonka.CloudTrail.Lens: resourceTag_tagsList :: Lens' ResourceTag (Maybe [Tag])
+ Amazonka.CloudTrail.Lens: resource_resourceName :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Lens: resource_resourceType :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_advancedEventSelectors :: Lens' RestoreEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_createdTimestamp :: Lens' RestoreEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_eventDataStoreArn :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_httpStatus :: Lens' RestoreEventDataStoreResponse Int
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_kmsKeyId :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_multiRegionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_name :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_organizationEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_retentionPeriod :: Lens' RestoreEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_status :: Lens' RestoreEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_terminationProtectionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: restoreEventDataStoreResponse_updatedTimestamp :: Lens' RestoreEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: restoreEventDataStore_eventDataStore :: Lens' RestoreEventDataStore Text
+ Amazonka.CloudTrail.Lens: s3ImportSource_s3BucketAccessRoleArn :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Lens: s3ImportSource_s3BucketRegion :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Lens: s3ImportSource_s3LocationUri :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Lens: sourceConfig_advancedEventSelectors :: Lens' SourceConfig (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: sourceConfig_applyToAllRegions :: Lens' SourceConfig (Maybe Bool)
+ Amazonka.CloudTrail.Lens: startImportResponse_createdTimestamp :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startImportResponse_destinations :: Lens' StartImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: startImportResponse_endEventTime :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startImportResponse_httpStatus :: Lens' StartImportResponse Int
+ Amazonka.CloudTrail.Lens: startImportResponse_importId :: Lens' StartImportResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: startImportResponse_importSource :: Lens' StartImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.Lens: startImportResponse_importStatus :: Lens' StartImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.Lens: startImportResponse_startEventTime :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startImportResponse_updatedTimestamp :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startImport_destinations :: Lens' StartImport (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: startImport_endEventTime :: Lens' StartImport (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startImport_importId :: Lens' StartImport (Maybe Text)
+ Amazonka.CloudTrail.Lens: startImport_importSource :: Lens' StartImport (Maybe ImportSource)
+ Amazonka.CloudTrail.Lens: startImport_startEventTime :: Lens' StartImport (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: startLoggingResponse_httpStatus :: Lens' StartLoggingResponse Int
+ Amazonka.CloudTrail.Lens: startLogging_name :: Lens' StartLogging Text
+ Amazonka.CloudTrail.Lens: startQueryResponse_httpStatus :: Lens' StartQueryResponse Int
+ Amazonka.CloudTrail.Lens: startQueryResponse_queryId :: Lens' StartQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: startQuery_deliveryS3Uri :: Lens' StartQuery (Maybe Text)
+ Amazonka.CloudTrail.Lens: startQuery_queryStatement :: Lens' StartQuery Text
+ Amazonka.CloudTrail.Lens: stopImportResponse_createdTimestamp :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: stopImportResponse_destinations :: Lens' StopImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Lens: stopImportResponse_endEventTime :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: stopImportResponse_httpStatus :: Lens' StopImportResponse Int
+ Amazonka.CloudTrail.Lens: stopImportResponse_importId :: Lens' StopImportResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: stopImportResponse_importSource :: Lens' StopImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.Lens: stopImportResponse_importStatistics :: Lens' StopImportResponse (Maybe ImportStatistics)
+ Amazonka.CloudTrail.Lens: stopImportResponse_importStatus :: Lens' StopImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.Lens: stopImportResponse_startEventTime :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: stopImportResponse_updatedTimestamp :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: stopImport_importId :: Lens' StopImport Text
+ Amazonka.CloudTrail.Lens: stopLoggingResponse_httpStatus :: Lens' StopLoggingResponse Int
+ Amazonka.CloudTrail.Lens: stopLogging_name :: Lens' StopLogging Text
+ Amazonka.CloudTrail.Lens: tag_key :: Lens' Tag Text
+ Amazonka.CloudTrail.Lens: tag_value :: Lens' Tag (Maybe Text)
+ Amazonka.CloudTrail.Lens: trailInfo_homeRegion :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Lens: trailInfo_name :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Lens: trailInfo_trailARN :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_cloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_cloudWatchLogsRoleArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_hasCustomEventSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_hasInsightSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_homeRegion :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_includeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_isMultiRegionTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_isOrganizationTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_kmsKeyId :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_logFileValidationEnabled :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: trail_name :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_s3BucketName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_s3KeyPrefix :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_snsTopicARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_snsTopicName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: trail_trailARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_advancedEventSelectors :: Lens' UpdateEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_createdTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_eventDataStoreArn :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_httpStatus :: Lens' UpdateEventDataStoreResponse Int
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_kmsKeyId :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_multiRegionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_name :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_retentionPeriod :: Lens' UpdateEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_status :: Lens' UpdateEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_terminationProtectionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateEventDataStoreResponse_updatedTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_advancedEventSelectors :: Lens' UpdateEventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Lens: updateEventDataStore_eventDataStore :: Lens' UpdateEventDataStore Text
+ Amazonka.CloudTrail.Lens: updateEventDataStore_kmsKeyId :: Lens' UpdateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_multiRegionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_name :: Lens' UpdateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_retentionPeriod :: Lens' UpdateEventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.Lens: updateEventDataStore_terminationProtectionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_cloudWatchLogsLogGroupArn :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_cloudWatchLogsRoleArn :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_httpStatus :: Lens' UpdateTrailResponse Int
+ Amazonka.CloudTrail.Lens: updateTrailResponse_includeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_isMultiRegionTrail :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_isOrganizationTrail :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_kmsKeyId :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_logFileValidationEnabled :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_name :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_s3BucketName :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_s3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_snsTopicARN :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_snsTopicName :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrailResponse_trailARN :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_cloudWatchLogsLogGroupArn :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_cloudWatchLogsRoleArn :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_enableLogFileValidation :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrail_includeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrail_isMultiRegionTrail :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrail_isOrganizationTrail :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.Lens: updateTrail_kmsKeyId :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_name :: Lens' UpdateTrail Text
+ Amazonka.CloudTrail.Lens: updateTrail_s3BucketName :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_s3KeyPrefix :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.Lens: updateTrail_snsTopicName :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.ListChannels: ListChannels' :: Maybe Natural -> Maybe Text -> ListChannels
+ Amazonka.CloudTrail.ListChannels: ListChannelsResponse' :: Maybe [Channel] -> Maybe Text -> Int -> ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: [$sel:channels:ListChannelsResponse'] :: ListChannelsResponse -> Maybe [Channel]
+ Amazonka.CloudTrail.ListChannels: [$sel:httpStatus:ListChannelsResponse'] :: ListChannelsResponse -> Int
+ Amazonka.CloudTrail.ListChannels: [$sel:maxResults:ListChannels'] :: ListChannels -> Maybe Natural
+ Amazonka.CloudTrail.ListChannels: [$sel:nextToken:ListChannels'] :: ListChannels -> Maybe Text
+ Amazonka.CloudTrail.ListChannels: [$sel:nextToken:ListChannelsResponse'] :: ListChannelsResponse -> Maybe Text
+ Amazonka.CloudTrail.ListChannels: data ListChannels
+ Amazonka.CloudTrail.ListChannels: data ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListChannels.ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance GHC.Classes.Eq Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance GHC.Classes.Eq Amazonka.CloudTrail.ListChannels.ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: instance GHC.Generics.Generic Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance GHC.Generics.Generic Amazonka.CloudTrail.ListChannels.ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: instance GHC.Read.Read Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance GHC.Read.Read Amazonka.CloudTrail.ListChannels.ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: instance GHC.Show.Show Amazonka.CloudTrail.ListChannels.ListChannels
+ Amazonka.CloudTrail.ListChannels: instance GHC.Show.Show Amazonka.CloudTrail.ListChannels.ListChannelsResponse
+ Amazonka.CloudTrail.ListChannels: listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [Channel])
+ Amazonka.CloudTrail.ListChannels: listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
+ Amazonka.CloudTrail.ListChannels: listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
+ Amazonka.CloudTrail.ListChannels: listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
+ Amazonka.CloudTrail.ListChannels: listChannels_nextToken :: Lens' ListChannels (Maybe Text)
+ Amazonka.CloudTrail.ListChannels: newListChannels :: ListChannels
+ Amazonka.CloudTrail.ListChannels: newListChannelsResponse :: Int -> ListChannelsResponse
+ Amazonka.CloudTrail.ListEventDataStores: ListEventDataStores' :: Maybe Natural -> Maybe Text -> ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: ListEventDataStoresResponse' :: Maybe [EventDataStore] -> Maybe Text -> Int -> ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: [$sel:eventDataStores:ListEventDataStoresResponse'] :: ListEventDataStoresResponse -> Maybe [EventDataStore]
+ Amazonka.CloudTrail.ListEventDataStores: [$sel:httpStatus:ListEventDataStoresResponse'] :: ListEventDataStoresResponse -> Int
+ Amazonka.CloudTrail.ListEventDataStores: [$sel:maxResults:ListEventDataStores'] :: ListEventDataStores -> Maybe Natural
+ Amazonka.CloudTrail.ListEventDataStores: [$sel:nextToken:ListEventDataStores'] :: ListEventDataStores -> Maybe Text
+ Amazonka.CloudTrail.ListEventDataStores: [$sel:nextToken:ListEventDataStoresResponse'] :: ListEventDataStoresResponse -> Maybe Text
+ Amazonka.CloudTrail.ListEventDataStores: data ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: data ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListEventDataStores.ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Classes.Eq Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Classes.Eq Amazonka.CloudTrail.ListEventDataStores.ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Generics.Generic Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Generics.Generic Amazonka.CloudTrail.ListEventDataStores.ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Read.Read Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Read.Read Amazonka.CloudTrail.ListEventDataStores.ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Show.Show Amazonka.CloudTrail.ListEventDataStores.ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: instance GHC.Show.Show Amazonka.CloudTrail.ListEventDataStores.ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListEventDataStores: listEventDataStoresResponse_eventDataStores :: Lens' ListEventDataStoresResponse (Maybe [EventDataStore])
+ Amazonka.CloudTrail.ListEventDataStores: listEventDataStoresResponse_httpStatus :: Lens' ListEventDataStoresResponse Int
+ Amazonka.CloudTrail.ListEventDataStores: listEventDataStoresResponse_nextToken :: Lens' ListEventDataStoresResponse (Maybe Text)
+ Amazonka.CloudTrail.ListEventDataStores: listEventDataStores_maxResults :: Lens' ListEventDataStores (Maybe Natural)
+ Amazonka.CloudTrail.ListEventDataStores: listEventDataStores_nextToken :: Lens' ListEventDataStores (Maybe Text)
+ Amazonka.CloudTrail.ListEventDataStores: newListEventDataStores :: ListEventDataStores
+ Amazonka.CloudTrail.ListEventDataStores: newListEventDataStoresResponse :: Int -> ListEventDataStoresResponse
+ Amazonka.CloudTrail.ListImportFailures: ListImportFailures' :: Maybe Natural -> Maybe Text -> Text -> ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: ListImportFailuresResponse' :: Maybe [ImportFailureListItem] -> Maybe Text -> Int -> ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: [$sel:failures:ListImportFailuresResponse'] :: ListImportFailuresResponse -> Maybe [ImportFailureListItem]
+ Amazonka.CloudTrail.ListImportFailures: [$sel:httpStatus:ListImportFailuresResponse'] :: ListImportFailuresResponse -> Int
+ Amazonka.CloudTrail.ListImportFailures: [$sel:importId:ListImportFailures'] :: ListImportFailures -> Text
+ Amazonka.CloudTrail.ListImportFailures: [$sel:maxResults:ListImportFailures'] :: ListImportFailures -> Maybe Natural
+ Amazonka.CloudTrail.ListImportFailures: [$sel:nextToken:ListImportFailures'] :: ListImportFailures -> Maybe Text
+ Amazonka.CloudTrail.ListImportFailures: [$sel:nextToken:ListImportFailuresResponse'] :: ListImportFailuresResponse -> Maybe Text
+ Amazonka.CloudTrail.ListImportFailures: data ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: data ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListImportFailures.ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Classes.Eq Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Classes.Eq Amazonka.CloudTrail.ListImportFailures.ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Generics.Generic Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Generics.Generic Amazonka.CloudTrail.ListImportFailures.ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Read.Read Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Read.Read Amazonka.CloudTrail.ListImportFailures.ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Show.Show Amazonka.CloudTrail.ListImportFailures.ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: instance GHC.Show.Show Amazonka.CloudTrail.ListImportFailures.ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImportFailures: listImportFailuresResponse_failures :: Lens' ListImportFailuresResponse (Maybe [ImportFailureListItem])
+ Amazonka.CloudTrail.ListImportFailures: listImportFailuresResponse_httpStatus :: Lens' ListImportFailuresResponse Int
+ Amazonka.CloudTrail.ListImportFailures: listImportFailuresResponse_nextToken :: Lens' ListImportFailuresResponse (Maybe Text)
+ Amazonka.CloudTrail.ListImportFailures: listImportFailures_importId :: Lens' ListImportFailures Text
+ Amazonka.CloudTrail.ListImportFailures: listImportFailures_maxResults :: Lens' ListImportFailures (Maybe Natural)
+ Amazonka.CloudTrail.ListImportFailures: listImportFailures_nextToken :: Lens' ListImportFailures (Maybe Text)
+ Amazonka.CloudTrail.ListImportFailures: newListImportFailures :: Text -> ListImportFailures
+ Amazonka.CloudTrail.ListImportFailures: newListImportFailuresResponse :: Int -> ListImportFailuresResponse
+ Amazonka.CloudTrail.ListImports: ListImports' :: Maybe Text -> Maybe ImportStatus -> Maybe Natural -> Maybe Text -> ListImports
+ Amazonka.CloudTrail.ListImports: ListImportsResponse' :: Maybe [ImportsListItem] -> Maybe Text -> Int -> ListImportsResponse
+ Amazonka.CloudTrail.ListImports: [$sel:destination:ListImports'] :: ListImports -> Maybe Text
+ Amazonka.CloudTrail.ListImports: [$sel:httpStatus:ListImportsResponse'] :: ListImportsResponse -> Int
+ Amazonka.CloudTrail.ListImports: [$sel:importStatus:ListImports'] :: ListImports -> Maybe ImportStatus
+ Amazonka.CloudTrail.ListImports: [$sel:imports:ListImportsResponse'] :: ListImportsResponse -> Maybe [ImportsListItem]
+ Amazonka.CloudTrail.ListImports: [$sel:maxResults:ListImports'] :: ListImports -> Maybe Natural
+ Amazonka.CloudTrail.ListImports: [$sel:nextToken:ListImports'] :: ListImports -> Maybe Text
+ Amazonka.CloudTrail.ListImports: [$sel:nextToken:ListImportsResponse'] :: ListImportsResponse -> Maybe Text
+ Amazonka.CloudTrail.ListImports: data ListImports
+ Amazonka.CloudTrail.ListImports: data ListImportsResponse
+ Amazonka.CloudTrail.ListImports: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListImports.ListImportsResponse
+ Amazonka.CloudTrail.ListImports: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance GHC.Classes.Eq Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance GHC.Classes.Eq Amazonka.CloudTrail.ListImports.ListImportsResponse
+ Amazonka.CloudTrail.ListImports: instance GHC.Generics.Generic Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance GHC.Generics.Generic Amazonka.CloudTrail.ListImports.ListImportsResponse
+ Amazonka.CloudTrail.ListImports: instance GHC.Read.Read Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance GHC.Read.Read Amazonka.CloudTrail.ListImports.ListImportsResponse
+ Amazonka.CloudTrail.ListImports: instance GHC.Show.Show Amazonka.CloudTrail.ListImports.ListImports
+ Amazonka.CloudTrail.ListImports: instance GHC.Show.Show Amazonka.CloudTrail.ListImports.ListImportsResponse
+ Amazonka.CloudTrail.ListImports: listImportsResponse_httpStatus :: Lens' ListImportsResponse Int
+ Amazonka.CloudTrail.ListImports: listImportsResponse_imports :: Lens' ListImportsResponse (Maybe [ImportsListItem])
+ Amazonka.CloudTrail.ListImports: listImportsResponse_nextToken :: Lens' ListImportsResponse (Maybe Text)
+ Amazonka.CloudTrail.ListImports: listImports_destination :: Lens' ListImports (Maybe Text)
+ Amazonka.CloudTrail.ListImports: listImports_importStatus :: Lens' ListImports (Maybe ImportStatus)
+ Amazonka.CloudTrail.ListImports: listImports_maxResults :: Lens' ListImports (Maybe Natural)
+ Amazonka.CloudTrail.ListImports: listImports_nextToken :: Lens' ListImports (Maybe Text)
+ Amazonka.CloudTrail.ListImports: newListImports :: ListImports
+ Amazonka.CloudTrail.ListImports: newListImportsResponse :: Int -> ListImportsResponse
+ Amazonka.CloudTrail.ListPublicKeys: ListPublicKeys' :: Maybe POSIX -> Maybe Text -> Maybe POSIX -> ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: ListPublicKeysResponse' :: Maybe Text -> Maybe [PublicKey] -> Int -> ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:endTime:ListPublicKeys'] :: ListPublicKeys -> Maybe POSIX
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:httpStatus:ListPublicKeysResponse'] :: ListPublicKeysResponse -> Int
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:nextToken:ListPublicKeys'] :: ListPublicKeys -> Maybe Text
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:nextToken:ListPublicKeysResponse'] :: ListPublicKeysResponse -> Maybe Text
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:publicKeyList:ListPublicKeysResponse'] :: ListPublicKeysResponse -> Maybe [PublicKey]
+ Amazonka.CloudTrail.ListPublicKeys: [$sel:startTime:ListPublicKeys'] :: ListPublicKeys -> Maybe POSIX
+ Amazonka.CloudTrail.ListPublicKeys: data ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: data ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListPublicKeys.ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Classes.Eq Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Classes.Eq Amazonka.CloudTrail.ListPublicKeys.ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Generics.Generic Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Generics.Generic Amazonka.CloudTrail.ListPublicKeys.ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Read.Read Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Read.Read Amazonka.CloudTrail.ListPublicKeys.ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Show.Show Amazonka.CloudTrail.ListPublicKeys.ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: instance GHC.Show.Show Amazonka.CloudTrail.ListPublicKeys.ListPublicKeysResponse
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeysResponse_httpStatus :: Lens' ListPublicKeysResponse Int
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeysResponse_nextToken :: Lens' ListPublicKeysResponse (Maybe Text)
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeysResponse_publicKeyList :: Lens' ListPublicKeysResponse (Maybe [PublicKey])
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeys_endTime :: Lens' ListPublicKeys (Maybe UTCTime)
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeys_nextToken :: Lens' ListPublicKeys (Maybe Text)
+ Amazonka.CloudTrail.ListPublicKeys: listPublicKeys_startTime :: Lens' ListPublicKeys (Maybe UTCTime)
+ Amazonka.CloudTrail.ListPublicKeys: newListPublicKeys :: ListPublicKeys
+ Amazonka.CloudTrail.ListPublicKeys: newListPublicKeysResponse :: Int -> ListPublicKeysResponse
+ Amazonka.CloudTrail.ListQueries: ListQueries' :: Maybe POSIX -> Maybe Natural -> Maybe Text -> Maybe QueryStatus -> Maybe POSIX -> Text -> ListQueries
+ Amazonka.CloudTrail.ListQueries: ListQueriesResponse' :: Maybe Text -> Maybe [Query] -> Int -> ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: [$sel:endTime:ListQueries'] :: ListQueries -> Maybe POSIX
+ Amazonka.CloudTrail.ListQueries: [$sel:eventDataStore:ListQueries'] :: ListQueries -> Text
+ Amazonka.CloudTrail.ListQueries: [$sel:httpStatus:ListQueriesResponse'] :: ListQueriesResponse -> Int
+ Amazonka.CloudTrail.ListQueries: [$sel:maxResults:ListQueries'] :: ListQueries -> Maybe Natural
+ Amazonka.CloudTrail.ListQueries: [$sel:nextToken:ListQueries'] :: ListQueries -> Maybe Text
+ Amazonka.CloudTrail.ListQueries: [$sel:nextToken:ListQueriesResponse'] :: ListQueriesResponse -> Maybe Text
+ Amazonka.CloudTrail.ListQueries: [$sel:queries:ListQueriesResponse'] :: ListQueriesResponse -> Maybe [Query]
+ Amazonka.CloudTrail.ListQueries: [$sel:queryStatus:ListQueries'] :: ListQueries -> Maybe QueryStatus
+ Amazonka.CloudTrail.ListQueries: [$sel:startTime:ListQueries'] :: ListQueries -> Maybe POSIX
+ Amazonka.CloudTrail.ListQueries: data ListQueries
+ Amazonka.CloudTrail.ListQueries: data ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListQueries.ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance GHC.Classes.Eq Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance GHC.Classes.Eq Amazonka.CloudTrail.ListQueries.ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: instance GHC.Generics.Generic Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance GHC.Generics.Generic Amazonka.CloudTrail.ListQueries.ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: instance GHC.Read.Read Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance GHC.Read.Read Amazonka.CloudTrail.ListQueries.ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: instance GHC.Show.Show Amazonka.CloudTrail.ListQueries.ListQueries
+ Amazonka.CloudTrail.ListQueries: instance GHC.Show.Show Amazonka.CloudTrail.ListQueries.ListQueriesResponse
+ Amazonka.CloudTrail.ListQueries: listQueriesResponse_httpStatus :: Lens' ListQueriesResponse Int
+ Amazonka.CloudTrail.ListQueries: listQueriesResponse_nextToken :: Lens' ListQueriesResponse (Maybe Text)
+ Amazonka.CloudTrail.ListQueries: listQueriesResponse_queries :: Lens' ListQueriesResponse (Maybe [Query])
+ Amazonka.CloudTrail.ListQueries: listQueries_endTime :: Lens' ListQueries (Maybe UTCTime)
+ Amazonka.CloudTrail.ListQueries: listQueries_eventDataStore :: Lens' ListQueries Text
+ Amazonka.CloudTrail.ListQueries: listQueries_maxResults :: Lens' ListQueries (Maybe Natural)
+ Amazonka.CloudTrail.ListQueries: listQueries_nextToken :: Lens' ListQueries (Maybe Text)
+ Amazonka.CloudTrail.ListQueries: listQueries_queryStatus :: Lens' ListQueries (Maybe QueryStatus)
+ Amazonka.CloudTrail.ListQueries: listQueries_startTime :: Lens' ListQueries (Maybe UTCTime)
+ Amazonka.CloudTrail.ListQueries: newListQueries :: Text -> ListQueries
+ Amazonka.CloudTrail.ListQueries: newListQueriesResponse :: Int -> ListQueriesResponse
+ Amazonka.CloudTrail.ListTags: ListTags' :: Maybe Text -> [Text] -> ListTags
+ Amazonka.CloudTrail.ListTags: ListTagsResponse' :: Maybe Text -> Maybe [ResourceTag] -> Int -> ListTagsResponse
+ Amazonka.CloudTrail.ListTags: [$sel:httpStatus:ListTagsResponse'] :: ListTagsResponse -> Int
+ Amazonka.CloudTrail.ListTags: [$sel:nextToken:ListTags'] :: ListTags -> Maybe Text
+ Amazonka.CloudTrail.ListTags: [$sel:nextToken:ListTagsResponse'] :: ListTagsResponse -> Maybe Text
+ Amazonka.CloudTrail.ListTags: [$sel:resourceIdList:ListTags'] :: ListTags -> [Text]
+ Amazonka.CloudTrail.ListTags: [$sel:resourceTagList:ListTagsResponse'] :: ListTagsResponse -> Maybe [ResourceTag]
+ Amazonka.CloudTrail.ListTags: data ListTags
+ Amazonka.CloudTrail.ListTags: data ListTagsResponse
+ Amazonka.CloudTrail.ListTags: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListTags.ListTagsResponse
+ Amazonka.CloudTrail.ListTags: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance GHC.Classes.Eq Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance GHC.Classes.Eq Amazonka.CloudTrail.ListTags.ListTagsResponse
+ Amazonka.CloudTrail.ListTags: instance GHC.Generics.Generic Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance GHC.Generics.Generic Amazonka.CloudTrail.ListTags.ListTagsResponse
+ Amazonka.CloudTrail.ListTags: instance GHC.Read.Read Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance GHC.Read.Read Amazonka.CloudTrail.ListTags.ListTagsResponse
+ Amazonka.CloudTrail.ListTags: instance GHC.Show.Show Amazonka.CloudTrail.ListTags.ListTags
+ Amazonka.CloudTrail.ListTags: instance GHC.Show.Show Amazonka.CloudTrail.ListTags.ListTagsResponse
+ Amazonka.CloudTrail.ListTags: listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
+ Amazonka.CloudTrail.ListTags: listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
+ Amazonka.CloudTrail.ListTags: listTagsResponse_resourceTagList :: Lens' ListTagsResponse (Maybe [ResourceTag])
+ Amazonka.CloudTrail.ListTags: listTags_nextToken :: Lens' ListTags (Maybe Text)
+ Amazonka.CloudTrail.ListTags: listTags_resourceIdList :: Lens' ListTags [Text]
+ Amazonka.CloudTrail.ListTags: newListTags :: ListTags
+ Amazonka.CloudTrail.ListTags: newListTagsResponse :: Int -> ListTagsResponse
+ Amazonka.CloudTrail.ListTrails: ListTrails' :: Maybe Text -> ListTrails
+ Amazonka.CloudTrail.ListTrails: ListTrailsResponse' :: Maybe Text -> Maybe [TrailInfo] -> Int -> ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: [$sel:httpStatus:ListTrailsResponse'] :: ListTrailsResponse -> Int
+ Amazonka.CloudTrail.ListTrails: [$sel:nextToken:ListTrails'] :: ListTrails -> Maybe Text
+ Amazonka.CloudTrail.ListTrails: [$sel:nextToken:ListTrailsResponse'] :: ListTrailsResponse -> Maybe Text
+ Amazonka.CloudTrail.ListTrails: [$sel:trails:ListTrailsResponse'] :: ListTrailsResponse -> Maybe [TrailInfo]
+ Amazonka.CloudTrail.ListTrails: data ListTrails
+ Amazonka.CloudTrail.ListTrails: data ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Control.DeepSeq.NFData Amazonka.CloudTrail.ListTrails.ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance GHC.Classes.Eq Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance GHC.Classes.Eq Amazonka.CloudTrail.ListTrails.ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: instance GHC.Generics.Generic Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance GHC.Generics.Generic Amazonka.CloudTrail.ListTrails.ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: instance GHC.Read.Read Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance GHC.Read.Read Amazonka.CloudTrail.ListTrails.ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: instance GHC.Show.Show Amazonka.CloudTrail.ListTrails.ListTrails
+ Amazonka.CloudTrail.ListTrails: instance GHC.Show.Show Amazonka.CloudTrail.ListTrails.ListTrailsResponse
+ Amazonka.CloudTrail.ListTrails: listTrailsResponse_httpStatus :: Lens' ListTrailsResponse Int
+ Amazonka.CloudTrail.ListTrails: listTrailsResponse_nextToken :: Lens' ListTrailsResponse (Maybe Text)
+ Amazonka.CloudTrail.ListTrails: listTrailsResponse_trails :: Lens' ListTrailsResponse (Maybe [TrailInfo])
+ Amazonka.CloudTrail.ListTrails: listTrails_nextToken :: Lens' ListTrails (Maybe Text)
+ Amazonka.CloudTrail.ListTrails: newListTrails :: ListTrails
+ Amazonka.CloudTrail.ListTrails: newListTrailsResponse :: Int -> ListTrailsResponse
+ Amazonka.CloudTrail.LookupEvents: LookupEvents' :: Maybe POSIX -> Maybe EventCategory -> Maybe [LookupAttribute] -> Maybe Natural -> Maybe Text -> Maybe POSIX -> LookupEvents
+ Amazonka.CloudTrail.LookupEvents: LookupEventsResponse' :: Maybe [Event] -> Maybe Text -> Int -> LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: [$sel:endTime:LookupEvents'] :: LookupEvents -> Maybe POSIX
+ Amazonka.CloudTrail.LookupEvents: [$sel:eventCategory:LookupEvents'] :: LookupEvents -> Maybe EventCategory
+ Amazonka.CloudTrail.LookupEvents: [$sel:events:LookupEventsResponse'] :: LookupEventsResponse -> Maybe [Event]
+ Amazonka.CloudTrail.LookupEvents: [$sel:httpStatus:LookupEventsResponse'] :: LookupEventsResponse -> Int
+ Amazonka.CloudTrail.LookupEvents: [$sel:lookupAttributes:LookupEvents'] :: LookupEvents -> Maybe [LookupAttribute]
+ Amazonka.CloudTrail.LookupEvents: [$sel:maxResults:LookupEvents'] :: LookupEvents -> Maybe Natural
+ Amazonka.CloudTrail.LookupEvents: [$sel:nextToken:LookupEvents'] :: LookupEvents -> Maybe Text
+ Amazonka.CloudTrail.LookupEvents: [$sel:nextToken:LookupEventsResponse'] :: LookupEventsResponse -> Maybe Text
+ Amazonka.CloudTrail.LookupEvents: [$sel:startTime:LookupEvents'] :: LookupEvents -> Maybe POSIX
+ Amazonka.CloudTrail.LookupEvents: data LookupEvents
+ Amazonka.CloudTrail.LookupEvents: data LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Amazonka.Pager.AWSPager Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Control.DeepSeq.NFData Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Control.DeepSeq.NFData Amazonka.CloudTrail.LookupEvents.LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Classes.Eq Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Classes.Eq Amazonka.CloudTrail.LookupEvents.LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Generics.Generic Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Generics.Generic Amazonka.CloudTrail.LookupEvents.LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Read.Read Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Read.Read Amazonka.CloudTrail.LookupEvents.LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Show.Show Amazonka.CloudTrail.LookupEvents.LookupEvents
+ Amazonka.CloudTrail.LookupEvents: instance GHC.Show.Show Amazonka.CloudTrail.LookupEvents.LookupEventsResponse
+ Amazonka.CloudTrail.LookupEvents: lookupEventsResponse_events :: Lens' LookupEventsResponse (Maybe [Event])
+ Amazonka.CloudTrail.LookupEvents: lookupEventsResponse_httpStatus :: Lens' LookupEventsResponse Int
+ Amazonka.CloudTrail.LookupEvents: lookupEventsResponse_nextToken :: Lens' LookupEventsResponse (Maybe Text)
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_endTime :: Lens' LookupEvents (Maybe UTCTime)
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_eventCategory :: Lens' LookupEvents (Maybe EventCategory)
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_lookupAttributes :: Lens' LookupEvents (Maybe [LookupAttribute])
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_maxResults :: Lens' LookupEvents (Maybe Natural)
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_nextToken :: Lens' LookupEvents (Maybe Text)
+ Amazonka.CloudTrail.LookupEvents: lookupEvents_startTime :: Lens' LookupEvents (Maybe UTCTime)
+ Amazonka.CloudTrail.LookupEvents: newLookupEvents :: LookupEvents
+ Amazonka.CloudTrail.LookupEvents: newLookupEventsResponse :: Int -> LookupEventsResponse
+ Amazonka.CloudTrail.PutEventSelectors: PutEventSelectors' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Text -> PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: PutEventSelectorsResponse' :: Maybe [AdvancedEventSelector] -> Maybe [EventSelector] -> Maybe Text -> Int -> PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:advancedEventSelectors:PutEventSelectors'] :: PutEventSelectors -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:advancedEventSelectors:PutEventSelectorsResponse'] :: PutEventSelectorsResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:eventSelectors:PutEventSelectors'] :: PutEventSelectors -> Maybe [EventSelector]
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:eventSelectors:PutEventSelectorsResponse'] :: PutEventSelectorsResponse -> Maybe [EventSelector]
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:httpStatus:PutEventSelectorsResponse'] :: PutEventSelectorsResponse -> Int
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:trailARN:PutEventSelectorsResponse'] :: PutEventSelectorsResponse -> Maybe Text
+ Amazonka.CloudTrail.PutEventSelectors: [$sel:trailName:PutEventSelectors'] :: PutEventSelectors -> Text
+ Amazonka.CloudTrail.PutEventSelectors: data PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: data PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Read.Read Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Read.Read Amazonka.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Show.Show Amazonka.CloudTrail.PutEventSelectors.PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: instance GHC.Show.Show Amazonka.CloudTrail.PutEventSelectors.PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: newPutEventSelectors :: Text -> PutEventSelectors
+ Amazonka.CloudTrail.PutEventSelectors: newPutEventSelectorsResponse :: Int -> PutEventSelectorsResponse
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectorsResponse_advancedEventSelectors :: Lens' PutEventSelectorsResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectorsResponse_eventSelectors :: Lens' PutEventSelectorsResponse (Maybe [EventSelector])
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectorsResponse_httpStatus :: Lens' PutEventSelectorsResponse Int
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectorsResponse_trailARN :: Lens' PutEventSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectors_advancedEventSelectors :: Lens' PutEventSelectors (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectors_eventSelectors :: Lens' PutEventSelectors (Maybe [EventSelector])
+ Amazonka.CloudTrail.PutEventSelectors: putEventSelectors_trailName :: Lens' PutEventSelectors Text
+ Amazonka.CloudTrail.PutInsightSelectors: PutInsightSelectors' :: Text -> [InsightSelector] -> PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: PutInsightSelectorsResponse' :: Maybe [InsightSelector] -> Maybe Text -> Int -> PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: [$sel:httpStatus:PutInsightSelectorsResponse'] :: PutInsightSelectorsResponse -> Int
+ Amazonka.CloudTrail.PutInsightSelectors: [$sel:insightSelectors:PutInsightSelectors'] :: PutInsightSelectors -> [InsightSelector]
+ Amazonka.CloudTrail.PutInsightSelectors: [$sel:insightSelectors:PutInsightSelectorsResponse'] :: PutInsightSelectorsResponse -> Maybe [InsightSelector]
+ Amazonka.CloudTrail.PutInsightSelectors: [$sel:trailARN:PutInsightSelectorsResponse'] :: PutInsightSelectorsResponse -> Maybe Text
+ Amazonka.CloudTrail.PutInsightSelectors: [$sel:trailName:PutInsightSelectors'] :: PutInsightSelectors -> Text
+ Amazonka.CloudTrail.PutInsightSelectors: data PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: data PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Control.DeepSeq.NFData Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Classes.Eq Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Generics.Generic Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Read.Read Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Read.Read Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Show.Show Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: instance GHC.Show.Show Amazonka.CloudTrail.PutInsightSelectors.PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: newPutInsightSelectors :: Text -> PutInsightSelectors
+ Amazonka.CloudTrail.PutInsightSelectors: newPutInsightSelectorsResponse :: Int -> PutInsightSelectorsResponse
+ Amazonka.CloudTrail.PutInsightSelectors: putInsightSelectorsResponse_httpStatus :: Lens' PutInsightSelectorsResponse Int
+ Amazonka.CloudTrail.PutInsightSelectors: putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector])
+ Amazonka.CloudTrail.PutInsightSelectors: putInsightSelectorsResponse_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text)
+ Amazonka.CloudTrail.PutInsightSelectors: putInsightSelectors_insightSelectors :: Lens' PutInsightSelectors [InsightSelector]
+ Amazonka.CloudTrail.PutInsightSelectors: putInsightSelectors_trailName :: Lens' PutInsightSelectors Text
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: RegisterOrganizationDelegatedAdmin' :: Text -> RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: RegisterOrganizationDelegatedAdminResponse' :: Int -> RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: [$sel:httpStatus:RegisterOrganizationDelegatedAdminResponse'] :: RegisterOrganizationDelegatedAdminResponse -> Int
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: [$sel:memberAccountId:RegisterOrganizationDelegatedAdmin'] :: RegisterOrganizationDelegatedAdmin -> Text
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: data RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: data RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Classes.Eq Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Classes.Eq Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Generics.Generic Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Generics.Generic Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Read.Read Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Read.Read Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Show.Show Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: instance GHC.Show.Show Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin.RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: newRegisterOrganizationDelegatedAdmin :: Text -> RegisterOrganizationDelegatedAdmin
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: newRegisterOrganizationDelegatedAdminResponse :: Int -> RegisterOrganizationDelegatedAdminResponse
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: registerOrganizationDelegatedAdminResponse_httpStatus :: Lens' RegisterOrganizationDelegatedAdminResponse Int
+ Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin: registerOrganizationDelegatedAdmin_memberAccountId :: Lens' RegisterOrganizationDelegatedAdmin Text
+ Amazonka.CloudTrail.RemoveTags: RemoveTags' :: Text -> [Tag] -> RemoveTags
+ Amazonka.CloudTrail.RemoveTags: RemoveTagsResponse' :: Int -> RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: [$sel:httpStatus:RemoveTagsResponse'] :: RemoveTagsResponse -> Int
+ Amazonka.CloudTrail.RemoveTags: [$sel:resourceId:RemoveTags'] :: RemoveTags -> Text
+ Amazonka.CloudTrail.RemoveTags: [$sel:tagsList:RemoveTags'] :: RemoveTags -> [Tag]
+ Amazonka.CloudTrail.RemoveTags: data RemoveTags
+ Amazonka.CloudTrail.RemoveTags: data RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RemoveTags.RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Classes.Eq Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Classes.Eq Amazonka.CloudTrail.RemoveTags.RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Generics.Generic Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Generics.Generic Amazonka.CloudTrail.RemoveTags.RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Read.Read Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Read.Read Amazonka.CloudTrail.RemoveTags.RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Show.Show Amazonka.CloudTrail.RemoveTags.RemoveTags
+ Amazonka.CloudTrail.RemoveTags: instance GHC.Show.Show Amazonka.CloudTrail.RemoveTags.RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: newRemoveTags :: Text -> RemoveTags
+ Amazonka.CloudTrail.RemoveTags: newRemoveTagsResponse :: Int -> RemoveTagsResponse
+ Amazonka.CloudTrail.RemoveTags: removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int
+ Amazonka.CloudTrail.RemoveTags: removeTags_resourceId :: Lens' RemoveTags Text
+ Amazonka.CloudTrail.RemoveTags: removeTags_tagsList :: Lens' RemoveTags [Tag]
+ Amazonka.CloudTrail.RestoreEventDataStore: RestoreEventDataStore' :: Text -> RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: RestoreEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:advancedEventSelectors:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:createdTimestamp:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:eventDataStore:RestoreEventDataStore'] :: RestoreEventDataStore -> Text
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:eventDataStoreArn:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:httpStatus:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Int
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:kmsKeyId:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:multiRegionEnabled:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:name:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:organizationEnabled:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:retentionPeriod:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Natural
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:status:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:terminationProtectionEnabled:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.RestoreEventDataStore: [$sel:updatedTimestamp:RestoreEventDataStoreResponse'] :: RestoreEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.RestoreEventDataStore: data RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: data RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.RestoreEventDataStore.RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: newRestoreEventDataStore :: Text -> RestoreEventDataStore
+ Amazonka.CloudTrail.RestoreEventDataStore: newRestoreEventDataStoreResponse :: Int -> RestoreEventDataStoreResponse
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_advancedEventSelectors :: Lens' RestoreEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_createdTimestamp :: Lens' RestoreEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_eventDataStoreArn :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_httpStatus :: Lens' RestoreEventDataStoreResponse Int
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_kmsKeyId :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_multiRegionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_name :: Lens' RestoreEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_organizationEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_retentionPeriod :: Lens' RestoreEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_status :: Lens' RestoreEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_terminationProtectionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStoreResponse_updatedTimestamp :: Lens' RestoreEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.RestoreEventDataStore: restoreEventDataStore_eventDataStore :: Lens' RestoreEventDataStore Text
+ Amazonka.CloudTrail.StartImport: StartImport' :: Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe POSIX -> StartImport
+ Amazonka.CloudTrail.StartImport: StartImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> StartImportResponse
+ Amazonka.CloudTrail.StartImport: [$sel:createdTimestamp:StartImportResponse'] :: StartImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: [$sel:destinations:StartImport'] :: StartImport -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.StartImport: [$sel:destinations:StartImportResponse'] :: StartImportResponse -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.StartImport: [$sel:endEventTime:StartImport'] :: StartImport -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: [$sel:endEventTime:StartImportResponse'] :: StartImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: [$sel:httpStatus:StartImportResponse'] :: StartImportResponse -> Int
+ Amazonka.CloudTrail.StartImport: [$sel:importId:StartImport'] :: StartImport -> Maybe Text
+ Amazonka.CloudTrail.StartImport: [$sel:importId:StartImportResponse'] :: StartImportResponse -> Maybe Text
+ Amazonka.CloudTrail.StartImport: [$sel:importSource:StartImport'] :: StartImport -> Maybe ImportSource
+ Amazonka.CloudTrail.StartImport: [$sel:importSource:StartImportResponse'] :: StartImportResponse -> Maybe ImportSource
+ Amazonka.CloudTrail.StartImport: [$sel:importStatus:StartImportResponse'] :: StartImportResponse -> Maybe ImportStatus
+ Amazonka.CloudTrail.StartImport: [$sel:startEventTime:StartImport'] :: StartImport -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: [$sel:startEventTime:StartImportResponse'] :: StartImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: [$sel:updatedTimestamp:StartImportResponse'] :: StartImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StartImport: data StartImport
+ Amazonka.CloudTrail.StartImport: data StartImportResponse
+ Amazonka.CloudTrail.StartImport: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartImport.StartImportResponse
+ Amazonka.CloudTrail.StartImport: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance GHC.Classes.Eq Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance GHC.Classes.Eq Amazonka.CloudTrail.StartImport.StartImportResponse
+ Amazonka.CloudTrail.StartImport: instance GHC.Generics.Generic Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance GHC.Generics.Generic Amazonka.CloudTrail.StartImport.StartImportResponse
+ Amazonka.CloudTrail.StartImport: instance GHC.Read.Read Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance GHC.Read.Read Amazonka.CloudTrail.StartImport.StartImportResponse
+ Amazonka.CloudTrail.StartImport: instance GHC.Show.Show Amazonka.CloudTrail.StartImport.StartImport
+ Amazonka.CloudTrail.StartImport: instance GHC.Show.Show Amazonka.CloudTrail.StartImport.StartImportResponse
+ Amazonka.CloudTrail.StartImport: newStartImport :: StartImport
+ Amazonka.CloudTrail.StartImport: newStartImportResponse :: Int -> StartImportResponse
+ Amazonka.CloudTrail.StartImport: startImportResponse_createdTimestamp :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StartImport: startImportResponse_destinations :: Lens' StartImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.StartImport: startImportResponse_endEventTime :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StartImport: startImportResponse_httpStatus :: Lens' StartImportResponse Int
+ Amazonka.CloudTrail.StartImport: startImportResponse_importId :: Lens' StartImportResponse (Maybe Text)
+ Amazonka.CloudTrail.StartImport: startImportResponse_importSource :: Lens' StartImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.StartImport: startImportResponse_importStatus :: Lens' StartImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.StartImport: startImportResponse_startEventTime :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StartImport: startImportResponse_updatedTimestamp :: Lens' StartImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StartImport: startImport_destinations :: Lens' StartImport (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.StartImport: startImport_endEventTime :: Lens' StartImport (Maybe UTCTime)
+ Amazonka.CloudTrail.StartImport: startImport_importId :: Lens' StartImport (Maybe Text)
+ Amazonka.CloudTrail.StartImport: startImport_importSource :: Lens' StartImport (Maybe ImportSource)
+ Amazonka.CloudTrail.StartImport: startImport_startEventTime :: Lens' StartImport (Maybe UTCTime)
+ Amazonka.CloudTrail.StartLogging: StartLogging' :: Text -> StartLogging
+ Amazonka.CloudTrail.StartLogging: StartLoggingResponse' :: Int -> StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: [$sel:httpStatus:StartLoggingResponse'] :: StartLoggingResponse -> Int
+ Amazonka.CloudTrail.StartLogging: [$sel:name:StartLogging'] :: StartLogging -> Text
+ Amazonka.CloudTrail.StartLogging: data StartLogging
+ Amazonka.CloudTrail.StartLogging: data StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartLogging.StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance GHC.Classes.Eq Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance GHC.Classes.Eq Amazonka.CloudTrail.StartLogging.StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: instance GHC.Generics.Generic Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance GHC.Generics.Generic Amazonka.CloudTrail.StartLogging.StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: instance GHC.Read.Read Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance GHC.Read.Read Amazonka.CloudTrail.StartLogging.StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: instance GHC.Show.Show Amazonka.CloudTrail.StartLogging.StartLogging
+ Amazonka.CloudTrail.StartLogging: instance GHC.Show.Show Amazonka.CloudTrail.StartLogging.StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: newStartLogging :: Text -> StartLogging
+ Amazonka.CloudTrail.StartLogging: newStartLoggingResponse :: Int -> StartLoggingResponse
+ Amazonka.CloudTrail.StartLogging: startLoggingResponse_httpStatus :: Lens' StartLoggingResponse Int
+ Amazonka.CloudTrail.StartLogging: startLogging_name :: Lens' StartLogging Text
+ Amazonka.CloudTrail.StartQuery: StartQuery' :: Maybe Text -> Text -> StartQuery
+ Amazonka.CloudTrail.StartQuery: StartQueryResponse' :: Maybe Text -> Int -> StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: [$sel:deliveryS3Uri:StartQuery'] :: StartQuery -> Maybe Text
+ Amazonka.CloudTrail.StartQuery: [$sel:httpStatus:StartQueryResponse'] :: StartQueryResponse -> Int
+ Amazonka.CloudTrail.StartQuery: [$sel:queryId:StartQueryResponse'] :: StartQueryResponse -> Maybe Text
+ Amazonka.CloudTrail.StartQuery: [$sel:queryStatement:StartQuery'] :: StartQuery -> Text
+ Amazonka.CloudTrail.StartQuery: data StartQuery
+ Amazonka.CloudTrail.StartQuery: data StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StartQuery.StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.StartQuery.StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.StartQuery.StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: instance GHC.Read.Read Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance GHC.Read.Read Amazonka.CloudTrail.StartQuery.StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: instance GHC.Show.Show Amazonka.CloudTrail.StartQuery.StartQuery
+ Amazonka.CloudTrail.StartQuery: instance GHC.Show.Show Amazonka.CloudTrail.StartQuery.StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: newStartQuery :: Text -> StartQuery
+ Amazonka.CloudTrail.StartQuery: newStartQueryResponse :: Int -> StartQueryResponse
+ Amazonka.CloudTrail.StartQuery: startQueryResponse_httpStatus :: Lens' StartQueryResponse Int
+ Amazonka.CloudTrail.StartQuery: startQueryResponse_queryId :: Lens' StartQueryResponse (Maybe Text)
+ Amazonka.CloudTrail.StartQuery: startQuery_deliveryS3Uri :: Lens' StartQuery (Maybe Text)
+ Amazonka.CloudTrail.StartQuery: startQuery_queryStatement :: Lens' StartQuery Text
+ Amazonka.CloudTrail.StopImport: StopImport' :: Text -> StopImport
+ Amazonka.CloudTrail.StopImport: StopImportResponse' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe POSIX -> Maybe Text -> Maybe ImportSource -> Maybe ImportStatistics -> Maybe ImportStatus -> Maybe POSIX -> Maybe POSIX -> Int -> StopImportResponse
+ Amazonka.CloudTrail.StopImport: [$sel:createdTimestamp:StopImportResponse'] :: StopImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StopImport: [$sel:destinations:StopImportResponse'] :: StopImportResponse -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.StopImport: [$sel:endEventTime:StopImportResponse'] :: StopImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StopImport: [$sel:httpStatus:StopImportResponse'] :: StopImportResponse -> Int
+ Amazonka.CloudTrail.StopImport: [$sel:importId:StopImport'] :: StopImport -> Text
+ Amazonka.CloudTrail.StopImport: [$sel:importId:StopImportResponse'] :: StopImportResponse -> Maybe Text
+ Amazonka.CloudTrail.StopImport: [$sel:importSource:StopImportResponse'] :: StopImportResponse -> Maybe ImportSource
+ Amazonka.CloudTrail.StopImport: [$sel:importStatistics:StopImportResponse'] :: StopImportResponse -> Maybe ImportStatistics
+ Amazonka.CloudTrail.StopImport: [$sel:importStatus:StopImportResponse'] :: StopImportResponse -> Maybe ImportStatus
+ Amazonka.CloudTrail.StopImport: [$sel:startEventTime:StopImportResponse'] :: StopImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StopImport: [$sel:updatedTimestamp:StopImportResponse'] :: StopImportResponse -> Maybe POSIX
+ Amazonka.CloudTrail.StopImport: data StopImport
+ Amazonka.CloudTrail.StopImport: data StopImportResponse
+ Amazonka.CloudTrail.StopImport: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StopImport.StopImportResponse
+ Amazonka.CloudTrail.StopImport: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance GHC.Classes.Eq Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance GHC.Classes.Eq Amazonka.CloudTrail.StopImport.StopImportResponse
+ Amazonka.CloudTrail.StopImport: instance GHC.Generics.Generic Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance GHC.Generics.Generic Amazonka.CloudTrail.StopImport.StopImportResponse
+ Amazonka.CloudTrail.StopImport: instance GHC.Read.Read Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance GHC.Read.Read Amazonka.CloudTrail.StopImport.StopImportResponse
+ Amazonka.CloudTrail.StopImport: instance GHC.Show.Show Amazonka.CloudTrail.StopImport.StopImport
+ Amazonka.CloudTrail.StopImport: instance GHC.Show.Show Amazonka.CloudTrail.StopImport.StopImportResponse
+ Amazonka.CloudTrail.StopImport: newStopImport :: Text -> StopImport
+ Amazonka.CloudTrail.StopImport: newStopImportResponse :: Int -> StopImportResponse
+ Amazonka.CloudTrail.StopImport: stopImportResponse_createdTimestamp :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_destinations :: Lens' StopImportResponse (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.StopImport: stopImportResponse_endEventTime :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_httpStatus :: Lens' StopImportResponse Int
+ Amazonka.CloudTrail.StopImport: stopImportResponse_importId :: Lens' StopImportResponse (Maybe Text)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_importSource :: Lens' StopImportResponse (Maybe ImportSource)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_importStatistics :: Lens' StopImportResponse (Maybe ImportStatistics)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_importStatus :: Lens' StopImportResponse (Maybe ImportStatus)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_startEventTime :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StopImport: stopImportResponse_updatedTimestamp :: Lens' StopImportResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.StopImport: stopImport_importId :: Lens' StopImport Text
+ Amazonka.CloudTrail.StopLogging: StopLogging' :: Text -> StopLogging
+ Amazonka.CloudTrail.StopLogging: StopLoggingResponse' :: Int -> StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: [$sel:httpStatus:StopLoggingResponse'] :: StopLoggingResponse -> Int
+ Amazonka.CloudTrail.StopLogging: [$sel:name:StopLogging'] :: StopLogging -> Text
+ Amazonka.CloudTrail.StopLogging: data StopLogging
+ Amazonka.CloudTrail.StopLogging: data StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Control.DeepSeq.NFData Amazonka.CloudTrail.StopLogging.StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance GHC.Classes.Eq Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance GHC.Classes.Eq Amazonka.CloudTrail.StopLogging.StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: instance GHC.Generics.Generic Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance GHC.Generics.Generic Amazonka.CloudTrail.StopLogging.StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: instance GHC.Read.Read Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance GHC.Read.Read Amazonka.CloudTrail.StopLogging.StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: instance GHC.Show.Show Amazonka.CloudTrail.StopLogging.StopLogging
+ Amazonka.CloudTrail.StopLogging: instance GHC.Show.Show Amazonka.CloudTrail.StopLogging.StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: newStopLogging :: Text -> StopLogging
+ Amazonka.CloudTrail.StopLogging: newStopLoggingResponse :: Int -> StopLoggingResponse
+ Amazonka.CloudTrail.StopLogging: stopLoggingResponse_httpStatus :: Lens' StopLoggingResponse Int
+ Amazonka.CloudTrail.StopLogging: stopLogging_name :: Lens' StopLogging Text
+ Amazonka.CloudTrail.Types: AdvancedEventSelector' :: Maybe Text -> NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail.Types: AdvancedFieldSelector' :: Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail.Types: Channel' :: Maybe Text -> Maybe Text -> Channel
+ Amazonka.CloudTrail.Types: DataResource' :: Maybe Text -> Maybe [Text] -> DataResource
+ Amazonka.CloudTrail.Types: DeliveryStatus' :: Text -> DeliveryStatus
+ Amazonka.CloudTrail.Types: Destination' :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail.Types: DestinationType' :: Text -> DestinationType
+ Amazonka.CloudTrail.Types: Event' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe [Resource] -> Maybe Text -> Event
+ Amazonka.CloudTrail.Types: EventCategory' :: Text -> EventCategory
+ Amazonka.CloudTrail.Types: EventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> EventDataStore
+ Amazonka.CloudTrail.Types: EventDataStoreStatus' :: Text -> EventDataStoreStatus
+ Amazonka.CloudTrail.Types: EventSelector' :: Maybe [DataResource] -> Maybe [Text] -> Maybe Bool -> Maybe ReadWriteType -> EventSelector
+ Amazonka.CloudTrail.Types: ImportFailureListItem' :: Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe ImportFailureStatus -> ImportFailureListItem
+ Amazonka.CloudTrail.Types: ImportFailureStatus' :: Text -> ImportFailureStatus
+ Amazonka.CloudTrail.Types: ImportSource' :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail.Types: ImportStatistics' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> ImportStatistics
+ Amazonka.CloudTrail.Types: ImportStatus' :: Text -> ImportStatus
+ Amazonka.CloudTrail.Types: ImportsListItem' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe Text -> Maybe ImportStatus -> Maybe POSIX -> ImportsListItem
+ Amazonka.CloudTrail.Types: InsightSelector' :: Maybe InsightType -> InsightSelector
+ Amazonka.CloudTrail.Types: InsightType' :: Text -> InsightType
+ Amazonka.CloudTrail.Types: LookupAttribute' :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail.Types: LookupAttributeKey' :: Text -> LookupAttributeKey
+ Amazonka.CloudTrail.Types: PublicKey' :: Maybe Text -> Maybe POSIX -> Maybe POSIX -> Maybe Base64 -> PublicKey
+ Amazonka.CloudTrail.Types: Query' :: Maybe POSIX -> Maybe Text -> Maybe QueryStatus -> Query
+ Amazonka.CloudTrail.Types: QueryStatistics' :: Maybe Integer -> Maybe Int -> Maybe Int -> QueryStatistics
+ Amazonka.CloudTrail.Types: QueryStatisticsForDescribeQuery' :: Maybe Integer -> Maybe POSIX -> Maybe Integer -> Maybe Integer -> Maybe Int -> QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types: QueryStatus' :: Text -> QueryStatus
+ Amazonka.CloudTrail.Types: ReadWriteType' :: Text -> ReadWriteType
+ Amazonka.CloudTrail.Types: Resource' :: Maybe Text -> Maybe Text -> Resource
+ Amazonka.CloudTrail.Types: ResourceTag' :: Maybe Text -> Maybe [Tag] -> ResourceTag
+ Amazonka.CloudTrail.Types: S3ImportSource' :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail.Types: SourceConfig' :: Maybe [AdvancedEventSelector] -> Maybe Bool -> SourceConfig
+ Amazonka.CloudTrail.Types: Tag' :: Maybe Text -> Text -> Tag
+ Amazonka.CloudTrail.Types: Trail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Trail
+ Amazonka.CloudTrail.Types: TrailInfo' :: Maybe Text -> Maybe Text -> Maybe Text -> TrailInfo
+ Amazonka.CloudTrail.Types: [$sel:accessKeyId:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:advancedEventSelectors:EventDataStore'] :: EventDataStore -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.Types: [$sel:advancedEventSelectors:SourceConfig'] :: SourceConfig -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.Types: [$sel:applyToAllRegions:SourceConfig'] :: SourceConfig -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:attributeKey:LookupAttribute'] :: LookupAttribute -> LookupAttributeKey
+ Amazonka.CloudTrail.Types: [$sel:attributeValue:LookupAttribute'] :: LookupAttribute -> Text
+ Amazonka.CloudTrail.Types: [$sel:bytesScanned:QueryStatistics'] :: QueryStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:bytesScanned:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:channelArn:Channel'] :: Channel -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:cloudTrailEvent:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:cloudWatchLogsLogGroupArn:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:cloudWatchLogsRoleArn:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:createdTimestamp:EventDataStore'] :: EventDataStore -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:createdTimestamp:ImportsListItem'] :: ImportsListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:creationTime:Query'] :: Query -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:creationTime:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:dataResources:EventSelector'] :: EventSelector -> Maybe [DataResource]
+ Amazonka.CloudTrail.Types: [$sel:destinations:ImportsListItem'] :: ImportsListItem -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:endsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:equals:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:errorMessage:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:errorType:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:eventDataStoreArn:EventDataStore'] :: EventDataStore -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:eventId:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:eventName:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:eventSource:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:eventTime:Event'] :: Event -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:eventsCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:eventsMatched:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:eventsScanned:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:excludeManagementEventSources:EventSelector'] :: EventSelector -> Maybe [Text]
+ Amazonka.CloudTrail.Types: [$sel:executionTimeInMillis:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Int
+ Amazonka.CloudTrail.Types: [$sel:failedEntries:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:field:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Text
+ Amazonka.CloudTrail.Types: [$sel:fieldSelectors:AdvancedEventSelector'] :: AdvancedEventSelector -> NonEmpty AdvancedFieldSelector
+ Amazonka.CloudTrail.Types: [$sel:filesCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:fingerprint:PublicKey'] :: PublicKey -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:hasCustomEventSelectors:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:hasInsightSelectors:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:homeRegion:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:homeRegion:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:importId:ImportsListItem'] :: ImportsListItem -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:importStatus:ImportsListItem'] :: ImportsListItem -> Maybe ImportStatus
+ Amazonka.CloudTrail.Types: [$sel:includeGlobalServiceEvents:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:includeManagementEvents:EventSelector'] :: EventSelector -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:insightType:InsightSelector'] :: InsightSelector -> Maybe InsightType
+ Amazonka.CloudTrail.Types: [$sel:isMultiRegionTrail:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:isOrganizationTrail:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:key:Tag'] :: Tag -> Text
+ Amazonka.CloudTrail.Types: [$sel:kmsKeyId:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:lastUpdatedTime:ImportFailureListItem'] :: ImportFailureListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:location:Destination'] :: Destination -> Text
+ Amazonka.CloudTrail.Types: [$sel:location:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:logFileValidationEnabled:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:multiRegionEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:name:AdvancedEventSelector'] :: AdvancedEventSelector -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:name:Channel'] :: Channel -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:name:EventDataStore'] :: EventDataStore -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:name:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:name:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:notEndsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:notEquals:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:notStartsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:organizationEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:prefixesCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:prefixesFound:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types: [$sel:queryId:Query'] :: Query -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:queryStatus:Query'] :: Query -> Maybe QueryStatus
+ Amazonka.CloudTrail.Types: [$sel:readOnly:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:readWriteType:EventSelector'] :: EventSelector -> Maybe ReadWriteType
+ Amazonka.CloudTrail.Types: [$sel:resourceId:ResourceTag'] :: ResourceTag -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:resourceName:Resource'] :: Resource -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:resourceType:Resource'] :: Resource -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:resources:Event'] :: Event -> Maybe [Resource]
+ Amazonka.CloudTrail.Types: [$sel:resultsCount:QueryStatistics'] :: QueryStatistics -> Maybe Int
+ Amazonka.CloudTrail.Types: [$sel:retentionPeriod:EventDataStore'] :: EventDataStore -> Maybe Natural
+ Amazonka.CloudTrail.Types: [$sel:s3:ImportSource'] :: ImportSource -> S3ImportSource
+ Amazonka.CloudTrail.Types: [$sel:s3BucketAccessRoleArn:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types: [$sel:s3BucketName:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:s3BucketRegion:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types: [$sel:s3KeyPrefix:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:s3LocationUri:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types: [$sel:snsTopicARN:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:snsTopicName:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:startsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types: [$sel:status:EventDataStore'] :: EventDataStore -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.Types: [$sel:status:ImportFailureListItem'] :: ImportFailureListItem -> Maybe ImportFailureStatus
+ Amazonka.CloudTrail.Types: [$sel:tagsList:ResourceTag'] :: ResourceTag -> Maybe [Tag]
+ Amazonka.CloudTrail.Types: [$sel:terminationProtectionEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types: [$sel:totalResultsCount:QueryStatistics'] :: QueryStatistics -> Maybe Int
+ Amazonka.CloudTrail.Types: [$sel:trailARN:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:trailARN:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:type':DataResource'] :: DataResource -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:type':Destination'] :: Destination -> DestinationType
+ Amazonka.CloudTrail.Types: [$sel:updatedTimestamp:EventDataStore'] :: EventDataStore -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:updatedTimestamp:ImportsListItem'] :: ImportsListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:username:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:validityEndTime:PublicKey'] :: PublicKey -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:validityStartTime:PublicKey'] :: PublicKey -> Maybe POSIX
+ Amazonka.CloudTrail.Types: [$sel:value:PublicKey'] :: PublicKey -> Maybe Base64
+ Amazonka.CloudTrail.Types: [$sel:value:Tag'] :: Tag -> Maybe Text
+ Amazonka.CloudTrail.Types: [$sel:values:DataResource'] :: DataResource -> Maybe [Text]
+ Amazonka.CloudTrail.Types: [fromDeliveryStatus] :: DeliveryStatus -> Text
+ Amazonka.CloudTrail.Types: [fromDestinationType] :: DestinationType -> Text
+ Amazonka.CloudTrail.Types: [fromEventCategory] :: EventCategory -> Text
+ Amazonka.CloudTrail.Types: [fromEventDataStoreStatus] :: EventDataStoreStatus -> Text
+ Amazonka.CloudTrail.Types: [fromImportFailureStatus] :: ImportFailureStatus -> Text
+ Amazonka.CloudTrail.Types: [fromImportStatus] :: ImportStatus -> Text
+ Amazonka.CloudTrail.Types: [fromInsightType] :: InsightType -> Text
+ Amazonka.CloudTrail.Types: [fromLookupAttributeKey] :: LookupAttributeKey -> Text
+ Amazonka.CloudTrail.Types: [fromQueryStatus] :: QueryStatus -> Text
+ Amazonka.CloudTrail.Types: [fromReadWriteType] :: ReadWriteType -> Text
+ Amazonka.CloudTrail.Types: _AccountHasOngoingImportException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _AccountNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _AccountNotRegisteredException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _AccountRegisteredException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _CannotDelegateManagementAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ChannelARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ChannelNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _CloudTrailARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _CloudTrailAccessNotEnabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _CloudTrailInvalidClientTokenIdException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _CloudWatchLogsDeliveryUnavailableException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ConflictException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _DelegatedAdminAccountLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreARNInvalidException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreAlreadyExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreHasOngoingImportException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreMaxLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _EventDataStoreTerminationProtectedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ImportNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InactiveEventDataStoreException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InactiveQueryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InsightNotEnabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InsufficientDependencyServiceAccessPermissionException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InsufficientEncryptionPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InsufficientS3BucketPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InsufficientSnsTopicPolicyException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidCloudWatchLogsLogGroupArnException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidCloudWatchLogsRoleArnException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidDateRangeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidEventCategoryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidEventDataStoreCategoryException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidEventDataStoreStatusException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidEventSelectorsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidHomeRegionException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidImportSourceException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidInsightSelectorsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidKmsKeyIdException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidLookupAttributesException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidMaxResultsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidNextTokenException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidParameterCombinationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidQueryStatementException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidQueryStatusException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidS3BucketNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidS3PrefixException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidSnsTopicNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidTagParameterException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidTimeRangeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidTokenException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _InvalidTrailNameException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _KmsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _KmsKeyDisabledException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _KmsKeyNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _MaxConcurrentQueriesException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _MaximumNumberOfTrailsExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _NoManagementAccountSLRExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _NotOrganizationManagementAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _NotOrganizationMasterAccountException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _OperationNotPermittedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _OrganizationNotInAllFeaturesModeException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _OrganizationsNotInUseException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _QueryIdNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ResourceNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _ResourceTypeNotSupportedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _S3BucketDoesNotExistException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _TagsLimitExceededException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _TrailAlreadyExistsException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _TrailNotFoundException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _TrailNotProvidedException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: _UnsupportedOperationException :: AsError a => Fold a ServiceError
+ Amazonka.CloudTrail.Types: advancedEventSelector_fieldSelectors :: Lens' AdvancedEventSelector (NonEmpty AdvancedFieldSelector)
+ Amazonka.CloudTrail.Types: advancedEventSelector_name :: Lens' AdvancedEventSelector (Maybe Text)
+ Amazonka.CloudTrail.Types: advancedFieldSelector_endsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: advancedFieldSelector_equals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: advancedFieldSelector_field :: Lens' AdvancedFieldSelector Text
+ Amazonka.CloudTrail.Types: advancedFieldSelector_notEndsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: advancedFieldSelector_notEquals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: advancedFieldSelector_notStartsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: advancedFieldSelector_startsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: channel_channelArn :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Types: channel_name :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Types: data AdvancedEventSelector
+ Amazonka.CloudTrail.Types: data AdvancedFieldSelector
+ Amazonka.CloudTrail.Types: data Channel
+ Amazonka.CloudTrail.Types: data DataResource
+ Amazonka.CloudTrail.Types: data Destination
+ Amazonka.CloudTrail.Types: data Event
+ Amazonka.CloudTrail.Types: data EventDataStore
+ Amazonka.CloudTrail.Types: data EventSelector
+ Amazonka.CloudTrail.Types: data ImportFailureListItem
+ Amazonka.CloudTrail.Types: data ImportSource
+ Amazonka.CloudTrail.Types: data ImportStatistics
+ Amazonka.CloudTrail.Types: data ImportsListItem
+ Amazonka.CloudTrail.Types: data InsightSelector
+ Amazonka.CloudTrail.Types: data LookupAttribute
+ Amazonka.CloudTrail.Types: data PublicKey
+ Amazonka.CloudTrail.Types: data Query
+ Amazonka.CloudTrail.Types: data QueryStatistics
+ Amazonka.CloudTrail.Types: data QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types: data Resource
+ Amazonka.CloudTrail.Types: data ResourceTag
+ Amazonka.CloudTrail.Types: data S3ImportSource
+ Amazonka.CloudTrail.Types: data SourceConfig
+ Amazonka.CloudTrail.Types: data Tag
+ Amazonka.CloudTrail.Types: data Trail
+ Amazonka.CloudTrail.Types: data TrailInfo
+ Amazonka.CloudTrail.Types: dataResource_type :: Lens' DataResource (Maybe Text)
+ Amazonka.CloudTrail.Types: dataResource_values :: Lens' DataResource (Maybe [Text])
+ Amazonka.CloudTrail.Types: defaultService :: Service
+ Amazonka.CloudTrail.Types: destination_location :: Lens' Destination Text
+ Amazonka.CloudTrail.Types: destination_type :: Lens' Destination DestinationType
+ Amazonka.CloudTrail.Types: eventDataStore_advancedEventSelectors :: Lens' EventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Types: eventDataStore_createdTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: eventDataStore_eventDataStoreArn :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Types: eventDataStore_multiRegionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types: eventDataStore_name :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Types: eventDataStore_organizationEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types: eventDataStore_retentionPeriod :: Lens' EventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.Types: eventDataStore_status :: Lens' EventDataStore (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Types: eventDataStore_terminationProtectionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types: eventDataStore_updatedTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: eventSelector_dataResources :: Lens' EventSelector (Maybe [DataResource])
+ Amazonka.CloudTrail.Types: eventSelector_excludeManagementEventSources :: Lens' EventSelector (Maybe [Text])
+ Amazonka.CloudTrail.Types: eventSelector_includeManagementEvents :: Lens' EventSelector (Maybe Bool)
+ Amazonka.CloudTrail.Types: eventSelector_readWriteType :: Lens' EventSelector (Maybe ReadWriteType)
+ Amazonka.CloudTrail.Types: event_accessKeyId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_cloudTrailEvent :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_eventId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_eventName :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_eventSource :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_eventTime :: Lens' Event (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: event_readOnly :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: event_resources :: Lens' Event (Maybe [Resource])
+ Amazonka.CloudTrail.Types: event_username :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types: importFailureListItem_errorMessage :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types: importFailureListItem_errorType :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types: importFailureListItem_lastUpdatedTime :: Lens' ImportFailureListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: importFailureListItem_location :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types: importFailureListItem_status :: Lens' ImportFailureListItem (Maybe ImportFailureStatus)
+ Amazonka.CloudTrail.Types: importSource_s3 :: Lens' ImportSource S3ImportSource
+ Amazonka.CloudTrail.Types: importStatistics_eventsCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: importStatistics_failedEntries :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: importStatistics_filesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: importStatistics_prefixesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: importStatistics_prefixesFound :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: importsListItem_createdTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: importsListItem_destinations :: Lens' ImportsListItem (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types: importsListItem_importId :: Lens' ImportsListItem (Maybe Text)
+ Amazonka.CloudTrail.Types: importsListItem_importStatus :: Lens' ImportsListItem (Maybe ImportStatus)
+ Amazonka.CloudTrail.Types: importsListItem_updatedTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: insightSelector_insightType :: Lens' InsightSelector (Maybe InsightType)
+ Amazonka.CloudTrail.Types: lookupAttribute_attributeKey :: Lens' LookupAttribute LookupAttributeKey
+ Amazonka.CloudTrail.Types: lookupAttribute_attributeValue :: Lens' LookupAttribute Text
+ Amazonka.CloudTrail.Types: newAdvancedEventSelector :: NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail.Types: newAdvancedFieldSelector :: Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail.Types: newChannel :: Channel
+ Amazonka.CloudTrail.Types: newDataResource :: DataResource
+ Amazonka.CloudTrail.Types: newDestination :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail.Types: newEvent :: Event
+ Amazonka.CloudTrail.Types: newEventDataStore :: EventDataStore
+ Amazonka.CloudTrail.Types: newEventSelector :: EventSelector
+ Amazonka.CloudTrail.Types: newImportFailureListItem :: ImportFailureListItem
+ Amazonka.CloudTrail.Types: newImportSource :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail.Types: newImportStatistics :: ImportStatistics
+ Amazonka.CloudTrail.Types: newImportsListItem :: ImportsListItem
+ Amazonka.CloudTrail.Types: newInsightSelector :: InsightSelector
+ Amazonka.CloudTrail.Types: newLookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail.Types: newPublicKey :: PublicKey
+ Amazonka.CloudTrail.Types: newQuery :: Query
+ Amazonka.CloudTrail.Types: newQueryStatistics :: QueryStatistics
+ Amazonka.CloudTrail.Types: newQueryStatisticsForDescribeQuery :: QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types: newResource :: Resource
+ Amazonka.CloudTrail.Types: newResourceTag :: ResourceTag
+ Amazonka.CloudTrail.Types: newS3ImportSource :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail.Types: newSourceConfig :: SourceConfig
+ Amazonka.CloudTrail.Types: newTag :: Text -> Tag
+ Amazonka.CloudTrail.Types: newTrail :: Trail
+ Amazonka.CloudTrail.Types: newTrailInfo :: TrailInfo
+ Amazonka.CloudTrail.Types: newtype DeliveryStatus
+ Amazonka.CloudTrail.Types: newtype DestinationType
+ Amazonka.CloudTrail.Types: newtype EventCategory
+ Amazonka.CloudTrail.Types: newtype EventDataStoreStatus
+ Amazonka.CloudTrail.Types: newtype ImportFailureStatus
+ Amazonka.CloudTrail.Types: newtype ImportStatus
+ Amazonka.CloudTrail.Types: newtype InsightType
+ Amazonka.CloudTrail.Types: newtype LookupAttributeKey
+ Amazonka.CloudTrail.Types: newtype QueryStatus
+ Amazonka.CloudTrail.Types: newtype ReadWriteType
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_ACCESS_DENIED :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_ACCESS_DENIED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_CANCELLED :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_FAILED :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_FAILED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_PENDING :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_RESOURCE_NOT_FOUND :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_SUCCESS :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DeliveryStatus_UNKNOWN :: DeliveryStatus
+ Amazonka.CloudTrail.Types: pattern DestinationType_AWS_SERVICE :: DestinationType
+ Amazonka.CloudTrail.Types: pattern DestinationType_EVENT_DATA_STORE :: DestinationType
+ Amazonka.CloudTrail.Types: pattern EventCategory_Insight :: EventCategory
+ Amazonka.CloudTrail.Types: pattern EventDataStoreStatus_CREATED :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types: pattern EventDataStoreStatus_ENABLED :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types: pattern EventDataStoreStatus_PENDING_DELETION :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types: pattern ImportFailureStatus_FAILED :: ImportFailureStatus
+ Amazonka.CloudTrail.Types: pattern ImportFailureStatus_RETRY :: ImportFailureStatus
+ Amazonka.CloudTrail.Types: pattern ImportFailureStatus_SUCCEEDED :: ImportFailureStatus
+ Amazonka.CloudTrail.Types: pattern ImportStatus_COMPLETED :: ImportStatus
+ Amazonka.CloudTrail.Types: pattern ImportStatus_FAILED :: ImportStatus
+ Amazonka.CloudTrail.Types: pattern ImportStatus_INITIALIZING :: ImportStatus
+ Amazonka.CloudTrail.Types: pattern ImportStatus_IN_PROGRESS :: ImportStatus
+ Amazonka.CloudTrail.Types: pattern ImportStatus_STOPPED :: ImportStatus
+ Amazonka.CloudTrail.Types: pattern InsightType_ApiCallRateInsight :: InsightType
+ Amazonka.CloudTrail.Types: pattern InsightType_ApiErrorRateInsight :: InsightType
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_EventId :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_EventName :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_EventSource :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_ResourceName :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_ResourceType :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern LookupAttributeKey_Username :: LookupAttributeKey
+ Amazonka.CloudTrail.Types: pattern QueryStatus_CANCELLED :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern QueryStatus_FAILED :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern QueryStatus_FINISHED :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern QueryStatus_QUEUED :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern QueryStatus_RUNNING :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern QueryStatus_TIMED_OUT :: QueryStatus
+ Amazonka.CloudTrail.Types: pattern ReadWriteType_All :: ReadWriteType
+ Amazonka.CloudTrail.Types: pattern ReadWriteType_ReadOnly :: ReadWriteType
+ Amazonka.CloudTrail.Types: pattern ReadWriteType_WriteOnly :: ReadWriteType
+ Amazonka.CloudTrail.Types: publicKey_fingerprint :: Lens' PublicKey (Maybe Text)
+ Amazonka.CloudTrail.Types: publicKey_validityEndTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: publicKey_validityStartTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: publicKey_value :: Lens' PublicKey (Maybe ByteString)
+ Amazonka.CloudTrail.Types: queryStatisticsForDescribeQuery_bytesScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types: queryStatisticsForDescribeQuery_creationTime :: Lens' QueryStatisticsForDescribeQuery (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: queryStatisticsForDescribeQuery_eventsMatched :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types: queryStatisticsForDescribeQuery_eventsScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types: queryStatisticsForDescribeQuery_executionTimeInMillis :: Lens' QueryStatisticsForDescribeQuery (Maybe Int)
+ Amazonka.CloudTrail.Types: queryStatistics_bytesScanned :: Lens' QueryStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types: queryStatistics_resultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Types: queryStatistics_totalResultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Types: query_creationTime :: Lens' Query (Maybe UTCTime)
+ Amazonka.CloudTrail.Types: query_queryId :: Lens' Query (Maybe Text)
+ Amazonka.CloudTrail.Types: query_queryStatus :: Lens' Query (Maybe QueryStatus)
+ Amazonka.CloudTrail.Types: resourceTag_resourceId :: Lens' ResourceTag (Maybe Text)
+ Amazonka.CloudTrail.Types: resourceTag_tagsList :: Lens' ResourceTag (Maybe [Tag])
+ Amazonka.CloudTrail.Types: resource_resourceName :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Types: resource_resourceType :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Types: s3ImportSource_s3BucketAccessRoleArn :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types: s3ImportSource_s3BucketRegion :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types: s3ImportSource_s3LocationUri :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types: sourceConfig_advancedEventSelectors :: Lens' SourceConfig (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Types: sourceConfig_applyToAllRegions :: Lens' SourceConfig (Maybe Bool)
+ Amazonka.CloudTrail.Types: tag_key :: Lens' Tag Text
+ Amazonka.CloudTrail.Types: tag_value :: Lens' Tag (Maybe Text)
+ Amazonka.CloudTrail.Types: trailInfo_homeRegion :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Types: trailInfo_name :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Types: trailInfo_trailARN :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_cloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_cloudWatchLogsRoleArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_hasCustomEventSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_hasInsightSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_homeRegion :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_includeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_isMultiRegionTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_isOrganizationTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_kmsKeyId :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_logFileValidationEnabled :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types: trail_name :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_s3BucketName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_s3KeyPrefix :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_snsTopicARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_snsTopicName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types: trail_trailARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: AdvancedEventSelector' :: Maybe Text -> NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: [$sel:fieldSelectors:AdvancedEventSelector'] :: AdvancedEventSelector -> NonEmpty AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: [$sel:name:AdvancedEventSelector'] :: AdvancedEventSelector -> Maybe Text
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: advancedEventSelector_fieldSelectors :: Lens' AdvancedEventSelector (NonEmpty AdvancedFieldSelector)
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: advancedEventSelector_name :: Lens' AdvancedEventSelector (Maybe Text)
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: data AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance GHC.Read.Read Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: instance GHC.Show.Show Amazonka.CloudTrail.Types.AdvancedEventSelector.AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedEventSelector: newAdvancedEventSelector :: NonEmpty AdvancedFieldSelector -> AdvancedEventSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: AdvancedFieldSelector' :: Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Maybe (NonEmpty Text) -> Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:endsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:equals:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:field:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Text
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:notEndsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:notEquals:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:notStartsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: [$sel:startsWith:AdvancedFieldSelector'] :: AdvancedFieldSelector -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_endsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_equals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_field :: Lens' AdvancedFieldSelector Text
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_notEndsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_notEquals :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_notStartsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: advancedFieldSelector_startsWith :: Lens' AdvancedFieldSelector (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: data AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance GHC.Read.Read Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: instance GHC.Show.Show Amazonka.CloudTrail.Types.AdvancedFieldSelector.AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.AdvancedFieldSelector: newAdvancedFieldSelector :: Text -> AdvancedFieldSelector
+ Amazonka.CloudTrail.Types.Channel: Channel' :: Maybe Text -> Maybe Text -> Channel
+ Amazonka.CloudTrail.Types.Channel: [$sel:channelArn:Channel'] :: Channel -> Maybe Text
+ Amazonka.CloudTrail.Types.Channel: [$sel:name:Channel'] :: Channel -> Maybe Text
+ Amazonka.CloudTrail.Types.Channel: channel_channelArn :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Types.Channel: channel_name :: Lens' Channel (Maybe Text)
+ Amazonka.CloudTrail.Types.Channel: data Channel
+ Amazonka.CloudTrail.Types.Channel: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance GHC.Read.Read Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: instance GHC.Show.Show Amazonka.CloudTrail.Types.Channel.Channel
+ Amazonka.CloudTrail.Types.Channel: newChannel :: Channel
+ Amazonka.CloudTrail.Types.DataResource: DataResource' :: Maybe Text -> Maybe [Text] -> DataResource
+ Amazonka.CloudTrail.Types.DataResource: [$sel:type':DataResource'] :: DataResource -> Maybe Text
+ Amazonka.CloudTrail.Types.DataResource: [$sel:values:DataResource'] :: DataResource -> Maybe [Text]
+ Amazonka.CloudTrail.Types.DataResource: data DataResource
+ Amazonka.CloudTrail.Types.DataResource: dataResource_type :: Lens' DataResource (Maybe Text)
+ Amazonka.CloudTrail.Types.DataResource: dataResource_values :: Lens' DataResource (Maybe [Text])
+ Amazonka.CloudTrail.Types.DataResource: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance GHC.Read.Read Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: instance GHC.Show.Show Amazonka.CloudTrail.Types.DataResource.DataResource
+ Amazonka.CloudTrail.Types.DataResource: newDataResource :: DataResource
+ Amazonka.CloudTrail.Types.DeliveryStatus: DeliveryStatus' :: Text -> DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: [fromDeliveryStatus] :: DeliveryStatus -> Text
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance GHC.Read.Read Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: instance GHC.Show.Show Amazonka.CloudTrail.Types.DeliveryStatus.DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: newtype DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_ACCESS_DENIED :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_ACCESS_DENIED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_CANCELLED :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_FAILED :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_FAILED_SIGNING_FILE :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_PENDING :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_RESOURCE_NOT_FOUND :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_SUCCESS :: DeliveryStatus
+ Amazonka.CloudTrail.Types.DeliveryStatus: pattern DeliveryStatus_UNKNOWN :: DeliveryStatus
+ Amazonka.CloudTrail.Types.Destination: Destination' :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail.Types.Destination: [$sel:location:Destination'] :: Destination -> Text
+ Amazonka.CloudTrail.Types.Destination: [$sel:type':Destination'] :: Destination -> DestinationType
+ Amazonka.CloudTrail.Types.Destination: data Destination
+ Amazonka.CloudTrail.Types.Destination: destination_location :: Lens' Destination Text
+ Amazonka.CloudTrail.Types.Destination: destination_type :: Lens' Destination DestinationType
+ Amazonka.CloudTrail.Types.Destination: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance GHC.Read.Read Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: instance GHC.Show.Show Amazonka.CloudTrail.Types.Destination.Destination
+ Amazonka.CloudTrail.Types.Destination: newDestination :: DestinationType -> Text -> Destination
+ Amazonka.CloudTrail.Types.DestinationType: DestinationType' :: Text -> DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: [fromDestinationType] :: DestinationType -> Text
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance GHC.Read.Read Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: instance GHC.Show.Show Amazonka.CloudTrail.Types.DestinationType.DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: newtype DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: pattern DestinationType_AWS_SERVICE :: DestinationType
+ Amazonka.CloudTrail.Types.DestinationType: pattern DestinationType_EVENT_DATA_STORE :: DestinationType
+ Amazonka.CloudTrail.Types.Event: Event' :: Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe [Resource] -> Maybe Text -> Event
+ Amazonka.CloudTrail.Types.Event: [$sel:accessKeyId:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:cloudTrailEvent:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:eventId:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:eventName:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:eventSource:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:eventTime:Event'] :: Event -> Maybe POSIX
+ Amazonka.CloudTrail.Types.Event: [$sel:readOnly:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: [$sel:resources:Event'] :: Event -> Maybe [Resource]
+ Amazonka.CloudTrail.Types.Event: [$sel:username:Event'] :: Event -> Maybe Text
+ Amazonka.CloudTrail.Types.Event: data Event
+ Amazonka.CloudTrail.Types.Event: event_accessKeyId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_cloudTrailEvent :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_eventId :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_eventName :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_eventSource :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_eventTime :: Lens' Event (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.Event: event_readOnly :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: event_resources :: Lens' Event (Maybe [Resource])
+ Amazonka.CloudTrail.Types.Event: event_username :: Lens' Event (Maybe Text)
+ Amazonka.CloudTrail.Types.Event: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance GHC.Read.Read Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: instance GHC.Show.Show Amazonka.CloudTrail.Types.Event.Event
+ Amazonka.CloudTrail.Types.Event: newEvent :: Event
+ Amazonka.CloudTrail.Types.EventCategory: EventCategory' :: Text -> EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: [fromEventCategory] :: EventCategory -> Text
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance GHC.Read.Read Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: instance GHC.Show.Show Amazonka.CloudTrail.Types.EventCategory.EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: newtype EventCategory
+ Amazonka.CloudTrail.Types.EventCategory: pattern EventCategory_Insight :: EventCategory
+ Amazonka.CloudTrail.Types.EventDataStore: EventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:advancedEventSelectors:EventDataStore'] :: EventDataStore -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:createdTimestamp:EventDataStore'] :: EventDataStore -> Maybe POSIX
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:eventDataStoreArn:EventDataStore'] :: EventDataStore -> Maybe Text
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:multiRegionEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:name:EventDataStore'] :: EventDataStore -> Maybe Text
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:organizationEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:retentionPeriod:EventDataStore'] :: EventDataStore -> Maybe Natural
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:status:EventDataStore'] :: EventDataStore -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:terminationProtectionEnabled:EventDataStore'] :: EventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.Types.EventDataStore: [$sel:updatedTimestamp:EventDataStore'] :: EventDataStore -> Maybe POSIX
+ Amazonka.CloudTrail.Types.EventDataStore: data EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_advancedEventSelectors :: Lens' EventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_createdTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_eventDataStoreArn :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_multiRegionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_name :: Lens' EventDataStore (Maybe Text)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_organizationEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_retentionPeriod :: Lens' EventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_status :: Lens' EventDataStore (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_terminationProtectionEnabled :: Lens' EventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.Types.EventDataStore: eventDataStore_updatedTimestamp :: Lens' EventDataStore (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.EventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.Types.EventDataStore.EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStore: newEventDataStore :: EventDataStore
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: EventDataStoreStatus' :: Text -> EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: [fromEventDataStoreStatus] :: EventDataStoreStatus -> Text
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance GHC.Read.Read Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: instance GHC.Show.Show Amazonka.CloudTrail.Types.EventDataStoreStatus.EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: newtype EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: pattern EventDataStoreStatus_CREATED :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: pattern EventDataStoreStatus_ENABLED :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventDataStoreStatus: pattern EventDataStoreStatus_PENDING_DELETION :: EventDataStoreStatus
+ Amazonka.CloudTrail.Types.EventSelector: EventSelector' :: Maybe [DataResource] -> Maybe [Text] -> Maybe Bool -> Maybe ReadWriteType -> EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: [$sel:dataResources:EventSelector'] :: EventSelector -> Maybe [DataResource]
+ Amazonka.CloudTrail.Types.EventSelector: [$sel:excludeManagementEventSources:EventSelector'] :: EventSelector -> Maybe [Text]
+ Amazonka.CloudTrail.Types.EventSelector: [$sel:includeManagementEvents:EventSelector'] :: EventSelector -> Maybe Bool
+ Amazonka.CloudTrail.Types.EventSelector: [$sel:readWriteType:EventSelector'] :: EventSelector -> Maybe ReadWriteType
+ Amazonka.CloudTrail.Types.EventSelector: data EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: eventSelector_dataResources :: Lens' EventSelector (Maybe [DataResource])
+ Amazonka.CloudTrail.Types.EventSelector: eventSelector_excludeManagementEventSources :: Lens' EventSelector (Maybe [Text])
+ Amazonka.CloudTrail.Types.EventSelector: eventSelector_includeManagementEvents :: Lens' EventSelector (Maybe Bool)
+ Amazonka.CloudTrail.Types.EventSelector: eventSelector_readWriteType :: Lens' EventSelector (Maybe ReadWriteType)
+ Amazonka.CloudTrail.Types.EventSelector: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance GHC.Read.Read Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: instance GHC.Show.Show Amazonka.CloudTrail.Types.EventSelector.EventSelector
+ Amazonka.CloudTrail.Types.EventSelector: newEventSelector :: EventSelector
+ Amazonka.CloudTrail.Types.ImportFailureListItem: ImportFailureListItem' :: Maybe Text -> Maybe Text -> Maybe POSIX -> Maybe Text -> Maybe ImportFailureStatus -> ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: [$sel:errorMessage:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types.ImportFailureListItem: [$sel:errorType:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types.ImportFailureListItem: [$sel:lastUpdatedTime:ImportFailureListItem'] :: ImportFailureListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types.ImportFailureListItem: [$sel:location:ImportFailureListItem'] :: ImportFailureListItem -> Maybe Text
+ Amazonka.CloudTrail.Types.ImportFailureListItem: [$sel:status:ImportFailureListItem'] :: ImportFailureListItem -> Maybe ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureListItem: data ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: importFailureListItem_errorMessage :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types.ImportFailureListItem: importFailureListItem_errorType :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types.ImportFailureListItem: importFailureListItem_lastUpdatedTime :: Lens' ImportFailureListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.ImportFailureListItem: importFailureListItem_location :: Lens' ImportFailureListItem (Maybe Text)
+ Amazonka.CloudTrail.Types.ImportFailureListItem: importFailureListItem_status :: Lens' ImportFailureListItem (Maybe ImportFailureStatus)
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportFailureListItem.ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureListItem: newImportFailureListItem :: ImportFailureListItem
+ Amazonka.CloudTrail.Types.ImportFailureStatus: ImportFailureStatus' :: Text -> ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: [fromImportFailureStatus] :: ImportFailureStatus -> Text
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportFailureStatus.ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: newtype ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: pattern ImportFailureStatus_FAILED :: ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: pattern ImportFailureStatus_RETRY :: ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportFailureStatus: pattern ImportFailureStatus_SUCCEEDED :: ImportFailureStatus
+ Amazonka.CloudTrail.Types.ImportSource: ImportSource' :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: [$sel:s3:ImportSource'] :: ImportSource -> S3ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: data ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: importSource_s3 :: Lens' ImportSource S3ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportSource.ImportSource
+ Amazonka.CloudTrail.Types.ImportSource: newImportSource :: S3ImportSource -> ImportSource
+ Amazonka.CloudTrail.Types.ImportStatistics: ImportStatistics' :: Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> Maybe Integer -> ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: [$sel:eventsCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.ImportStatistics: [$sel:failedEntries:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.ImportStatistics: [$sel:filesCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.ImportStatistics: [$sel:prefixesCompleted:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.ImportStatistics: [$sel:prefixesFound:ImportStatistics'] :: ImportStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.ImportStatistics: data ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: importStatistics_eventsCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.ImportStatistics: importStatistics_failedEntries :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.ImportStatistics: importStatistics_filesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.ImportStatistics: importStatistics_prefixesCompleted :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.ImportStatistics: importStatistics_prefixesFound :: Lens' ImportStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.ImportStatistics: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportStatistics.ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatistics: newImportStatistics :: ImportStatistics
+ Amazonka.CloudTrail.Types.ImportStatus: ImportStatus' :: Text -> ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: [fromImportStatus] :: ImportStatus -> Text
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportStatus.ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: newtype ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: pattern ImportStatus_COMPLETED :: ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: pattern ImportStatus_FAILED :: ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: pattern ImportStatus_INITIALIZING :: ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: pattern ImportStatus_IN_PROGRESS :: ImportStatus
+ Amazonka.CloudTrail.Types.ImportStatus: pattern ImportStatus_STOPPED :: ImportStatus
+ Amazonka.CloudTrail.Types.ImportsListItem: ImportsListItem' :: Maybe POSIX -> Maybe (NonEmpty Text) -> Maybe Text -> Maybe ImportStatus -> Maybe POSIX -> ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: [$sel:createdTimestamp:ImportsListItem'] :: ImportsListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types.ImportsListItem: [$sel:destinations:ImportsListItem'] :: ImportsListItem -> Maybe (NonEmpty Text)
+ Amazonka.CloudTrail.Types.ImportsListItem: [$sel:importId:ImportsListItem'] :: ImportsListItem -> Maybe Text
+ Amazonka.CloudTrail.Types.ImportsListItem: [$sel:importStatus:ImportsListItem'] :: ImportsListItem -> Maybe ImportStatus
+ Amazonka.CloudTrail.Types.ImportsListItem: [$sel:updatedTimestamp:ImportsListItem'] :: ImportsListItem -> Maybe POSIX
+ Amazonka.CloudTrail.Types.ImportsListItem: data ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: importsListItem_createdTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.ImportsListItem: importsListItem_destinations :: Lens' ImportsListItem (Maybe (NonEmpty Text))
+ Amazonka.CloudTrail.Types.ImportsListItem: importsListItem_importId :: Lens' ImportsListItem (Maybe Text)
+ Amazonka.CloudTrail.Types.ImportsListItem: importsListItem_importStatus :: Lens' ImportsListItem (Maybe ImportStatus)
+ Amazonka.CloudTrail.Types.ImportsListItem: importsListItem_updatedTimestamp :: Lens' ImportsListItem (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.ImportsListItem: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance GHC.Read.Read Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: instance GHC.Show.Show Amazonka.CloudTrail.Types.ImportsListItem.ImportsListItem
+ Amazonka.CloudTrail.Types.ImportsListItem: newImportsListItem :: ImportsListItem
+ Amazonka.CloudTrail.Types.InsightSelector: InsightSelector' :: Maybe InsightType -> InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: [$sel:insightType:InsightSelector'] :: InsightSelector -> Maybe InsightType
+ Amazonka.CloudTrail.Types.InsightSelector: data InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: insightSelector_insightType :: Lens' InsightSelector (Maybe InsightType)
+ Amazonka.CloudTrail.Types.InsightSelector: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance GHC.Read.Read Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: instance GHC.Show.Show Amazonka.CloudTrail.Types.InsightSelector.InsightSelector
+ Amazonka.CloudTrail.Types.InsightSelector: newInsightSelector :: InsightSelector
+ Amazonka.CloudTrail.Types.InsightType: InsightType' :: Text -> InsightType
+ Amazonka.CloudTrail.Types.InsightType: [fromInsightType] :: InsightType -> Text
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance GHC.Read.Read Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: instance GHC.Show.Show Amazonka.CloudTrail.Types.InsightType.InsightType
+ Amazonka.CloudTrail.Types.InsightType: newtype InsightType
+ Amazonka.CloudTrail.Types.InsightType: pattern InsightType_ApiCallRateInsight :: InsightType
+ Amazonka.CloudTrail.Types.InsightType: pattern InsightType_ApiErrorRateInsight :: InsightType
+ Amazonka.CloudTrail.Types.LookupAttribute: LookupAttribute' :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: [$sel:attributeKey:LookupAttribute'] :: LookupAttribute -> LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttribute: [$sel:attributeValue:LookupAttribute'] :: LookupAttribute -> Text
+ Amazonka.CloudTrail.Types.LookupAttribute: data LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance GHC.Read.Read Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: instance GHC.Show.Show Amazonka.CloudTrail.Types.LookupAttribute.LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttribute: lookupAttribute_attributeKey :: Lens' LookupAttribute LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttribute: lookupAttribute_attributeValue :: Lens' LookupAttribute Text
+ Amazonka.CloudTrail.Types.LookupAttribute: newLookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
+ Amazonka.CloudTrail.Types.LookupAttributeKey: LookupAttributeKey' :: Text -> LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: [fromLookupAttributeKey] :: LookupAttributeKey -> Text
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance GHC.Read.Read Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: instance GHC.Show.Show Amazonka.CloudTrail.Types.LookupAttributeKey.LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: newtype LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_EventId :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_EventName :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_EventSource :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_ResourceName :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_ResourceType :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.LookupAttributeKey: pattern LookupAttributeKey_Username :: LookupAttributeKey
+ Amazonka.CloudTrail.Types.PublicKey: PublicKey' :: Maybe Text -> Maybe POSIX -> Maybe POSIX -> Maybe Base64 -> PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: [$sel:fingerprint:PublicKey'] :: PublicKey -> Maybe Text
+ Amazonka.CloudTrail.Types.PublicKey: [$sel:validityEndTime:PublicKey'] :: PublicKey -> Maybe POSIX
+ Amazonka.CloudTrail.Types.PublicKey: [$sel:validityStartTime:PublicKey'] :: PublicKey -> Maybe POSIX
+ Amazonka.CloudTrail.Types.PublicKey: [$sel:value:PublicKey'] :: PublicKey -> Maybe Base64
+ Amazonka.CloudTrail.Types.PublicKey: data PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance GHC.Read.Read Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: instance GHC.Show.Show Amazonka.CloudTrail.Types.PublicKey.PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: newPublicKey :: PublicKey
+ Amazonka.CloudTrail.Types.PublicKey: publicKey_fingerprint :: Lens' PublicKey (Maybe Text)
+ Amazonka.CloudTrail.Types.PublicKey: publicKey_validityEndTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.PublicKey: publicKey_validityStartTime :: Lens' PublicKey (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.PublicKey: publicKey_value :: Lens' PublicKey (Maybe ByteString)
+ Amazonka.CloudTrail.Types.Query: Query' :: Maybe POSIX -> Maybe Text -> Maybe QueryStatus -> Query
+ Amazonka.CloudTrail.Types.Query: [$sel:creationTime:Query'] :: Query -> Maybe POSIX
+ Amazonka.CloudTrail.Types.Query: [$sel:queryId:Query'] :: Query -> Maybe Text
+ Amazonka.CloudTrail.Types.Query: [$sel:queryStatus:Query'] :: Query -> Maybe QueryStatus
+ Amazonka.CloudTrail.Types.Query: data Query
+ Amazonka.CloudTrail.Types.Query: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance GHC.Read.Read Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: instance GHC.Show.Show Amazonka.CloudTrail.Types.Query.Query
+ Amazonka.CloudTrail.Types.Query: newQuery :: Query
+ Amazonka.CloudTrail.Types.Query: query_creationTime :: Lens' Query (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.Query: query_queryId :: Lens' Query (Maybe Text)
+ Amazonka.CloudTrail.Types.Query: query_queryStatus :: Lens' Query (Maybe QueryStatus)
+ Amazonka.CloudTrail.Types.QueryStatistics: QueryStatistics' :: Maybe Integer -> Maybe Int -> Maybe Int -> QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: [$sel:bytesScanned:QueryStatistics'] :: QueryStatistics -> Maybe Integer
+ Amazonka.CloudTrail.Types.QueryStatistics: [$sel:resultsCount:QueryStatistics'] :: QueryStatistics -> Maybe Int
+ Amazonka.CloudTrail.Types.QueryStatistics: [$sel:totalResultsCount:QueryStatistics'] :: QueryStatistics -> Maybe Int
+ Amazonka.CloudTrail.Types.QueryStatistics: data QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance GHC.Read.Read Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: instance GHC.Show.Show Amazonka.CloudTrail.Types.QueryStatistics.QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: newQueryStatistics :: QueryStatistics
+ Amazonka.CloudTrail.Types.QueryStatistics: queryStatistics_bytesScanned :: Lens' QueryStatistics (Maybe Integer)
+ Amazonka.CloudTrail.Types.QueryStatistics: queryStatistics_resultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Types.QueryStatistics: queryStatistics_totalResultsCount :: Lens' QueryStatistics (Maybe Int)
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: QueryStatisticsForDescribeQuery' :: Maybe Integer -> Maybe POSIX -> Maybe Integer -> Maybe Integer -> Maybe Int -> QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: [$sel:bytesScanned:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: [$sel:creationTime:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe POSIX
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: [$sel:eventsMatched:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: [$sel:eventsScanned:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Integer
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: [$sel:executionTimeInMillis:QueryStatisticsForDescribeQuery'] :: QueryStatisticsForDescribeQuery -> Maybe Int
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: data QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance GHC.Read.Read Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: instance GHC.Show.Show Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery.QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: newQueryStatisticsForDescribeQuery :: QueryStatisticsForDescribeQuery
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: queryStatisticsForDescribeQuery_bytesScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: queryStatisticsForDescribeQuery_creationTime :: Lens' QueryStatisticsForDescribeQuery (Maybe UTCTime)
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: queryStatisticsForDescribeQuery_eventsMatched :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: queryStatisticsForDescribeQuery_eventsScanned :: Lens' QueryStatisticsForDescribeQuery (Maybe Integer)
+ Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery: queryStatisticsForDescribeQuery_executionTimeInMillis :: Lens' QueryStatisticsForDescribeQuery (Maybe Int)
+ Amazonka.CloudTrail.Types.QueryStatus: QueryStatus' :: Text -> QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: [fromQueryStatus] :: QueryStatus -> Text
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance GHC.Read.Read Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: instance GHC.Show.Show Amazonka.CloudTrail.Types.QueryStatus.QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: newtype QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_CANCELLED :: QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_FAILED :: QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_FINISHED :: QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_QUEUED :: QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_RUNNING :: QueryStatus
+ Amazonka.CloudTrail.Types.QueryStatus: pattern QueryStatus_TIMED_OUT :: QueryStatus
+ Amazonka.CloudTrail.Types.ReadWriteType: ReadWriteType' :: Text -> ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: [fromReadWriteType] :: ReadWriteType -> Text
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.ByteString.ToByteString Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.Headers.ToHeader Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.Log.ToLog Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.Text.FromText Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.Text.ToText Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.XML.FromXML Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Amazonka.Data.XML.ToXML Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Data.Aeson.Types.FromJSON.FromJSONKey Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Data.Aeson.Types.ToJSON.ToJSONKey Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance GHC.Classes.Ord Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance GHC.Read.Read Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: instance GHC.Show.Show Amazonka.CloudTrail.Types.ReadWriteType.ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: newtype ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: pattern ReadWriteType_All :: ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: pattern ReadWriteType_ReadOnly :: ReadWriteType
+ Amazonka.CloudTrail.Types.ReadWriteType: pattern ReadWriteType_WriteOnly :: ReadWriteType
+ Amazonka.CloudTrail.Types.Resource: Resource' :: Maybe Text -> Maybe Text -> Resource
+ Amazonka.CloudTrail.Types.Resource: [$sel:resourceName:Resource'] :: Resource -> Maybe Text
+ Amazonka.CloudTrail.Types.Resource: [$sel:resourceType:Resource'] :: Resource -> Maybe Text
+ Amazonka.CloudTrail.Types.Resource: data Resource
+ Amazonka.CloudTrail.Types.Resource: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance GHC.Read.Read Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: instance GHC.Show.Show Amazonka.CloudTrail.Types.Resource.Resource
+ Amazonka.CloudTrail.Types.Resource: newResource :: Resource
+ Amazonka.CloudTrail.Types.Resource: resource_resourceName :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Types.Resource: resource_resourceType :: Lens' Resource (Maybe Text)
+ Amazonka.CloudTrail.Types.ResourceTag: ResourceTag' :: Maybe Text -> Maybe [Tag] -> ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: [$sel:resourceId:ResourceTag'] :: ResourceTag -> Maybe Text
+ Amazonka.CloudTrail.Types.ResourceTag: [$sel:tagsList:ResourceTag'] :: ResourceTag -> Maybe [Tag]
+ Amazonka.CloudTrail.Types.ResourceTag: data ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance GHC.Read.Read Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: instance GHC.Show.Show Amazonka.CloudTrail.Types.ResourceTag.ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: newResourceTag :: ResourceTag
+ Amazonka.CloudTrail.Types.ResourceTag: resourceTag_resourceId :: Lens' ResourceTag (Maybe Text)
+ Amazonka.CloudTrail.Types.ResourceTag: resourceTag_tagsList :: Lens' ResourceTag (Maybe [Tag])
+ Amazonka.CloudTrail.Types.S3ImportSource: S3ImportSource' :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: [$sel:s3BucketAccessRoleArn:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types.S3ImportSource: [$sel:s3BucketRegion:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types.S3ImportSource: [$sel:s3LocationUri:S3ImportSource'] :: S3ImportSource -> Text
+ Amazonka.CloudTrail.Types.S3ImportSource: data S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance GHC.Read.Read Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: instance GHC.Show.Show Amazonka.CloudTrail.Types.S3ImportSource.S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: newS3ImportSource :: Text -> Text -> Text -> S3ImportSource
+ Amazonka.CloudTrail.Types.S3ImportSource: s3ImportSource_s3BucketAccessRoleArn :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types.S3ImportSource: s3ImportSource_s3BucketRegion :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types.S3ImportSource: s3ImportSource_s3LocationUri :: Lens' S3ImportSource Text
+ Amazonka.CloudTrail.Types.SourceConfig: SourceConfig' :: Maybe [AdvancedEventSelector] -> Maybe Bool -> SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: [$sel:advancedEventSelectors:SourceConfig'] :: SourceConfig -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.Types.SourceConfig: [$sel:applyToAllRegions:SourceConfig'] :: SourceConfig -> Maybe Bool
+ Amazonka.CloudTrail.Types.SourceConfig: data SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance GHC.Read.Read Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: instance GHC.Show.Show Amazonka.CloudTrail.Types.SourceConfig.SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: newSourceConfig :: SourceConfig
+ Amazonka.CloudTrail.Types.SourceConfig: sourceConfig_advancedEventSelectors :: Lens' SourceConfig (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.Types.SourceConfig: sourceConfig_applyToAllRegions :: Lens' SourceConfig (Maybe Bool)
+ Amazonka.CloudTrail.Types.Tag: Tag' :: Maybe Text -> Text -> Tag
+ Amazonka.CloudTrail.Types.Tag: [$sel:key:Tag'] :: Tag -> Text
+ Amazonka.CloudTrail.Types.Tag: [$sel:value:Tag'] :: Tag -> Maybe Text
+ Amazonka.CloudTrail.Types.Tag: data Tag
+ Amazonka.CloudTrail.Types.Tag: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance GHC.Read.Read Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: instance GHC.Show.Show Amazonka.CloudTrail.Types.Tag.Tag
+ Amazonka.CloudTrail.Types.Tag: newTag :: Text -> Tag
+ Amazonka.CloudTrail.Types.Tag: tag_key :: Lens' Tag Text
+ Amazonka.CloudTrail.Types.Tag: tag_value :: Lens' Tag (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: Trail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Trail
+ Amazonka.CloudTrail.Types.Trail: [$sel:cloudWatchLogsLogGroupArn:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:cloudWatchLogsRoleArn:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:hasCustomEventSelectors:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:hasInsightSelectors:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:homeRegion:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:includeGlobalServiceEvents:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:isMultiRegionTrail:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:isOrganizationTrail:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:kmsKeyId:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:logFileValidationEnabled:Trail'] :: Trail -> Maybe Bool
+ Amazonka.CloudTrail.Types.Trail: [$sel:name:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:s3BucketName:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:s3KeyPrefix:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:snsTopicARN:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:snsTopicName:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: [$sel:trailARN:Trail'] :: Trail -> Maybe Text
+ Amazonka.CloudTrail.Types.Trail: data Trail
+ Amazonka.CloudTrail.Types.Trail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance GHC.Read.Read Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: instance GHC.Show.Show Amazonka.CloudTrail.Types.Trail.Trail
+ Amazonka.CloudTrail.Types.Trail: newTrail :: Trail
+ Amazonka.CloudTrail.Types.Trail: trail_cloudWatchLogsLogGroupArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_cloudWatchLogsRoleArn :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_hasCustomEventSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_hasInsightSelectors :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_homeRegion :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_includeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_isMultiRegionTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_isOrganizationTrail :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_kmsKeyId :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_logFileValidationEnabled :: Lens' Trail (Maybe Bool)
+ Amazonka.CloudTrail.Types.Trail: trail_name :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_s3BucketName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_s3KeyPrefix :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_snsTopicARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_snsTopicName :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.Trail: trail_trailARN :: Lens' Trail (Maybe Text)
+ Amazonka.CloudTrail.Types.TrailInfo: TrailInfo' :: Maybe Text -> Maybe Text -> Maybe Text -> TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: [$sel:homeRegion:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types.TrailInfo: [$sel:name:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types.TrailInfo: [$sel:trailARN:TrailInfo'] :: TrailInfo -> Maybe Text
+ Amazonka.CloudTrail.Types.TrailInfo: data TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance Control.DeepSeq.NFData Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance Data.Aeson.Types.FromJSON.FromJSON Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance GHC.Classes.Eq Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance GHC.Generics.Generic Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance GHC.Read.Read Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: instance GHC.Show.Show Amazonka.CloudTrail.Types.TrailInfo.TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: newTrailInfo :: TrailInfo
+ Amazonka.CloudTrail.Types.TrailInfo: trailInfo_homeRegion :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Types.TrailInfo: trailInfo_name :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.Types.TrailInfo: trailInfo_trailARN :: Lens' TrailInfo (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: UpdateEventDataStore' :: Maybe [AdvancedEventSelector] -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe Bool -> Text -> UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: UpdateEventDataStoreResponse' :: Maybe [AdvancedEventSelector] -> Maybe POSIX -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Natural -> Maybe EventDataStoreStatus -> Maybe Bool -> Maybe POSIX -> Int -> UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:advancedEventSelectors:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:advancedEventSelectors:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe [AdvancedEventSelector]
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:createdTimestamp:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:eventDataStore:UpdateEventDataStore'] :: UpdateEventDataStore -> Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:eventDataStoreArn:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:httpStatus:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Int
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:kmsKeyId:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:kmsKeyId:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:multiRegionEnabled:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:multiRegionEnabled:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:name:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:name:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:organizationEnabled:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:organizationEnabled:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:retentionPeriod:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Natural
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:retentionPeriod:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Natural
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:status:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe EventDataStoreStatus
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:terminationProtectionEnabled:UpdateEventDataStore'] :: UpdateEventDataStore -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:terminationProtectionEnabled:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateEventDataStore: [$sel:updatedTimestamp:UpdateEventDataStoreResponse'] :: UpdateEventDataStoreResponse -> Maybe POSIX
+ Amazonka.CloudTrail.UpdateEventDataStore: data UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: data UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Control.DeepSeq.NFData Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Classes.Eq Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Generics.Generic Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Read.Read Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: instance GHC.Show.Show Amazonka.CloudTrail.UpdateEventDataStore.UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: newUpdateEventDataStore :: Text -> UpdateEventDataStore
+ Amazonka.CloudTrail.UpdateEventDataStore: newUpdateEventDataStoreResponse :: Int -> UpdateEventDataStoreResponse
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_advancedEventSelectors :: Lens' UpdateEventDataStoreResponse (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_createdTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_eventDataStoreArn :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_httpStatus :: Lens' UpdateEventDataStoreResponse Int
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_kmsKeyId :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_multiRegionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_name :: Lens' UpdateEventDataStoreResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_retentionPeriod :: Lens' UpdateEventDataStoreResponse (Maybe Natural)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_status :: Lens' UpdateEventDataStoreResponse (Maybe EventDataStoreStatus)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_terminationProtectionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStoreResponse_updatedTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_advancedEventSelectors :: Lens' UpdateEventDataStore (Maybe [AdvancedEventSelector])
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_eventDataStore :: Lens' UpdateEventDataStore Text
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_kmsKeyId :: Lens' UpdateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_multiRegionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_name :: Lens' UpdateEventDataStore (Maybe Text)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_retentionPeriod :: Lens' UpdateEventDataStore (Maybe Natural)
+ Amazonka.CloudTrail.UpdateEventDataStore: updateEventDataStore_terminationProtectionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: UpdateTrail' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Text -> UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: UpdateTrailResponse' :: Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Int -> UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: [$sel:cloudWatchLogsLogGroupArn:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:cloudWatchLogsLogGroupArn:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:cloudWatchLogsRoleArn:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:cloudWatchLogsRoleArn:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:enableLogFileValidation:UpdateTrail'] :: UpdateTrail -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:httpStatus:UpdateTrailResponse'] :: UpdateTrailResponse -> Int
+ Amazonka.CloudTrail.UpdateTrail: [$sel:includeGlobalServiceEvents:UpdateTrail'] :: UpdateTrail -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:includeGlobalServiceEvents:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:isMultiRegionTrail:UpdateTrail'] :: UpdateTrail -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:isMultiRegionTrail:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:isOrganizationTrail:UpdateTrail'] :: UpdateTrail -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:isOrganizationTrail:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:kmsKeyId:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:kmsKeyId:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:logFileValidationEnabled:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Bool
+ Amazonka.CloudTrail.UpdateTrail: [$sel:name:UpdateTrail'] :: UpdateTrail -> Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:name:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:s3BucketName:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:s3BucketName:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:s3KeyPrefix:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:s3KeyPrefix:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:snsTopicARN:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:snsTopicName:UpdateTrail'] :: UpdateTrail -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:snsTopicName:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: [$sel:trailARN:UpdateTrailResponse'] :: UpdateTrailResponse -> Maybe Text
+ Amazonka.CloudTrail.UpdateTrail: data UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: data UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: instance Amazonka.Data.Headers.ToHeaders Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Amazonka.Data.Path.ToPath Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Amazonka.Data.Query.ToQuery Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Amazonka.Types.AWSRequest Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Control.DeepSeq.NFData Amazonka.CloudTrail.UpdateTrail.UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance Data.Hashable.Class.Hashable Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Classes.Eq Amazonka.CloudTrail.UpdateTrail.UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Generics.Generic Amazonka.CloudTrail.UpdateTrail.UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Read.Read Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Read.Read Amazonka.CloudTrail.UpdateTrail.UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Show.Show Amazonka.CloudTrail.UpdateTrail.UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: instance GHC.Show.Show Amazonka.CloudTrail.UpdateTrail.UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: newUpdateTrail :: Text -> UpdateTrail
+ Amazonka.CloudTrail.UpdateTrail: newUpdateTrailResponse :: Int -> UpdateTrailResponse
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_cloudWatchLogsLogGroupArn :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_cloudWatchLogsRoleArn :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_httpStatus :: Lens' UpdateTrailResponse Int
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_includeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_isMultiRegionTrail :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_isOrganizationTrail :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_kmsKeyId :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_logFileValidationEnabled :: Lens' UpdateTrailResponse (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_name :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_s3BucketName :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_s3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_snsTopicARN :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_snsTopicName :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrailResponse_trailARN :: Lens' UpdateTrailResponse (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_cloudWatchLogsLogGroupArn :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_cloudWatchLogsRoleArn :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_enableLogFileValidation :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_includeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_isMultiRegionTrail :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_isOrganizationTrail :: Lens' UpdateTrail (Maybe Bool)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_kmsKeyId :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_name :: Lens' UpdateTrail Text
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_s3BucketName :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_s3KeyPrefix :: Lens' UpdateTrail (Maybe Text)
+ Amazonka.CloudTrail.UpdateTrail: updateTrail_snsTopicName :: Lens' UpdateTrail (Maybe Text)

Files

README.md view
@@ -7,9 +7,8 @@   ## Version--`1.6.1`-+ +`2.0` - Derived from API version @2013-11-01@ of the AWS service descriptions, licensed under Apache 2.0.  ## Description @@ -26,7 +25,7 @@ The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core). -See [Network.AWS.CloudTrail](http://hackage.haskell.org/package/amazonka-cloudtrail/docs/Network-AWS-CloudTrail.html)+See [Amazonka.CloudTrail](http://hackage.haskell.org/package/amazonka-cloudtrail/docs/Amazonka-CloudTrail.html) or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.  
− Setup.hs
@@ -1,2 +0,0 @@-import           Distribution.Simple-main = defaultMain
amazonka-cloudtrail.cabal view
@@ -1,99 +1,156 @@-name:                  amazonka-cloudtrail-version:               1.6.1-synopsis:              Amazon CloudTrail SDK.-homepage:              https://github.com/brendanhay/amazonka-bug-reports:           https://github.com/brendanhay/amazonka/issues-license:               MPL-2.0-license-file:          LICENSE-author:                Brendan Hay-maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>-copyright:             Copyright (c) 2013-2018 Brendan Hay-category:              Network, AWS, Cloud, Distributed Computing-build-type:            Simple-cabal-version:         >= 1.10-extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep+cabal-version:      2.2+name:               amazonka-cloudtrail+version:            2.0+synopsis:           Amazon CloudTrail SDK.+homepage:           https://github.com/brendanhay/amazonka+bug-reports:        https://github.com/brendanhay/amazonka/issues+license:            MPL-2.0+license-file:       LICENSE+author:             Brendan Hay+maintainer:+  Brendan Hay <brendan.g.hay+amazonka@gmail.com>, Jack Kelly <jack@jackkelly.name>++copyright:          Copyright (c) 2013-2023 Brendan Hay+category:           AWS+build-type:         Simple+extra-source-files:+  fixture/*.proto+  fixture/*.yaml+  README.md+  src/.gitkeep+ description:-    The types from this library are intended to be used with-    <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information, sending requests,-    and receiving responses.-    .-    Lenses are used for constructing and manipulating types,-    due to the depth of nesting of AWS types and transparency regarding-    de/serialisation into more palatable Haskell values.-    The provided lenses should be compatible with any of the major lens libraries-    such as <http://hackage.haskell.org/package/lens lens> or-    <http://hackage.haskell.org/package/lens-family-core lens-family-core>.-    .-    See "Network.AWS.CloudTrail" or <https://aws.amazon.com/documentation/ the AWS documentation>-    to get started.+  Derived from API version @2013-11-01@ of the AWS service descriptions, licensed under Apache 2.0.+  .+  The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>,+  which provides mechanisms for specifying AuthN/AuthZ information, sending requests, and receiving responses.+  .+  It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+  .+  Generated lenses can be found in "Amazonka.CloudTrail.Lens" and are+  suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+  .+  See "Amazonka.CloudTrail" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started.  source-repository head-    type:              git-    location:          git://github.com/brendanhay/amazonka.git-    subdir:            amazonka-cloudtrail+  type:     git+  location: git://github.com/brendanhay/amazonka.git+  subdir:   amazonka-cloudtrail  library-    default-language:  Haskell2010-    hs-source-dirs:    src gen--    ghc-options:-        -Wall-        -fwarn-incomplete-uni-patterns-        -fwarn-incomplete-record-updates-        -funbox-strict-fields--    exposed-modules:-          Network.AWS.CloudTrail-        , Network.AWS.CloudTrail.AddTags-        , Network.AWS.CloudTrail.CreateTrail-        , Network.AWS.CloudTrail.DeleteTrail-        , Network.AWS.CloudTrail.DescribeTrails-        , Network.AWS.CloudTrail.GetEventSelectors-        , Network.AWS.CloudTrail.GetTrailStatus-        , Network.AWS.CloudTrail.ListPublicKeys-        , Network.AWS.CloudTrail.ListTags-        , Network.AWS.CloudTrail.LookupEvents-        , Network.AWS.CloudTrail.PutEventSelectors-        , Network.AWS.CloudTrail.RemoveTags-        , Network.AWS.CloudTrail.StartLogging-        , Network.AWS.CloudTrail.StopLogging-        , Network.AWS.CloudTrail.Types-        , Network.AWS.CloudTrail.UpdateTrail-        , Network.AWS.CloudTrail.Waiters+  default-language: Haskell2010+  hs-source-dirs:   src gen+  ghc-options:+    -Wall -fwarn-incomplete-uni-patterns+    -fwarn-incomplete-record-updates -funbox-strict-fields -    other-modules:-          Network.AWS.CloudTrail.Types.Product-        , Network.AWS.CloudTrail.Types.Sum+  exposed-modules:+    Amazonka.CloudTrail+    Amazonka.CloudTrail.AddTags+    Amazonka.CloudTrail.CancelQuery+    Amazonka.CloudTrail.CreateEventDataStore+    Amazonka.CloudTrail.CreateTrail+    Amazonka.CloudTrail.DeleteEventDataStore+    Amazonka.CloudTrail.DeleteTrail+    Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin+    Amazonka.CloudTrail.DescribeQuery+    Amazonka.CloudTrail.DescribeTrails+    Amazonka.CloudTrail.GetChannel+    Amazonka.CloudTrail.GetEventDataStore+    Amazonka.CloudTrail.GetEventSelectors+    Amazonka.CloudTrail.GetImport+    Amazonka.CloudTrail.GetInsightSelectors+    Amazonka.CloudTrail.GetQueryResults+    Amazonka.CloudTrail.GetTrail+    Amazonka.CloudTrail.GetTrailStatus+    Amazonka.CloudTrail.Lens+    Amazonka.CloudTrail.ListChannels+    Amazonka.CloudTrail.ListEventDataStores+    Amazonka.CloudTrail.ListImportFailures+    Amazonka.CloudTrail.ListImports+    Amazonka.CloudTrail.ListPublicKeys+    Amazonka.CloudTrail.ListQueries+    Amazonka.CloudTrail.ListTags+    Amazonka.CloudTrail.ListTrails+    Amazonka.CloudTrail.LookupEvents+    Amazonka.CloudTrail.PutEventSelectors+    Amazonka.CloudTrail.PutInsightSelectors+    Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin+    Amazonka.CloudTrail.RemoveTags+    Amazonka.CloudTrail.RestoreEventDataStore+    Amazonka.CloudTrail.StartImport+    Amazonka.CloudTrail.StartLogging+    Amazonka.CloudTrail.StartQuery+    Amazonka.CloudTrail.StopImport+    Amazonka.CloudTrail.StopLogging+    Amazonka.CloudTrail.Types+    Amazonka.CloudTrail.Types.AdvancedEventSelector+    Amazonka.CloudTrail.Types.AdvancedFieldSelector+    Amazonka.CloudTrail.Types.Channel+    Amazonka.CloudTrail.Types.DataResource+    Amazonka.CloudTrail.Types.DeliveryStatus+    Amazonka.CloudTrail.Types.Destination+    Amazonka.CloudTrail.Types.DestinationType+    Amazonka.CloudTrail.Types.Event+    Amazonka.CloudTrail.Types.EventCategory+    Amazonka.CloudTrail.Types.EventDataStore+    Amazonka.CloudTrail.Types.EventDataStoreStatus+    Amazonka.CloudTrail.Types.EventSelector+    Amazonka.CloudTrail.Types.ImportFailureListItem+    Amazonka.CloudTrail.Types.ImportFailureStatus+    Amazonka.CloudTrail.Types.ImportsListItem+    Amazonka.CloudTrail.Types.ImportSource+    Amazonka.CloudTrail.Types.ImportStatistics+    Amazonka.CloudTrail.Types.ImportStatus+    Amazonka.CloudTrail.Types.InsightSelector+    Amazonka.CloudTrail.Types.InsightType+    Amazonka.CloudTrail.Types.LookupAttribute+    Amazonka.CloudTrail.Types.LookupAttributeKey+    Amazonka.CloudTrail.Types.PublicKey+    Amazonka.CloudTrail.Types.Query+    Amazonka.CloudTrail.Types.QueryStatistics+    Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery+    Amazonka.CloudTrail.Types.QueryStatus+    Amazonka.CloudTrail.Types.ReadWriteType+    Amazonka.CloudTrail.Types.Resource+    Amazonka.CloudTrail.Types.ResourceTag+    Amazonka.CloudTrail.Types.S3ImportSource+    Amazonka.CloudTrail.Types.SourceConfig+    Amazonka.CloudTrail.Types.Tag+    Amazonka.CloudTrail.Types.Trail+    Amazonka.CloudTrail.Types.TrailInfo+    Amazonka.CloudTrail.UpdateEventDataStore+    Amazonka.CloudTrail.UpdateTrail+    Amazonka.CloudTrail.Waiters -    build-depends:-          amazonka-core == 1.6.1.*-        , base          >= 4.7     && < 5+  build-depends:+    , amazonka-core  >=2.0  && <2.1+    , base           >=4.12 && <5  test-suite amazonka-cloudtrail-test-    type:              exitcode-stdio-1.0-    default-language:  Haskell2010-    hs-source-dirs:    test-    main-is:           Main.hs--    ghc-options:       -Wall -threaded+  type:             exitcode-stdio-1.0+  default-language: Haskell2010+  hs-source-dirs:   test+  main-is:          Main.hs+  ghc-options:      -Wall -threaded -    -- This section is encoded by the template and any modules added by-    -- hand outside these namespaces will not correctly be added to the-    -- distribution package.-    other-modules:-          Test.AWS.CloudTrail-        , Test.AWS.Gen.CloudTrail-        , Test.AWS.CloudTrail.Internal+  -- This section is encoded by the template and any modules added by+  -- hand outside these namespaces will not correctly be added to the+  -- distribution package.+  other-modules:+    Test.Amazonka.CloudTrail+    Test.Amazonka.CloudTrail.Internal+    Test.Amazonka.Gen.CloudTrail -    build-depends:-          amazonka-core == 1.6.1.*-        , amazonka-test == 1.6.1.*-        , amazonka-cloudtrail-        , base-        , bytestring-        , tasty-        , tasty-hunit-        , text-        , time-        , unordered-containers+  build-depends:+    , amazonka-cloudtrail+    , amazonka-core         >=2.0 && <2.1+    , amazonka-test         >=2.0 && <2.1+    , base+    , bytestring+    , case-insensitive+    , tasty+    , tasty-hunit+    , text+    , time+    , unordered-containers
fixture/AddTags.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CancelQuery.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CancelQueryResponse.proto view
+ fixture/CreateEventDataStore.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateEventDataStoreResponse.proto view
fixture/CreateTrail.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteEventDataStore.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteEventDataStoreResponse.proto view
fixture/DeleteTrail.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeregisterOrganizationDelegatedAdmin.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeregisterOrganizationDelegatedAdminResponse.proto view
+ fixture/DescribeQuery.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeQueryResponse.proto view
fixture/DescribeTrails.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetChannel.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetChannelResponse.proto view
+ fixture/GetEventDataStore.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetEventDataStoreResponse.proto view
fixture/GetEventSelectors.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetImport.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetImportResponse.proto view
+ fixture/GetInsightSelectors.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetInsightSelectorsResponse.proto view
+ fixture/GetQueryResults.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetQueryResultsResponse.proto view
+ fixture/GetTrail.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/GetTrailResponse.proto view
fixture/GetTrailStatus.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListChannels.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListChannelsResponse.proto view
+ fixture/ListEventDataStores.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListEventDataStoresResponse.proto view
+ fixture/ListImportFailures.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListImportFailuresResponse.proto view
+ fixture/ListImports.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListImportsResponse.proto view
fixture/ListPublicKeys.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListQueries.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListQueriesResponse.proto view
fixture/ListTags.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListTrails.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListTrailsResponse.proto view
fixture/LookupEvents.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
fixture/PutEventSelectors.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/PutInsightSelectors.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/PutInsightSelectorsResponse.proto view
+ fixture/RegisterOrganizationDelegatedAdmin.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/RegisterOrganizationDelegatedAdminResponse.proto view
fixture/RemoveTags.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/RestoreEventDataStore.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/RestoreEventDataStoreResponse.proto view
+ fixture/StartImport.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/StartImportResponse.proto view
fixture/StartLogging.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/StartQuery.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/StartQueryResponse.proto view
+ fixture/StopImport.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/StopImportResponse.proto view
fixture/StopLogging.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateEventDataStore.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateEventDataStoreResponse.proto view
fixture/UpdateTrail.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/cloudtrail/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  cloudtrail.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ gen/Amazonka/CloudTrail.hs view
@@ -0,0 +1,698 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Amazonka.CloudTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2013-11-01@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- CloudTrail+--+-- This is the CloudTrail API Reference. It provides descriptions of+-- actions, data types, common parameters, and common errors for+-- CloudTrail.+--+-- CloudTrail is a web service that records Amazon Web Services API calls+-- for your Amazon Web Services account and delivers log files to an Amazon+-- S3 bucket. The recorded information includes the identity of the user,+-- the start time of the Amazon Web Services API call, the source IP+-- address, the request parameters, and the response elements returned by+-- the service.+--+-- As an alternative to the API, you can use one of the Amazon Web Services+-- SDKs, which consist of libraries and sample code for various programming+-- languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs+-- provide programmatic access to CloudTrail. For example, the SDKs handle+-- cryptographically signing requests, managing errors, and retrying+-- requests automatically. For more information about the Amazon Web+-- Services SDKs, including how to download and install them, see+-- <http://aws.amazon.com/tools/ Tools to Build on Amazon Web Services>.+--+-- See the+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html CloudTrail User Guide>+-- for information about the data that is included with each Amazon Web+-- Services API call listed in the log files.+module Amazonka.CloudTrail+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    -- $errors++    -- ** AccountHasOngoingImportException+    _AccountHasOngoingImportException,++    -- ** AccountNotFoundException+    _AccountNotFoundException,++    -- ** AccountNotRegisteredException+    _AccountNotRegisteredException,++    -- ** AccountRegisteredException+    _AccountRegisteredException,++    -- ** CannotDelegateManagementAccountException+    _CannotDelegateManagementAccountException,++    -- ** ChannelARNInvalidException+    _ChannelARNInvalidException,++    -- ** ChannelNotFoundException+    _ChannelNotFoundException,++    -- ** CloudTrailARNInvalidException+    _CloudTrailARNInvalidException,++    -- ** CloudTrailAccessNotEnabledException+    _CloudTrailAccessNotEnabledException,++    -- ** CloudTrailInvalidClientTokenIdException+    _CloudTrailInvalidClientTokenIdException,++    -- ** CloudWatchLogsDeliveryUnavailableException+    _CloudWatchLogsDeliveryUnavailableException,++    -- ** ConflictException+    _ConflictException,++    -- ** DelegatedAdminAccountLimitExceededException+    _DelegatedAdminAccountLimitExceededException,++    -- ** EventDataStoreARNInvalidException+    _EventDataStoreARNInvalidException,++    -- ** EventDataStoreAlreadyExistsException+    _EventDataStoreAlreadyExistsException,++    -- ** EventDataStoreHasOngoingImportException+    _EventDataStoreHasOngoingImportException,++    -- ** EventDataStoreMaxLimitExceededException+    _EventDataStoreMaxLimitExceededException,++    -- ** EventDataStoreNotFoundException+    _EventDataStoreNotFoundException,++    -- ** EventDataStoreTerminationProtectedException+    _EventDataStoreTerminationProtectedException,++    -- ** ImportNotFoundException+    _ImportNotFoundException,++    -- ** InactiveEventDataStoreException+    _InactiveEventDataStoreException,++    -- ** InactiveQueryException+    _InactiveQueryException,++    -- ** InsightNotEnabledException+    _InsightNotEnabledException,++    -- ** InsufficientDependencyServiceAccessPermissionException+    _InsufficientDependencyServiceAccessPermissionException,++    -- ** InsufficientEncryptionPolicyException+    _InsufficientEncryptionPolicyException,++    -- ** InsufficientS3BucketPolicyException+    _InsufficientS3BucketPolicyException,++    -- ** InsufficientSnsTopicPolicyException+    _InsufficientSnsTopicPolicyException,++    -- ** InvalidCloudWatchLogsLogGroupArnException+    _InvalidCloudWatchLogsLogGroupArnException,++    -- ** InvalidCloudWatchLogsRoleArnException+    _InvalidCloudWatchLogsRoleArnException,++    -- ** InvalidDateRangeException+    _InvalidDateRangeException,++    -- ** InvalidEventCategoryException+    _InvalidEventCategoryException,++    -- ** InvalidEventDataStoreCategoryException+    _InvalidEventDataStoreCategoryException,++    -- ** InvalidEventDataStoreStatusException+    _InvalidEventDataStoreStatusException,++    -- ** InvalidEventSelectorsException+    _InvalidEventSelectorsException,++    -- ** InvalidHomeRegionException+    _InvalidHomeRegionException,++    -- ** InvalidImportSourceException+    _InvalidImportSourceException,++    -- ** InvalidInsightSelectorsException+    _InvalidInsightSelectorsException,++    -- ** InvalidKmsKeyIdException+    _InvalidKmsKeyIdException,++    -- ** InvalidLookupAttributesException+    _InvalidLookupAttributesException,++    -- ** InvalidMaxResultsException+    _InvalidMaxResultsException,++    -- ** InvalidNextTokenException+    _InvalidNextTokenException,++    -- ** InvalidParameterCombinationException+    _InvalidParameterCombinationException,++    -- ** InvalidParameterException+    _InvalidParameterException,++    -- ** InvalidQueryStatementException+    _InvalidQueryStatementException,++    -- ** InvalidQueryStatusException+    _InvalidQueryStatusException,++    -- ** InvalidS3BucketNameException+    _InvalidS3BucketNameException,++    -- ** InvalidS3PrefixException+    _InvalidS3PrefixException,++    -- ** InvalidSnsTopicNameException+    _InvalidSnsTopicNameException,++    -- ** InvalidTagParameterException+    _InvalidTagParameterException,++    -- ** InvalidTimeRangeException+    _InvalidTimeRangeException,++    -- ** InvalidTokenException+    _InvalidTokenException,++    -- ** InvalidTrailNameException+    _InvalidTrailNameException,++    -- ** KmsException+    _KmsException,++    -- ** KmsKeyDisabledException+    _KmsKeyDisabledException,++    -- ** KmsKeyNotFoundException+    _KmsKeyNotFoundException,++    -- ** MaxConcurrentQueriesException+    _MaxConcurrentQueriesException,++    -- ** MaximumNumberOfTrailsExceededException+    _MaximumNumberOfTrailsExceededException,++    -- ** NoManagementAccountSLRExistsException+    _NoManagementAccountSLRExistsException,++    -- ** NotOrganizationManagementAccountException+    _NotOrganizationManagementAccountException,++    -- ** NotOrganizationMasterAccountException+    _NotOrganizationMasterAccountException,++    -- ** OperationNotPermittedException+    _OperationNotPermittedException,++    -- ** OrganizationNotInAllFeaturesModeException+    _OrganizationNotInAllFeaturesModeException,++    -- ** OrganizationsNotInUseException+    _OrganizationsNotInUseException,++    -- ** QueryIdNotFoundException+    _QueryIdNotFoundException,++    -- ** ResourceNotFoundException+    _ResourceNotFoundException,++    -- ** ResourceTypeNotSupportedException+    _ResourceTypeNotSupportedException,++    -- ** S3BucketDoesNotExistException+    _S3BucketDoesNotExistException,++    -- ** TagsLimitExceededException+    _TagsLimitExceededException,++    -- ** TrailAlreadyExistsException+    _TrailAlreadyExistsException,++    -- ** TrailNotFoundException+    _TrailNotFoundException,++    -- ** TrailNotProvidedException+    _TrailNotProvidedException,++    -- ** UnsupportedOperationException+    _UnsupportedOperationException,++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** AddTags+    AddTags (AddTags'),+    newAddTags,+    AddTagsResponse (AddTagsResponse'),+    newAddTagsResponse,++    -- ** CancelQuery+    CancelQuery (CancelQuery'),+    newCancelQuery,+    CancelQueryResponse (CancelQueryResponse'),+    newCancelQueryResponse,++    -- ** CreateEventDataStore+    CreateEventDataStore (CreateEventDataStore'),+    newCreateEventDataStore,+    CreateEventDataStoreResponse (CreateEventDataStoreResponse'),+    newCreateEventDataStoreResponse,++    -- ** CreateTrail+    CreateTrail (CreateTrail'),+    newCreateTrail,+    CreateTrailResponse (CreateTrailResponse'),+    newCreateTrailResponse,++    -- ** DeleteEventDataStore+    DeleteEventDataStore (DeleteEventDataStore'),+    newDeleteEventDataStore,+    DeleteEventDataStoreResponse (DeleteEventDataStoreResponse'),+    newDeleteEventDataStoreResponse,++    -- ** DeleteTrail+    DeleteTrail (DeleteTrail'),+    newDeleteTrail,+    DeleteTrailResponse (DeleteTrailResponse'),+    newDeleteTrailResponse,++    -- ** DeregisterOrganizationDelegatedAdmin+    DeregisterOrganizationDelegatedAdmin (DeregisterOrganizationDelegatedAdmin'),+    newDeregisterOrganizationDelegatedAdmin,+    DeregisterOrganizationDelegatedAdminResponse (DeregisterOrganizationDelegatedAdminResponse'),+    newDeregisterOrganizationDelegatedAdminResponse,++    -- ** DescribeQuery+    DescribeQuery (DescribeQuery'),+    newDescribeQuery,+    DescribeQueryResponse (DescribeQueryResponse'),+    newDescribeQueryResponse,++    -- ** DescribeTrails+    DescribeTrails (DescribeTrails'),+    newDescribeTrails,+    DescribeTrailsResponse (DescribeTrailsResponse'),+    newDescribeTrailsResponse,++    -- ** GetChannel+    GetChannel (GetChannel'),+    newGetChannel,+    GetChannelResponse (GetChannelResponse'),+    newGetChannelResponse,++    -- ** GetEventDataStore+    GetEventDataStore (GetEventDataStore'),+    newGetEventDataStore,+    GetEventDataStoreResponse (GetEventDataStoreResponse'),+    newGetEventDataStoreResponse,++    -- ** GetEventSelectors+    GetEventSelectors (GetEventSelectors'),+    newGetEventSelectors,+    GetEventSelectorsResponse (GetEventSelectorsResponse'),+    newGetEventSelectorsResponse,++    -- ** GetImport+    GetImport (GetImport'),+    newGetImport,+    GetImportResponse (GetImportResponse'),+    newGetImportResponse,++    -- ** GetInsightSelectors+    GetInsightSelectors (GetInsightSelectors'),+    newGetInsightSelectors,+    GetInsightSelectorsResponse (GetInsightSelectorsResponse'),+    newGetInsightSelectorsResponse,++    -- ** GetQueryResults+    GetQueryResults (GetQueryResults'),+    newGetQueryResults,+    GetQueryResultsResponse (GetQueryResultsResponse'),+    newGetQueryResultsResponse,++    -- ** GetTrail+    GetTrail (GetTrail'),+    newGetTrail,+    GetTrailResponse (GetTrailResponse'),+    newGetTrailResponse,++    -- ** GetTrailStatus+    GetTrailStatus (GetTrailStatus'),+    newGetTrailStatus,+    GetTrailStatusResponse (GetTrailStatusResponse'),+    newGetTrailStatusResponse,++    -- ** ListChannels+    ListChannels (ListChannels'),+    newListChannels,+    ListChannelsResponse (ListChannelsResponse'),+    newListChannelsResponse,++    -- ** ListEventDataStores+    ListEventDataStores (ListEventDataStores'),+    newListEventDataStores,+    ListEventDataStoresResponse (ListEventDataStoresResponse'),+    newListEventDataStoresResponse,++    -- ** ListImportFailures (Paginated)+    ListImportFailures (ListImportFailures'),+    newListImportFailures,+    ListImportFailuresResponse (ListImportFailuresResponse'),+    newListImportFailuresResponse,++    -- ** ListImports (Paginated)+    ListImports (ListImports'),+    newListImports,+    ListImportsResponse (ListImportsResponse'),+    newListImportsResponse,++    -- ** ListPublicKeys (Paginated)+    ListPublicKeys (ListPublicKeys'),+    newListPublicKeys,+    ListPublicKeysResponse (ListPublicKeysResponse'),+    newListPublicKeysResponse,++    -- ** ListQueries+    ListQueries (ListQueries'),+    newListQueries,+    ListQueriesResponse (ListQueriesResponse'),+    newListQueriesResponse,++    -- ** ListTags (Paginated)+    ListTags (ListTags'),+    newListTags,+    ListTagsResponse (ListTagsResponse'),+    newListTagsResponse,++    -- ** ListTrails (Paginated)+    ListTrails (ListTrails'),+    newListTrails,+    ListTrailsResponse (ListTrailsResponse'),+    newListTrailsResponse,++    -- ** LookupEvents (Paginated)+    LookupEvents (LookupEvents'),+    newLookupEvents,+    LookupEventsResponse (LookupEventsResponse'),+    newLookupEventsResponse,++    -- ** PutEventSelectors+    PutEventSelectors (PutEventSelectors'),+    newPutEventSelectors,+    PutEventSelectorsResponse (PutEventSelectorsResponse'),+    newPutEventSelectorsResponse,++    -- ** PutInsightSelectors+    PutInsightSelectors (PutInsightSelectors'),+    newPutInsightSelectors,+    PutInsightSelectorsResponse (PutInsightSelectorsResponse'),+    newPutInsightSelectorsResponse,++    -- ** RegisterOrganizationDelegatedAdmin+    RegisterOrganizationDelegatedAdmin (RegisterOrganizationDelegatedAdmin'),+    newRegisterOrganizationDelegatedAdmin,+    RegisterOrganizationDelegatedAdminResponse (RegisterOrganizationDelegatedAdminResponse'),+    newRegisterOrganizationDelegatedAdminResponse,++    -- ** RemoveTags+    RemoveTags (RemoveTags'),+    newRemoveTags,+    RemoveTagsResponse (RemoveTagsResponse'),+    newRemoveTagsResponse,++    -- ** RestoreEventDataStore+    RestoreEventDataStore (RestoreEventDataStore'),+    newRestoreEventDataStore,+    RestoreEventDataStoreResponse (RestoreEventDataStoreResponse'),+    newRestoreEventDataStoreResponse,++    -- ** StartImport+    StartImport (StartImport'),+    newStartImport,+    StartImportResponse (StartImportResponse'),+    newStartImportResponse,++    -- ** StartLogging+    StartLogging (StartLogging'),+    newStartLogging,+    StartLoggingResponse (StartLoggingResponse'),+    newStartLoggingResponse,++    -- ** StartQuery+    StartQuery (StartQuery'),+    newStartQuery,+    StartQueryResponse (StartQueryResponse'),+    newStartQueryResponse,++    -- ** StopImport+    StopImport (StopImport'),+    newStopImport,+    StopImportResponse (StopImportResponse'),+    newStopImportResponse,++    -- ** StopLogging+    StopLogging (StopLogging'),+    newStopLogging,+    StopLoggingResponse (StopLoggingResponse'),+    newStopLoggingResponse,++    -- ** UpdateEventDataStore+    UpdateEventDataStore (UpdateEventDataStore'),+    newUpdateEventDataStore,+    UpdateEventDataStoreResponse (UpdateEventDataStoreResponse'),+    newUpdateEventDataStoreResponse,++    -- ** UpdateTrail+    UpdateTrail (UpdateTrail'),+    newUpdateTrail,+    UpdateTrailResponse (UpdateTrailResponse'),+    newUpdateTrailResponse,++    -- * Types++    -- ** DeliveryStatus+    DeliveryStatus (..),++    -- ** DestinationType+    DestinationType (..),++    -- ** EventCategory+    EventCategory (..),++    -- ** EventDataStoreStatus+    EventDataStoreStatus (..),++    -- ** ImportFailureStatus+    ImportFailureStatus (..),++    -- ** ImportStatus+    ImportStatus (..),++    -- ** InsightType+    InsightType (..),++    -- ** LookupAttributeKey+    LookupAttributeKey (..),++    -- ** QueryStatus+    QueryStatus (..),++    -- ** ReadWriteType+    ReadWriteType (..),++    -- ** AdvancedEventSelector+    AdvancedEventSelector (AdvancedEventSelector'),+    newAdvancedEventSelector,++    -- ** AdvancedFieldSelector+    AdvancedFieldSelector (AdvancedFieldSelector'),+    newAdvancedFieldSelector,++    -- ** Channel+    Channel (Channel'),+    newChannel,++    -- ** DataResource+    DataResource (DataResource'),+    newDataResource,++    -- ** Destination+    Destination (Destination'),+    newDestination,++    -- ** Event+    Event (Event'),+    newEvent,++    -- ** EventDataStore+    EventDataStore (EventDataStore'),+    newEventDataStore,++    -- ** EventSelector+    EventSelector (EventSelector'),+    newEventSelector,++    -- ** ImportFailureListItem+    ImportFailureListItem (ImportFailureListItem'),+    newImportFailureListItem,++    -- ** ImportSource+    ImportSource (ImportSource'),+    newImportSource,++    -- ** ImportStatistics+    ImportStatistics (ImportStatistics'),+    newImportStatistics,++    -- ** ImportsListItem+    ImportsListItem (ImportsListItem'),+    newImportsListItem,++    -- ** InsightSelector+    InsightSelector (InsightSelector'),+    newInsightSelector,++    -- ** LookupAttribute+    LookupAttribute (LookupAttribute'),+    newLookupAttribute,++    -- ** PublicKey+    PublicKey (PublicKey'),+    newPublicKey,++    -- ** Query+    Query (Query'),+    newQuery,++    -- ** QueryStatistics+    QueryStatistics (QueryStatistics'),+    newQueryStatistics,++    -- ** QueryStatisticsForDescribeQuery+    QueryStatisticsForDescribeQuery (QueryStatisticsForDescribeQuery'),+    newQueryStatisticsForDescribeQuery,++    -- ** Resource+    Resource (Resource'),+    newResource,++    -- ** ResourceTag+    ResourceTag (ResourceTag'),+    newResourceTag,++    -- ** S3ImportSource+    S3ImportSource (S3ImportSource'),+    newS3ImportSource,++    -- ** SourceConfig+    SourceConfig (SourceConfig'),+    newSourceConfig,++    -- ** Tag+    Tag (Tag'),+    newTag,++    -- ** Trail+    Trail (Trail'),+    newTrail,++    -- ** TrailInfo+    TrailInfo (TrailInfo'),+    newTrailInfo,+  )+where++import Amazonka.CloudTrail.AddTags+import Amazonka.CloudTrail.CancelQuery+import Amazonka.CloudTrail.CreateEventDataStore+import Amazonka.CloudTrail.CreateTrail+import Amazonka.CloudTrail.DeleteEventDataStore+import Amazonka.CloudTrail.DeleteTrail+import Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin+import Amazonka.CloudTrail.DescribeQuery+import Amazonka.CloudTrail.DescribeTrails+import Amazonka.CloudTrail.GetChannel+import Amazonka.CloudTrail.GetEventDataStore+import Amazonka.CloudTrail.GetEventSelectors+import Amazonka.CloudTrail.GetImport+import Amazonka.CloudTrail.GetInsightSelectors+import Amazonka.CloudTrail.GetQueryResults+import Amazonka.CloudTrail.GetTrail+import Amazonka.CloudTrail.GetTrailStatus+import Amazonka.CloudTrail.Lens+import Amazonka.CloudTrail.ListChannels+import Amazonka.CloudTrail.ListEventDataStores+import Amazonka.CloudTrail.ListImportFailures+import Amazonka.CloudTrail.ListImports+import Amazonka.CloudTrail.ListPublicKeys+import Amazonka.CloudTrail.ListQueries+import Amazonka.CloudTrail.ListTags+import Amazonka.CloudTrail.ListTrails+import Amazonka.CloudTrail.LookupEvents+import Amazonka.CloudTrail.PutEventSelectors+import Amazonka.CloudTrail.PutInsightSelectors+import Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin+import Amazonka.CloudTrail.RemoveTags+import Amazonka.CloudTrail.RestoreEventDataStore+import Amazonka.CloudTrail.StartImport+import Amazonka.CloudTrail.StartLogging+import Amazonka.CloudTrail.StartQuery+import Amazonka.CloudTrail.StopImport+import Amazonka.CloudTrail.StopLogging+import Amazonka.CloudTrail.Types+import Amazonka.CloudTrail.UpdateEventDataStore+import Amazonka.CloudTrail.UpdateTrail+import Amazonka.CloudTrail.Waiters++-- $errors+-- Error matchers are designed for use with the functions provided by+-- <http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+-- This allows catching (and rethrowing) service specific errors returned+-- by 'CloudTrail'.++-- $operations+-- Some AWS operations return results that are incomplete and require subsequent+-- requests in order to obtain the entire result set. The process of sending+-- subsequent requests to continue where a previous request left off is called+-- pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+-- 1000 objects at a time, and you must send subsequent requests with the+-- appropriate Marker in order to retrieve the next page of results.+--+-- Operations that have an 'AWSPager' instance can transparently perform subsequent+-- requests, correctly setting Markers and other request facets to iterate through+-- the entire result set of a truncated API operation. Operations which support+-- this have an additional note in the documentation.+--+-- Many operations have the ability to filter results on the server side. See the+-- individual operation parameters for details.++-- $waiters+-- Waiters poll by repeatedly sending a request until some remote success condition+-- configured by the 'Wait' specification is fulfilled. The 'Wait' specification+-- determines how many attempts should be made, in addition to delay and retry strategies.
+ gen/Amazonka/CloudTrail/AddTags.hs view
@@ -0,0 +1,189 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.AddTags+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds one or more tags to a trail or event data store, up to a limit of+-- 50. Overwrites an existing tag\'s value when a new value is specified+-- for an existing tag key. Tag key names must be unique for a trail; you+-- cannot have two keys with the same name but different values. If you+-- specify a key without a value, the tag will be created with the+-- specified key and a value of null. You can tag a trail or event data+-- store that applies to all Amazon Web Services Regions only from the+-- Region in which the trail or event data store was created (also known as+-- its home region).+module Amazonka.CloudTrail.AddTags+  ( -- * Creating a Request+    AddTags (..),+    newAddTags,++    -- * Request Lenses+    addTags_resourceId,+    addTags_tagsList,++    -- * Destructuring the Response+    AddTagsResponse (..),+    newAddTagsResponse,++    -- * Response Lenses+    addTagsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies the tags to add to a trail or event data store.+--+-- /See:/ 'newAddTags' smart constructor.+data AddTags = AddTags'+  { -- | Specifies the ARN of the trail or event data store to which one or more+    -- tags will be added. The format of a trail ARN is:+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    resourceId :: Prelude.Text,+    -- | Contains a list of tags, up to a limit of 50+    tagsList :: [Tag]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AddTags' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceId', 'addTags_resourceId' - Specifies the ARN of the trail or event data store to which one or more+-- tags will be added. The format of a trail ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- 'tagsList', 'addTags_tagsList' - Contains a list of tags, up to a limit of 50+newAddTags ::+  -- | 'resourceId'+  Prelude.Text ->+  AddTags+newAddTags pResourceId_ =+  AddTags'+    { resourceId = pResourceId_,+      tagsList = Prelude.mempty+    }++-- | Specifies the ARN of the trail or event data store to which one or more+-- tags will be added. The format of a trail ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+addTags_resourceId :: Lens.Lens' AddTags Prelude.Text+addTags_resourceId = Lens.lens (\AddTags' {resourceId} -> resourceId) (\s@AddTags' {} a -> s {resourceId = a} :: AddTags)++-- | Contains a list of tags, up to a limit of 50+addTags_tagsList :: Lens.Lens' AddTags [Tag]+addTags_tagsList = Lens.lens (\AddTags' {tagsList} -> tagsList) (\s@AddTags' {} a -> s {tagsList = a} :: AddTags) Prelude.. Lens.coerced++instance Core.AWSRequest AddTags where+  type AWSResponse AddTags = AddTagsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          AddTagsResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable AddTags where+  hashWithSalt _salt AddTags' {..} =+    _salt+      `Prelude.hashWithSalt` resourceId+      `Prelude.hashWithSalt` tagsList++instance Prelude.NFData AddTags where+  rnf AddTags' {..} =+    Prelude.rnf resourceId+      `Prelude.seq` Prelude.rnf tagsList++instance Data.ToHeaders AddTags where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.AddTags" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON AddTags where+  toJSON AddTags' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("ResourceId" Data..= resourceId),+            Prelude.Just ("TagsList" Data..= tagsList)+          ]+      )++instance Data.ToPath AddTags where+  toPath = Prelude.const "/"++instance Data.ToQuery AddTags where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data if successful. Otherwise, returns an error.+--+-- /See:/ 'newAddTagsResponse' smart constructor.+data AddTagsResponse = AddTagsResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AddTagsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'addTagsResponse_httpStatus' - The response's http status code.+newAddTagsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  AddTagsResponse+newAddTagsResponse pHttpStatus_ =+  AddTagsResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+addTagsResponse_httpStatus :: Lens.Lens' AddTagsResponse Prelude.Int+addTagsResponse_httpStatus = Lens.lens (\AddTagsResponse' {httpStatus} -> httpStatus) (\s@AddTagsResponse' {} a -> s {httpStatus = a} :: AddTagsResponse)++instance Prelude.NFData AddTagsResponse where+  rnf AddTagsResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/CancelQuery.hs view
@@ -0,0 +1,216 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.CancelQuery+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Cancels a query if the query is not in a terminated state, such as+-- @CANCELLED@, @FAILED@, @TIMED_OUT@, or @FINISHED@. You must specify an+-- ARN value for @EventDataStore@. The ID of the query that you want to+-- cancel is also required. When you run @CancelQuery@, the query status+-- might show as @CANCELLED@ even if the operation is not yet finished.+module Amazonka.CloudTrail.CancelQuery+  ( -- * Creating a Request+    CancelQuery (..),+    newCancelQuery,++    -- * Request Lenses+    cancelQuery_eventDataStore,+    cancelQuery_queryId,++    -- * Destructuring the Response+    CancelQueryResponse (..),+    newCancelQueryResponse,++    -- * Response Lenses+    cancelQueryResponse_httpStatus,+    cancelQueryResponse_queryId,+    cancelQueryResponse_queryStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newCancelQuery' smart constructor.+data CancelQuery = CancelQuery'+  { -- | The ARN (or the ID suffix of the ARN) of an event data store on which+    -- the specified query is running.+    eventDataStore :: Prelude.Maybe Prelude.Text,+    -- | The ID of the query that you want to cancel. The @QueryId@ comes from+    -- the response of a @StartQuery@ operation.+    queryId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CancelQuery' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'cancelQuery_eventDataStore' - The ARN (or the ID suffix of the ARN) of an event data store on which+-- the specified query is running.+--+-- 'queryId', 'cancelQuery_queryId' - The ID of the query that you want to cancel. The @QueryId@ comes from+-- the response of a @StartQuery@ operation.+newCancelQuery ::+  -- | 'queryId'+  Prelude.Text ->+  CancelQuery+newCancelQuery pQueryId_ =+  CancelQuery'+    { eventDataStore = Prelude.Nothing,+      queryId = pQueryId_+    }++-- | The ARN (or the ID suffix of the ARN) of an event data store on which+-- the specified query is running.+cancelQuery_eventDataStore :: Lens.Lens' CancelQuery (Prelude.Maybe Prelude.Text)+cancelQuery_eventDataStore = Lens.lens (\CancelQuery' {eventDataStore} -> eventDataStore) (\s@CancelQuery' {} a -> s {eventDataStore = a} :: CancelQuery)++-- | The ID of the query that you want to cancel. The @QueryId@ comes from+-- the response of a @StartQuery@ operation.+cancelQuery_queryId :: Lens.Lens' CancelQuery Prelude.Text+cancelQuery_queryId = Lens.lens (\CancelQuery' {queryId} -> queryId) (\s@CancelQuery' {} a -> s {queryId = a} :: CancelQuery)++instance Core.AWSRequest CancelQuery where+  type AWSResponse CancelQuery = CancelQueryResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          CancelQueryResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+            Prelude.<*> (x Data..:> "QueryId")+            Prelude.<*> (x Data..:> "QueryStatus")+      )++instance Prelude.Hashable CancelQuery where+  hashWithSalt _salt CancelQuery' {..} =+    _salt+      `Prelude.hashWithSalt` eventDataStore+      `Prelude.hashWithSalt` queryId++instance Prelude.NFData CancelQuery where+  rnf CancelQuery' {..} =+    Prelude.rnf eventDataStore+      `Prelude.seq` Prelude.rnf queryId++instance Data.ToHeaders CancelQuery where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.CancelQuery" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON CancelQuery where+  toJSON CancelQuery' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EventDataStore" Data..=)+              Prelude.<$> eventDataStore,+            Prelude.Just ("QueryId" Data..= queryId)+          ]+      )++instance Data.ToPath CancelQuery where+  toPath = Prelude.const "/"++instance Data.ToQuery CancelQuery where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newCancelQueryResponse' smart constructor.+data CancelQueryResponse = CancelQueryResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int,+    -- | The ID of the canceled query.+    queryId :: Prelude.Text,+    -- | Shows the status of a query after a @CancelQuery@ request. Typically,+    -- the values shown are either @RUNNING@ or @CANCELLED@.+    queryStatus :: QueryStatus+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CancelQueryResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'cancelQueryResponse_httpStatus' - The response's http status code.+--+-- 'queryId', 'cancelQueryResponse_queryId' - The ID of the canceled query.+--+-- 'queryStatus', 'cancelQueryResponse_queryStatus' - Shows the status of a query after a @CancelQuery@ request. Typically,+-- the values shown are either @RUNNING@ or @CANCELLED@.+newCancelQueryResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  -- | 'queryId'+  Prelude.Text ->+  -- | 'queryStatus'+  QueryStatus ->+  CancelQueryResponse+newCancelQueryResponse+  pHttpStatus_+  pQueryId_+  pQueryStatus_ =+    CancelQueryResponse'+      { httpStatus = pHttpStatus_,+        queryId = pQueryId_,+        queryStatus = pQueryStatus_+      }++-- | The response's http status code.+cancelQueryResponse_httpStatus :: Lens.Lens' CancelQueryResponse Prelude.Int+cancelQueryResponse_httpStatus = Lens.lens (\CancelQueryResponse' {httpStatus} -> httpStatus) (\s@CancelQueryResponse' {} a -> s {httpStatus = a} :: CancelQueryResponse)++-- | The ID of the canceled query.+cancelQueryResponse_queryId :: Lens.Lens' CancelQueryResponse Prelude.Text+cancelQueryResponse_queryId = Lens.lens (\CancelQueryResponse' {queryId} -> queryId) (\s@CancelQueryResponse' {} a -> s {queryId = a} :: CancelQueryResponse)++-- | Shows the status of a query after a @CancelQuery@ request. Typically,+-- the values shown are either @RUNNING@ or @CANCELLED@.+cancelQueryResponse_queryStatus :: Lens.Lens' CancelQueryResponse QueryStatus+cancelQueryResponse_queryStatus = Lens.lens (\CancelQueryResponse' {queryStatus} -> queryStatus) (\s@CancelQueryResponse' {} a -> s {queryStatus = a} :: CancelQueryResponse)++instance Prelude.NFData CancelQueryResponse where+  rnf CancelQueryResponse' {..} =+    Prelude.rnf httpStatus+      `Prelude.seq` Prelude.rnf queryId+      `Prelude.seq` Prelude.rnf queryStatus
+ gen/Amazonka/CloudTrail/CreateEventDataStore.hs view
@@ -0,0 +1,539 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.CreateEventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new event data store.+module Amazonka.CloudTrail.CreateEventDataStore+  ( -- * Creating a Request+    CreateEventDataStore (..),+    newCreateEventDataStore,++    -- * Request Lenses+    createEventDataStore_advancedEventSelectors,+    createEventDataStore_kmsKeyId,+    createEventDataStore_multiRegionEnabled,+    createEventDataStore_organizationEnabled,+    createEventDataStore_retentionPeriod,+    createEventDataStore_tagsList,+    createEventDataStore_terminationProtectionEnabled,+    createEventDataStore_name,++    -- * Destructuring the Response+    CreateEventDataStoreResponse (..),+    newCreateEventDataStoreResponse,++    -- * Response Lenses+    createEventDataStoreResponse_advancedEventSelectors,+    createEventDataStoreResponse_createdTimestamp,+    createEventDataStoreResponse_eventDataStoreArn,+    createEventDataStoreResponse_kmsKeyId,+    createEventDataStoreResponse_multiRegionEnabled,+    createEventDataStoreResponse_name,+    createEventDataStoreResponse_organizationEnabled,+    createEventDataStoreResponse_retentionPeriod,+    createEventDataStoreResponse_status,+    createEventDataStoreResponse_tagsList,+    createEventDataStoreResponse_terminationProtectionEnabled,+    createEventDataStoreResponse_updatedTimestamp,+    createEventDataStoreResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newCreateEventDataStore' smart constructor.+data CreateEventDataStore = CreateEventDataStore'+  { -- | The advanced event selectors to use to select the events for the data+    -- store. For more information about how to use advanced event selectors,+    -- see+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced Log events by using advanced event selectors>+    -- in the CloudTrail User Guide.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | Specifies the KMS key ID to use to encrypt the events delivered by+    -- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+    -- fully specified ARN to an alias, a fully specified ARN to a key, or a+    -- globally unique identifier.+    --+    -- Disabling or deleting the KMS key, or removing CloudTrail permissions on+    -- the key, prevents CloudTrail from logging events to the event data+    -- store, and prevents users from querying the data in the event data store+    -- that was encrypted with the key. After you associate an event data store+    -- with a KMS key, the KMS key cannot be removed or changed. Before you+    -- disable or delete a KMS key that you are using with an event data store,+    -- delete or back up your event data store.+    --+    -- CloudTrail also supports KMS multi-Region keys. For more information+    -- about multi-Region keys, see+    -- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+    -- in the /Key Management Service Developer Guide/.+    --+    -- Examples:+    --+    -- -   @alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    --+    -- -   @12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether the event data store includes events from all regions,+    -- or only from the region in which the event data store is created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether an event data store collects events logged for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period of the event data store, in days. You can set a+    -- retention period of up to 2557 days, the equivalent of seven years.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    tagsList :: Prelude.Maybe [Tag],+    -- | Specifies whether termination protection is enabled for the event data+    -- store. If termination protection is enabled, you cannot delete the event+    -- data store until termination protection is disabled.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateEventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'createEventDataStore_advancedEventSelectors' - The advanced event selectors to use to select the events for the data+-- store. For more information about how to use advanced event selectors,+-- see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced Log events by using advanced event selectors>+-- in the CloudTrail User Guide.+--+-- 'kmsKeyId', 'createEventDataStore_kmsKeyId' - Specifies the KMS key ID to use to encrypt the events delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- Disabling or deleting the KMS key, or removing CloudTrail permissions on+-- the key, prevents CloudTrail from logging events to the event data+-- store, and prevents users from querying the data in the event data store+-- that was encrypted with the key. After you associate an event data store+-- with a KMS key, the KMS key cannot be removed or changed. Before you+-- disable or delete a KMS key that you are using with an event data store,+-- delete or back up your event data store.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'createEventDataStore_multiRegionEnabled' - Specifies whether the event data store includes events from all regions,+-- or only from the region in which the event data store is created.+--+-- 'organizationEnabled', 'createEventDataStore_organizationEnabled' - Specifies whether an event data store collects events logged for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'createEventDataStore_retentionPeriod' - The retention period of the event data store, in days. You can set a+-- retention period of up to 2557 days, the equivalent of seven years.+--+-- 'tagsList', 'createEventDataStore_tagsList' - Undocumented member.+--+-- 'terminationProtectionEnabled', 'createEventDataStore_terminationProtectionEnabled' - Specifies whether termination protection is enabled for the event data+-- store. If termination protection is enabled, you cannot delete the event+-- data store until termination protection is disabled.+--+-- 'name', 'createEventDataStore_name' - The name of the event data store.+newCreateEventDataStore ::+  -- | 'name'+  Prelude.Text ->+  CreateEventDataStore+newCreateEventDataStore pName_ =+  CreateEventDataStore'+    { advancedEventSelectors =+        Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      tagsList = Prelude.Nothing,+      terminationProtectionEnabled = Prelude.Nothing,+      name = pName_+    }++-- | The advanced event selectors to use to select the events for the data+-- store. For more information about how to use advanced event selectors,+-- see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced Log events by using advanced event selectors>+-- in the CloudTrail User Guide.+createEventDataStore_advancedEventSelectors :: Lens.Lens' CreateEventDataStore (Prelude.Maybe [AdvancedEventSelector])+createEventDataStore_advancedEventSelectors = Lens.lens (\CreateEventDataStore' {advancedEventSelectors} -> advancedEventSelectors) (\s@CreateEventDataStore' {} a -> s {advancedEventSelectors = a} :: CreateEventDataStore) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the KMS key ID to use to encrypt the events delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- Disabling or deleting the KMS key, or removing CloudTrail permissions on+-- the key, prevents CloudTrail from logging events to the event data+-- store, and prevents users from querying the data in the event data store+-- that was encrypted with the key. After you associate an event data store+-- with a KMS key, the KMS key cannot be removed or changed. Before you+-- disable or delete a KMS key that you are using with an event data store,+-- delete or back up your event data store.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+createEventDataStore_kmsKeyId :: Lens.Lens' CreateEventDataStore (Prelude.Maybe Prelude.Text)+createEventDataStore_kmsKeyId = Lens.lens (\CreateEventDataStore' {kmsKeyId} -> kmsKeyId) (\s@CreateEventDataStore' {} a -> s {kmsKeyId = a} :: CreateEventDataStore)++-- | Specifies whether the event data store includes events from all regions,+-- or only from the region in which the event data store is created.+createEventDataStore_multiRegionEnabled :: Lens.Lens' CreateEventDataStore (Prelude.Maybe Prelude.Bool)+createEventDataStore_multiRegionEnabled = Lens.lens (\CreateEventDataStore' {multiRegionEnabled} -> multiRegionEnabled) (\s@CreateEventDataStore' {} a -> s {multiRegionEnabled = a} :: CreateEventDataStore)++-- | Specifies whether an event data store collects events logged for an+-- organization in Organizations.+createEventDataStore_organizationEnabled :: Lens.Lens' CreateEventDataStore (Prelude.Maybe Prelude.Bool)+createEventDataStore_organizationEnabled = Lens.lens (\CreateEventDataStore' {organizationEnabled} -> organizationEnabled) (\s@CreateEventDataStore' {} a -> s {organizationEnabled = a} :: CreateEventDataStore)++-- | The retention period of the event data store, in days. You can set a+-- retention period of up to 2557 days, the equivalent of seven years.+createEventDataStore_retentionPeriod :: Lens.Lens' CreateEventDataStore (Prelude.Maybe Prelude.Natural)+createEventDataStore_retentionPeriod = Lens.lens (\CreateEventDataStore' {retentionPeriod} -> retentionPeriod) (\s@CreateEventDataStore' {} a -> s {retentionPeriod = a} :: CreateEventDataStore)++-- | Undocumented member.+createEventDataStore_tagsList :: Lens.Lens' CreateEventDataStore (Prelude.Maybe [Tag])+createEventDataStore_tagsList = Lens.lens (\CreateEventDataStore' {tagsList} -> tagsList) (\s@CreateEventDataStore' {} a -> s {tagsList = a} :: CreateEventDataStore) Prelude.. Lens.mapping Lens.coerced++-- | Specifies whether termination protection is enabled for the event data+-- store. If termination protection is enabled, you cannot delete the event+-- data store until termination protection is disabled.+createEventDataStore_terminationProtectionEnabled :: Lens.Lens' CreateEventDataStore (Prelude.Maybe Prelude.Bool)+createEventDataStore_terminationProtectionEnabled = Lens.lens (\CreateEventDataStore' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@CreateEventDataStore' {} a -> s {terminationProtectionEnabled = a} :: CreateEventDataStore)++-- | The name of the event data store.+createEventDataStore_name :: Lens.Lens' CreateEventDataStore Prelude.Text+createEventDataStore_name = Lens.lens (\CreateEventDataStore' {name} -> name) (\s@CreateEventDataStore' {} a -> s {name = a} :: CreateEventDataStore)++instance Core.AWSRequest CreateEventDataStore where+  type+    AWSResponse CreateEventDataStore =+      CreateEventDataStoreResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          CreateEventDataStoreResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "EventDataStoreArn")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "MultiRegionEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "OrganizationEnabled")+            Prelude.<*> (x Data..?> "RetentionPeriod")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "TagsList" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "TerminationProtectionEnabled")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable CreateEventDataStore where+  hashWithSalt _salt CreateEventDataStore' {..} =+    _salt+      `Prelude.hashWithSalt` advancedEventSelectors+      `Prelude.hashWithSalt` kmsKeyId+      `Prelude.hashWithSalt` multiRegionEnabled+      `Prelude.hashWithSalt` organizationEnabled+      `Prelude.hashWithSalt` retentionPeriod+      `Prelude.hashWithSalt` tagsList+      `Prelude.hashWithSalt` terminationProtectionEnabled+      `Prelude.hashWithSalt` name++instance Prelude.NFData CreateEventDataStore where+  rnf CreateEventDataStore' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf tagsList+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf name++instance Data.ToHeaders CreateEventDataStore where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.CreateEventDataStore" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON CreateEventDataStore where+  toJSON CreateEventDataStore' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("AdvancedEventSelectors" Data..=)+              Prelude.<$> advancedEventSelectors,+            ("KmsKeyId" Data..=) Prelude.<$> kmsKeyId,+            ("MultiRegionEnabled" Data..=)+              Prelude.<$> multiRegionEnabled,+            ("OrganizationEnabled" Data..=)+              Prelude.<$> organizationEnabled,+            ("RetentionPeriod" Data..=)+              Prelude.<$> retentionPeriod,+            ("TagsList" Data..=) Prelude.<$> tagsList,+            ("TerminationProtectionEnabled" Data..=)+              Prelude.<$> terminationProtectionEnabled,+            Prelude.Just ("Name" Data..= name)+          ]+      )++instance Data.ToPath CreateEventDataStore where+  toPath = Prelude.const "/"++instance Data.ToQuery CreateEventDataStore where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newCreateEventDataStoreResponse' smart constructor.+data CreateEventDataStoreResponse = CreateEventDataStoreResponse'+  { -- | The advanced event selectors that were used to select the events for the+    -- data store.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | The timestamp that shows when the event data store was created.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the event data store.+    eventDataStoreArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the KMS key ID that encrypts the events delivered by+    -- CloudTrail. The value is a fully specified ARN to a KMS key in the+    -- following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether the event data store collects events from all regions,+    -- or only from the region in which it was created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether an event data store is collecting logged events for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period of an event data store, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | The status of event data store creation.+    status :: Prelude.Maybe EventDataStoreStatus,+    tagsList :: Prelude.Maybe [Tag],+    -- | Indicates whether termination protection is enabled for the event data+    -- store.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The timestamp that shows when an event data store was updated, if+    -- applicable. @UpdatedTimestamp@ is always either the same or newer than+    -- the time shown in @CreatedTimestamp@.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateEventDataStoreResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'createEventDataStoreResponse_advancedEventSelectors' - The advanced event selectors that were used to select the events for the+-- data store.+--+-- 'createdTimestamp', 'createEventDataStoreResponse_createdTimestamp' - The timestamp that shows when the event data store was created.+--+-- 'eventDataStoreArn', 'createEventDataStoreResponse_eventDataStoreArn' - The ARN of the event data store.+--+-- 'kmsKeyId', 'createEventDataStoreResponse_kmsKeyId' - Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'createEventDataStoreResponse_multiRegionEnabled' - Indicates whether the event data store collects events from all regions,+-- or only from the region in which it was created.+--+-- 'name', 'createEventDataStoreResponse_name' - The name of the event data store.+--+-- 'organizationEnabled', 'createEventDataStoreResponse_organizationEnabled' - Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'createEventDataStoreResponse_retentionPeriod' - The retention period of an event data store, in days.+--+-- 'status', 'createEventDataStoreResponse_status' - The status of event data store creation.+--+-- 'tagsList', 'createEventDataStoreResponse_tagsList' - Undocumented member.+--+-- 'terminationProtectionEnabled', 'createEventDataStoreResponse_terminationProtectionEnabled' - Indicates whether termination protection is enabled for the event data+-- store.+--+-- 'updatedTimestamp', 'createEventDataStoreResponse_updatedTimestamp' - The timestamp that shows when an event data store was updated, if+-- applicable. @UpdatedTimestamp@ is always either the same or newer than+-- the time shown in @CreatedTimestamp@.+--+-- 'httpStatus', 'createEventDataStoreResponse_httpStatus' - The response's http status code.+newCreateEventDataStoreResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  CreateEventDataStoreResponse+newCreateEventDataStoreResponse pHttpStatus_ =+  CreateEventDataStoreResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      createdTimestamp = Prelude.Nothing,+      eventDataStoreArn = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      status = Prelude.Nothing,+      tagsList = Prelude.Nothing,+      terminationProtectionEnabled =+        Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The advanced event selectors that were used to select the events for the+-- data store.+createEventDataStoreResponse_advancedEventSelectors :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe [AdvancedEventSelector])+createEventDataStoreResponse_advancedEventSelectors = Lens.lens (\CreateEventDataStoreResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@CreateEventDataStoreResponse' {} a -> s {advancedEventSelectors = a} :: CreateEventDataStoreResponse) Prelude.. Lens.mapping Lens.coerced++-- | The timestamp that shows when the event data store was created.+createEventDataStoreResponse_createdTimestamp :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+createEventDataStoreResponse_createdTimestamp = Lens.lens (\CreateEventDataStoreResponse' {createdTimestamp} -> createdTimestamp) (\s@CreateEventDataStoreResponse' {} a -> s {createdTimestamp = a} :: CreateEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The ARN of the event data store.+createEventDataStoreResponse_eventDataStoreArn :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+createEventDataStoreResponse_eventDataStoreArn = Lens.lens (\CreateEventDataStoreResponse' {eventDataStoreArn} -> eventDataStoreArn) (\s@CreateEventDataStoreResponse' {} a -> s {eventDataStoreArn = a} :: CreateEventDataStoreResponse)++-- | Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+createEventDataStoreResponse_kmsKeyId :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+createEventDataStoreResponse_kmsKeyId = Lens.lens (\CreateEventDataStoreResponse' {kmsKeyId} -> kmsKeyId) (\s@CreateEventDataStoreResponse' {} a -> s {kmsKeyId = a} :: CreateEventDataStoreResponse)++-- | Indicates whether the event data store collects events from all regions,+-- or only from the region in which it was created.+createEventDataStoreResponse_multiRegionEnabled :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+createEventDataStoreResponse_multiRegionEnabled = Lens.lens (\CreateEventDataStoreResponse' {multiRegionEnabled} -> multiRegionEnabled) (\s@CreateEventDataStoreResponse' {} a -> s {multiRegionEnabled = a} :: CreateEventDataStoreResponse)++-- | The name of the event data store.+createEventDataStoreResponse_name :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+createEventDataStoreResponse_name = Lens.lens (\CreateEventDataStoreResponse' {name} -> name) (\s@CreateEventDataStoreResponse' {} a -> s {name = a} :: CreateEventDataStoreResponse)++-- | Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+createEventDataStoreResponse_organizationEnabled :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+createEventDataStoreResponse_organizationEnabled = Lens.lens (\CreateEventDataStoreResponse' {organizationEnabled} -> organizationEnabled) (\s@CreateEventDataStoreResponse' {} a -> s {organizationEnabled = a} :: CreateEventDataStoreResponse)++-- | The retention period of an event data store, in days.+createEventDataStoreResponse_retentionPeriod :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Natural)+createEventDataStoreResponse_retentionPeriod = Lens.lens (\CreateEventDataStoreResponse' {retentionPeriod} -> retentionPeriod) (\s@CreateEventDataStoreResponse' {} a -> s {retentionPeriod = a} :: CreateEventDataStoreResponse)++-- | The status of event data store creation.+createEventDataStoreResponse_status :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe EventDataStoreStatus)+createEventDataStoreResponse_status = Lens.lens (\CreateEventDataStoreResponse' {status} -> status) (\s@CreateEventDataStoreResponse' {} a -> s {status = a} :: CreateEventDataStoreResponse)++-- | Undocumented member.+createEventDataStoreResponse_tagsList :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe [Tag])+createEventDataStoreResponse_tagsList = Lens.lens (\CreateEventDataStoreResponse' {tagsList} -> tagsList) (\s@CreateEventDataStoreResponse' {} a -> s {tagsList = a} :: CreateEventDataStoreResponse) Prelude.. Lens.mapping Lens.coerced++-- | Indicates whether termination protection is enabled for the event data+-- store.+createEventDataStoreResponse_terminationProtectionEnabled :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+createEventDataStoreResponse_terminationProtectionEnabled = Lens.lens (\CreateEventDataStoreResponse' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@CreateEventDataStoreResponse' {} a -> s {terminationProtectionEnabled = a} :: CreateEventDataStoreResponse)++-- | The timestamp that shows when an event data store was updated, if+-- applicable. @UpdatedTimestamp@ is always either the same or newer than+-- the time shown in @CreatedTimestamp@.+createEventDataStoreResponse_updatedTimestamp :: Lens.Lens' CreateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+createEventDataStoreResponse_updatedTimestamp = Lens.lens (\CreateEventDataStoreResponse' {updatedTimestamp} -> updatedTimestamp) (\s@CreateEventDataStoreResponse' {} a -> s {updatedTimestamp = a} :: CreateEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+createEventDataStoreResponse_httpStatus :: Lens.Lens' CreateEventDataStoreResponse Prelude.Int+createEventDataStoreResponse_httpStatus = Lens.lens (\CreateEventDataStoreResponse' {httpStatus} -> httpStatus) (\s@CreateEventDataStoreResponse' {} a -> s {httpStatus = a} :: CreateEventDataStoreResponse)++instance Prelude.NFData CreateEventDataStoreResponse where+  rnf CreateEventDataStoreResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf eventDataStoreArn+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf tagsList+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/CreateTrail.hs view
@@ -0,0 +1,706 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.CreateTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a trail that specifies the settings for delivery of log data to+-- an Amazon S3 bucket.+module Amazonka.CloudTrail.CreateTrail+  ( -- * Creating a Request+    CreateTrail (..),+    newCreateTrail,++    -- * Request Lenses+    createTrail_cloudWatchLogsLogGroupArn,+    createTrail_cloudWatchLogsRoleArn,+    createTrail_enableLogFileValidation,+    createTrail_includeGlobalServiceEvents,+    createTrail_isMultiRegionTrail,+    createTrail_isOrganizationTrail,+    createTrail_kmsKeyId,+    createTrail_s3KeyPrefix,+    createTrail_snsTopicName,+    createTrail_tagsList,+    createTrail_name,+    createTrail_s3BucketName,++    -- * Destructuring the Response+    CreateTrailResponse (..),+    newCreateTrailResponse,++    -- * Response Lenses+    createTrailResponse_cloudWatchLogsLogGroupArn,+    createTrailResponse_cloudWatchLogsRoleArn,+    createTrailResponse_includeGlobalServiceEvents,+    createTrailResponse_isMultiRegionTrail,+    createTrailResponse_isOrganizationTrail,+    createTrailResponse_kmsKeyId,+    createTrailResponse_logFileValidationEnabled,+    createTrailResponse_name,+    createTrailResponse_s3BucketName,+    createTrailResponse_s3KeyPrefix,+    createTrailResponse_snsTopicARN,+    createTrailResponse_snsTopicName,+    createTrailResponse_trailARN,+    createTrailResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies the settings for each trail.+--+-- /See:/ 'newCreateTrail' smart constructor.+data CreateTrail = CreateTrail'+  { -- | Specifies a log group name using an Amazon Resource Name (ARN), a unique+    -- identifier that represents the log group to which CloudTrail logs will+    -- be delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+    cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the role for the CloudWatch Logs endpoint to assume to write+    -- to a user\'s log group.+    cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether log file integrity validation is enabled. The default+    -- is false.+    --+    -- When you disable log file integrity validation, the chain of digest+    -- files is broken after one hour. CloudTrail does not create digest files+    -- for log files that were delivered during a period in which log file+    -- integrity validation was disabled. For example, if you enable log file+    -- integrity validation at noon on January 1, disable it at noon on January+    -- 2, and re-enable it at noon on January 10, digest files will not be+    -- created for the log files delivered from noon on January 2 to noon on+    -- January 10. The same applies whenever you stop CloudTrail logging or+    -- delete a trail.+    enableLogFileValidation :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is publishing events from global services+    -- such as IAM to the log files.+    includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is created in the current region or in all+    -- regions. The default is false, which creates a trail only in the region+    -- where you are signed in. As a best practice, consider creating trails+    -- that log events in all regions.+    isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is created for all accounts in an+    -- organization in Organizations, or only for the current Amazon Web+    -- Services account. The default is false, and cannot be true unless the+    -- call is made on behalf of an Amazon Web Services account that is the+    -- management account for an organization in Organizations.+    isOrganizationTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies the KMS key ID to use to encrypt the logs delivered by+    -- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+    -- fully specified ARN to an alias, a fully specified ARN to a key, or a+    -- globally unique identifier.+    --+    -- CloudTrail also supports KMS multi-Region keys. For more information+    -- about multi-Region keys, see+    -- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+    -- in the /Key Management Service Developer Guide/.+    --+    -- Examples:+    --+    -- -   @alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    --+    -- -   @12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.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+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+    -- The maximum length is 200 characters.+    s3KeyPrefix :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the Amazon SNS topic defined for notification of+    -- log file delivery. The maximum length is 256 characters.+    snsTopicName :: Prelude.Maybe Prelude.Text,+    tagsList :: Prelude.Maybe [Tag],+    -- | Specifies the name of the trail. The name 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 not valid.+    --+    -- -   Not be in IP address format (for example, 192.168.5.4)+    name :: Prelude.Text,+    -- | Specifies the name of the Amazon S3 bucket designated for publishing log+    -- files. See+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+    s3BucketName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateTrail' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'cloudWatchLogsLogGroupArn', 'createTrail_cloudWatchLogsLogGroupArn' - Specifies a log group name using an Amazon Resource Name (ARN), a unique+-- identifier that represents the log group to which CloudTrail logs will+-- be delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+--+-- 'cloudWatchLogsRoleArn', 'createTrail_cloudWatchLogsRoleArn' - Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+--+-- 'enableLogFileValidation', 'createTrail_enableLogFileValidation' - Specifies whether log file integrity validation is enabled. The default+-- is false.+--+-- When you disable log file integrity validation, the chain of digest+-- files is broken after one hour. CloudTrail does not create digest files+-- for log files that were delivered during a period in which log file+-- integrity validation was disabled. For example, if you enable log file+-- integrity validation at noon on January 1, disable it at noon on January+-- 2, and re-enable it at noon on January 10, digest files will not be+-- created for the log files delivered from noon on January 2 to noon on+-- January 10. The same applies whenever you stop CloudTrail logging or+-- delete a trail.+--+-- 'includeGlobalServiceEvents', 'createTrail_includeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+--+-- 'isMultiRegionTrail', 'createTrail_isMultiRegionTrail' - Specifies whether the trail is created in the current region or in all+-- regions. The default is false, which creates a trail only in the region+-- where you are signed in. As a best practice, consider creating trails+-- that log events in all regions.+--+-- 'isOrganizationTrail', 'createTrail_isOrganizationTrail' - Specifies whether the trail is created for all accounts in an+-- organization in Organizations, or only for the current Amazon Web+-- Services account. The default is false, and cannot be true unless the+-- call is made on behalf of an Amazon Web Services account that is the+-- management account for an organization in Organizations.+--+-- 'kmsKeyId', 'createTrail_kmsKeyId' - Specifies the KMS key ID to use to encrypt the logs delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+--+-- 's3KeyPrefix', 'createTrail_s3KeyPrefix' - 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+--+-- 'snsTopicName', 'createTrail_snsTopicName' - Specifies the name of the Amazon SNS topic defined for notification of+-- log file delivery. The maximum length is 256 characters.+--+-- 'tagsList', 'createTrail_tagsList' - Undocumented member.+--+-- 'name', 'createTrail_name' - Specifies the name of the trail. The name 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- 's3BucketName', 'createTrail_s3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+newCreateTrail ::+  -- | 'name'+  Prelude.Text ->+  -- | 's3BucketName'+  Prelude.Text ->+  CreateTrail+newCreateTrail pName_ pS3BucketName_ =+  CreateTrail'+    { cloudWatchLogsLogGroupArn =+        Prelude.Nothing,+      cloudWatchLogsRoleArn = Prelude.Nothing,+      enableLogFileValidation = Prelude.Nothing,+      includeGlobalServiceEvents = Prelude.Nothing,+      isMultiRegionTrail = Prelude.Nothing,+      isOrganizationTrail = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      s3KeyPrefix = Prelude.Nothing,+      snsTopicName = Prelude.Nothing,+      tagsList = Prelude.Nothing,+      name = pName_,+      s3BucketName = pS3BucketName_+    }++-- | Specifies a log group name using an Amazon Resource Name (ARN), a unique+-- identifier that represents the log group to which CloudTrail logs will+-- be delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+createTrail_cloudWatchLogsLogGroupArn :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Text)+createTrail_cloudWatchLogsLogGroupArn = Lens.lens (\CreateTrail' {cloudWatchLogsLogGroupArn} -> cloudWatchLogsLogGroupArn) (\s@CreateTrail' {} a -> s {cloudWatchLogsLogGroupArn = a} :: CreateTrail)++-- | Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+createTrail_cloudWatchLogsRoleArn :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Text)+createTrail_cloudWatchLogsRoleArn = Lens.lens (\CreateTrail' {cloudWatchLogsRoleArn} -> cloudWatchLogsRoleArn) (\s@CreateTrail' {} a -> s {cloudWatchLogsRoleArn = a} :: CreateTrail)++-- | Specifies whether log file integrity validation is enabled. The default+-- is false.+--+-- When you disable log file integrity validation, the chain of digest+-- files is broken after one hour. CloudTrail does not create digest files+-- for log files that were delivered during a period in which log file+-- integrity validation was disabled. For example, if you enable log file+-- integrity validation at noon on January 1, disable it at noon on January+-- 2, and re-enable it at noon on January 10, digest files will not be+-- created for the log files delivered from noon on January 2 to noon on+-- January 10. The same applies whenever you stop CloudTrail logging or+-- delete a trail.+createTrail_enableLogFileValidation :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Bool)+createTrail_enableLogFileValidation = Lens.lens (\CreateTrail' {enableLogFileValidation} -> enableLogFileValidation) (\s@CreateTrail' {} a -> s {enableLogFileValidation = a} :: CreateTrail)++-- | Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+createTrail_includeGlobalServiceEvents :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Bool)+createTrail_includeGlobalServiceEvents = Lens.lens (\CreateTrail' {includeGlobalServiceEvents} -> includeGlobalServiceEvents) (\s@CreateTrail' {} a -> s {includeGlobalServiceEvents = a} :: CreateTrail)++-- | Specifies whether the trail is created in the current region or in all+-- regions. The default is false, which creates a trail only in the region+-- where you are signed in. As a best practice, consider creating trails+-- that log events in all regions.+createTrail_isMultiRegionTrail :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Bool)+createTrail_isMultiRegionTrail = Lens.lens (\CreateTrail' {isMultiRegionTrail} -> isMultiRegionTrail) (\s@CreateTrail' {} a -> s {isMultiRegionTrail = a} :: CreateTrail)++-- | Specifies whether the trail is created for all accounts in an+-- organization in Organizations, or only for the current Amazon Web+-- Services account. The default is false, and cannot be true unless the+-- call is made on behalf of an Amazon Web Services account that is the+-- management account for an organization in Organizations.+createTrail_isOrganizationTrail :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Bool)+createTrail_isOrganizationTrail = Lens.lens (\CreateTrail' {isOrganizationTrail} -> isOrganizationTrail) (\s@CreateTrail' {} a -> s {isOrganizationTrail = a} :: CreateTrail)++-- | Specifies the KMS key ID to use to encrypt the logs delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+createTrail_kmsKeyId :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Text)+createTrail_kmsKeyId = Lens.lens (\CreateTrail' {kmsKeyId} -> kmsKeyId) (\s@CreateTrail' {} a -> s {kmsKeyId = a} :: CreateTrail)++-- | 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+createTrail_s3KeyPrefix :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Text)+createTrail_s3KeyPrefix = Lens.lens (\CreateTrail' {s3KeyPrefix} -> s3KeyPrefix) (\s@CreateTrail' {} a -> s {s3KeyPrefix = a} :: CreateTrail)++-- | Specifies the name of the Amazon SNS topic defined for notification of+-- log file delivery. The maximum length is 256 characters.+createTrail_snsTopicName :: Lens.Lens' CreateTrail (Prelude.Maybe Prelude.Text)+createTrail_snsTopicName = Lens.lens (\CreateTrail' {snsTopicName} -> snsTopicName) (\s@CreateTrail' {} a -> s {snsTopicName = a} :: CreateTrail)++-- | Undocumented member.+createTrail_tagsList :: Lens.Lens' CreateTrail (Prelude.Maybe [Tag])+createTrail_tagsList = Lens.lens (\CreateTrail' {tagsList} -> tagsList) (\s@CreateTrail' {} a -> s {tagsList = a} :: CreateTrail) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the name of the trail. The name 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+createTrail_name :: Lens.Lens' CreateTrail Prelude.Text+createTrail_name = Lens.lens (\CreateTrail' {name} -> name) (\s@CreateTrail' {} a -> s {name = a} :: CreateTrail)++-- | Specifies the name of the Amazon S3 bucket designated for publishing log+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+createTrail_s3BucketName :: Lens.Lens' CreateTrail Prelude.Text+createTrail_s3BucketName = Lens.lens (\CreateTrail' {s3BucketName} -> s3BucketName) (\s@CreateTrail' {} a -> s {s3BucketName = a} :: CreateTrail)++instance Core.AWSRequest CreateTrail where+  type AWSResponse CreateTrail = CreateTrailResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          CreateTrailResponse'+            Prelude.<$> (x Data..?> "CloudWatchLogsLogGroupArn")+            Prelude.<*> (x Data..?> "CloudWatchLogsRoleArn")+            Prelude.<*> (x Data..?> "IncludeGlobalServiceEvents")+            Prelude.<*> (x Data..?> "IsMultiRegionTrail")+            Prelude.<*> (x Data..?> "IsOrganizationTrail")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "LogFileValidationEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "S3BucketName")+            Prelude.<*> (x Data..?> "S3KeyPrefix")+            Prelude.<*> (x Data..?> "SnsTopicARN")+            Prelude.<*> (x Data..?> "SnsTopicName")+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable CreateTrail where+  hashWithSalt _salt CreateTrail' {..} =+    _salt+      `Prelude.hashWithSalt` cloudWatchLogsLogGroupArn+      `Prelude.hashWithSalt` cloudWatchLogsRoleArn+      `Prelude.hashWithSalt` enableLogFileValidation+      `Prelude.hashWithSalt` includeGlobalServiceEvents+      `Prelude.hashWithSalt` isMultiRegionTrail+      `Prelude.hashWithSalt` isOrganizationTrail+      `Prelude.hashWithSalt` kmsKeyId+      `Prelude.hashWithSalt` s3KeyPrefix+      `Prelude.hashWithSalt` snsTopicName+      `Prelude.hashWithSalt` tagsList+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` s3BucketName++instance Prelude.NFData CreateTrail where+  rnf CreateTrail' {..} =+    Prelude.rnf cloudWatchLogsLogGroupArn+      `Prelude.seq` Prelude.rnf cloudWatchLogsRoleArn+      `Prelude.seq` Prelude.rnf enableLogFileValidation+      `Prelude.seq` Prelude.rnf includeGlobalServiceEvents+      `Prelude.seq` Prelude.rnf isMultiRegionTrail+      `Prelude.seq` Prelude.rnf isOrganizationTrail+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf s3KeyPrefix+      `Prelude.seq` Prelude.rnf snsTopicName+      `Prelude.seq` Prelude.rnf tagsList+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf s3BucketName++instance Data.ToHeaders CreateTrail where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.CreateTrail" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON CreateTrail where+  toJSON CreateTrail' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("CloudWatchLogsLogGroupArn" Data..=)+              Prelude.<$> cloudWatchLogsLogGroupArn,+            ("CloudWatchLogsRoleArn" Data..=)+              Prelude.<$> cloudWatchLogsRoleArn,+            ("EnableLogFileValidation" Data..=)+              Prelude.<$> enableLogFileValidation,+            ("IncludeGlobalServiceEvents" Data..=)+              Prelude.<$> includeGlobalServiceEvents,+            ("IsMultiRegionTrail" Data..=)+              Prelude.<$> isMultiRegionTrail,+            ("IsOrganizationTrail" Data..=)+              Prelude.<$> isOrganizationTrail,+            ("KmsKeyId" Data..=) Prelude.<$> kmsKeyId,+            ("S3KeyPrefix" Data..=) Prelude.<$> s3KeyPrefix,+            ("SnsTopicName" Data..=) Prelude.<$> snsTopicName,+            ("TagsList" Data..=) Prelude.<$> tagsList,+            Prelude.Just ("Name" Data..= name),+            Prelude.Just ("S3BucketName" Data..= s3BucketName)+          ]+      )++instance Data.ToPath CreateTrail where+  toPath = Prelude.const "/"++instance Data.ToQuery CreateTrail where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newCreateTrailResponse' smart constructor.+data CreateTrailResponse = CreateTrailResponse'+  { -- | Specifies the Amazon Resource Name (ARN) of the log group to which+    -- CloudTrail logs will be delivered.+    cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the role for the CloudWatch Logs endpoint to assume to write+    -- to a user\'s log group.+    cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether the trail is publishing events from global services+    -- such as IAM to the log files.+    includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail exists in one region or in all regions.+    isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is an organization trail.+    isOrganizationTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies the KMS key ID that encrypts the events delivered by+    -- CloudTrail. The value is a fully specified ARN to a KMS key in the+    -- following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether log file integrity validation is enabled.+    logFileValidationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | Specifies the name of the trail.+    name :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the Amazon S3 bucket designated for publishing log+    -- files.+    s3BucketName :: Prelude.Maybe Prelude.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+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+    s3KeyPrefix :: Prelude.Maybe Prelude.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-2:123456789012:MyTopic@+    snsTopicARN :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use. Use SnsTopicARN.+    snsTopicName :: Prelude.Maybe Prelude.Text,+    -- | Specifies the ARN of the trail that was created. The format of a trail+    -- ARN is:+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateTrailResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'cloudWatchLogsLogGroupArn', 'createTrailResponse_cloudWatchLogsLogGroupArn' - Specifies the Amazon Resource Name (ARN) of the log group to which+-- CloudTrail logs will be delivered.+--+-- 'cloudWatchLogsRoleArn', 'createTrailResponse_cloudWatchLogsRoleArn' - Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+--+-- 'includeGlobalServiceEvents', 'createTrailResponse_includeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+--+-- 'isMultiRegionTrail', 'createTrailResponse_isMultiRegionTrail' - Specifies whether the trail exists in one region or in all regions.+--+-- 'isOrganizationTrail', 'createTrailResponse_isOrganizationTrail' - Specifies whether the trail is an organization trail.+--+-- 'kmsKeyId', 'createTrailResponse_kmsKeyId' - Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'logFileValidationEnabled', 'createTrailResponse_logFileValidationEnabled' - Specifies whether log file integrity validation is enabled.+--+-- 'name', 'createTrailResponse_name' - Specifies the name of the trail.+--+-- 's3BucketName', 'createTrailResponse_s3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log+-- files.+--+-- 's3KeyPrefix', 'createTrailResponse_s3KeyPrefix' - 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+--+-- 'snsTopicARN', 'createTrailResponse_snsTopicARN' - 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-2:123456789012:MyTopic@+--+-- 'snsTopicName', 'createTrailResponse_snsTopicName' - This field is no longer in use. Use SnsTopicARN.+--+-- 'trailARN', 'createTrailResponse_trailARN' - Specifies the ARN of the trail that was created. The format of a trail+-- ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- 'httpStatus', 'createTrailResponse_httpStatus' - The response's http status code.+newCreateTrailResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  CreateTrailResponse+newCreateTrailResponse pHttpStatus_ =+  CreateTrailResponse'+    { cloudWatchLogsLogGroupArn =+        Prelude.Nothing,+      cloudWatchLogsRoleArn = Prelude.Nothing,+      includeGlobalServiceEvents = Prelude.Nothing,+      isMultiRegionTrail = Prelude.Nothing,+      isOrganizationTrail = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      logFileValidationEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      s3BucketName = Prelude.Nothing,+      s3KeyPrefix = Prelude.Nothing,+      snsTopicARN = Prelude.Nothing,+      snsTopicName = Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Specifies the Amazon Resource Name (ARN) of the log group to which+-- CloudTrail logs will be delivered.+createTrailResponse_cloudWatchLogsLogGroupArn :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_cloudWatchLogsLogGroupArn = Lens.lens (\CreateTrailResponse' {cloudWatchLogsLogGroupArn} -> cloudWatchLogsLogGroupArn) (\s@CreateTrailResponse' {} a -> s {cloudWatchLogsLogGroupArn = a} :: CreateTrailResponse)++-- | Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+createTrailResponse_cloudWatchLogsRoleArn :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_cloudWatchLogsRoleArn = Lens.lens (\CreateTrailResponse' {cloudWatchLogsRoleArn} -> cloudWatchLogsRoleArn) (\s@CreateTrailResponse' {} a -> s {cloudWatchLogsRoleArn = a} :: CreateTrailResponse)++-- | Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+createTrailResponse_includeGlobalServiceEvents :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Bool)+createTrailResponse_includeGlobalServiceEvents = Lens.lens (\CreateTrailResponse' {includeGlobalServiceEvents} -> includeGlobalServiceEvents) (\s@CreateTrailResponse' {} a -> s {includeGlobalServiceEvents = a} :: CreateTrailResponse)++-- | Specifies whether the trail exists in one region or in all regions.+createTrailResponse_isMultiRegionTrail :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Bool)+createTrailResponse_isMultiRegionTrail = Lens.lens (\CreateTrailResponse' {isMultiRegionTrail} -> isMultiRegionTrail) (\s@CreateTrailResponse' {} a -> s {isMultiRegionTrail = a} :: CreateTrailResponse)++-- | Specifies whether the trail is an organization trail.+createTrailResponse_isOrganizationTrail :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Bool)+createTrailResponse_isOrganizationTrail = Lens.lens (\CreateTrailResponse' {isOrganizationTrail} -> isOrganizationTrail) (\s@CreateTrailResponse' {} a -> s {isOrganizationTrail = a} :: CreateTrailResponse)++-- | Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+createTrailResponse_kmsKeyId :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_kmsKeyId = Lens.lens (\CreateTrailResponse' {kmsKeyId} -> kmsKeyId) (\s@CreateTrailResponse' {} a -> s {kmsKeyId = a} :: CreateTrailResponse)++-- | Specifies whether log file integrity validation is enabled.+createTrailResponse_logFileValidationEnabled :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Bool)+createTrailResponse_logFileValidationEnabled = Lens.lens (\CreateTrailResponse' {logFileValidationEnabled} -> logFileValidationEnabled) (\s@CreateTrailResponse' {} a -> s {logFileValidationEnabled = a} :: CreateTrailResponse)++-- | Specifies the name of the trail.+createTrailResponse_name :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_name = Lens.lens (\CreateTrailResponse' {name} -> name) (\s@CreateTrailResponse' {} a -> s {name = a} :: CreateTrailResponse)++-- | Specifies the name of the Amazon S3 bucket designated for publishing log+-- files.+createTrailResponse_s3BucketName :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_s3BucketName = Lens.lens (\CreateTrailResponse' {s3BucketName} -> s3BucketName) (\s@CreateTrailResponse' {} a -> s {s3BucketName = a} :: CreateTrailResponse)++-- | 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+createTrailResponse_s3KeyPrefix :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_s3KeyPrefix = Lens.lens (\CreateTrailResponse' {s3KeyPrefix} -> s3KeyPrefix) (\s@CreateTrailResponse' {} a -> s {s3KeyPrefix = a} :: CreateTrailResponse)++-- | 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-2:123456789012:MyTopic@+createTrailResponse_snsTopicARN :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_snsTopicARN = Lens.lens (\CreateTrailResponse' {snsTopicARN} -> snsTopicARN) (\s@CreateTrailResponse' {} a -> s {snsTopicARN = a} :: CreateTrailResponse)++-- | This field is no longer in use. Use SnsTopicARN.+createTrailResponse_snsTopicName :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_snsTopicName = Lens.lens (\CreateTrailResponse' {snsTopicName} -> snsTopicName) (\s@CreateTrailResponse' {} a -> s {snsTopicName = a} :: CreateTrailResponse)++-- | Specifies the ARN of the trail that was created. The format of a trail+-- ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+createTrailResponse_trailARN :: Lens.Lens' CreateTrailResponse (Prelude.Maybe Prelude.Text)+createTrailResponse_trailARN = Lens.lens (\CreateTrailResponse' {trailARN} -> trailARN) (\s@CreateTrailResponse' {} a -> s {trailARN = a} :: CreateTrailResponse)++-- | The response's http status code.+createTrailResponse_httpStatus :: Lens.Lens' CreateTrailResponse Prelude.Int+createTrailResponse_httpStatus = Lens.lens (\CreateTrailResponse' {httpStatus} -> httpStatus) (\s@CreateTrailResponse' {} a -> s {httpStatus = a} :: CreateTrailResponse)++instance Prelude.NFData CreateTrailResponse where+  rnf CreateTrailResponse' {..} =+    Prelude.rnf cloudWatchLogsLogGroupArn+      `Prelude.seq` Prelude.rnf cloudWatchLogsRoleArn+      `Prelude.seq` Prelude.rnf includeGlobalServiceEvents+      `Prelude.seq` Prelude.rnf isMultiRegionTrail+      `Prelude.seq` Prelude.rnf isOrganizationTrail+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf logFileValidationEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf s3BucketName+      `Prelude.seq` Prelude.rnf s3KeyPrefix+      `Prelude.seq` Prelude.rnf snsTopicARN+      `Prelude.seq` Prelude.rnf snsTopicName+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/DeleteEventDataStore.hs view
@@ -0,0 +1,173 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.DeleteEventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables the event data store specified by @EventDataStore@, which+-- accepts an event data store ARN. After you run @DeleteEventDataStore@,+-- the event data store enters a @PENDING_DELETION@ state, and is+-- automatically deleted after a wait period of seven days.+-- @TerminationProtectionEnabled@ must be set to @False@ on the event data+-- store; this operation cannot work if @TerminationProtectionEnabled@ is+-- @True@.+--+-- After you run @DeleteEventDataStore@ on an event data store, you cannot+-- run @ListQueries@, @DescribeQuery@, or @GetQueryResults@ on queries that+-- are using an event data store in a @PENDING_DELETION@ state. An event+-- data store in the @PENDING_DELETION@ state does not incur costs.+module Amazonka.CloudTrail.DeleteEventDataStore+  ( -- * Creating a Request+    DeleteEventDataStore (..),+    newDeleteEventDataStore,++    -- * Request Lenses+    deleteEventDataStore_eventDataStore,++    -- * Destructuring the Response+    DeleteEventDataStoreResponse (..),+    newDeleteEventDataStoreResponse,++    -- * Response Lenses+    deleteEventDataStoreResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteEventDataStore' smart constructor.+data DeleteEventDataStore = DeleteEventDataStore'+  { -- | The ARN (or the ID suffix of the ARN) of the event data store to delete.+    eventDataStore :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteEventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'deleteEventDataStore_eventDataStore' - The ARN (or the ID suffix of the ARN) of the event data store to delete.+newDeleteEventDataStore ::+  -- | 'eventDataStore'+  Prelude.Text ->+  DeleteEventDataStore+newDeleteEventDataStore pEventDataStore_ =+  DeleteEventDataStore'+    { eventDataStore =+        pEventDataStore_+    }++-- | The ARN (or the ID suffix of the ARN) of the event data store to delete.+deleteEventDataStore_eventDataStore :: Lens.Lens' DeleteEventDataStore Prelude.Text+deleteEventDataStore_eventDataStore = Lens.lens (\DeleteEventDataStore' {eventDataStore} -> eventDataStore) (\s@DeleteEventDataStore' {} a -> s {eventDataStore = a} :: DeleteEventDataStore)++instance Core.AWSRequest DeleteEventDataStore where+  type+    AWSResponse DeleteEventDataStore =+      DeleteEventDataStoreResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          DeleteEventDataStoreResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DeleteEventDataStore where+  hashWithSalt _salt DeleteEventDataStore' {..} =+    _salt `Prelude.hashWithSalt` eventDataStore++instance Prelude.NFData DeleteEventDataStore where+  rnf DeleteEventDataStore' {..} =+    Prelude.rnf eventDataStore++instance Data.ToHeaders DeleteEventDataStore where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteEventDataStore" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DeleteEventDataStore where+  toJSON DeleteEventDataStore' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("EventDataStore" Data..= eventDataStore)+          ]+      )++instance Data.ToPath DeleteEventDataStore where+  toPath = Prelude.const "/"++instance Data.ToQuery DeleteEventDataStore where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDeleteEventDataStoreResponse' smart constructor.+data DeleteEventDataStoreResponse = DeleteEventDataStoreResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteEventDataStoreResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteEventDataStoreResponse_httpStatus' - The response's http status code.+newDeleteEventDataStoreResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DeleteEventDataStoreResponse+newDeleteEventDataStoreResponse pHttpStatus_ =+  DeleteEventDataStoreResponse'+    { httpStatus =+        pHttpStatus_+    }++-- | The response's http status code.+deleteEventDataStoreResponse_httpStatus :: Lens.Lens' DeleteEventDataStoreResponse Prelude.Int+deleteEventDataStoreResponse_httpStatus = Lens.lens (\DeleteEventDataStoreResponse' {httpStatus} -> httpStatus) (\s@DeleteEventDataStoreResponse' {} a -> s {httpStatus = a} :: DeleteEventDataStoreResponse)++instance Prelude.NFData DeleteEventDataStoreResponse where+  rnf DeleteEventDataStoreResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/DeleteTrail.hs view
@@ -0,0 +1,163 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.DeleteTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a trail. This operation must be called from the region in which+-- the trail was created. @DeleteTrail@ cannot be called on the shadow+-- trails (replicated trails in other regions) of a trail that is enabled+-- in all regions.+module Amazonka.CloudTrail.DeleteTrail+  ( -- * Creating a Request+    DeleteTrail (..),+    newDeleteTrail,++    -- * Request Lenses+    deleteTrail_name,++    -- * Destructuring the Response+    DeleteTrailResponse (..),+    newDeleteTrailResponse,++    -- * Response Lenses+    deleteTrailResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | The request that specifies the name of a trail to delete.+--+-- /See:/ 'newDeleteTrail' smart constructor.+data DeleteTrail = DeleteTrail'+  { -- | Specifies the name or the CloudTrail ARN of the trail to be deleted. The+    -- following is the format of a trail ARN.+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteTrail' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'deleteTrail_name' - Specifies the name or the CloudTrail ARN of the trail to be deleted. The+-- following is the format of a trail ARN.+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newDeleteTrail ::+  -- | 'name'+  Prelude.Text ->+  DeleteTrail+newDeleteTrail pName_ = DeleteTrail' {name = pName_}++-- | Specifies the name or the CloudTrail ARN of the trail to be deleted. The+-- following is the format of a trail ARN.+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+deleteTrail_name :: Lens.Lens' DeleteTrail Prelude.Text+deleteTrail_name = Lens.lens (\DeleteTrail' {name} -> name) (\s@DeleteTrail' {} a -> s {name = a} :: DeleteTrail)++instance Core.AWSRequest DeleteTrail where+  type AWSResponse DeleteTrail = DeleteTrailResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          DeleteTrailResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DeleteTrail where+  hashWithSalt _salt DeleteTrail' {..} =+    _salt `Prelude.hashWithSalt` name++instance Prelude.NFData DeleteTrail where+  rnf DeleteTrail' {..} = Prelude.rnf name++instance Data.ToHeaders DeleteTrail where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteTrail" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DeleteTrail where+  toJSON DeleteTrail' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Name" Data..= name)]+      )++instance Data.ToPath DeleteTrail where+  toPath = Prelude.const "/"++instance Data.ToQuery DeleteTrail where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newDeleteTrailResponse' smart constructor.+data DeleteTrailResponse = DeleteTrailResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteTrailResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteTrailResponse_httpStatus' - The response's http status code.+newDeleteTrailResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DeleteTrailResponse+newDeleteTrailResponse pHttpStatus_ =+  DeleteTrailResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+deleteTrailResponse_httpStatus :: Lens.Lens' DeleteTrailResponse Prelude.Int+deleteTrailResponse_httpStatus = Lens.lens (\DeleteTrailResponse' {httpStatus} -> httpStatus) (\s@DeleteTrailResponse' {} a -> s {httpStatus = a} :: DeleteTrailResponse)++instance Prelude.NFData DeleteTrailResponse where+  rnf DeleteTrailResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/DeregisterOrganizationDelegatedAdmin.hs view
@@ -0,0 +1,204 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes CloudTrail delegated administrator permissions from a member+-- account in an organization.+module Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin+  ( -- * Creating a Request+    DeregisterOrganizationDelegatedAdmin (..),+    newDeregisterOrganizationDelegatedAdmin,++    -- * Request Lenses+    deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId,++    -- * Destructuring the Response+    DeregisterOrganizationDelegatedAdminResponse (..),+    newDeregisterOrganizationDelegatedAdminResponse,++    -- * Response Lenses+    deregisterOrganizationDelegatedAdminResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Removes CloudTrail delegated administrator permissions from a specified+-- member account in an organization that is currently designated as a+-- delegated administrator.+--+-- /See:/ 'newDeregisterOrganizationDelegatedAdmin' smart constructor.+data DeregisterOrganizationDelegatedAdmin = DeregisterOrganizationDelegatedAdmin'+  { -- | A delegated administrator account ID. This is a member account in an+    -- organization that is currently designated as a delegated administrator.+    delegatedAdminAccountId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeregisterOrganizationDelegatedAdmin' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'delegatedAdminAccountId', 'deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId' - A delegated administrator account ID. This is a member account in an+-- organization that is currently designated as a delegated administrator.+newDeregisterOrganizationDelegatedAdmin ::+  -- | 'delegatedAdminAccountId'+  Prelude.Text ->+  DeregisterOrganizationDelegatedAdmin+newDeregisterOrganizationDelegatedAdmin+  pDelegatedAdminAccountId_ =+    DeregisterOrganizationDelegatedAdmin'+      { delegatedAdminAccountId =+          pDelegatedAdminAccountId_+      }++-- | A delegated administrator account ID. This is a member account in an+-- organization that is currently designated as a delegated administrator.+deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId :: Lens.Lens' DeregisterOrganizationDelegatedAdmin Prelude.Text+deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId = Lens.lens (\DeregisterOrganizationDelegatedAdmin' {delegatedAdminAccountId} -> delegatedAdminAccountId) (\s@DeregisterOrganizationDelegatedAdmin' {} a -> s {delegatedAdminAccountId = a} :: DeregisterOrganizationDelegatedAdmin)++instance+  Core.AWSRequest+    DeregisterOrganizationDelegatedAdmin+  where+  type+    AWSResponse DeregisterOrganizationDelegatedAdmin =+      DeregisterOrganizationDelegatedAdminResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          DeregisterOrganizationDelegatedAdminResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance+  Prelude.Hashable+    DeregisterOrganizationDelegatedAdmin+  where+  hashWithSalt+    _salt+    DeregisterOrganizationDelegatedAdmin' {..} =+      _salt+        `Prelude.hashWithSalt` delegatedAdminAccountId++instance+  Prelude.NFData+    DeregisterOrganizationDelegatedAdmin+  where+  rnf DeregisterOrganizationDelegatedAdmin' {..} =+    Prelude.rnf delegatedAdminAccountId++instance+  Data.ToHeaders+    DeregisterOrganizationDelegatedAdmin+  where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeregisterOrganizationDelegatedAdmin" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance+  Data.ToJSON+    DeregisterOrganizationDelegatedAdmin+  where+  toJSON DeregisterOrganizationDelegatedAdmin' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ( "DelegatedAdminAccountId"+                  Data..= delegatedAdminAccountId+              )+          ]+      )++instance+  Data.ToPath+    DeregisterOrganizationDelegatedAdmin+  where+  toPath = Prelude.const "/"++instance+  Data.ToQuery+    DeregisterOrganizationDelegatedAdmin+  where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the following response if successful. Otherwise, returns an+-- error.+--+-- /See:/ 'newDeregisterOrganizationDelegatedAdminResponse' smart constructor.+data DeregisterOrganizationDelegatedAdminResponse = DeregisterOrganizationDelegatedAdminResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeregisterOrganizationDelegatedAdminResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deregisterOrganizationDelegatedAdminResponse_httpStatus' - The response's http status code.+newDeregisterOrganizationDelegatedAdminResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DeregisterOrganizationDelegatedAdminResponse+newDeregisterOrganizationDelegatedAdminResponse+  pHttpStatus_ =+    DeregisterOrganizationDelegatedAdminResponse'+      { httpStatus =+          pHttpStatus_+      }++-- | The response's http status code.+deregisterOrganizationDelegatedAdminResponse_httpStatus :: Lens.Lens' DeregisterOrganizationDelegatedAdminResponse Prelude.Int+deregisterOrganizationDelegatedAdminResponse_httpStatus = Lens.lens (\DeregisterOrganizationDelegatedAdminResponse' {httpStatus} -> httpStatus) (\s@DeregisterOrganizationDelegatedAdminResponse' {} a -> s {httpStatus = a} :: DeregisterOrganizationDelegatedAdminResponse)++instance+  Prelude.NFData+    DeregisterOrganizationDelegatedAdminResponse+  where+  rnf DeregisterOrganizationDelegatedAdminResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/DescribeQuery.hs view
@@ -0,0 +1,276 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.DescribeQuery+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata about a query, including query run time in+-- milliseconds, number of events scanned and matched, and query status.+-- You must specify an ARN for @EventDataStore@, and a value for @QueryID@.+module Amazonka.CloudTrail.DescribeQuery+  ( -- * Creating a Request+    DescribeQuery (..),+    newDescribeQuery,++    -- * Request Lenses+    describeQuery_eventDataStore,+    describeQuery_queryId,++    -- * Destructuring the Response+    DescribeQueryResponse (..),+    newDescribeQueryResponse,++    -- * Response Lenses+    describeQueryResponse_deliveryS3Uri,+    describeQueryResponse_deliveryStatus,+    describeQueryResponse_errorMessage,+    describeQueryResponse_queryId,+    describeQueryResponse_queryStatistics,+    describeQueryResponse_queryStatus,+    describeQueryResponse_queryString,+    describeQueryResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDescribeQuery' smart constructor.+data DescribeQuery = DescribeQuery'+  { -- | The ARN (or the ID suffix of the ARN) of an event data store on which+    -- the specified query was run.+    eventDataStore :: Prelude.Maybe Prelude.Text,+    -- | The query ID.+    queryId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeQuery' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'describeQuery_eventDataStore' - The ARN (or the ID suffix of the ARN) of an event data store on which+-- the specified query was run.+--+-- 'queryId', 'describeQuery_queryId' - The query ID.+newDescribeQuery ::+  -- | 'queryId'+  Prelude.Text ->+  DescribeQuery+newDescribeQuery pQueryId_ =+  DescribeQuery'+    { eventDataStore = Prelude.Nothing,+      queryId = pQueryId_+    }++-- | The ARN (or the ID suffix of the ARN) of an event data store on which+-- the specified query was run.+describeQuery_eventDataStore :: Lens.Lens' DescribeQuery (Prelude.Maybe Prelude.Text)+describeQuery_eventDataStore = Lens.lens (\DescribeQuery' {eventDataStore} -> eventDataStore) (\s@DescribeQuery' {} a -> s {eventDataStore = a} :: DescribeQuery)++-- | The query ID.+describeQuery_queryId :: Lens.Lens' DescribeQuery Prelude.Text+describeQuery_queryId = Lens.lens (\DescribeQuery' {queryId} -> queryId) (\s@DescribeQuery' {} a -> s {queryId = a} :: DescribeQuery)++instance Core.AWSRequest DescribeQuery where+  type+    AWSResponse DescribeQuery =+      DescribeQueryResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          DescribeQueryResponse'+            Prelude.<$> (x Data..?> "DeliveryS3Uri")+            Prelude.<*> (x Data..?> "DeliveryStatus")+            Prelude.<*> (x Data..?> "ErrorMessage")+            Prelude.<*> (x Data..?> "QueryId")+            Prelude.<*> (x Data..?> "QueryStatistics")+            Prelude.<*> (x Data..?> "QueryStatus")+            Prelude.<*> (x Data..?> "QueryString")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DescribeQuery where+  hashWithSalt _salt DescribeQuery' {..} =+    _salt+      `Prelude.hashWithSalt` eventDataStore+      `Prelude.hashWithSalt` queryId++instance Prelude.NFData DescribeQuery where+  rnf DescribeQuery' {..} =+    Prelude.rnf eventDataStore+      `Prelude.seq` Prelude.rnf queryId++instance Data.ToHeaders DescribeQuery where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DescribeQuery" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DescribeQuery where+  toJSON DescribeQuery' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EventDataStore" Data..=)+              Prelude.<$> eventDataStore,+            Prelude.Just ("QueryId" Data..= queryId)+          ]+      )++instance Data.ToPath DescribeQuery where+  toPath = Prelude.const "/"++instance Data.ToQuery DescribeQuery where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDescribeQueryResponse' smart constructor.+data DescribeQueryResponse = DescribeQueryResponse'+  { -- | The URI for the S3 bucket where CloudTrail delivered query results, if+    -- applicable.+    deliveryS3Uri :: Prelude.Maybe Prelude.Text,+    -- | The delivery status.+    deliveryStatus :: Prelude.Maybe DeliveryStatus,+    -- | The error message returned if a query failed.+    errorMessage :: Prelude.Maybe Prelude.Text,+    -- | The ID of the query.+    queryId :: Prelude.Maybe Prelude.Text,+    -- | Metadata about a query, including the number of events that were+    -- matched, the total number of events scanned, the query run time in+    -- milliseconds, and the query\'s creation time.+    queryStatistics :: Prelude.Maybe QueryStatisticsForDescribeQuery,+    -- | The status of a query. Values for @QueryStatus@ include @QUEUED@,+    -- @RUNNING@, @FINISHED@, @FAILED@, @TIMED_OUT@, or @CANCELLED@+    queryStatus :: Prelude.Maybe QueryStatus,+    -- | The SQL code of a query.+    queryString :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeQueryResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'deliveryS3Uri', 'describeQueryResponse_deliveryS3Uri' - The URI for the S3 bucket where CloudTrail delivered query results, if+-- applicable.+--+-- 'deliveryStatus', 'describeQueryResponse_deliveryStatus' - The delivery status.+--+-- 'errorMessage', 'describeQueryResponse_errorMessage' - The error message returned if a query failed.+--+-- 'queryId', 'describeQueryResponse_queryId' - The ID of the query.+--+-- 'queryStatistics', 'describeQueryResponse_queryStatistics' - Metadata about a query, including the number of events that were+-- matched, the total number of events scanned, the query run time in+-- milliseconds, and the query\'s creation time.+--+-- 'queryStatus', 'describeQueryResponse_queryStatus' - The status of a query. Values for @QueryStatus@ include @QUEUED@,+-- @RUNNING@, @FINISHED@, @FAILED@, @TIMED_OUT@, or @CANCELLED@+--+-- 'queryString', 'describeQueryResponse_queryString' - The SQL code of a query.+--+-- 'httpStatus', 'describeQueryResponse_httpStatus' - The response's http status code.+newDescribeQueryResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DescribeQueryResponse+newDescribeQueryResponse pHttpStatus_ =+  DescribeQueryResponse'+    { deliveryS3Uri =+        Prelude.Nothing,+      deliveryStatus = Prelude.Nothing,+      errorMessage = Prelude.Nothing,+      queryId = Prelude.Nothing,+      queryStatistics = Prelude.Nothing,+      queryStatus = Prelude.Nothing,+      queryString = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The URI for the S3 bucket where CloudTrail delivered query results, if+-- applicable.+describeQueryResponse_deliveryS3Uri :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe Prelude.Text)+describeQueryResponse_deliveryS3Uri = Lens.lens (\DescribeQueryResponse' {deliveryS3Uri} -> deliveryS3Uri) (\s@DescribeQueryResponse' {} a -> s {deliveryS3Uri = a} :: DescribeQueryResponse)++-- | The delivery status.+describeQueryResponse_deliveryStatus :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe DeliveryStatus)+describeQueryResponse_deliveryStatus = Lens.lens (\DescribeQueryResponse' {deliveryStatus} -> deliveryStatus) (\s@DescribeQueryResponse' {} a -> s {deliveryStatus = a} :: DescribeQueryResponse)++-- | The error message returned if a query failed.+describeQueryResponse_errorMessage :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe Prelude.Text)+describeQueryResponse_errorMessage = Lens.lens (\DescribeQueryResponse' {errorMessage} -> errorMessage) (\s@DescribeQueryResponse' {} a -> s {errorMessage = a} :: DescribeQueryResponse)++-- | The ID of the query.+describeQueryResponse_queryId :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe Prelude.Text)+describeQueryResponse_queryId = Lens.lens (\DescribeQueryResponse' {queryId} -> queryId) (\s@DescribeQueryResponse' {} a -> s {queryId = a} :: DescribeQueryResponse)++-- | Metadata about a query, including the number of events that were+-- matched, the total number of events scanned, the query run time in+-- milliseconds, and the query\'s creation time.+describeQueryResponse_queryStatistics :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe QueryStatisticsForDescribeQuery)+describeQueryResponse_queryStatistics = Lens.lens (\DescribeQueryResponse' {queryStatistics} -> queryStatistics) (\s@DescribeQueryResponse' {} a -> s {queryStatistics = a} :: DescribeQueryResponse)++-- | The status of a query. Values for @QueryStatus@ include @QUEUED@,+-- @RUNNING@, @FINISHED@, @FAILED@, @TIMED_OUT@, or @CANCELLED@+describeQueryResponse_queryStatus :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe QueryStatus)+describeQueryResponse_queryStatus = Lens.lens (\DescribeQueryResponse' {queryStatus} -> queryStatus) (\s@DescribeQueryResponse' {} a -> s {queryStatus = a} :: DescribeQueryResponse)++-- | The SQL code of a query.+describeQueryResponse_queryString :: Lens.Lens' DescribeQueryResponse (Prelude.Maybe Prelude.Text)+describeQueryResponse_queryString = Lens.lens (\DescribeQueryResponse' {queryString} -> queryString) (\s@DescribeQueryResponse' {} a -> s {queryString = a} :: DescribeQueryResponse)++-- | The response's http status code.+describeQueryResponse_httpStatus :: Lens.Lens' DescribeQueryResponse Prelude.Int+describeQueryResponse_httpStatus = Lens.lens (\DescribeQueryResponse' {httpStatus} -> httpStatus) (\s@DescribeQueryResponse' {} a -> s {httpStatus = a} :: DescribeQueryResponse)++instance Prelude.NFData DescribeQueryResponse where+  rnf DescribeQueryResponse' {..} =+    Prelude.rnf deliveryS3Uri+      `Prelude.seq` Prelude.rnf deliveryStatus+      `Prelude.seq` Prelude.rnf errorMessage+      `Prelude.seq` Prelude.rnf queryId+      `Prelude.seq` Prelude.rnf queryStatistics+      `Prelude.seq` Prelude.rnf queryStatus+      `Prelude.seq` Prelude.rnf queryString+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/DescribeTrails.hs view
@@ -0,0 +1,276 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.DescribeTrails+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves settings for one or more trails associated with the current+-- region for your account.+module Amazonka.CloudTrail.DescribeTrails+  ( -- * Creating a Request+    DescribeTrails (..),+    newDescribeTrails,++    -- * Request Lenses+    describeTrails_includeShadowTrails,+    describeTrails_trailNameList,++    -- * Destructuring the Response+    DescribeTrailsResponse (..),+    newDescribeTrailsResponse,++    -- * Response Lenses+    describeTrailsResponse_trailList,+    describeTrailsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Returns information about the trail.+--+-- /See:/ 'newDescribeTrails' smart constructor.+data DescribeTrails = DescribeTrails'+  { -- | Specifies whether to include shadow trails in the response. A shadow+    -- trail is the replication in a region of a trail that was created in a+    -- different region, or in the case of an organization trail, the+    -- replication of an organization trail in member accounts. If you do not+    -- include shadow trails, organization trails in a member account and+    -- region replication trails will not be returned. The default is true.+    includeShadowTrails :: Prelude.Maybe Prelude.Bool,+    -- | Specifies a list of trail names, trail ARNs, or both, of the trails to+    -- describe. The format of a trail ARN is:+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    --+    -- If an empty list is specified, information for the trail in the current+    -- region is returned.+    --+    -- -   If an empty list is specified and @IncludeShadowTrails@ is false,+    --     then information for all trails in the current region is returned.+    --+    -- -   If an empty list is specified and IncludeShadowTrails is null or+    --     true, then information for all trails in the current region and any+    --     associated shadow trails in other regions is returned.+    --+    -- If one or more trail names are specified, information is returned only+    -- if the names match the names of trails belonging only to the current+    -- region. To return information about a trail in another region, you must+    -- specify its trail ARN.+    trailNameList :: Prelude.Maybe [Prelude.Text]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeTrails' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'includeShadowTrails', 'describeTrails_includeShadowTrails' - Specifies whether to include shadow trails in the response. A shadow+-- trail is the replication in a region of a trail that was created in a+-- different region, or in the case of an organization trail, the+-- replication of an organization trail in member accounts. If you do not+-- include shadow trails, organization trails in a member account and+-- region replication trails will not be returned. The default is true.+--+-- 'trailNameList', 'describeTrails_trailNameList' - Specifies a list of trail names, trail ARNs, or both, of the trails to+-- describe. The format of a trail ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- If an empty list is specified, information for the trail in the current+-- region is returned.+--+-- -   If an empty list is specified and @IncludeShadowTrails@ is false,+--     then information for all trails in the current region is returned.+--+-- -   If an empty list is specified and IncludeShadowTrails is null or+--     true, then information for all trails in the current region and any+--     associated shadow trails in other regions is returned.+--+-- If one or more trail names are specified, information is returned only+-- if the names match the names of trails belonging only to the current+-- region. To return information about a trail in another region, you must+-- specify its trail ARN.+newDescribeTrails ::+  DescribeTrails+newDescribeTrails =+  DescribeTrails'+    { includeShadowTrails =+        Prelude.Nothing,+      trailNameList = Prelude.Nothing+    }++-- | Specifies whether to include shadow trails in the response. A shadow+-- trail is the replication in a region of a trail that was created in a+-- different region, or in the case of an organization trail, the+-- replication of an organization trail in member accounts. If you do not+-- include shadow trails, organization trails in a member account and+-- region replication trails will not be returned. The default is true.+describeTrails_includeShadowTrails :: Lens.Lens' DescribeTrails (Prelude.Maybe Prelude.Bool)+describeTrails_includeShadowTrails = Lens.lens (\DescribeTrails' {includeShadowTrails} -> includeShadowTrails) (\s@DescribeTrails' {} a -> s {includeShadowTrails = a} :: DescribeTrails)++-- | Specifies a list of trail names, trail ARNs, or both, of the trails to+-- describe. The format of a trail ARN is:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- If an empty list is specified, information for the trail in the current+-- region is returned.+--+-- -   If an empty list is specified and @IncludeShadowTrails@ is false,+--     then information for all trails in the current region is returned.+--+-- -   If an empty list is specified and IncludeShadowTrails is null or+--     true, then information for all trails in the current region and any+--     associated shadow trails in other regions is returned.+--+-- If one or more trail names are specified, information is returned only+-- if the names match the names of trails belonging only to the current+-- region. To return information about a trail in another region, you must+-- specify its trail ARN.+describeTrails_trailNameList :: Lens.Lens' DescribeTrails (Prelude.Maybe [Prelude.Text])+describeTrails_trailNameList = Lens.lens (\DescribeTrails' {trailNameList} -> trailNameList) (\s@DescribeTrails' {} a -> s {trailNameList = a} :: DescribeTrails) Prelude.. Lens.mapping Lens.coerced++instance Core.AWSRequest DescribeTrails where+  type+    AWSResponse DescribeTrails =+      DescribeTrailsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          DescribeTrailsResponse'+            Prelude.<$> (x Data..?> "trailList" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DescribeTrails where+  hashWithSalt _salt DescribeTrails' {..} =+    _salt+      `Prelude.hashWithSalt` includeShadowTrails+      `Prelude.hashWithSalt` trailNameList++instance Prelude.NFData DescribeTrails where+  rnf DescribeTrails' {..} =+    Prelude.rnf includeShadowTrails+      `Prelude.seq` Prelude.rnf trailNameList++instance Data.ToHeaders DescribeTrails where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DescribeTrails" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DescribeTrails where+  toJSON DescribeTrails' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("includeShadowTrails" Data..=)+              Prelude.<$> includeShadowTrails,+            ("trailNameList" Data..=) Prelude.<$> trailNameList+          ]+      )++instance Data.ToPath DescribeTrails where+  toPath = Prelude.const "/"++instance Data.ToQuery DescribeTrails where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newDescribeTrailsResponse' smart constructor.+data DescribeTrailsResponse = DescribeTrailsResponse'+  { -- | The list of trail objects. Trail objects with string values are only+    -- returned if values for the objects exist in a trail\'s configuration.+    -- For example, @SNSTopicName@ and @SNSTopicARN@ are only returned in+    -- results if a trail is configured to send SNS notifications. Similarly,+    -- @KMSKeyId@ only appears in results if a trail\'s log files are encrypted+    -- with KMS customer managed keys.+    trailList :: Prelude.Maybe [Trail],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DescribeTrailsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'trailList', 'describeTrailsResponse_trailList' - The list of trail objects. Trail objects with string values are only+-- returned if values for the objects exist in a trail\'s configuration.+-- For example, @SNSTopicName@ and @SNSTopicARN@ are only returned in+-- results if a trail is configured to send SNS notifications. Similarly,+-- @KMSKeyId@ only appears in results if a trail\'s log files are encrypted+-- with KMS customer managed keys.+--+-- 'httpStatus', 'describeTrailsResponse_httpStatus' - The response's http status code.+newDescribeTrailsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DescribeTrailsResponse+newDescribeTrailsResponse pHttpStatus_ =+  DescribeTrailsResponse'+    { trailList =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The list of trail objects. Trail objects with string values are only+-- returned if values for the objects exist in a trail\'s configuration.+-- For example, @SNSTopicName@ and @SNSTopicARN@ are only returned in+-- results if a trail is configured to send SNS notifications. Similarly,+-- @KMSKeyId@ only appears in results if a trail\'s log files are encrypted+-- with KMS customer managed keys.+describeTrailsResponse_trailList :: Lens.Lens' DescribeTrailsResponse (Prelude.Maybe [Trail])+describeTrailsResponse_trailList = Lens.lens (\DescribeTrailsResponse' {trailList} -> trailList) (\s@DescribeTrailsResponse' {} a -> s {trailList = a} :: DescribeTrailsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+describeTrailsResponse_httpStatus :: Lens.Lens' DescribeTrailsResponse Prelude.Int+describeTrailsResponse_httpStatus = Lens.lens (\DescribeTrailsResponse' {httpStatus} -> httpStatus) (\s@DescribeTrailsResponse' {} a -> s {httpStatus = a} :: DescribeTrailsResponse)++instance Prelude.NFData DescribeTrailsResponse where+  rnf DescribeTrailsResponse' {..} =+    Prelude.rnf trailList+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetChannel.hs view
@@ -0,0 +1,235 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetChannel+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about a specific channel. Amazon Web Services+-- services create service-linked channels to get information about+-- CloudTrail events on your behalf. For more information about+-- service-linked channels, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html Viewing service-linked channels for CloudTrail by using the CLI>.+module Amazonka.CloudTrail.GetChannel+  ( -- * Creating a Request+    GetChannel (..),+    newGetChannel,++    -- * Request Lenses+    getChannel_channel,++    -- * Destructuring the Response+    GetChannelResponse (..),+    newGetChannelResponse,++    -- * Response Lenses+    getChannelResponse_channelArn,+    getChannelResponse_destinations,+    getChannelResponse_name,+    getChannelResponse_source,+    getChannelResponse_sourceConfig,+    getChannelResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetChannel' smart constructor.+data GetChannel = GetChannel'+  { -- | The ARN or @UUID@ of a channel.+    channel :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetChannel' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'channel', 'getChannel_channel' - The ARN or @UUID@ of a channel.+newGetChannel ::+  -- | 'channel'+  Prelude.Text ->+  GetChannel+newGetChannel pChannel_ =+  GetChannel' {channel = pChannel_}++-- | The ARN or @UUID@ of a channel.+getChannel_channel :: Lens.Lens' GetChannel Prelude.Text+getChannel_channel = Lens.lens (\GetChannel' {channel} -> channel) (\s@GetChannel' {} a -> s {channel = a} :: GetChannel)++instance Core.AWSRequest GetChannel where+  type AWSResponse GetChannel = GetChannelResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetChannelResponse'+            Prelude.<$> (x Data..?> "ChannelArn")+            Prelude.<*> (x Data..?> "Destinations")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "Source")+            Prelude.<*> (x Data..?> "SourceConfig")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetChannel where+  hashWithSalt _salt GetChannel' {..} =+    _salt `Prelude.hashWithSalt` channel++instance Prelude.NFData GetChannel where+  rnf GetChannel' {..} = Prelude.rnf channel++instance Data.ToHeaders GetChannel where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetChannel" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetChannel where+  toJSON GetChannel' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Channel" Data..= channel)]+      )++instance Data.ToPath GetChannel where+  toPath = Prelude.const "/"++instance Data.ToQuery GetChannel where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetChannelResponse' smart constructor.+data GetChannelResponse = GetChannelResponse'+  { -- | The ARN of an channel returned by a @GetChannel@ request.+    channelArn :: Prelude.Maybe Prelude.Text,+    -- | The Amazon Web Services service that created the service-linked channel.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Destination),+    -- | The name of the CloudTrail channel. For service-linked channels, the+    -- value is @aws-service-channel\/service-name\/custom-suffix@ where+    -- @service-name@ represents the name of the Amazon Web Services service+    -- that created the channel and @custom-suffix@ represents the suffix+    -- generated by the Amazon Web Services service.+    name :: Prelude.Maybe Prelude.Text,+    -- | The event source for the CloudTrail channel.+    source :: Prelude.Maybe Prelude.Text,+    -- | Provides information about the advanced event selectors configured for+    -- the channel, and whether the channel applies to all regions or a single+    -- region.+    sourceConfig :: Prelude.Maybe SourceConfig,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetChannelResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'channelArn', 'getChannelResponse_channelArn' - The ARN of an channel returned by a @GetChannel@ request.+--+-- 'destinations', 'getChannelResponse_destinations' - The Amazon Web Services service that created the service-linked channel.+--+-- 'name', 'getChannelResponse_name' - The name of the CloudTrail channel. For service-linked channels, the+-- value is @aws-service-channel\/service-name\/custom-suffix@ where+-- @service-name@ represents the name of the Amazon Web Services service+-- that created the channel and @custom-suffix@ represents the suffix+-- generated by the Amazon Web Services service.+--+-- 'source', 'getChannelResponse_source' - The event source for the CloudTrail channel.+--+-- 'sourceConfig', 'getChannelResponse_sourceConfig' - Provides information about the advanced event selectors configured for+-- the channel, and whether the channel applies to all regions or a single+-- region.+--+-- 'httpStatus', 'getChannelResponse_httpStatus' - The response's http status code.+newGetChannelResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetChannelResponse+newGetChannelResponse pHttpStatus_ =+  GetChannelResponse'+    { channelArn = Prelude.Nothing,+      destinations = Prelude.Nothing,+      name = Prelude.Nothing,+      source = Prelude.Nothing,+      sourceConfig = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The ARN of an channel returned by a @GetChannel@ request.+getChannelResponse_channelArn :: Lens.Lens' GetChannelResponse (Prelude.Maybe Prelude.Text)+getChannelResponse_channelArn = Lens.lens (\GetChannelResponse' {channelArn} -> channelArn) (\s@GetChannelResponse' {} a -> s {channelArn = a} :: GetChannelResponse)++-- | The Amazon Web Services service that created the service-linked channel.+getChannelResponse_destinations :: Lens.Lens' GetChannelResponse (Prelude.Maybe (Prelude.NonEmpty Destination))+getChannelResponse_destinations = Lens.lens (\GetChannelResponse' {destinations} -> destinations) (\s@GetChannelResponse' {} a -> s {destinations = a} :: GetChannelResponse) Prelude.. Lens.mapping Lens.coerced++-- | The name of the CloudTrail channel. For service-linked channels, the+-- value is @aws-service-channel\/service-name\/custom-suffix@ where+-- @service-name@ represents the name of the Amazon Web Services service+-- that created the channel and @custom-suffix@ represents the suffix+-- generated by the Amazon Web Services service.+getChannelResponse_name :: Lens.Lens' GetChannelResponse (Prelude.Maybe Prelude.Text)+getChannelResponse_name = Lens.lens (\GetChannelResponse' {name} -> name) (\s@GetChannelResponse' {} a -> s {name = a} :: GetChannelResponse)++-- | The event source for the CloudTrail channel.+getChannelResponse_source :: Lens.Lens' GetChannelResponse (Prelude.Maybe Prelude.Text)+getChannelResponse_source = Lens.lens (\GetChannelResponse' {source} -> source) (\s@GetChannelResponse' {} a -> s {source = a} :: GetChannelResponse)++-- | Provides information about the advanced event selectors configured for+-- the channel, and whether the channel applies to all regions or a single+-- region.+getChannelResponse_sourceConfig :: Lens.Lens' GetChannelResponse (Prelude.Maybe SourceConfig)+getChannelResponse_sourceConfig = Lens.lens (\GetChannelResponse' {sourceConfig} -> sourceConfig) (\s@GetChannelResponse' {} a -> s {sourceConfig = a} :: GetChannelResponse)++-- | The response's http status code.+getChannelResponse_httpStatus :: Lens.Lens' GetChannelResponse Prelude.Int+getChannelResponse_httpStatus = Lens.lens (\GetChannelResponse' {httpStatus} -> httpStatus) (\s@GetChannelResponse' {} a -> s {httpStatus = a} :: GetChannelResponse)++instance Prelude.NFData GetChannelResponse where+  rnf GetChannelResponse' {..} =+    Prelude.rnf channelArn+      `Prelude.seq` Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf source+      `Prelude.seq` Prelude.rnf sourceConfig+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetEventDataStore.hs view
@@ -0,0 +1,328 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetEventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about an event data store specified as either an ARN+-- or the ID portion of the ARN.+module Amazonka.CloudTrail.GetEventDataStore+  ( -- * Creating a Request+    GetEventDataStore (..),+    newGetEventDataStore,++    -- * Request Lenses+    getEventDataStore_eventDataStore,++    -- * Destructuring the Response+    GetEventDataStoreResponse (..),+    newGetEventDataStoreResponse,++    -- * Response Lenses+    getEventDataStoreResponse_advancedEventSelectors,+    getEventDataStoreResponse_createdTimestamp,+    getEventDataStoreResponse_eventDataStoreArn,+    getEventDataStoreResponse_kmsKeyId,+    getEventDataStoreResponse_multiRegionEnabled,+    getEventDataStoreResponse_name,+    getEventDataStoreResponse_organizationEnabled,+    getEventDataStoreResponse_retentionPeriod,+    getEventDataStoreResponse_status,+    getEventDataStoreResponse_terminationProtectionEnabled,+    getEventDataStoreResponse_updatedTimestamp,+    getEventDataStoreResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetEventDataStore' smart constructor.+data GetEventDataStore = GetEventDataStore'+  { -- | The ARN (or ID suffix of the ARN) of the event data store about which+    -- you want information.+    eventDataStore :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetEventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'getEventDataStore_eventDataStore' - The ARN (or ID suffix of the ARN) of the event data store about which+-- you want information.+newGetEventDataStore ::+  -- | 'eventDataStore'+  Prelude.Text ->+  GetEventDataStore+newGetEventDataStore pEventDataStore_ =+  GetEventDataStore'+    { eventDataStore =+        pEventDataStore_+    }++-- | The ARN (or ID suffix of the ARN) of the event data store about which+-- you want information.+getEventDataStore_eventDataStore :: Lens.Lens' GetEventDataStore Prelude.Text+getEventDataStore_eventDataStore = Lens.lens (\GetEventDataStore' {eventDataStore} -> eventDataStore) (\s@GetEventDataStore' {} a -> s {eventDataStore = a} :: GetEventDataStore)++instance Core.AWSRequest GetEventDataStore where+  type+    AWSResponse GetEventDataStore =+      GetEventDataStoreResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetEventDataStoreResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "EventDataStoreArn")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "MultiRegionEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "OrganizationEnabled")+            Prelude.<*> (x Data..?> "RetentionPeriod")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "TerminationProtectionEnabled")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetEventDataStore where+  hashWithSalt _salt GetEventDataStore' {..} =+    _salt `Prelude.hashWithSalt` eventDataStore++instance Prelude.NFData GetEventDataStore where+  rnf GetEventDataStore' {..} =+    Prelude.rnf eventDataStore++instance Data.ToHeaders GetEventDataStore where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetEventDataStore" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetEventDataStore where+  toJSON GetEventDataStore' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("EventDataStore" Data..= eventDataStore)+          ]+      )++instance Data.ToPath GetEventDataStore where+  toPath = Prelude.const "/"++instance Data.ToQuery GetEventDataStore where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetEventDataStoreResponse' smart constructor.+data GetEventDataStoreResponse = GetEventDataStoreResponse'+  { -- | The advanced event selectors used to select events for the data store.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | The timestamp of the event data store\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The event data store Amazon Resource Number (ARN).+    eventDataStoreArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the KMS key ID that encrypts the events delivered by+    -- CloudTrail. The value is a fully specified ARN to a KMS key in the+    -- following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether the event data store includes events from all regions,+    -- or only from the region in which it was created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether an event data store is collecting logged events for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period of the event data store, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | The status of an event data store. Values can be @ENABLED@ and+    -- @PENDING_DELETION@.+    status :: Prelude.Maybe EventDataStoreStatus,+    -- | Indicates that termination protection is enabled.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | Shows the time that an event data store was updated, if applicable.+    -- @UpdatedTimestamp@ is always either the same or newer than the time+    -- shown in @CreatedTimestamp@.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetEventDataStoreResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'getEventDataStoreResponse_advancedEventSelectors' - The advanced event selectors used to select events for the data store.+--+-- 'createdTimestamp', 'getEventDataStoreResponse_createdTimestamp' - The timestamp of the event data store\'s creation.+--+-- 'eventDataStoreArn', 'getEventDataStoreResponse_eventDataStoreArn' - The event data store Amazon Resource Number (ARN).+--+-- 'kmsKeyId', 'getEventDataStoreResponse_kmsKeyId' - Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'getEventDataStoreResponse_multiRegionEnabled' - Indicates whether the event data store includes events from all regions,+-- or only from the region in which it was created.+--+-- 'name', 'getEventDataStoreResponse_name' - The name of the event data store.+--+-- 'organizationEnabled', 'getEventDataStoreResponse_organizationEnabled' - Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'getEventDataStoreResponse_retentionPeriod' - The retention period of the event data store, in days.+--+-- 'status', 'getEventDataStoreResponse_status' - The status of an event data store. Values can be @ENABLED@ and+-- @PENDING_DELETION@.+--+-- 'terminationProtectionEnabled', 'getEventDataStoreResponse_terminationProtectionEnabled' - Indicates that termination protection is enabled.+--+-- 'updatedTimestamp', 'getEventDataStoreResponse_updatedTimestamp' - Shows the time that an event data store was updated, if applicable.+-- @UpdatedTimestamp@ is always either the same or newer than the time+-- shown in @CreatedTimestamp@.+--+-- 'httpStatus', 'getEventDataStoreResponse_httpStatus' - The response's http status code.+newGetEventDataStoreResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetEventDataStoreResponse+newGetEventDataStoreResponse pHttpStatus_ =+  GetEventDataStoreResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      createdTimestamp = Prelude.Nothing,+      eventDataStoreArn = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      status = Prelude.Nothing,+      terminationProtectionEnabled = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The advanced event selectors used to select events for the data store.+getEventDataStoreResponse_advancedEventSelectors :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe [AdvancedEventSelector])+getEventDataStoreResponse_advancedEventSelectors = Lens.lens (\GetEventDataStoreResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@GetEventDataStoreResponse' {} a -> s {advancedEventSelectors = a} :: GetEventDataStoreResponse) Prelude.. Lens.mapping Lens.coerced++-- | The timestamp of the event data store\'s creation.+getEventDataStoreResponse_createdTimestamp :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+getEventDataStoreResponse_createdTimestamp = Lens.lens (\GetEventDataStoreResponse' {createdTimestamp} -> createdTimestamp) (\s@GetEventDataStoreResponse' {} a -> s {createdTimestamp = a} :: GetEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The event data store Amazon Resource Number (ARN).+getEventDataStoreResponse_eventDataStoreArn :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Text)+getEventDataStoreResponse_eventDataStoreArn = Lens.lens (\GetEventDataStoreResponse' {eventDataStoreArn} -> eventDataStoreArn) (\s@GetEventDataStoreResponse' {} a -> s {eventDataStoreArn = a} :: GetEventDataStoreResponse)++-- | Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+getEventDataStoreResponse_kmsKeyId :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Text)+getEventDataStoreResponse_kmsKeyId = Lens.lens (\GetEventDataStoreResponse' {kmsKeyId} -> kmsKeyId) (\s@GetEventDataStoreResponse' {} a -> s {kmsKeyId = a} :: GetEventDataStoreResponse)++-- | Indicates whether the event data store includes events from all regions,+-- or only from the region in which it was created.+getEventDataStoreResponse_multiRegionEnabled :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+getEventDataStoreResponse_multiRegionEnabled = Lens.lens (\GetEventDataStoreResponse' {multiRegionEnabled} -> multiRegionEnabled) (\s@GetEventDataStoreResponse' {} a -> s {multiRegionEnabled = a} :: GetEventDataStoreResponse)++-- | The name of the event data store.+getEventDataStoreResponse_name :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Text)+getEventDataStoreResponse_name = Lens.lens (\GetEventDataStoreResponse' {name} -> name) (\s@GetEventDataStoreResponse' {} a -> s {name = a} :: GetEventDataStoreResponse)++-- | Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+getEventDataStoreResponse_organizationEnabled :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+getEventDataStoreResponse_organizationEnabled = Lens.lens (\GetEventDataStoreResponse' {organizationEnabled} -> organizationEnabled) (\s@GetEventDataStoreResponse' {} a -> s {organizationEnabled = a} :: GetEventDataStoreResponse)++-- | The retention period of the event data store, in days.+getEventDataStoreResponse_retentionPeriod :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Natural)+getEventDataStoreResponse_retentionPeriod = Lens.lens (\GetEventDataStoreResponse' {retentionPeriod} -> retentionPeriod) (\s@GetEventDataStoreResponse' {} a -> s {retentionPeriod = a} :: GetEventDataStoreResponse)++-- | The status of an event data store. Values can be @ENABLED@ and+-- @PENDING_DELETION@.+getEventDataStoreResponse_status :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe EventDataStoreStatus)+getEventDataStoreResponse_status = Lens.lens (\GetEventDataStoreResponse' {status} -> status) (\s@GetEventDataStoreResponse' {} a -> s {status = a} :: GetEventDataStoreResponse)++-- | Indicates that termination protection is enabled.+getEventDataStoreResponse_terminationProtectionEnabled :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+getEventDataStoreResponse_terminationProtectionEnabled = Lens.lens (\GetEventDataStoreResponse' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@GetEventDataStoreResponse' {} a -> s {terminationProtectionEnabled = a} :: GetEventDataStoreResponse)++-- | Shows the time that an event data store was updated, if applicable.+-- @UpdatedTimestamp@ is always either the same or newer than the time+-- shown in @CreatedTimestamp@.+getEventDataStoreResponse_updatedTimestamp :: Lens.Lens' GetEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+getEventDataStoreResponse_updatedTimestamp = Lens.lens (\GetEventDataStoreResponse' {updatedTimestamp} -> updatedTimestamp) (\s@GetEventDataStoreResponse' {} a -> s {updatedTimestamp = a} :: GetEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+getEventDataStoreResponse_httpStatus :: Lens.Lens' GetEventDataStoreResponse Prelude.Int+getEventDataStoreResponse_httpStatus = Lens.lens (\GetEventDataStoreResponse' {httpStatus} -> httpStatus) (\s@GetEventDataStoreResponse' {} a -> s {httpStatus = a} :: GetEventDataStoreResponse)++instance Prelude.NFData GetEventDataStoreResponse where+  rnf GetEventDataStoreResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf eventDataStoreArn+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetEventSelectors.hs view
@@ -0,0 +1,264 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetEventSelectors+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Describes the settings for the event selectors that you configured for+-- your trail. The information returned for your event selectors includes+-- the following:+--+-- -   If your event selector includes read-only events, write-only events,+--     or all events. This applies to both management events and data+--     events.+--+-- -   If your event selector includes management events.+--+-- -   If your event selector includes data events, the resources on which+--     you are logging data events.+--+-- For more information about logging management and data events, see the+-- following topics in the /CloudTrail User Guide/:+--+-- -   <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html Logging management events for trails>+--+-- -   <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+module Amazonka.CloudTrail.GetEventSelectors+  ( -- * Creating a Request+    GetEventSelectors (..),+    newGetEventSelectors,++    -- * Request Lenses+    getEventSelectors_trailName,++    -- * Destructuring the Response+    GetEventSelectorsResponse (..),+    newGetEventSelectorsResponse,++    -- * Response Lenses+    getEventSelectorsResponse_advancedEventSelectors,+    getEventSelectorsResponse_eventSelectors,+    getEventSelectorsResponse_trailARN,+    getEventSelectorsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetEventSelectors' smart constructor.+data GetEventSelectors = GetEventSelectors'+  { -- | Specifies the name of the trail or trail ARN. If you specify a trail+    -- name, the string 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 not valid.+    --+    -- -   Not be in IP address format (for example, 192.168.5.4)+    --+    -- If you specify a trail ARN, it must be in the format:+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetEventSelectors' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'trailName', 'getEventSelectors_trailName' - Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the format:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newGetEventSelectors ::+  -- | 'trailName'+  Prelude.Text ->+  GetEventSelectors+newGetEventSelectors pTrailName_ =+  GetEventSelectors' {trailName = pTrailName_}++-- | Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the format:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+getEventSelectors_trailName :: Lens.Lens' GetEventSelectors Prelude.Text+getEventSelectors_trailName = Lens.lens (\GetEventSelectors' {trailName} -> trailName) (\s@GetEventSelectors' {} a -> s {trailName = a} :: GetEventSelectors)++instance Core.AWSRequest GetEventSelectors where+  type+    AWSResponse GetEventSelectors =+      GetEventSelectorsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetEventSelectorsResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "EventSelectors" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetEventSelectors where+  hashWithSalt _salt GetEventSelectors' {..} =+    _salt `Prelude.hashWithSalt` trailName++instance Prelude.NFData GetEventSelectors where+  rnf GetEventSelectors' {..} = Prelude.rnf trailName++instance Data.ToHeaders GetEventSelectors where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetEventSelectors" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetEventSelectors where+  toJSON GetEventSelectors' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("TrailName" Data..= trailName)]+      )++instance Data.ToPath GetEventSelectors where+  toPath = Prelude.const "/"++instance Data.ToQuery GetEventSelectors where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetEventSelectorsResponse' smart constructor.+data GetEventSelectorsResponse = GetEventSelectorsResponse'+  { -- | The advanced event selectors that are configured for the trail.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | The event selectors that are configured for the trail.+    eventSelectors :: Prelude.Maybe [EventSelector],+    -- | The specified trail ARN that has the event selectors.+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetEventSelectorsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'getEventSelectorsResponse_advancedEventSelectors' - The advanced event selectors that are configured for the trail.+--+-- 'eventSelectors', 'getEventSelectorsResponse_eventSelectors' - The event selectors that are configured for the trail.+--+-- 'trailARN', 'getEventSelectorsResponse_trailARN' - The specified trail ARN that has the event selectors.+--+-- 'httpStatus', 'getEventSelectorsResponse_httpStatus' - The response's http status code.+newGetEventSelectorsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetEventSelectorsResponse+newGetEventSelectorsResponse pHttpStatus_ =+  GetEventSelectorsResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      eventSelectors = Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The advanced event selectors that are configured for the trail.+getEventSelectorsResponse_advancedEventSelectors :: Lens.Lens' GetEventSelectorsResponse (Prelude.Maybe [AdvancedEventSelector])+getEventSelectorsResponse_advancedEventSelectors = Lens.lens (\GetEventSelectorsResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@GetEventSelectorsResponse' {} a -> s {advancedEventSelectors = a} :: GetEventSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The event selectors that are configured for the trail.+getEventSelectorsResponse_eventSelectors :: Lens.Lens' GetEventSelectorsResponse (Prelude.Maybe [EventSelector])+getEventSelectorsResponse_eventSelectors = Lens.lens (\GetEventSelectorsResponse' {eventSelectors} -> eventSelectors) (\s@GetEventSelectorsResponse' {} a -> s {eventSelectors = a} :: GetEventSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The specified trail ARN that has the event selectors.+getEventSelectorsResponse_trailARN :: Lens.Lens' GetEventSelectorsResponse (Prelude.Maybe Prelude.Text)+getEventSelectorsResponse_trailARN = Lens.lens (\GetEventSelectorsResponse' {trailARN} -> trailARN) (\s@GetEventSelectorsResponse' {} a -> s {trailARN = a} :: GetEventSelectorsResponse)++-- | The response's http status code.+getEventSelectorsResponse_httpStatus :: Lens.Lens' GetEventSelectorsResponse Prelude.Int+getEventSelectorsResponse_httpStatus = Lens.lens (\GetEventSelectorsResponse' {httpStatus} -> httpStatus) (\s@GetEventSelectorsResponse' {} a -> s {httpStatus = a} :: GetEventSelectorsResponse)++instance Prelude.NFData GetEventSelectorsResponse where+  rnf GetEventSelectorsResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf eventSelectors+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetImport.hs view
@@ -0,0 +1,283 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetImport+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about a specific import.+module Amazonka.CloudTrail.GetImport+  ( -- * Creating a Request+    GetImport (..),+    newGetImport,++    -- * Request Lenses+    getImport_importId,++    -- * Destructuring the Response+    GetImportResponse (..),+    newGetImportResponse,++    -- * Response Lenses+    getImportResponse_createdTimestamp,+    getImportResponse_destinations,+    getImportResponse_endEventTime,+    getImportResponse_importId,+    getImportResponse_importSource,+    getImportResponse_importStatistics,+    getImportResponse_importStatus,+    getImportResponse_startEventTime,+    getImportResponse_updatedTimestamp,+    getImportResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetImport' smart constructor.+data GetImport = GetImport'+  { -- | The ID for the import.+    importId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetImport' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'importId', 'getImport_importId' - The ID for the import.+newGetImport ::+  -- | 'importId'+  Prelude.Text ->+  GetImport+newGetImport pImportId_ =+  GetImport' {importId = pImportId_}++-- | The ID for the import.+getImport_importId :: Lens.Lens' GetImport Prelude.Text+getImport_importId = Lens.lens (\GetImport' {importId} -> importId) (\s@GetImport' {} a -> s {importId = a} :: GetImport)++instance Core.AWSRequest GetImport where+  type AWSResponse GetImport = GetImportResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetImportResponse'+            Prelude.<$> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "Destinations")+            Prelude.<*> (x Data..?> "EndEventTime")+            Prelude.<*> (x Data..?> "ImportId")+            Prelude.<*> (x Data..?> "ImportSource")+            Prelude.<*> (x Data..?> "ImportStatistics")+            Prelude.<*> (x Data..?> "ImportStatus")+            Prelude.<*> (x Data..?> "StartEventTime")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetImport where+  hashWithSalt _salt GetImport' {..} =+    _salt `Prelude.hashWithSalt` importId++instance Prelude.NFData GetImport where+  rnf GetImport' {..} = Prelude.rnf importId++instance Data.ToHeaders GetImport where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetImport" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetImport where+  toJSON GetImport' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("ImportId" Data..= importId)]+      )++instance Data.ToPath GetImport where+  toPath = Prelude.const "/"++instance Data.ToQuery GetImport where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetImportResponse' smart constructor.+data GetImportResponse = GetImportResponse'+  { -- | The timestamp of the import\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the destination event data store.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    endEventTime :: Prelude.Maybe Data.POSIX,+    -- | The ID of the import.+    importId :: Prelude.Maybe Prelude.Text,+    -- | The source S3 bucket.+    importSource :: Prelude.Maybe ImportSource,+    -- | Provides statistics for the import. CloudTrail does not update import+    -- statistics in real-time. Returned values for parameters such as+    -- @EventsCompleted@ may be lower than the actual value, because CloudTrail+    -- updates statistics incrementally over the course of the import.+    importStatistics :: Prelude.Maybe ImportStatistics,+    -- | The status of the import.+    importStatus :: Prelude.Maybe ImportStatus,+    -- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    startEventTime :: Prelude.Maybe Data.POSIX,+    -- | The timestamp of when the import was updated.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetImportResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'createdTimestamp', 'getImportResponse_createdTimestamp' - The timestamp of the import\'s creation.+--+-- 'destinations', 'getImportResponse_destinations' - The ARN of the destination event data store.+--+-- 'endEventTime', 'getImportResponse_endEventTime' - Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'importId', 'getImportResponse_importId' - The ID of the import.+--+-- 'importSource', 'getImportResponse_importSource' - The source S3 bucket.+--+-- 'importStatistics', 'getImportResponse_importStatistics' - Provides statistics for the import. CloudTrail does not update import+-- statistics in real-time. Returned values for parameters such as+-- @EventsCompleted@ may be lower than the actual value, because CloudTrail+-- updates statistics incrementally over the course of the import.+--+-- 'importStatus', 'getImportResponse_importStatus' - The status of the import.+--+-- 'startEventTime', 'getImportResponse_startEventTime' - Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'updatedTimestamp', 'getImportResponse_updatedTimestamp' - The timestamp of when the import was updated.+--+-- 'httpStatus', 'getImportResponse_httpStatus' - The response's http status code.+newGetImportResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetImportResponse+newGetImportResponse pHttpStatus_ =+  GetImportResponse'+    { createdTimestamp =+        Prelude.Nothing,+      destinations = Prelude.Nothing,+      endEventTime = Prelude.Nothing,+      importId = Prelude.Nothing,+      importSource = Prelude.Nothing,+      importStatistics = Prelude.Nothing,+      importStatus = Prelude.Nothing,+      startEventTime = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The timestamp of the import\'s creation.+getImportResponse_createdTimestamp :: Lens.Lens' GetImportResponse (Prelude.Maybe Prelude.UTCTime)+getImportResponse_createdTimestamp = Lens.lens (\GetImportResponse' {createdTimestamp} -> createdTimestamp) (\s@GetImportResponse' {} a -> s {createdTimestamp = a} :: GetImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ARN of the destination event data store.+getImportResponse_destinations :: Lens.Lens' GetImportResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+getImportResponse_destinations = Lens.lens (\GetImportResponse' {destinations} -> destinations) (\s@GetImportResponse' {} a -> s {destinations = a} :: GetImportResponse) Prelude.. Lens.mapping Lens.coerced++-- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+getImportResponse_endEventTime :: Lens.Lens' GetImportResponse (Prelude.Maybe Prelude.UTCTime)+getImportResponse_endEventTime = Lens.lens (\GetImportResponse' {endEventTime} -> endEventTime) (\s@GetImportResponse' {} a -> s {endEventTime = a} :: GetImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ID of the import.+getImportResponse_importId :: Lens.Lens' GetImportResponse (Prelude.Maybe Prelude.Text)+getImportResponse_importId = Lens.lens (\GetImportResponse' {importId} -> importId) (\s@GetImportResponse' {} a -> s {importId = a} :: GetImportResponse)++-- | The source S3 bucket.+getImportResponse_importSource :: Lens.Lens' GetImportResponse (Prelude.Maybe ImportSource)+getImportResponse_importSource = Lens.lens (\GetImportResponse' {importSource} -> importSource) (\s@GetImportResponse' {} a -> s {importSource = a} :: GetImportResponse)++-- | Provides statistics for the import. CloudTrail does not update import+-- statistics in real-time. Returned values for parameters such as+-- @EventsCompleted@ may be lower than the actual value, because CloudTrail+-- updates statistics incrementally over the course of the import.+getImportResponse_importStatistics :: Lens.Lens' GetImportResponse (Prelude.Maybe ImportStatistics)+getImportResponse_importStatistics = Lens.lens (\GetImportResponse' {importStatistics} -> importStatistics) (\s@GetImportResponse' {} a -> s {importStatistics = a} :: GetImportResponse)++-- | The status of the import.+getImportResponse_importStatus :: Lens.Lens' GetImportResponse (Prelude.Maybe ImportStatus)+getImportResponse_importStatus = Lens.lens (\GetImportResponse' {importStatus} -> importStatus) (\s@GetImportResponse' {} a -> s {importStatus = a} :: GetImportResponse)++-- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+getImportResponse_startEventTime :: Lens.Lens' GetImportResponse (Prelude.Maybe Prelude.UTCTime)+getImportResponse_startEventTime = Lens.lens (\GetImportResponse' {startEventTime} -> startEventTime) (\s@GetImportResponse' {} a -> s {startEventTime = a} :: GetImportResponse) Prelude.. Lens.mapping Data._Time++-- | The timestamp of when the import was updated.+getImportResponse_updatedTimestamp :: Lens.Lens' GetImportResponse (Prelude.Maybe Prelude.UTCTime)+getImportResponse_updatedTimestamp = Lens.lens (\GetImportResponse' {updatedTimestamp} -> updatedTimestamp) (\s@GetImportResponse' {} a -> s {updatedTimestamp = a} :: GetImportResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+getImportResponse_httpStatus :: Lens.Lens' GetImportResponse Prelude.Int+getImportResponse_httpStatus = Lens.lens (\GetImportResponse' {httpStatus} -> httpStatus) (\s@GetImportResponse' {} a -> s {httpStatus = a} :: GetImportResponse)++instance Prelude.NFData GetImportResponse where+  rnf GetImportResponse' {..} =+    Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf endEventTime+      `Prelude.seq` Prelude.rnf importId+      `Prelude.seq` Prelude.rnf importSource+      `Prelude.seq` Prelude.rnf importStatistics+      `Prelude.seq` Prelude.rnf importStatus+      `Prelude.seq` Prelude.rnf startEventTime+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetInsightSelectors.hs view
@@ -0,0 +1,252 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetInsightSelectors+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Describes the settings for the Insights event selectors that you+-- configured for your trail. @GetInsightSelectors@ shows if CloudTrail+-- Insights event logging is enabled on the trail, and if it is, which+-- insight types are enabled. If you run @GetInsightSelectors@ on a trail+-- that does not have Insights events enabled, the operation throws the+-- exception @InsightNotEnabledException@+--+-- For more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html Logging CloudTrail Insights Events for Trails>+-- in the /CloudTrail User Guide/.+module Amazonka.CloudTrail.GetInsightSelectors+  ( -- * Creating a Request+    GetInsightSelectors (..),+    newGetInsightSelectors,++    -- * Request Lenses+    getInsightSelectors_trailName,++    -- * Destructuring the Response+    GetInsightSelectorsResponse (..),+    newGetInsightSelectorsResponse,++    -- * Response Lenses+    getInsightSelectorsResponse_insightSelectors,+    getInsightSelectorsResponse_trailARN,+    getInsightSelectorsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetInsightSelectors' smart constructor.+data GetInsightSelectors = GetInsightSelectors'+  { -- | Specifies the name of the trail or trail ARN. If you specify a trail+    -- name, the string 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 not valid.+    --+    -- -   Not be in IP address format (for example, 192.168.5.4)+    --+    -- If you specify a trail ARN, it must be in the format:+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetInsightSelectors' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'trailName', 'getInsightSelectors_trailName' - Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the format:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newGetInsightSelectors ::+  -- | 'trailName'+  Prelude.Text ->+  GetInsightSelectors+newGetInsightSelectors pTrailName_ =+  GetInsightSelectors' {trailName = pTrailName_}++-- | Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the format:+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+getInsightSelectors_trailName :: Lens.Lens' GetInsightSelectors Prelude.Text+getInsightSelectors_trailName = Lens.lens (\GetInsightSelectors' {trailName} -> trailName) (\s@GetInsightSelectors' {} a -> s {trailName = a} :: GetInsightSelectors)++instance Core.AWSRequest GetInsightSelectors where+  type+    AWSResponse GetInsightSelectors =+      GetInsightSelectorsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetInsightSelectorsResponse'+            Prelude.<$> ( x+                            Data..?> "InsightSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetInsightSelectors where+  hashWithSalt _salt GetInsightSelectors' {..} =+    _salt `Prelude.hashWithSalt` trailName++instance Prelude.NFData GetInsightSelectors where+  rnf GetInsightSelectors' {..} = Prelude.rnf trailName++instance Data.ToHeaders GetInsightSelectors where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetInsightSelectors" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetInsightSelectors where+  toJSON GetInsightSelectors' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("TrailName" Data..= trailName)]+      )++instance Data.ToPath GetInsightSelectors where+  toPath = Prelude.const "/"++instance Data.ToQuery GetInsightSelectors where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetInsightSelectorsResponse' smart constructor.+data GetInsightSelectorsResponse = GetInsightSelectorsResponse'+  { -- | A JSON string that contains the insight types you want to log on a+    -- trail. In this release, @ApiErrorRateInsight@ and @ApiCallRateInsight@+    -- are supported as insight types.+    insightSelectors :: Prelude.Maybe [InsightSelector],+    -- | The Amazon Resource Name (ARN) of a trail for which you want to get+    -- Insights selectors.+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetInsightSelectorsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'insightSelectors', 'getInsightSelectorsResponse_insightSelectors' - A JSON string that contains the insight types you want to log on a+-- trail. In this release, @ApiErrorRateInsight@ and @ApiCallRateInsight@+-- are supported as insight types.+--+-- 'trailARN', 'getInsightSelectorsResponse_trailARN' - The Amazon Resource Name (ARN) of a trail for which you want to get+-- Insights selectors.+--+-- 'httpStatus', 'getInsightSelectorsResponse_httpStatus' - The response's http status code.+newGetInsightSelectorsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetInsightSelectorsResponse+newGetInsightSelectorsResponse pHttpStatus_ =+  GetInsightSelectorsResponse'+    { insightSelectors =+        Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A JSON string that contains the insight types you want to log on a+-- trail. In this release, @ApiErrorRateInsight@ and @ApiCallRateInsight@+-- are supported as insight types.+getInsightSelectorsResponse_insightSelectors :: Lens.Lens' GetInsightSelectorsResponse (Prelude.Maybe [InsightSelector])+getInsightSelectorsResponse_insightSelectors = Lens.lens (\GetInsightSelectorsResponse' {insightSelectors} -> insightSelectors) (\s@GetInsightSelectorsResponse' {} a -> s {insightSelectors = a} :: GetInsightSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The Amazon Resource Name (ARN) of a trail for which you want to get+-- Insights selectors.+getInsightSelectorsResponse_trailARN :: Lens.Lens' GetInsightSelectorsResponse (Prelude.Maybe Prelude.Text)+getInsightSelectorsResponse_trailARN = Lens.lens (\GetInsightSelectorsResponse' {trailARN} -> trailARN) (\s@GetInsightSelectorsResponse' {} a -> s {trailARN = a} :: GetInsightSelectorsResponse)++-- | The response's http status code.+getInsightSelectorsResponse_httpStatus :: Lens.Lens' GetInsightSelectorsResponse Prelude.Int+getInsightSelectorsResponse_httpStatus = Lens.lens (\GetInsightSelectorsResponse' {httpStatus} -> httpStatus) (\s@GetInsightSelectorsResponse' {} a -> s {httpStatus = a} :: GetInsightSelectorsResponse)++instance Prelude.NFData GetInsightSelectorsResponse where+  rnf GetInsightSelectorsResponse' {..} =+    Prelude.rnf insightSelectors+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetQueryResults.hs view
@@ -0,0 +1,272 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetQueryResults+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets event data results of a query. You must specify the @QueryID@ value+-- returned by the @StartQuery@ operation, and an ARN for @EventDataStore@.+module Amazonka.CloudTrail.GetQueryResults+  ( -- * Creating a Request+    GetQueryResults (..),+    newGetQueryResults,++    -- * Request Lenses+    getQueryResults_eventDataStore,+    getQueryResults_maxQueryResults,+    getQueryResults_nextToken,+    getQueryResults_queryId,++    -- * Destructuring the Response+    GetQueryResultsResponse (..),+    newGetQueryResultsResponse,++    -- * Response Lenses+    getQueryResultsResponse_errorMessage,+    getQueryResultsResponse_nextToken,+    getQueryResultsResponse_queryResultRows,+    getQueryResultsResponse_queryStatistics,+    getQueryResultsResponse_queryStatus,+    getQueryResultsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetQueryResults' smart constructor.+data GetQueryResults = GetQueryResults'+  { -- | The ARN (or ID suffix of the ARN) of the event data store against which+    -- the query was run.+    eventDataStore :: Prelude.Maybe Prelude.Text,+    -- | The maximum number of query results to display on a single page.+    maxQueryResults :: Prelude.Maybe Prelude.Natural,+    -- | A token you can use to get the next page of query results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The ID of the query for which you want to get results.+    queryId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetQueryResults' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'getQueryResults_eventDataStore' - The ARN (or ID suffix of the ARN) of the event data store against which+-- the query was run.+--+-- 'maxQueryResults', 'getQueryResults_maxQueryResults' - The maximum number of query results to display on a single page.+--+-- 'nextToken', 'getQueryResults_nextToken' - A token you can use to get the next page of query results.+--+-- 'queryId', 'getQueryResults_queryId' - The ID of the query for which you want to get results.+newGetQueryResults ::+  -- | 'queryId'+  Prelude.Text ->+  GetQueryResults+newGetQueryResults pQueryId_ =+  GetQueryResults'+    { eventDataStore = Prelude.Nothing,+      maxQueryResults = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      queryId = pQueryId_+    }++-- | The ARN (or ID suffix of the ARN) of the event data store against which+-- the query was run.+getQueryResults_eventDataStore :: Lens.Lens' GetQueryResults (Prelude.Maybe Prelude.Text)+getQueryResults_eventDataStore = Lens.lens (\GetQueryResults' {eventDataStore} -> eventDataStore) (\s@GetQueryResults' {} a -> s {eventDataStore = a} :: GetQueryResults)++-- | The maximum number of query results to display on a single page.+getQueryResults_maxQueryResults :: Lens.Lens' GetQueryResults (Prelude.Maybe Prelude.Natural)+getQueryResults_maxQueryResults = Lens.lens (\GetQueryResults' {maxQueryResults} -> maxQueryResults) (\s@GetQueryResults' {} a -> s {maxQueryResults = a} :: GetQueryResults)++-- | A token you can use to get the next page of query results.+getQueryResults_nextToken :: Lens.Lens' GetQueryResults (Prelude.Maybe Prelude.Text)+getQueryResults_nextToken = Lens.lens (\GetQueryResults' {nextToken} -> nextToken) (\s@GetQueryResults' {} a -> s {nextToken = a} :: GetQueryResults)++-- | The ID of the query for which you want to get results.+getQueryResults_queryId :: Lens.Lens' GetQueryResults Prelude.Text+getQueryResults_queryId = Lens.lens (\GetQueryResults' {queryId} -> queryId) (\s@GetQueryResults' {} a -> s {queryId = a} :: GetQueryResults)++instance Core.AWSRequest GetQueryResults where+  type+    AWSResponse GetQueryResults =+      GetQueryResultsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetQueryResultsResponse'+            Prelude.<$> (x Data..?> "ErrorMessage")+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> ( x+                            Data..?> "QueryResultRows"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "QueryStatistics")+            Prelude.<*> (x Data..?> "QueryStatus")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetQueryResults where+  hashWithSalt _salt GetQueryResults' {..} =+    _salt+      `Prelude.hashWithSalt` eventDataStore+      `Prelude.hashWithSalt` maxQueryResults+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` queryId++instance Prelude.NFData GetQueryResults where+  rnf GetQueryResults' {..} =+    Prelude.rnf eventDataStore+      `Prelude.seq` Prelude.rnf maxQueryResults+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf queryId++instance Data.ToHeaders GetQueryResults where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetQueryResults" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetQueryResults where+  toJSON GetQueryResults' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EventDataStore" Data..=)+              Prelude.<$> eventDataStore,+            ("MaxQueryResults" Data..=)+              Prelude.<$> maxQueryResults,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            Prelude.Just ("QueryId" Data..= queryId)+          ]+      )++instance Data.ToPath GetQueryResults where+  toPath = Prelude.const "/"++instance Data.ToQuery GetQueryResults where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetQueryResultsResponse' smart constructor.+data GetQueryResultsResponse = GetQueryResultsResponse'+  { -- | The error message returned if a query failed.+    errorMessage :: Prelude.Maybe Prelude.Text,+    -- | A token you can use to get the next page of query results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Contains the individual event results of the query.+    queryResultRows :: Prelude.Maybe [[Prelude.HashMap Prelude.Text Prelude.Text]],+    -- | Shows the count of query results.+    queryStatistics :: Prelude.Maybe QueryStatistics,+    -- | The status of the query. Values include @QUEUED@, @RUNNING@, @FINISHED@,+    -- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+    queryStatus :: Prelude.Maybe QueryStatus,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetQueryResultsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'errorMessage', 'getQueryResultsResponse_errorMessage' - The error message returned if a query failed.+--+-- 'nextToken', 'getQueryResultsResponse_nextToken' - A token you can use to get the next page of query results.+--+-- 'queryResultRows', 'getQueryResultsResponse_queryResultRows' - Contains the individual event results of the query.+--+-- 'queryStatistics', 'getQueryResultsResponse_queryStatistics' - Shows the count of query results.+--+-- 'queryStatus', 'getQueryResultsResponse_queryStatus' - The status of the query. Values include @QUEUED@, @RUNNING@, @FINISHED@,+-- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+--+-- 'httpStatus', 'getQueryResultsResponse_httpStatus' - The response's http status code.+newGetQueryResultsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetQueryResultsResponse+newGetQueryResultsResponse pHttpStatus_ =+  GetQueryResultsResponse'+    { errorMessage =+        Prelude.Nothing,+      nextToken = Prelude.Nothing,+      queryResultRows = Prelude.Nothing,+      queryStatistics = Prelude.Nothing,+      queryStatus = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The error message returned if a query failed.+getQueryResultsResponse_errorMessage :: Lens.Lens' GetQueryResultsResponse (Prelude.Maybe Prelude.Text)+getQueryResultsResponse_errorMessage = Lens.lens (\GetQueryResultsResponse' {errorMessage} -> errorMessage) (\s@GetQueryResultsResponse' {} a -> s {errorMessage = a} :: GetQueryResultsResponse)++-- | A token you can use to get the next page of query results.+getQueryResultsResponse_nextToken :: Lens.Lens' GetQueryResultsResponse (Prelude.Maybe Prelude.Text)+getQueryResultsResponse_nextToken = Lens.lens (\GetQueryResultsResponse' {nextToken} -> nextToken) (\s@GetQueryResultsResponse' {} a -> s {nextToken = a} :: GetQueryResultsResponse)++-- | Contains the individual event results of the query.+getQueryResultsResponse_queryResultRows :: Lens.Lens' GetQueryResultsResponse (Prelude.Maybe [[Prelude.HashMap Prelude.Text Prelude.Text]])+getQueryResultsResponse_queryResultRows = Lens.lens (\GetQueryResultsResponse' {queryResultRows} -> queryResultRows) (\s@GetQueryResultsResponse' {} a -> s {queryResultRows = a} :: GetQueryResultsResponse) Prelude.. Lens.mapping Lens.coerced++-- | Shows the count of query results.+getQueryResultsResponse_queryStatistics :: Lens.Lens' GetQueryResultsResponse (Prelude.Maybe QueryStatistics)+getQueryResultsResponse_queryStatistics = Lens.lens (\GetQueryResultsResponse' {queryStatistics} -> queryStatistics) (\s@GetQueryResultsResponse' {} a -> s {queryStatistics = a} :: GetQueryResultsResponse)++-- | The status of the query. Values include @QUEUED@, @RUNNING@, @FINISHED@,+-- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+getQueryResultsResponse_queryStatus :: Lens.Lens' GetQueryResultsResponse (Prelude.Maybe QueryStatus)+getQueryResultsResponse_queryStatus = Lens.lens (\GetQueryResultsResponse' {queryStatus} -> queryStatus) (\s@GetQueryResultsResponse' {} a -> s {queryStatus = a} :: GetQueryResultsResponse)++-- | The response's http status code.+getQueryResultsResponse_httpStatus :: Lens.Lens' GetQueryResultsResponse Prelude.Int+getQueryResultsResponse_httpStatus = Lens.lens (\GetQueryResultsResponse' {httpStatus} -> httpStatus) (\s@GetQueryResultsResponse' {} a -> s {httpStatus = a} :: GetQueryResultsResponse)++instance Prelude.NFData GetQueryResultsResponse where+  rnf GetQueryResultsResponse' {..} =+    Prelude.rnf errorMessage+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf queryResultRows+      `Prelude.seq` Prelude.rnf queryStatistics+      `Prelude.seq` Prelude.rnf queryStatus+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetTrail.hs view
@@ -0,0 +1,166 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns settings information for a specified trail.+module Amazonka.CloudTrail.GetTrail+  ( -- * Creating a Request+    GetTrail (..),+    newGetTrail,++    -- * Request Lenses+    getTrail_name,++    -- * Destructuring the Response+    GetTrailResponse (..),+    newGetTrailResponse,++    -- * Response Lenses+    getTrailResponse_trail,+    getTrailResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetTrail' smart constructor.+data GetTrail = GetTrail'+  { -- | The name or the Amazon Resource Name (ARN) of the trail for which you+    -- want to retrieve settings information.+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetTrail' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'getTrail_name' - The name or the Amazon Resource Name (ARN) of the trail for which you+-- want to retrieve settings information.+newGetTrail ::+  -- | 'name'+  Prelude.Text ->+  GetTrail+newGetTrail pName_ = GetTrail' {name = pName_}++-- | The name or the Amazon Resource Name (ARN) of the trail for which you+-- want to retrieve settings information.+getTrail_name :: Lens.Lens' GetTrail Prelude.Text+getTrail_name = Lens.lens (\GetTrail' {name} -> name) (\s@GetTrail' {} a -> s {name = a} :: GetTrail)++instance Core.AWSRequest GetTrail where+  type AWSResponse GetTrail = GetTrailResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetTrailResponse'+            Prelude.<$> (x Data..?> "Trail")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetTrail where+  hashWithSalt _salt GetTrail' {..} =+    _salt `Prelude.hashWithSalt` name++instance Prelude.NFData GetTrail where+  rnf GetTrail' {..} = Prelude.rnf name++instance Data.ToHeaders GetTrail where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrail" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetTrail where+  toJSON GetTrail' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Name" Data..= name)]+      )++instance Data.ToPath GetTrail where+  toPath = Prelude.const "/"++instance Data.ToQuery GetTrail where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetTrailResponse' smart constructor.+data GetTrailResponse = GetTrailResponse'+  { trail :: Prelude.Maybe Trail,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetTrailResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'trail', 'getTrailResponse_trail' - Undocumented member.+--+-- 'httpStatus', 'getTrailResponse_httpStatus' - The response's http status code.+newGetTrailResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetTrailResponse+newGetTrailResponse pHttpStatus_ =+  GetTrailResponse'+    { trail = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Undocumented member.+getTrailResponse_trail :: Lens.Lens' GetTrailResponse (Prelude.Maybe Trail)+getTrailResponse_trail = Lens.lens (\GetTrailResponse' {trail} -> trail) (\s@GetTrailResponse' {} a -> s {trail = a} :: GetTrailResponse)++-- | The response's http status code.+getTrailResponse_httpStatus :: Lens.Lens' GetTrailResponse Prelude.Int+getTrailResponse_httpStatus = Lens.lens (\GetTrailResponse' {httpStatus} -> httpStatus) (\s@GetTrailResponse' {} a -> s {httpStatus = a} :: GetTrailResponse)++instance Prelude.NFData GetTrailResponse where+  rnf GetTrailResponse' {..} =+    Prelude.rnf trail+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/GetTrailStatus.hs view
@@ -0,0 +1,478 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.GetTrailStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a JSON-formatted list of information about the specified trail.+-- Fields include information on delivery errors, Amazon SNS and Amazon S3+-- errors, and start and stop logging times for each trail. This operation+-- returns trail status from a single region. To return trail status from+-- all regions, you must call the operation on each region.+module Amazonka.CloudTrail.GetTrailStatus+  ( -- * Creating a Request+    GetTrailStatus (..),+    newGetTrailStatus,++    -- * Request Lenses+    getTrailStatus_name,++    -- * Destructuring the Response+    GetTrailStatusResponse (..),+    newGetTrailStatusResponse,++    -- * Response Lenses+    getTrailStatusResponse_isLogging,+    getTrailStatusResponse_latestCloudWatchLogsDeliveryError,+    getTrailStatusResponse_latestCloudWatchLogsDeliveryTime,+    getTrailStatusResponse_latestDeliveryAttemptSucceeded,+    getTrailStatusResponse_latestDeliveryAttemptTime,+    getTrailStatusResponse_latestDeliveryError,+    getTrailStatusResponse_latestDeliveryTime,+    getTrailStatusResponse_latestDigestDeliveryError,+    getTrailStatusResponse_latestDigestDeliveryTime,+    getTrailStatusResponse_latestNotificationAttemptSucceeded,+    getTrailStatusResponse_latestNotificationAttemptTime,+    getTrailStatusResponse_latestNotificationError,+    getTrailStatusResponse_latestNotificationTime,+    getTrailStatusResponse_startLoggingTime,+    getTrailStatusResponse_stopLoggingTime,+    getTrailStatusResponse_timeLoggingStarted,+    getTrailStatusResponse_timeLoggingStopped,+    getTrailStatusResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | The name of a trail about which you want the current status.+--+-- /See:/ 'newGetTrailStatus' smart constructor.+data GetTrailStatus = GetTrailStatus'+  { -- | Specifies the name or the CloudTrail ARN of the trail for which you are+    -- requesting status. To get the status of a shadow trail (a replication of+    -- the trail in another region), you must specify its ARN. The following is+    -- the format of a trail ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetTrailStatus' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'getTrailStatus_name' - Specifies the name or the CloudTrail ARN of the trail for which you are+-- requesting status. To get the status of a shadow trail (a replication of+-- the trail in another region), you must specify its ARN. The following is+-- the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newGetTrailStatus ::+  -- | 'name'+  Prelude.Text ->+  GetTrailStatus+newGetTrailStatus pName_ =+  GetTrailStatus' {name = pName_}++-- | Specifies the name or the CloudTrail ARN of the trail for which you are+-- requesting status. To get the status of a shadow trail (a replication of+-- the trail in another region), you must specify its ARN. The following is+-- the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+getTrailStatus_name :: Lens.Lens' GetTrailStatus Prelude.Text+getTrailStatus_name = Lens.lens (\GetTrailStatus' {name} -> name) (\s@GetTrailStatus' {} a -> s {name = a} :: GetTrailStatus)++instance Core.AWSRequest GetTrailStatus where+  type+    AWSResponse GetTrailStatus =+      GetTrailStatusResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetTrailStatusResponse'+            Prelude.<$> (x Data..?> "IsLogging")+            Prelude.<*> (x Data..?> "LatestCloudWatchLogsDeliveryError")+            Prelude.<*> (x Data..?> "LatestCloudWatchLogsDeliveryTime")+            Prelude.<*> (x Data..?> "LatestDeliveryAttemptSucceeded")+            Prelude.<*> (x Data..?> "LatestDeliveryAttemptTime")+            Prelude.<*> (x Data..?> "LatestDeliveryError")+            Prelude.<*> (x Data..?> "LatestDeliveryTime")+            Prelude.<*> (x Data..?> "LatestDigestDeliveryError")+            Prelude.<*> (x Data..?> "LatestDigestDeliveryTime")+            Prelude.<*> (x Data..?> "LatestNotificationAttemptSucceeded")+            Prelude.<*> (x Data..?> "LatestNotificationAttemptTime")+            Prelude.<*> (x Data..?> "LatestNotificationError")+            Prelude.<*> (x Data..?> "LatestNotificationTime")+            Prelude.<*> (x Data..?> "StartLoggingTime")+            Prelude.<*> (x Data..?> "StopLoggingTime")+            Prelude.<*> (x Data..?> "TimeLoggingStarted")+            Prelude.<*> (x Data..?> "TimeLoggingStopped")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetTrailStatus where+  hashWithSalt _salt GetTrailStatus' {..} =+    _salt `Prelude.hashWithSalt` name++instance Prelude.NFData GetTrailStatus where+  rnf GetTrailStatus' {..} = Prelude.rnf name++instance Data.ToHeaders GetTrailStatus where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrailStatus" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetTrailStatus where+  toJSON GetTrailStatus' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Name" Data..= name)]+      )++instance Data.ToPath GetTrailStatus where+  toPath = Prelude.const "/"++instance Data.ToQuery GetTrailStatus where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newGetTrailStatusResponse' smart constructor.+data GetTrailStatusResponse = GetTrailStatusResponse'+  { -- | Whether the CloudTrail trail is currently logging Amazon Web Services+    -- API calls.+    isLogging :: Prelude.Maybe Prelude.Bool,+    -- | Displays any CloudWatch Logs error that CloudTrail encountered when+    -- attempting to deliver logs to CloudWatch Logs.+    latestCloudWatchLogsDeliveryError :: Prelude.Maybe Prelude.Text,+    -- | Displays the most recent date and time when CloudTrail delivered logs to+    -- CloudWatch Logs.+    latestCloudWatchLogsDeliveryTime :: Prelude.Maybe Data.POSIX,+    -- | This field is no longer in use.+    latestDeliveryAttemptSucceeded :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use.+    latestDeliveryAttemptTime :: Prelude.Maybe Prelude.Text,+    -- | Displays any Amazon S3 error that CloudTrail encountered when attempting+    -- to deliver log files to the designated bucket. For more information, see+    -- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+    -- in the Amazon S3 API Reference.+    --+    -- This error occurs only when there is a problem with the destination S3+    -- bucket, and does not occur for requests that time out. To resolve the+    -- issue, create a new bucket, and then call @UpdateTrail@ to specify the+    -- new bucket; or fix the existing objects so that CloudTrail can again+    -- write to the bucket.+    latestDeliveryError :: Prelude.Maybe Prelude.Text,+    -- | Specifies the date and time that CloudTrail last delivered log files to+    -- an account\'s Amazon S3 bucket.+    latestDeliveryTime :: Prelude.Maybe Data.POSIX,+    -- | Displays any Amazon S3 error that CloudTrail encountered when attempting+    -- to deliver a digest file to the designated bucket. For more information,+    -- see+    -- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+    -- in the Amazon S3 API Reference.+    --+    -- This error occurs only when there is a problem with the destination S3+    -- bucket, and does not occur for requests that time out. To resolve the+    -- issue, create a new bucket, and then call @UpdateTrail@ to specify the+    -- new bucket; or fix the existing objects so that CloudTrail can again+    -- write to the bucket.+    latestDigestDeliveryError :: Prelude.Maybe Prelude.Text,+    -- | Specifies the date and time that CloudTrail last delivered a digest file+    -- to an account\'s Amazon S3 bucket.+    latestDigestDeliveryTime :: Prelude.Maybe Data.POSIX,+    -- | This field is no longer in use.+    latestNotificationAttemptSucceeded :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use.+    latestNotificationAttemptTime :: Prelude.Maybe Prelude.Text,+    -- | Displays any Amazon SNS error that CloudTrail encountered when+    -- attempting to send a notification. For more information about Amazon SNS+    -- errors, see the+    -- <https://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide>.+    latestNotificationError :: Prelude.Maybe Prelude.Text,+    -- | Specifies the date and time of the most recent Amazon SNS notification+    -- that CloudTrail has written a new log file to an account\'s Amazon S3+    -- bucket.+    latestNotificationTime :: Prelude.Maybe Data.POSIX,+    -- | Specifies the most recent date and time when CloudTrail started+    -- recording API calls for an Amazon Web Services account.+    startLoggingTime :: Prelude.Maybe Data.POSIX,+    -- | Specifies the most recent date and time when CloudTrail stopped+    -- recording API calls for an Amazon Web Services account.+    stopLoggingTime :: Prelude.Maybe Data.POSIX,+    -- | This field is no longer in use.+    timeLoggingStarted :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use.+    timeLoggingStopped :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetTrailStatusResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'isLogging', 'getTrailStatusResponse_isLogging' - Whether the CloudTrail trail is currently logging Amazon Web Services+-- API calls.+--+-- 'latestCloudWatchLogsDeliveryError', 'getTrailStatusResponse_latestCloudWatchLogsDeliveryError' - Displays any CloudWatch Logs error that CloudTrail encountered when+-- attempting to deliver logs to CloudWatch Logs.+--+-- 'latestCloudWatchLogsDeliveryTime', 'getTrailStatusResponse_latestCloudWatchLogsDeliveryTime' - Displays the most recent date and time when CloudTrail delivered logs to+-- CloudWatch Logs.+--+-- 'latestDeliveryAttemptSucceeded', 'getTrailStatusResponse_latestDeliveryAttemptSucceeded' - This field is no longer in use.+--+-- 'latestDeliveryAttemptTime', 'getTrailStatusResponse_latestDeliveryAttemptTime' - This field is no longer in use.+--+-- 'latestDeliveryError', 'getTrailStatusResponse_latestDeliveryError' - Displays any Amazon S3 error that CloudTrail encountered when attempting+-- to deliver log files to the designated bucket. For more information, see+-- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+-- in the Amazon S3 API Reference.+--+-- This error occurs only when there is a problem with the destination S3+-- bucket, and does not occur for requests that time out. To resolve the+-- issue, create a new bucket, and then call @UpdateTrail@ to specify the+-- new bucket; or fix the existing objects so that CloudTrail can again+-- write to the bucket.+--+-- 'latestDeliveryTime', 'getTrailStatusResponse_latestDeliveryTime' - Specifies the date and time that CloudTrail last delivered log files to+-- an account\'s Amazon S3 bucket.+--+-- 'latestDigestDeliveryError', 'getTrailStatusResponse_latestDigestDeliveryError' - Displays any Amazon S3 error that CloudTrail encountered when attempting+-- to deliver a digest file to the designated bucket. For more information,+-- see+-- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+-- in the Amazon S3 API Reference.+--+-- This error occurs only when there is a problem with the destination S3+-- bucket, and does not occur for requests that time out. To resolve the+-- issue, create a new bucket, and then call @UpdateTrail@ to specify the+-- new bucket; or fix the existing objects so that CloudTrail can again+-- write to the bucket.+--+-- 'latestDigestDeliveryTime', 'getTrailStatusResponse_latestDigestDeliveryTime' - Specifies the date and time that CloudTrail last delivered a digest file+-- to an account\'s Amazon S3 bucket.+--+-- 'latestNotificationAttemptSucceeded', 'getTrailStatusResponse_latestNotificationAttemptSucceeded' - This field is no longer in use.+--+-- 'latestNotificationAttemptTime', 'getTrailStatusResponse_latestNotificationAttemptTime' - This field is no longer in use.+--+-- 'latestNotificationError', 'getTrailStatusResponse_latestNotificationError' - Displays any Amazon SNS error that CloudTrail encountered when+-- attempting to send a notification. For more information about Amazon SNS+-- errors, see the+-- <https://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide>.+--+-- 'latestNotificationTime', 'getTrailStatusResponse_latestNotificationTime' - Specifies the date and time of the most recent Amazon SNS notification+-- that CloudTrail has written a new log file to an account\'s Amazon S3+-- bucket.+--+-- 'startLoggingTime', 'getTrailStatusResponse_startLoggingTime' - Specifies the most recent date and time when CloudTrail started+-- recording API calls for an Amazon Web Services account.+--+-- 'stopLoggingTime', 'getTrailStatusResponse_stopLoggingTime' - Specifies the most recent date and time when CloudTrail stopped+-- recording API calls for an Amazon Web Services account.+--+-- 'timeLoggingStarted', 'getTrailStatusResponse_timeLoggingStarted' - This field is no longer in use.+--+-- 'timeLoggingStopped', 'getTrailStatusResponse_timeLoggingStopped' - This field is no longer in use.+--+-- 'httpStatus', 'getTrailStatusResponse_httpStatus' - The response's http status code.+newGetTrailStatusResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetTrailStatusResponse+newGetTrailStatusResponse pHttpStatus_ =+  GetTrailStatusResponse'+    { isLogging =+        Prelude.Nothing,+      latestCloudWatchLogsDeliveryError = Prelude.Nothing,+      latestCloudWatchLogsDeliveryTime = Prelude.Nothing,+      latestDeliveryAttemptSucceeded = Prelude.Nothing,+      latestDeliveryAttemptTime = Prelude.Nothing,+      latestDeliveryError = Prelude.Nothing,+      latestDeliveryTime = Prelude.Nothing,+      latestDigestDeliveryError = Prelude.Nothing,+      latestDigestDeliveryTime = Prelude.Nothing,+      latestNotificationAttemptSucceeded =+        Prelude.Nothing,+      latestNotificationAttemptTime = Prelude.Nothing,+      latestNotificationError = Prelude.Nothing,+      latestNotificationTime = Prelude.Nothing,+      startLoggingTime = Prelude.Nothing,+      stopLoggingTime = Prelude.Nothing,+      timeLoggingStarted = Prelude.Nothing,+      timeLoggingStopped = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Whether the CloudTrail trail is currently logging Amazon Web Services+-- API calls.+getTrailStatusResponse_isLogging :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Bool)+getTrailStatusResponse_isLogging = Lens.lens (\GetTrailStatusResponse' {isLogging} -> isLogging) (\s@GetTrailStatusResponse' {} a -> s {isLogging = a} :: GetTrailStatusResponse)++-- | Displays any CloudWatch Logs error that CloudTrail encountered when+-- attempting to deliver logs to CloudWatch Logs.+getTrailStatusResponse_latestCloudWatchLogsDeliveryError :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestCloudWatchLogsDeliveryError = Lens.lens (\GetTrailStatusResponse' {latestCloudWatchLogsDeliveryError} -> latestCloudWatchLogsDeliveryError) (\s@GetTrailStatusResponse' {} a -> s {latestCloudWatchLogsDeliveryError = a} :: GetTrailStatusResponse)++-- | Displays the most recent date and time when CloudTrail delivered logs to+-- CloudWatch Logs.+getTrailStatusResponse_latestCloudWatchLogsDeliveryTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_latestCloudWatchLogsDeliveryTime = Lens.lens (\GetTrailStatusResponse' {latestCloudWatchLogsDeliveryTime} -> latestCloudWatchLogsDeliveryTime) (\s@GetTrailStatusResponse' {} a -> s {latestCloudWatchLogsDeliveryTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | This field is no longer in use.+getTrailStatusResponse_latestDeliveryAttemptSucceeded :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestDeliveryAttemptSucceeded = Lens.lens (\GetTrailStatusResponse' {latestDeliveryAttemptSucceeded} -> latestDeliveryAttemptSucceeded) (\s@GetTrailStatusResponse' {} a -> s {latestDeliveryAttemptSucceeded = a} :: GetTrailStatusResponse)++-- | This field is no longer in use.+getTrailStatusResponse_latestDeliveryAttemptTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestDeliveryAttemptTime = Lens.lens (\GetTrailStatusResponse' {latestDeliveryAttemptTime} -> latestDeliveryAttemptTime) (\s@GetTrailStatusResponse' {} a -> s {latestDeliveryAttemptTime = a} :: GetTrailStatusResponse)++-- | Displays any Amazon S3 error that CloudTrail encountered when attempting+-- to deliver log files to the designated bucket. For more information, see+-- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+-- in the Amazon S3 API Reference.+--+-- This error occurs only when there is a problem with the destination S3+-- bucket, and does not occur for requests that time out. To resolve the+-- issue, create a new bucket, and then call @UpdateTrail@ to specify the+-- new bucket; or fix the existing objects so that CloudTrail can again+-- write to the bucket.+getTrailStatusResponse_latestDeliveryError :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestDeliveryError = Lens.lens (\GetTrailStatusResponse' {latestDeliveryError} -> latestDeliveryError) (\s@GetTrailStatusResponse' {} a -> s {latestDeliveryError = a} :: GetTrailStatusResponse)++-- | Specifies the date and time that CloudTrail last delivered log files to+-- an account\'s Amazon S3 bucket.+getTrailStatusResponse_latestDeliveryTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_latestDeliveryTime = Lens.lens (\GetTrailStatusResponse' {latestDeliveryTime} -> latestDeliveryTime) (\s@GetTrailStatusResponse' {} a -> s {latestDeliveryTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | Displays any Amazon S3 error that CloudTrail encountered when attempting+-- to deliver a digest file to the designated bucket. For more information,+-- see+-- <https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses>+-- in the Amazon S3 API Reference.+--+-- This error occurs only when there is a problem with the destination S3+-- bucket, and does not occur for requests that time out. To resolve the+-- issue, create a new bucket, and then call @UpdateTrail@ to specify the+-- new bucket; or fix the existing objects so that CloudTrail can again+-- write to the bucket.+getTrailStatusResponse_latestDigestDeliveryError :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestDigestDeliveryError = Lens.lens (\GetTrailStatusResponse' {latestDigestDeliveryError} -> latestDigestDeliveryError) (\s@GetTrailStatusResponse' {} a -> s {latestDigestDeliveryError = a} :: GetTrailStatusResponse)++-- | Specifies the date and time that CloudTrail last delivered a digest file+-- to an account\'s Amazon S3 bucket.+getTrailStatusResponse_latestDigestDeliveryTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_latestDigestDeliveryTime = Lens.lens (\GetTrailStatusResponse' {latestDigestDeliveryTime} -> latestDigestDeliveryTime) (\s@GetTrailStatusResponse' {} a -> s {latestDigestDeliveryTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | This field is no longer in use.+getTrailStatusResponse_latestNotificationAttemptSucceeded :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestNotificationAttemptSucceeded = Lens.lens (\GetTrailStatusResponse' {latestNotificationAttemptSucceeded} -> latestNotificationAttemptSucceeded) (\s@GetTrailStatusResponse' {} a -> s {latestNotificationAttemptSucceeded = a} :: GetTrailStatusResponse)++-- | This field is no longer in use.+getTrailStatusResponse_latestNotificationAttemptTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestNotificationAttemptTime = Lens.lens (\GetTrailStatusResponse' {latestNotificationAttemptTime} -> latestNotificationAttemptTime) (\s@GetTrailStatusResponse' {} a -> s {latestNotificationAttemptTime = a} :: GetTrailStatusResponse)++-- | Displays any Amazon SNS error that CloudTrail encountered when+-- attempting to send a notification. For more information about Amazon SNS+-- errors, see the+-- <https://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide>.+getTrailStatusResponse_latestNotificationError :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_latestNotificationError = Lens.lens (\GetTrailStatusResponse' {latestNotificationError} -> latestNotificationError) (\s@GetTrailStatusResponse' {} a -> s {latestNotificationError = a} :: GetTrailStatusResponse)++-- | Specifies the date and time of the most recent Amazon SNS notification+-- that CloudTrail has written a new log file to an account\'s Amazon S3+-- bucket.+getTrailStatusResponse_latestNotificationTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_latestNotificationTime = Lens.lens (\GetTrailStatusResponse' {latestNotificationTime} -> latestNotificationTime) (\s@GetTrailStatusResponse' {} a -> s {latestNotificationTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | Specifies the most recent date and time when CloudTrail started+-- recording API calls for an Amazon Web Services account.+getTrailStatusResponse_startLoggingTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_startLoggingTime = Lens.lens (\GetTrailStatusResponse' {startLoggingTime} -> startLoggingTime) (\s@GetTrailStatusResponse' {} a -> s {startLoggingTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | Specifies the most recent date and time when CloudTrail stopped+-- recording API calls for an Amazon Web Services account.+getTrailStatusResponse_stopLoggingTime :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.UTCTime)+getTrailStatusResponse_stopLoggingTime = Lens.lens (\GetTrailStatusResponse' {stopLoggingTime} -> stopLoggingTime) (\s@GetTrailStatusResponse' {} a -> s {stopLoggingTime = a} :: GetTrailStatusResponse) Prelude.. Lens.mapping Data._Time++-- | This field is no longer in use.+getTrailStatusResponse_timeLoggingStarted :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_timeLoggingStarted = Lens.lens (\GetTrailStatusResponse' {timeLoggingStarted} -> timeLoggingStarted) (\s@GetTrailStatusResponse' {} a -> s {timeLoggingStarted = a} :: GetTrailStatusResponse)++-- | This field is no longer in use.+getTrailStatusResponse_timeLoggingStopped :: Lens.Lens' GetTrailStatusResponse (Prelude.Maybe Prelude.Text)+getTrailStatusResponse_timeLoggingStopped = Lens.lens (\GetTrailStatusResponse' {timeLoggingStopped} -> timeLoggingStopped) (\s@GetTrailStatusResponse' {} a -> s {timeLoggingStopped = a} :: GetTrailStatusResponse)++-- | The response's http status code.+getTrailStatusResponse_httpStatus :: Lens.Lens' GetTrailStatusResponse Prelude.Int+getTrailStatusResponse_httpStatus = Lens.lens (\GetTrailStatusResponse' {httpStatus} -> httpStatus) (\s@GetTrailStatusResponse' {} a -> s {httpStatus = a} :: GetTrailStatusResponse)++instance Prelude.NFData GetTrailStatusResponse where+  rnf GetTrailStatusResponse' {..} =+    Prelude.rnf isLogging+      `Prelude.seq` Prelude.rnf latestCloudWatchLogsDeliveryError+      `Prelude.seq` Prelude.rnf latestCloudWatchLogsDeliveryTime+      `Prelude.seq` Prelude.rnf latestDeliveryAttemptSucceeded+      `Prelude.seq` Prelude.rnf latestDeliveryAttemptTime+      `Prelude.seq` Prelude.rnf latestDeliveryError+      `Prelude.seq` Prelude.rnf latestDeliveryTime+      `Prelude.seq` Prelude.rnf latestDigestDeliveryError+      `Prelude.seq` Prelude.rnf latestDigestDeliveryTime+      `Prelude.seq` Prelude.rnf latestNotificationAttemptSucceeded+      `Prelude.seq` Prelude.rnf latestNotificationAttemptTime+      `Prelude.seq` Prelude.rnf latestNotificationError+      `Prelude.seq` Prelude.rnf latestNotificationTime+      `Prelude.seq` Prelude.rnf startLoggingTime+      `Prelude.seq` Prelude.rnf stopLoggingTime+      `Prelude.seq` Prelude.rnf timeLoggingStarted+      `Prelude.seq` Prelude.rnf timeLoggingStopped+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/Lens.hs view
@@ -0,0 +1,622 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Lens+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Lens+  ( -- * Operations++    -- ** AddTags+    addTags_resourceId,+    addTags_tagsList,+    addTagsResponse_httpStatus,++    -- ** CancelQuery+    cancelQuery_eventDataStore,+    cancelQuery_queryId,+    cancelQueryResponse_httpStatus,+    cancelQueryResponse_queryId,+    cancelQueryResponse_queryStatus,++    -- ** CreateEventDataStore+    createEventDataStore_advancedEventSelectors,+    createEventDataStore_kmsKeyId,+    createEventDataStore_multiRegionEnabled,+    createEventDataStore_organizationEnabled,+    createEventDataStore_retentionPeriod,+    createEventDataStore_tagsList,+    createEventDataStore_terminationProtectionEnabled,+    createEventDataStore_name,+    createEventDataStoreResponse_advancedEventSelectors,+    createEventDataStoreResponse_createdTimestamp,+    createEventDataStoreResponse_eventDataStoreArn,+    createEventDataStoreResponse_kmsKeyId,+    createEventDataStoreResponse_multiRegionEnabled,+    createEventDataStoreResponse_name,+    createEventDataStoreResponse_organizationEnabled,+    createEventDataStoreResponse_retentionPeriod,+    createEventDataStoreResponse_status,+    createEventDataStoreResponse_tagsList,+    createEventDataStoreResponse_terminationProtectionEnabled,+    createEventDataStoreResponse_updatedTimestamp,+    createEventDataStoreResponse_httpStatus,++    -- ** CreateTrail+    createTrail_cloudWatchLogsLogGroupArn,+    createTrail_cloudWatchLogsRoleArn,+    createTrail_enableLogFileValidation,+    createTrail_includeGlobalServiceEvents,+    createTrail_isMultiRegionTrail,+    createTrail_isOrganizationTrail,+    createTrail_kmsKeyId,+    createTrail_s3KeyPrefix,+    createTrail_snsTopicName,+    createTrail_tagsList,+    createTrail_name,+    createTrail_s3BucketName,+    createTrailResponse_cloudWatchLogsLogGroupArn,+    createTrailResponse_cloudWatchLogsRoleArn,+    createTrailResponse_includeGlobalServiceEvents,+    createTrailResponse_isMultiRegionTrail,+    createTrailResponse_isOrganizationTrail,+    createTrailResponse_kmsKeyId,+    createTrailResponse_logFileValidationEnabled,+    createTrailResponse_name,+    createTrailResponse_s3BucketName,+    createTrailResponse_s3KeyPrefix,+    createTrailResponse_snsTopicARN,+    createTrailResponse_snsTopicName,+    createTrailResponse_trailARN,+    createTrailResponse_httpStatus,++    -- ** DeleteEventDataStore+    deleteEventDataStore_eventDataStore,+    deleteEventDataStoreResponse_httpStatus,++    -- ** DeleteTrail+    deleteTrail_name,+    deleteTrailResponse_httpStatus,++    -- ** DeregisterOrganizationDelegatedAdmin+    deregisterOrganizationDelegatedAdmin_delegatedAdminAccountId,+    deregisterOrganizationDelegatedAdminResponse_httpStatus,++    -- ** DescribeQuery+    describeQuery_eventDataStore,+    describeQuery_queryId,+    describeQueryResponse_deliveryS3Uri,+    describeQueryResponse_deliveryStatus,+    describeQueryResponse_errorMessage,+    describeQueryResponse_queryId,+    describeQueryResponse_queryStatistics,+    describeQueryResponse_queryStatus,+    describeQueryResponse_queryString,+    describeQueryResponse_httpStatus,++    -- ** DescribeTrails+    describeTrails_includeShadowTrails,+    describeTrails_trailNameList,+    describeTrailsResponse_trailList,+    describeTrailsResponse_httpStatus,++    -- ** GetChannel+    getChannel_channel,+    getChannelResponse_channelArn,+    getChannelResponse_destinations,+    getChannelResponse_name,+    getChannelResponse_source,+    getChannelResponse_sourceConfig,+    getChannelResponse_httpStatus,++    -- ** GetEventDataStore+    getEventDataStore_eventDataStore,+    getEventDataStoreResponse_advancedEventSelectors,+    getEventDataStoreResponse_createdTimestamp,+    getEventDataStoreResponse_eventDataStoreArn,+    getEventDataStoreResponse_kmsKeyId,+    getEventDataStoreResponse_multiRegionEnabled,+    getEventDataStoreResponse_name,+    getEventDataStoreResponse_organizationEnabled,+    getEventDataStoreResponse_retentionPeriod,+    getEventDataStoreResponse_status,+    getEventDataStoreResponse_terminationProtectionEnabled,+    getEventDataStoreResponse_updatedTimestamp,+    getEventDataStoreResponse_httpStatus,++    -- ** GetEventSelectors+    getEventSelectors_trailName,+    getEventSelectorsResponse_advancedEventSelectors,+    getEventSelectorsResponse_eventSelectors,+    getEventSelectorsResponse_trailARN,+    getEventSelectorsResponse_httpStatus,++    -- ** GetImport+    getImport_importId,+    getImportResponse_createdTimestamp,+    getImportResponse_destinations,+    getImportResponse_endEventTime,+    getImportResponse_importId,+    getImportResponse_importSource,+    getImportResponse_importStatistics,+    getImportResponse_importStatus,+    getImportResponse_startEventTime,+    getImportResponse_updatedTimestamp,+    getImportResponse_httpStatus,++    -- ** GetInsightSelectors+    getInsightSelectors_trailName,+    getInsightSelectorsResponse_insightSelectors,+    getInsightSelectorsResponse_trailARN,+    getInsightSelectorsResponse_httpStatus,++    -- ** GetQueryResults+    getQueryResults_eventDataStore,+    getQueryResults_maxQueryResults,+    getQueryResults_nextToken,+    getQueryResults_queryId,+    getQueryResultsResponse_errorMessage,+    getQueryResultsResponse_nextToken,+    getQueryResultsResponse_queryResultRows,+    getQueryResultsResponse_queryStatistics,+    getQueryResultsResponse_queryStatus,+    getQueryResultsResponse_httpStatus,++    -- ** GetTrail+    getTrail_name,+    getTrailResponse_trail,+    getTrailResponse_httpStatus,++    -- ** GetTrailStatus+    getTrailStatus_name,+    getTrailStatusResponse_isLogging,+    getTrailStatusResponse_latestCloudWatchLogsDeliveryError,+    getTrailStatusResponse_latestCloudWatchLogsDeliveryTime,+    getTrailStatusResponse_latestDeliveryAttemptSucceeded,+    getTrailStatusResponse_latestDeliveryAttemptTime,+    getTrailStatusResponse_latestDeliveryError,+    getTrailStatusResponse_latestDeliveryTime,+    getTrailStatusResponse_latestDigestDeliveryError,+    getTrailStatusResponse_latestDigestDeliveryTime,+    getTrailStatusResponse_latestNotificationAttemptSucceeded,+    getTrailStatusResponse_latestNotificationAttemptTime,+    getTrailStatusResponse_latestNotificationError,+    getTrailStatusResponse_latestNotificationTime,+    getTrailStatusResponse_startLoggingTime,+    getTrailStatusResponse_stopLoggingTime,+    getTrailStatusResponse_timeLoggingStarted,+    getTrailStatusResponse_timeLoggingStopped,+    getTrailStatusResponse_httpStatus,++    -- ** ListChannels+    listChannels_maxResults,+    listChannels_nextToken,+    listChannelsResponse_channels,+    listChannelsResponse_nextToken,+    listChannelsResponse_httpStatus,++    -- ** ListEventDataStores+    listEventDataStores_maxResults,+    listEventDataStores_nextToken,+    listEventDataStoresResponse_eventDataStores,+    listEventDataStoresResponse_nextToken,+    listEventDataStoresResponse_httpStatus,++    -- ** ListImportFailures+    listImportFailures_maxResults,+    listImportFailures_nextToken,+    listImportFailures_importId,+    listImportFailuresResponse_failures,+    listImportFailuresResponse_nextToken,+    listImportFailuresResponse_httpStatus,++    -- ** ListImports+    listImports_destination,+    listImports_importStatus,+    listImports_maxResults,+    listImports_nextToken,+    listImportsResponse_imports,+    listImportsResponse_nextToken,+    listImportsResponse_httpStatus,++    -- ** ListPublicKeys+    listPublicKeys_endTime,+    listPublicKeys_nextToken,+    listPublicKeys_startTime,+    listPublicKeysResponse_nextToken,+    listPublicKeysResponse_publicKeyList,+    listPublicKeysResponse_httpStatus,++    -- ** ListQueries+    listQueries_endTime,+    listQueries_maxResults,+    listQueries_nextToken,+    listQueries_queryStatus,+    listQueries_startTime,+    listQueries_eventDataStore,+    listQueriesResponse_nextToken,+    listQueriesResponse_queries,+    listQueriesResponse_httpStatus,++    -- ** ListTags+    listTags_nextToken,+    listTags_resourceIdList,+    listTagsResponse_nextToken,+    listTagsResponse_resourceTagList,+    listTagsResponse_httpStatus,++    -- ** ListTrails+    listTrails_nextToken,+    listTrailsResponse_nextToken,+    listTrailsResponse_trails,+    listTrailsResponse_httpStatus,++    -- ** LookupEvents+    lookupEvents_endTime,+    lookupEvents_eventCategory,+    lookupEvents_lookupAttributes,+    lookupEvents_maxResults,+    lookupEvents_nextToken,+    lookupEvents_startTime,+    lookupEventsResponse_events,+    lookupEventsResponse_nextToken,+    lookupEventsResponse_httpStatus,++    -- ** PutEventSelectors+    putEventSelectors_advancedEventSelectors,+    putEventSelectors_eventSelectors,+    putEventSelectors_trailName,+    putEventSelectorsResponse_advancedEventSelectors,+    putEventSelectorsResponse_eventSelectors,+    putEventSelectorsResponse_trailARN,+    putEventSelectorsResponse_httpStatus,++    -- ** PutInsightSelectors+    putInsightSelectors_trailName,+    putInsightSelectors_insightSelectors,+    putInsightSelectorsResponse_insightSelectors,+    putInsightSelectorsResponse_trailARN,+    putInsightSelectorsResponse_httpStatus,++    -- ** RegisterOrganizationDelegatedAdmin+    registerOrganizationDelegatedAdmin_memberAccountId,+    registerOrganizationDelegatedAdminResponse_httpStatus,++    -- ** RemoveTags+    removeTags_resourceId,+    removeTags_tagsList,+    removeTagsResponse_httpStatus,++    -- ** RestoreEventDataStore+    restoreEventDataStore_eventDataStore,+    restoreEventDataStoreResponse_advancedEventSelectors,+    restoreEventDataStoreResponse_createdTimestamp,+    restoreEventDataStoreResponse_eventDataStoreArn,+    restoreEventDataStoreResponse_kmsKeyId,+    restoreEventDataStoreResponse_multiRegionEnabled,+    restoreEventDataStoreResponse_name,+    restoreEventDataStoreResponse_organizationEnabled,+    restoreEventDataStoreResponse_retentionPeriod,+    restoreEventDataStoreResponse_status,+    restoreEventDataStoreResponse_terminationProtectionEnabled,+    restoreEventDataStoreResponse_updatedTimestamp,+    restoreEventDataStoreResponse_httpStatus,++    -- ** StartImport+    startImport_destinations,+    startImport_endEventTime,+    startImport_importId,+    startImport_importSource,+    startImport_startEventTime,+    startImportResponse_createdTimestamp,+    startImportResponse_destinations,+    startImportResponse_endEventTime,+    startImportResponse_importId,+    startImportResponse_importSource,+    startImportResponse_importStatus,+    startImportResponse_startEventTime,+    startImportResponse_updatedTimestamp,+    startImportResponse_httpStatus,++    -- ** StartLogging+    startLogging_name,+    startLoggingResponse_httpStatus,++    -- ** StartQuery+    startQuery_deliveryS3Uri,+    startQuery_queryStatement,+    startQueryResponse_queryId,+    startQueryResponse_httpStatus,++    -- ** StopImport+    stopImport_importId,+    stopImportResponse_createdTimestamp,+    stopImportResponse_destinations,+    stopImportResponse_endEventTime,+    stopImportResponse_importId,+    stopImportResponse_importSource,+    stopImportResponse_importStatistics,+    stopImportResponse_importStatus,+    stopImportResponse_startEventTime,+    stopImportResponse_updatedTimestamp,+    stopImportResponse_httpStatus,++    -- ** StopLogging+    stopLogging_name,+    stopLoggingResponse_httpStatus,++    -- ** UpdateEventDataStore+    updateEventDataStore_advancedEventSelectors,+    updateEventDataStore_kmsKeyId,+    updateEventDataStore_multiRegionEnabled,+    updateEventDataStore_name,+    updateEventDataStore_organizationEnabled,+    updateEventDataStore_retentionPeriod,+    updateEventDataStore_terminationProtectionEnabled,+    updateEventDataStore_eventDataStore,+    updateEventDataStoreResponse_advancedEventSelectors,+    updateEventDataStoreResponse_createdTimestamp,+    updateEventDataStoreResponse_eventDataStoreArn,+    updateEventDataStoreResponse_kmsKeyId,+    updateEventDataStoreResponse_multiRegionEnabled,+    updateEventDataStoreResponse_name,+    updateEventDataStoreResponse_organizationEnabled,+    updateEventDataStoreResponse_retentionPeriod,+    updateEventDataStoreResponse_status,+    updateEventDataStoreResponse_terminationProtectionEnabled,+    updateEventDataStoreResponse_updatedTimestamp,+    updateEventDataStoreResponse_httpStatus,++    -- ** UpdateTrail+    updateTrail_cloudWatchLogsLogGroupArn,+    updateTrail_cloudWatchLogsRoleArn,+    updateTrail_enableLogFileValidation,+    updateTrail_includeGlobalServiceEvents,+    updateTrail_isMultiRegionTrail,+    updateTrail_isOrganizationTrail,+    updateTrail_kmsKeyId,+    updateTrail_s3BucketName,+    updateTrail_s3KeyPrefix,+    updateTrail_snsTopicName,+    updateTrail_name,+    updateTrailResponse_cloudWatchLogsLogGroupArn,+    updateTrailResponse_cloudWatchLogsRoleArn,+    updateTrailResponse_includeGlobalServiceEvents,+    updateTrailResponse_isMultiRegionTrail,+    updateTrailResponse_isOrganizationTrail,+    updateTrailResponse_kmsKeyId,+    updateTrailResponse_logFileValidationEnabled,+    updateTrailResponse_name,+    updateTrailResponse_s3BucketName,+    updateTrailResponse_s3KeyPrefix,+    updateTrailResponse_snsTopicARN,+    updateTrailResponse_snsTopicName,+    updateTrailResponse_trailARN,+    updateTrailResponse_httpStatus,++    -- * Types++    -- ** AdvancedEventSelector+    advancedEventSelector_name,+    advancedEventSelector_fieldSelectors,++    -- ** AdvancedFieldSelector+    advancedFieldSelector_endsWith,+    advancedFieldSelector_equals,+    advancedFieldSelector_notEndsWith,+    advancedFieldSelector_notEquals,+    advancedFieldSelector_notStartsWith,+    advancedFieldSelector_startsWith,+    advancedFieldSelector_field,++    -- ** Channel+    channel_channelArn,+    channel_name,++    -- ** DataResource+    dataResource_type,+    dataResource_values,++    -- ** Destination+    destination_type,+    destination_location,++    -- ** Event+    event_accessKeyId,+    event_cloudTrailEvent,+    event_eventId,+    event_eventName,+    event_eventSource,+    event_eventTime,+    event_readOnly,+    event_resources,+    event_username,++    -- ** EventDataStore+    eventDataStore_advancedEventSelectors,+    eventDataStore_createdTimestamp,+    eventDataStore_eventDataStoreArn,+    eventDataStore_multiRegionEnabled,+    eventDataStore_name,+    eventDataStore_organizationEnabled,+    eventDataStore_retentionPeriod,+    eventDataStore_status,+    eventDataStore_terminationProtectionEnabled,+    eventDataStore_updatedTimestamp,++    -- ** EventSelector+    eventSelector_dataResources,+    eventSelector_excludeManagementEventSources,+    eventSelector_includeManagementEvents,+    eventSelector_readWriteType,++    -- ** ImportFailureListItem+    importFailureListItem_errorMessage,+    importFailureListItem_errorType,+    importFailureListItem_lastUpdatedTime,+    importFailureListItem_location,+    importFailureListItem_status,++    -- ** ImportSource+    importSource_s3,++    -- ** ImportStatistics+    importStatistics_eventsCompleted,+    importStatistics_failedEntries,+    importStatistics_filesCompleted,+    importStatistics_prefixesCompleted,+    importStatistics_prefixesFound,++    -- ** ImportsListItem+    importsListItem_createdTimestamp,+    importsListItem_destinations,+    importsListItem_importId,+    importsListItem_importStatus,+    importsListItem_updatedTimestamp,++    -- ** InsightSelector+    insightSelector_insightType,++    -- ** LookupAttribute+    lookupAttribute_attributeKey,+    lookupAttribute_attributeValue,++    -- ** PublicKey+    publicKey_fingerprint,+    publicKey_validityEndTime,+    publicKey_validityStartTime,+    publicKey_value,++    -- ** Query+    query_creationTime,+    query_queryId,+    query_queryStatus,++    -- ** QueryStatistics+    queryStatistics_bytesScanned,+    queryStatistics_resultsCount,+    queryStatistics_totalResultsCount,++    -- ** QueryStatisticsForDescribeQuery+    queryStatisticsForDescribeQuery_bytesScanned,+    queryStatisticsForDescribeQuery_creationTime,+    queryStatisticsForDescribeQuery_eventsMatched,+    queryStatisticsForDescribeQuery_eventsScanned,+    queryStatisticsForDescribeQuery_executionTimeInMillis,++    -- ** Resource+    resource_resourceName,+    resource_resourceType,++    -- ** ResourceTag+    resourceTag_resourceId,+    resourceTag_tagsList,++    -- ** S3ImportSource+    s3ImportSource_s3LocationUri,+    s3ImportSource_s3BucketRegion,+    s3ImportSource_s3BucketAccessRoleArn,++    -- ** SourceConfig+    sourceConfig_advancedEventSelectors,+    sourceConfig_applyToAllRegions,++    -- ** Tag+    tag_value,+    tag_key,++    -- ** Trail+    trail_cloudWatchLogsLogGroupArn,+    trail_cloudWatchLogsRoleArn,+    trail_hasCustomEventSelectors,+    trail_hasInsightSelectors,+    trail_homeRegion,+    trail_includeGlobalServiceEvents,+    trail_isMultiRegionTrail,+    trail_isOrganizationTrail,+    trail_kmsKeyId,+    trail_logFileValidationEnabled,+    trail_name,+    trail_s3BucketName,+    trail_s3KeyPrefix,+    trail_snsTopicARN,+    trail_snsTopicName,+    trail_trailARN,++    -- ** TrailInfo+    trailInfo_homeRegion,+    trailInfo_name,+    trailInfo_trailARN,+  )+where++import Amazonka.CloudTrail.AddTags+import Amazonka.CloudTrail.CancelQuery+import Amazonka.CloudTrail.CreateEventDataStore+import Amazonka.CloudTrail.CreateTrail+import Amazonka.CloudTrail.DeleteEventDataStore+import Amazonka.CloudTrail.DeleteTrail+import Amazonka.CloudTrail.DeregisterOrganizationDelegatedAdmin+import Amazonka.CloudTrail.DescribeQuery+import Amazonka.CloudTrail.DescribeTrails+import Amazonka.CloudTrail.GetChannel+import Amazonka.CloudTrail.GetEventDataStore+import Amazonka.CloudTrail.GetEventSelectors+import Amazonka.CloudTrail.GetImport+import Amazonka.CloudTrail.GetInsightSelectors+import Amazonka.CloudTrail.GetQueryResults+import Amazonka.CloudTrail.GetTrail+import Amazonka.CloudTrail.GetTrailStatus+import Amazonka.CloudTrail.ListChannels+import Amazonka.CloudTrail.ListEventDataStores+import Amazonka.CloudTrail.ListImportFailures+import Amazonka.CloudTrail.ListImports+import Amazonka.CloudTrail.ListPublicKeys+import Amazonka.CloudTrail.ListQueries+import Amazonka.CloudTrail.ListTags+import Amazonka.CloudTrail.ListTrails+import Amazonka.CloudTrail.LookupEvents+import Amazonka.CloudTrail.PutEventSelectors+import Amazonka.CloudTrail.PutInsightSelectors+import Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin+import Amazonka.CloudTrail.RemoveTags+import Amazonka.CloudTrail.RestoreEventDataStore+import Amazonka.CloudTrail.StartImport+import Amazonka.CloudTrail.StartLogging+import Amazonka.CloudTrail.StartQuery+import Amazonka.CloudTrail.StopImport+import Amazonka.CloudTrail.StopLogging+import Amazonka.CloudTrail.Types.AdvancedEventSelector+import Amazonka.CloudTrail.Types.AdvancedFieldSelector+import Amazonka.CloudTrail.Types.Channel+import Amazonka.CloudTrail.Types.DataResource+import Amazonka.CloudTrail.Types.Destination+import Amazonka.CloudTrail.Types.Event+import Amazonka.CloudTrail.Types.EventDataStore+import Amazonka.CloudTrail.Types.EventSelector+import Amazonka.CloudTrail.Types.ImportFailureListItem+import Amazonka.CloudTrail.Types.ImportSource+import Amazonka.CloudTrail.Types.ImportStatistics+import Amazonka.CloudTrail.Types.ImportsListItem+import Amazonka.CloudTrail.Types.InsightSelector+import Amazonka.CloudTrail.Types.LookupAttribute+import Amazonka.CloudTrail.Types.PublicKey+import Amazonka.CloudTrail.Types.Query+import Amazonka.CloudTrail.Types.QueryStatistics+import Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery+import Amazonka.CloudTrail.Types.Resource+import Amazonka.CloudTrail.Types.ResourceTag+import Amazonka.CloudTrail.Types.S3ImportSource+import Amazonka.CloudTrail.Types.SourceConfig+import Amazonka.CloudTrail.Types.Tag+import Amazonka.CloudTrail.Types.Trail+import Amazonka.CloudTrail.Types.TrailInfo+import Amazonka.CloudTrail.UpdateEventDataStore+import Amazonka.CloudTrail.UpdateTrail
+ gen/Amazonka/CloudTrail/ListChannels.hs view
@@ -0,0 +1,212 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListChannels+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the channels in the current account, and their source names.+-- Amazon Web Services services create service-linked channels get+-- information about CloudTrail events on your behalf. For more information+-- about service-linked channels, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html Viewing service-linked channels for CloudTrail by using the CLI>.+module Amazonka.CloudTrail.ListChannels+  ( -- * Creating a Request+    ListChannels (..),+    newListChannels,++    -- * Request Lenses+    listChannels_maxResults,+    listChannels_nextToken,++    -- * Destructuring the Response+    ListChannelsResponse (..),+    newListChannelsResponse,++    -- * Response Lenses+    listChannelsResponse_channels,+    listChannelsResponse_nextToken,+    listChannelsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListChannels' smart constructor.+data ListChannels = ListChannels'+  { -- | The maximum number of CloudTrail channels to display on a single page.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | The token to use to get the next page of results after a previous API+    -- call. This token must be passed in with the same parameters that were+    -- specified in the original call. For example, if the original call+    -- specified an AttributeKey of \'Username\' with a value of \'root\', the+    -- call with NextToken should include those same parameters.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListChannels' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listChannels_maxResults' - The maximum number of CloudTrail channels to display on a single page.+--+-- 'nextToken', 'listChannels_nextToken' - The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+newListChannels ::+  ListChannels+newListChannels =+  ListChannels'+    { maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | The maximum number of CloudTrail channels to display on a single page.+listChannels_maxResults :: Lens.Lens' ListChannels (Prelude.Maybe Prelude.Natural)+listChannels_maxResults = Lens.lens (\ListChannels' {maxResults} -> maxResults) (\s@ListChannels' {} a -> s {maxResults = a} :: ListChannels)++-- | The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+listChannels_nextToken :: Lens.Lens' ListChannels (Prelude.Maybe Prelude.Text)+listChannels_nextToken = Lens.lens (\ListChannels' {nextToken} -> nextToken) (\s@ListChannels' {} a -> s {nextToken = a} :: ListChannels)++instance Core.AWSRequest ListChannels where+  type AWSResponse ListChannels = ListChannelsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListChannelsResponse'+            Prelude.<$> (x Data..?> "Channels" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListChannels where+  hashWithSalt _salt ListChannels' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListChannels where+  rnf ListChannels' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListChannels where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListChannels" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListChannels where+  toJSON ListChannels' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListChannels where+  toPath = Prelude.const "/"++instance Data.ToQuery ListChannels where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListChannelsResponse' smart constructor.+data ListChannelsResponse = ListChannelsResponse'+  { -- | The list of channels in the account.+    channels :: Prelude.Maybe [Channel],+    -- | The token to use to get the next page of results after a previous API+    -- call.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListChannelsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'channels', 'listChannelsResponse_channels' - The list of channels in the account.+--+-- 'nextToken', 'listChannelsResponse_nextToken' - The token to use to get the next page of results after a previous API+-- call.+--+-- 'httpStatus', 'listChannelsResponse_httpStatus' - The response's http status code.+newListChannelsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListChannelsResponse+newListChannelsResponse pHttpStatus_ =+  ListChannelsResponse'+    { channels = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The list of channels in the account.+listChannelsResponse_channels :: Lens.Lens' ListChannelsResponse (Prelude.Maybe [Channel])+listChannelsResponse_channels = Lens.lens (\ListChannelsResponse' {channels} -> channels) (\s@ListChannelsResponse' {} a -> s {channels = a} :: ListChannelsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token to use to get the next page of results after a previous API+-- call.+listChannelsResponse_nextToken :: Lens.Lens' ListChannelsResponse (Prelude.Maybe Prelude.Text)+listChannelsResponse_nextToken = Lens.lens (\ListChannelsResponse' {nextToken} -> nextToken) (\s@ListChannelsResponse' {} a -> s {nextToken = a} :: ListChannelsResponse)++-- | The response's http status code.+listChannelsResponse_httpStatus :: Lens.Lens' ListChannelsResponse Prelude.Int+listChannelsResponse_httpStatus = Lens.lens (\ListChannelsResponse' {httpStatus} -> httpStatus) (\s@ListChannelsResponse' {} a -> s {httpStatus = a} :: ListChannelsResponse)++instance Prelude.NFData ListChannelsResponse where+  rnf ListChannelsResponse' {..} =+    Prelude.rnf channels+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListEventDataStores.hs view
@@ -0,0 +1,203 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListEventDataStores+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about all event data stores in the account, in the+-- current region.+module Amazonka.CloudTrail.ListEventDataStores+  ( -- * Creating a Request+    ListEventDataStores (..),+    newListEventDataStores,++    -- * Request Lenses+    listEventDataStores_maxResults,+    listEventDataStores_nextToken,++    -- * Destructuring the Response+    ListEventDataStoresResponse (..),+    newListEventDataStoresResponse,++    -- * Response Lenses+    listEventDataStoresResponse_eventDataStores,+    listEventDataStoresResponse_nextToken,+    listEventDataStoresResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListEventDataStores' smart constructor.+data ListEventDataStores = ListEventDataStores'+  { -- | The maximum number of event data stores to display on a single page.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | A token you can use to get the next page of event data store results.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListEventDataStores' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listEventDataStores_maxResults' - The maximum number of event data stores to display on a single page.+--+-- 'nextToken', 'listEventDataStores_nextToken' - A token you can use to get the next page of event data store results.+newListEventDataStores ::+  ListEventDataStores+newListEventDataStores =+  ListEventDataStores'+    { maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | The maximum number of event data stores to display on a single page.+listEventDataStores_maxResults :: Lens.Lens' ListEventDataStores (Prelude.Maybe Prelude.Natural)+listEventDataStores_maxResults = Lens.lens (\ListEventDataStores' {maxResults} -> maxResults) (\s@ListEventDataStores' {} a -> s {maxResults = a} :: ListEventDataStores)++-- | A token you can use to get the next page of event data store results.+listEventDataStores_nextToken :: Lens.Lens' ListEventDataStores (Prelude.Maybe Prelude.Text)+listEventDataStores_nextToken = Lens.lens (\ListEventDataStores' {nextToken} -> nextToken) (\s@ListEventDataStores' {} a -> s {nextToken = a} :: ListEventDataStores)++instance Core.AWSRequest ListEventDataStores where+  type+    AWSResponse ListEventDataStores =+      ListEventDataStoresResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListEventDataStoresResponse'+            Prelude.<$> ( x+                            Data..?> "EventDataStores"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListEventDataStores where+  hashWithSalt _salt ListEventDataStores' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListEventDataStores where+  rnf ListEventDataStores' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListEventDataStores where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListEventDataStores" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListEventDataStores where+  toJSON ListEventDataStores' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListEventDataStores where+  toPath = Prelude.const "/"++instance Data.ToQuery ListEventDataStores where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListEventDataStoresResponse' smart constructor.+data ListEventDataStoresResponse = ListEventDataStoresResponse'+  { -- | Contains information about event data stores in the account, in the+    -- current region.+    eventDataStores :: Prelude.Maybe [EventDataStore],+    -- | A token you can use to get the next page of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListEventDataStoresResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStores', 'listEventDataStoresResponse_eventDataStores' - Contains information about event data stores in the account, in the+-- current region.+--+-- 'nextToken', 'listEventDataStoresResponse_nextToken' - A token you can use to get the next page of results.+--+-- 'httpStatus', 'listEventDataStoresResponse_httpStatus' - The response's http status code.+newListEventDataStoresResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListEventDataStoresResponse+newListEventDataStoresResponse pHttpStatus_ =+  ListEventDataStoresResponse'+    { eventDataStores =+        Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Contains information about event data stores in the account, in the+-- current region.+listEventDataStoresResponse_eventDataStores :: Lens.Lens' ListEventDataStoresResponse (Prelude.Maybe [EventDataStore])+listEventDataStoresResponse_eventDataStores = Lens.lens (\ListEventDataStoresResponse' {eventDataStores} -> eventDataStores) (\s@ListEventDataStoresResponse' {} a -> s {eventDataStores = a} :: ListEventDataStoresResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token you can use to get the next page of results.+listEventDataStoresResponse_nextToken :: Lens.Lens' ListEventDataStoresResponse (Prelude.Maybe Prelude.Text)+listEventDataStoresResponse_nextToken = Lens.lens (\ListEventDataStoresResponse' {nextToken} -> nextToken) (\s@ListEventDataStoresResponse' {} a -> s {nextToken = a} :: ListEventDataStoresResponse)++-- | The response's http status code.+listEventDataStoresResponse_httpStatus :: Lens.Lens' ListEventDataStoresResponse Prelude.Int+listEventDataStoresResponse_httpStatus = Lens.lens (\ListEventDataStoresResponse' {httpStatus} -> httpStatus) (\s@ListEventDataStoresResponse' {} a -> s {httpStatus = a} :: ListEventDataStoresResponse)++instance Prelude.NFData ListEventDataStoresResponse where+  rnf ListEventDataStoresResponse' {..} =+    Prelude.rnf eventDataStores+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListImportFailures.hs view
@@ -0,0 +1,235 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListImportFailures+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of failures for the specified import.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.ListImportFailures+  ( -- * Creating a Request+    ListImportFailures (..),+    newListImportFailures,++    -- * Request Lenses+    listImportFailures_maxResults,+    listImportFailures_nextToken,+    listImportFailures_importId,++    -- * Destructuring the Response+    ListImportFailuresResponse (..),+    newListImportFailuresResponse,++    -- * Response Lenses+    listImportFailuresResponse_failures,+    listImportFailuresResponse_nextToken,+    listImportFailuresResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListImportFailures' smart constructor.+data ListImportFailures = ListImportFailures'+  { -- | The maximum number of failures to display on a single page.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | A token you can use to get the next page of import failures.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The ID of the import.+    importId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListImportFailures' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listImportFailures_maxResults' - The maximum number of failures to display on a single page.+--+-- 'nextToken', 'listImportFailures_nextToken' - A token you can use to get the next page of import failures.+--+-- 'importId', 'listImportFailures_importId' - The ID of the import.+newListImportFailures ::+  -- | 'importId'+  Prelude.Text ->+  ListImportFailures+newListImportFailures pImportId_ =+  ListImportFailures'+    { maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      importId = pImportId_+    }++-- | The maximum number of failures to display on a single page.+listImportFailures_maxResults :: Lens.Lens' ListImportFailures (Prelude.Maybe Prelude.Natural)+listImportFailures_maxResults = Lens.lens (\ListImportFailures' {maxResults} -> maxResults) (\s@ListImportFailures' {} a -> s {maxResults = a} :: ListImportFailures)++-- | A token you can use to get the next page of import failures.+listImportFailures_nextToken :: Lens.Lens' ListImportFailures (Prelude.Maybe Prelude.Text)+listImportFailures_nextToken = Lens.lens (\ListImportFailures' {nextToken} -> nextToken) (\s@ListImportFailures' {} a -> s {nextToken = a} :: ListImportFailures)++-- | The ID of the import.+listImportFailures_importId :: Lens.Lens' ListImportFailures Prelude.Text+listImportFailures_importId = Lens.lens (\ListImportFailures' {importId} -> importId) (\s@ListImportFailures' {} a -> s {importId = a} :: ListImportFailures)++instance Core.AWSPager ListImportFailures where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listImportFailuresResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listImportFailuresResponse_failures+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listImportFailures_nextToken+          Lens..~ rs+          Lens.^? listImportFailuresResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListImportFailures where+  type+    AWSResponse ListImportFailures =+      ListImportFailuresResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListImportFailuresResponse'+            Prelude.<$> (x Data..?> "Failures" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListImportFailures where+  hashWithSalt _salt ListImportFailures' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` importId++instance Prelude.NFData ListImportFailures where+  rnf ListImportFailures' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf importId++instance Data.ToHeaders ListImportFailures where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListImportFailures" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListImportFailures where+  toJSON ListImportFailures' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            Prelude.Just ("ImportId" Data..= importId)+          ]+      )++instance Data.ToPath ListImportFailures where+  toPath = Prelude.const "/"++instance Data.ToQuery ListImportFailures where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListImportFailuresResponse' smart constructor.+data ListImportFailuresResponse = ListImportFailuresResponse'+  { -- | Contains information about the import failures.+    failures :: Prelude.Maybe [ImportFailureListItem],+    -- | A token you can use to get the next page of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListImportFailuresResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failures', 'listImportFailuresResponse_failures' - Contains information about the import failures.+--+-- 'nextToken', 'listImportFailuresResponse_nextToken' - A token you can use to get the next page of results.+--+-- 'httpStatus', 'listImportFailuresResponse_httpStatus' - The response's http status code.+newListImportFailuresResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListImportFailuresResponse+newListImportFailuresResponse pHttpStatus_ =+  ListImportFailuresResponse'+    { failures =+        Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Contains information about the import failures.+listImportFailuresResponse_failures :: Lens.Lens' ListImportFailuresResponse (Prelude.Maybe [ImportFailureListItem])+listImportFailuresResponse_failures = Lens.lens (\ListImportFailuresResponse' {failures} -> failures) (\s@ListImportFailuresResponse' {} a -> s {failures = a} :: ListImportFailuresResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token you can use to get the next page of results.+listImportFailuresResponse_nextToken :: Lens.Lens' ListImportFailuresResponse (Prelude.Maybe Prelude.Text)+listImportFailuresResponse_nextToken = Lens.lens (\ListImportFailuresResponse' {nextToken} -> nextToken) (\s@ListImportFailuresResponse' {} a -> s {nextToken = a} :: ListImportFailuresResponse)++-- | The response's http status code.+listImportFailuresResponse_httpStatus :: Lens.Lens' ListImportFailuresResponse Prelude.Int+listImportFailuresResponse_httpStatus = Lens.lens (\ListImportFailuresResponse' {httpStatus} -> httpStatus) (\s@ListImportFailuresResponse' {} a -> s {httpStatus = a} :: ListImportFailuresResponse)++instance Prelude.NFData ListImportFailuresResponse where+  rnf ListImportFailuresResponse' {..} =+    Prelude.rnf failures+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListImports.hs view
@@ -0,0 +1,244 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListImports+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information on all imports, or a select set of imports by+-- @ImportStatus@ or @Destination@.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.ListImports+  ( -- * Creating a Request+    ListImports (..),+    newListImports,++    -- * Request Lenses+    listImports_destination,+    listImports_importStatus,+    listImports_maxResults,+    listImports_nextToken,++    -- * Destructuring the Response+    ListImportsResponse (..),+    newListImportsResponse,++    -- * Response Lenses+    listImportsResponse_imports,+    listImportsResponse_nextToken,+    listImportsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListImports' smart constructor.+data ListImports = ListImports'+  { -- | The ARN of the destination event data store.+    destination :: Prelude.Maybe Prelude.Text,+    -- | The status of the import.+    importStatus :: Prelude.Maybe ImportStatus,+    -- | The maximum number of imports to display on a single page.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | A token you can use to get the next page of import results.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListImports' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'destination', 'listImports_destination' - The ARN of the destination event data store.+--+-- 'importStatus', 'listImports_importStatus' - The status of the import.+--+-- 'maxResults', 'listImports_maxResults' - The maximum number of imports to display on a single page.+--+-- 'nextToken', 'listImports_nextToken' - A token you can use to get the next page of import results.+newListImports ::+  ListImports+newListImports =+  ListImports'+    { destination = Prelude.Nothing,+      importStatus = Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | The ARN of the destination event data store.+listImports_destination :: Lens.Lens' ListImports (Prelude.Maybe Prelude.Text)+listImports_destination = Lens.lens (\ListImports' {destination} -> destination) (\s@ListImports' {} a -> s {destination = a} :: ListImports)++-- | The status of the import.+listImports_importStatus :: Lens.Lens' ListImports (Prelude.Maybe ImportStatus)+listImports_importStatus = Lens.lens (\ListImports' {importStatus} -> importStatus) (\s@ListImports' {} a -> s {importStatus = a} :: ListImports)++-- | The maximum number of imports to display on a single page.+listImports_maxResults :: Lens.Lens' ListImports (Prelude.Maybe Prelude.Natural)+listImports_maxResults = Lens.lens (\ListImports' {maxResults} -> maxResults) (\s@ListImports' {} a -> s {maxResults = a} :: ListImports)++-- | A token you can use to get the next page of import results.+listImports_nextToken :: Lens.Lens' ListImports (Prelude.Maybe Prelude.Text)+listImports_nextToken = Lens.lens (\ListImports' {nextToken} -> nextToken) (\s@ListImports' {} a -> s {nextToken = a} :: ListImports)++instance Core.AWSPager ListImports where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listImportsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listImportsResponse_imports+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listImports_nextToken+          Lens..~ rs+          Lens.^? listImportsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListImports where+  type AWSResponse ListImports = ListImportsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListImportsResponse'+            Prelude.<$> (x Data..?> "Imports" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListImports where+  hashWithSalt _salt ListImports' {..} =+    _salt+      `Prelude.hashWithSalt` destination+      `Prelude.hashWithSalt` importStatus+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListImports where+  rnf ListImports' {..} =+    Prelude.rnf destination+      `Prelude.seq` Prelude.rnf importStatus+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListImports where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListImports" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListImports where+  toJSON ListImports' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Destination" Data..=) Prelude.<$> destination,+            ("ImportStatus" Data..=) Prelude.<$> importStatus,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListImports where+  toPath = Prelude.const "/"++instance Data.ToQuery ListImports where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListImportsResponse' smart constructor.+data ListImportsResponse = ListImportsResponse'+  { -- | The list of returned imports.+    imports :: Prelude.Maybe [ImportsListItem],+    -- | A token you can use to get the next page of import results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListImportsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'imports', 'listImportsResponse_imports' - The list of returned imports.+--+-- 'nextToken', 'listImportsResponse_nextToken' - A token you can use to get the next page of import results.+--+-- 'httpStatus', 'listImportsResponse_httpStatus' - The response's http status code.+newListImportsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListImportsResponse+newListImportsResponse pHttpStatus_ =+  ListImportsResponse'+    { imports = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The list of returned imports.+listImportsResponse_imports :: Lens.Lens' ListImportsResponse (Prelude.Maybe [ImportsListItem])+listImportsResponse_imports = Lens.lens (\ListImportsResponse' {imports} -> imports) (\s@ListImportsResponse' {} a -> s {imports = a} :: ListImportsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token you can use to get the next page of import results.+listImportsResponse_nextToken :: Lens.Lens' ListImportsResponse (Prelude.Maybe Prelude.Text)+listImportsResponse_nextToken = Lens.lens (\ListImportsResponse' {nextToken} -> nextToken) (\s@ListImportsResponse' {} a -> s {nextToken = a} :: ListImportsResponse)++-- | The response's http status code.+listImportsResponse_httpStatus :: Lens.Lens' ListImportsResponse Prelude.Int+listImportsResponse_httpStatus = Lens.lens (\ListImportsResponse' {httpStatus} -> httpStatus) (\s@ListImportsResponse' {} a -> s {httpStatus = a} :: ListImportsResponse)++instance Prelude.NFData ListImportsResponse where+  rnf ListImportsResponse' {..} =+    Prelude.rnf imports+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListPublicKeys.hs view
@@ -0,0 +1,264 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListPublicKeys+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns all public keys whose private keys were used to sign the digest+-- files within the specified time range. The public key is needed to+-- validate digest files that were signed with its corresponding private+-- key.+--+-- CloudTrail uses different private and public key pairs per region. Each+-- digest file is signed with a private key unique to its region. When you+-- validate a digest file from a specific region, you must look in the same+-- region for its corresponding public key.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.ListPublicKeys+  ( -- * Creating a Request+    ListPublicKeys (..),+    newListPublicKeys,++    -- * Request Lenses+    listPublicKeys_endTime,+    listPublicKeys_nextToken,+    listPublicKeys_startTime,++    -- * Destructuring the Response+    ListPublicKeysResponse (..),+    newListPublicKeysResponse,++    -- * Response Lenses+    listPublicKeysResponse_nextToken,+    listPublicKeysResponse_publicKeyList,+    listPublicKeysResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Requests the public keys for a specified time range.+--+-- /See:/ 'newListPublicKeys' smart constructor.+data ListPublicKeys = ListPublicKeys'+  { -- | Optionally specifies, in UTC, the end of the time range to look up+    -- public keys for CloudTrail digest files. If not specified, the current+    -- time is used.+    endTime :: Prelude.Maybe Data.POSIX,+    -- | Reserved for future use.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Optionally specifies, in UTC, the start of the time range to look up+    -- public keys for CloudTrail digest files. If not specified, the current+    -- time is used, and the current public key is returned.+    startTime :: Prelude.Maybe Data.POSIX+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListPublicKeys' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'endTime', 'listPublicKeys_endTime' - Optionally specifies, in UTC, the end of the time range to look up+-- public keys for CloudTrail digest files. If not specified, the current+-- time is used.+--+-- 'nextToken', 'listPublicKeys_nextToken' - Reserved for future use.+--+-- 'startTime', 'listPublicKeys_startTime' - Optionally specifies, in UTC, the start of the time range to look up+-- public keys for CloudTrail digest files. If not specified, the current+-- time is used, and the current public key is returned.+newListPublicKeys ::+  ListPublicKeys+newListPublicKeys =+  ListPublicKeys'+    { endTime = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      startTime = Prelude.Nothing+    }++-- | Optionally specifies, in UTC, the end of the time range to look up+-- public keys for CloudTrail digest files. If not specified, the current+-- time is used.+listPublicKeys_endTime :: Lens.Lens' ListPublicKeys (Prelude.Maybe Prelude.UTCTime)+listPublicKeys_endTime = Lens.lens (\ListPublicKeys' {endTime} -> endTime) (\s@ListPublicKeys' {} a -> s {endTime = a} :: ListPublicKeys) Prelude.. Lens.mapping Data._Time++-- | Reserved for future use.+listPublicKeys_nextToken :: Lens.Lens' ListPublicKeys (Prelude.Maybe Prelude.Text)+listPublicKeys_nextToken = Lens.lens (\ListPublicKeys' {nextToken} -> nextToken) (\s@ListPublicKeys' {} a -> s {nextToken = a} :: ListPublicKeys)++-- | Optionally specifies, in UTC, the start of the time range to look up+-- public keys for CloudTrail digest files. If not specified, the current+-- time is used, and the current public key is returned.+listPublicKeys_startTime :: Lens.Lens' ListPublicKeys (Prelude.Maybe Prelude.UTCTime)+listPublicKeys_startTime = Lens.lens (\ListPublicKeys' {startTime} -> startTime) (\s@ListPublicKeys' {} a -> s {startTime = a} :: ListPublicKeys) Prelude.. Lens.mapping Data._Time++instance Core.AWSPager ListPublicKeys where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listPublicKeysResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listPublicKeysResponse_publicKeyList+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listPublicKeys_nextToken+          Lens..~ rs+          Lens.^? listPublicKeysResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListPublicKeys where+  type+    AWSResponse ListPublicKeys =+      ListPublicKeysResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListPublicKeysResponse'+            Prelude.<$> (x Data..?> "NextToken")+            Prelude.<*> (x Data..?> "PublicKeyList" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListPublicKeys where+  hashWithSalt _salt ListPublicKeys' {..} =+    _salt+      `Prelude.hashWithSalt` endTime+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` startTime++instance Prelude.NFData ListPublicKeys where+  rnf ListPublicKeys' {..} =+    Prelude.rnf endTime+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf startTime++instance Data.ToHeaders ListPublicKeys where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListPublicKeys" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListPublicKeys where+  toJSON ListPublicKeys' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EndTime" Data..=) Prelude.<$> endTime,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            ("StartTime" Data..=) Prelude.<$> startTime+          ]+      )++instance Data.ToPath ListPublicKeys where+  toPath = Prelude.const "/"++instance Data.ToQuery ListPublicKeys where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newListPublicKeysResponse' smart constructor.+data ListPublicKeysResponse = ListPublicKeysResponse'+  { -- | Reserved for future use.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Contains an array of PublicKey objects.+    --+    -- The returned public keys may have validity time ranges that overlap.+    publicKeyList :: Prelude.Maybe [PublicKey],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListPublicKeysResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listPublicKeysResponse_nextToken' - Reserved for future use.+--+-- 'publicKeyList', 'listPublicKeysResponse_publicKeyList' - Contains an array of PublicKey objects.+--+-- The returned public keys may have validity time ranges that overlap.+--+-- 'httpStatus', 'listPublicKeysResponse_httpStatus' - The response's http status code.+newListPublicKeysResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListPublicKeysResponse+newListPublicKeysResponse pHttpStatus_ =+  ListPublicKeysResponse'+    { nextToken =+        Prelude.Nothing,+      publicKeyList = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Reserved for future use.+listPublicKeysResponse_nextToken :: Lens.Lens' ListPublicKeysResponse (Prelude.Maybe Prelude.Text)+listPublicKeysResponse_nextToken = Lens.lens (\ListPublicKeysResponse' {nextToken} -> nextToken) (\s@ListPublicKeysResponse' {} a -> s {nextToken = a} :: ListPublicKeysResponse)++-- | Contains an array of PublicKey objects.+--+-- The returned public keys may have validity time ranges that overlap.+listPublicKeysResponse_publicKeyList :: Lens.Lens' ListPublicKeysResponse (Prelude.Maybe [PublicKey])+listPublicKeysResponse_publicKeyList = Lens.lens (\ListPublicKeysResponse' {publicKeyList} -> publicKeyList) (\s@ListPublicKeysResponse' {} a -> s {publicKeyList = a} :: ListPublicKeysResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listPublicKeysResponse_httpStatus :: Lens.Lens' ListPublicKeysResponse Prelude.Int+listPublicKeysResponse_httpStatus = Lens.lens (\ListPublicKeysResponse' {httpStatus} -> httpStatus) (\s@ListPublicKeysResponse' {} a -> s {httpStatus = a} :: ListPublicKeysResponse)++instance Prelude.NFData ListPublicKeysResponse where+  rnf ListPublicKeysResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf publicKeyList+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListQueries.hs view
@@ -0,0 +1,271 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListQueries+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of queries and query statuses for the past seven days.+-- You must specify an ARN value for @EventDataStore@. Optionally, to+-- shorten the list of results, you can specify a time range, formatted as+-- timestamps, by adding @StartTime@ and @EndTime@ parameters, and a+-- @QueryStatus@ value. Valid values for @QueryStatus@ include @QUEUED@,+-- @RUNNING@, @FINISHED@, @FAILED@, @TIMED_OUT@, or @CANCELLED@.+module Amazonka.CloudTrail.ListQueries+  ( -- * Creating a Request+    ListQueries (..),+    newListQueries,++    -- * Request Lenses+    listQueries_endTime,+    listQueries_maxResults,+    listQueries_nextToken,+    listQueries_queryStatus,+    listQueries_startTime,+    listQueries_eventDataStore,++    -- * Destructuring the Response+    ListQueriesResponse (..),+    newListQueriesResponse,++    -- * Response Lenses+    listQueriesResponse_nextToken,+    listQueriesResponse_queries,+    listQueriesResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListQueries' smart constructor.+data ListQueries = ListQueries'+  { -- | Use with @StartTime@ to bound a @ListQueries@ request, and limit its+    -- results to only those queries run within a specified time period.+    endTime :: Prelude.Maybe Data.POSIX,+    -- | The maximum number of queries to show on a page.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | A token you can use to get the next page of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The status of queries that you want to return in results. Valid values+    -- for @QueryStatus@ include @QUEUED@, @RUNNING@, @FINISHED@, @FAILED@,+    -- @TIMED_OUT@, or @CANCELLED@.+    queryStatus :: Prelude.Maybe QueryStatus,+    -- | Use with @EndTime@ to bound a @ListQueries@ request, and limit its+    -- results to only those queries run within a specified time period.+    startTime :: Prelude.Maybe Data.POSIX,+    -- | The ARN (or the ID suffix of the ARN) of an event data store on which+    -- queries were run.+    eventDataStore :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListQueries' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'endTime', 'listQueries_endTime' - Use with @StartTime@ to bound a @ListQueries@ request, and limit its+-- results to only those queries run within a specified time period.+--+-- 'maxResults', 'listQueries_maxResults' - The maximum number of queries to show on a page.+--+-- 'nextToken', 'listQueries_nextToken' - A token you can use to get the next page of results.+--+-- 'queryStatus', 'listQueries_queryStatus' - The status of queries that you want to return in results. Valid values+-- for @QueryStatus@ include @QUEUED@, @RUNNING@, @FINISHED@, @FAILED@,+-- @TIMED_OUT@, or @CANCELLED@.+--+-- 'startTime', 'listQueries_startTime' - Use with @EndTime@ to bound a @ListQueries@ request, and limit its+-- results to only those queries run within a specified time period.+--+-- 'eventDataStore', 'listQueries_eventDataStore' - The ARN (or the ID suffix of the ARN) of an event data store on which+-- queries were run.+newListQueries ::+  -- | 'eventDataStore'+  Prelude.Text ->+  ListQueries+newListQueries pEventDataStore_ =+  ListQueries'+    { endTime = Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      queryStatus = Prelude.Nothing,+      startTime = Prelude.Nothing,+      eventDataStore = pEventDataStore_+    }++-- | Use with @StartTime@ to bound a @ListQueries@ request, and limit its+-- results to only those queries run within a specified time period.+listQueries_endTime :: Lens.Lens' ListQueries (Prelude.Maybe Prelude.UTCTime)+listQueries_endTime = Lens.lens (\ListQueries' {endTime} -> endTime) (\s@ListQueries' {} a -> s {endTime = a} :: ListQueries) Prelude.. Lens.mapping Data._Time++-- | The maximum number of queries to show on a page.+listQueries_maxResults :: Lens.Lens' ListQueries (Prelude.Maybe Prelude.Natural)+listQueries_maxResults = Lens.lens (\ListQueries' {maxResults} -> maxResults) (\s@ListQueries' {} a -> s {maxResults = a} :: ListQueries)++-- | A token you can use to get the next page of results.+listQueries_nextToken :: Lens.Lens' ListQueries (Prelude.Maybe Prelude.Text)+listQueries_nextToken = Lens.lens (\ListQueries' {nextToken} -> nextToken) (\s@ListQueries' {} a -> s {nextToken = a} :: ListQueries)++-- | The status of queries that you want to return in results. Valid values+-- for @QueryStatus@ include @QUEUED@, @RUNNING@, @FINISHED@, @FAILED@,+-- @TIMED_OUT@, or @CANCELLED@.+listQueries_queryStatus :: Lens.Lens' ListQueries (Prelude.Maybe QueryStatus)+listQueries_queryStatus = Lens.lens (\ListQueries' {queryStatus} -> queryStatus) (\s@ListQueries' {} a -> s {queryStatus = a} :: ListQueries)++-- | Use with @EndTime@ to bound a @ListQueries@ request, and limit its+-- results to only those queries run within a specified time period.+listQueries_startTime :: Lens.Lens' ListQueries (Prelude.Maybe Prelude.UTCTime)+listQueries_startTime = Lens.lens (\ListQueries' {startTime} -> startTime) (\s@ListQueries' {} a -> s {startTime = a} :: ListQueries) Prelude.. Lens.mapping Data._Time++-- | The ARN (or the ID suffix of the ARN) of an event data store on which+-- queries were run.+listQueries_eventDataStore :: Lens.Lens' ListQueries Prelude.Text+listQueries_eventDataStore = Lens.lens (\ListQueries' {eventDataStore} -> eventDataStore) (\s@ListQueries' {} a -> s {eventDataStore = a} :: ListQueries)++instance Core.AWSRequest ListQueries where+  type AWSResponse ListQueries = ListQueriesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListQueriesResponse'+            Prelude.<$> (x Data..?> "NextToken")+            Prelude.<*> (x Data..?> "Queries" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListQueries where+  hashWithSalt _salt ListQueries' {..} =+    _salt+      `Prelude.hashWithSalt` endTime+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` queryStatus+      `Prelude.hashWithSalt` startTime+      `Prelude.hashWithSalt` eventDataStore++instance Prelude.NFData ListQueries where+  rnf ListQueries' {..} =+    Prelude.rnf endTime+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf queryStatus+      `Prelude.seq` Prelude.rnf startTime+      `Prelude.seq` Prelude.rnf eventDataStore++instance Data.ToHeaders ListQueries where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListQueries" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListQueries where+  toJSON ListQueries' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EndTime" Data..=) Prelude.<$> endTime,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            ("QueryStatus" Data..=) Prelude.<$> queryStatus,+            ("StartTime" Data..=) Prelude.<$> startTime,+            Prelude.Just+              ("EventDataStore" Data..= eventDataStore)+          ]+      )++instance Data.ToPath ListQueries where+  toPath = Prelude.const "/"++instance Data.ToQuery ListQueries where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListQueriesResponse' smart constructor.+data ListQueriesResponse = ListQueriesResponse'+  { -- | A token you can use to get the next page of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Lists matching query results, and shows query ID, status, and creation+    -- time of each query.+    queries :: Prelude.Maybe [Query],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListQueriesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listQueriesResponse_nextToken' - A token you can use to get the next page of results.+--+-- 'queries', 'listQueriesResponse_queries' - Lists matching query results, and shows query ID, status, and creation+-- time of each query.+--+-- 'httpStatus', 'listQueriesResponse_httpStatus' - The response's http status code.+newListQueriesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListQueriesResponse+newListQueriesResponse pHttpStatus_ =+  ListQueriesResponse'+    { nextToken = Prelude.Nothing,+      queries = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A token you can use to get the next page of results.+listQueriesResponse_nextToken :: Lens.Lens' ListQueriesResponse (Prelude.Maybe Prelude.Text)+listQueriesResponse_nextToken = Lens.lens (\ListQueriesResponse' {nextToken} -> nextToken) (\s@ListQueriesResponse' {} a -> s {nextToken = a} :: ListQueriesResponse)++-- | Lists matching query results, and shows query ID, status, and creation+-- time of each query.+listQueriesResponse_queries :: Lens.Lens' ListQueriesResponse (Prelude.Maybe [Query])+listQueriesResponse_queries = Lens.lens (\ListQueriesResponse' {queries} -> queries) (\s@ListQueriesResponse' {} a -> s {queries = a} :: ListQueriesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listQueriesResponse_httpStatus :: Lens.Lens' ListQueriesResponse Prelude.Int+listQueriesResponse_httpStatus = Lens.lens (\ListQueriesResponse' {httpStatus} -> httpStatus) (\s@ListQueriesResponse' {} a -> s {httpStatus = a} :: ListQueriesResponse)++instance Prelude.NFData ListQueriesResponse where+  rnf ListQueriesResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf queries+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListTags.hs view
@@ -0,0 +1,229 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListTags+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the tags for the trail or event data store in the current region.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.ListTags+  ( -- * Creating a Request+    ListTags (..),+    newListTags,++    -- * Request Lenses+    listTags_nextToken,+    listTags_resourceIdList,++    -- * Destructuring the Response+    ListTagsResponse (..),+    newListTagsResponse,++    -- * Response Lenses+    listTagsResponse_nextToken,+    listTagsResponse_resourceTagList,+    listTagsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies a list of tags to return.+--+-- /See:/ 'newListTags' smart constructor.+data ListTags = ListTags'+  { -- | Reserved for future use.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Specifies a list of trail and event data store ARNs whose tags will be+    -- listed. The list has a limit of 20 ARNs.+    resourceIdList :: [Prelude.Text]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTags' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listTags_nextToken' - Reserved for future use.+--+-- 'resourceIdList', 'listTags_resourceIdList' - Specifies a list of trail and event data store ARNs whose tags will be+-- listed. The list has a limit of 20 ARNs.+newListTags ::+  ListTags+newListTags =+  ListTags'+    { nextToken = Prelude.Nothing,+      resourceIdList = Prelude.mempty+    }++-- | Reserved for future use.+listTags_nextToken :: Lens.Lens' ListTags (Prelude.Maybe Prelude.Text)+listTags_nextToken = Lens.lens (\ListTags' {nextToken} -> nextToken) (\s@ListTags' {} a -> s {nextToken = a} :: ListTags)++-- | Specifies a list of trail and event data store ARNs whose tags will be+-- listed. The list has a limit of 20 ARNs.+listTags_resourceIdList :: Lens.Lens' ListTags [Prelude.Text]+listTags_resourceIdList = Lens.lens (\ListTags' {resourceIdList} -> resourceIdList) (\s@ListTags' {} a -> s {resourceIdList = a} :: ListTags) Prelude.. Lens.coerced++instance Core.AWSPager ListTags where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listTagsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listTagsResponse_resourceTagList+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listTags_nextToken+          Lens..~ rs+          Lens.^? listTagsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListTags where+  type AWSResponse ListTags = ListTagsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListTagsResponse'+            Prelude.<$> (x Data..?> "NextToken")+            Prelude.<*> ( x+                            Data..?> "ResourceTagList"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListTags where+  hashWithSalt _salt ListTags' {..} =+    _salt+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` resourceIdList++instance Prelude.NFData ListTags where+  rnf ListTags' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf resourceIdList++instance Data.ToHeaders ListTags where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListTags" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListTags where+  toJSON ListTags' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("NextToken" Data..=) Prelude.<$> nextToken,+            Prelude.Just+              ("ResourceIdList" Data..= resourceIdList)+          ]+      )++instance Data.ToPath ListTags where+  toPath = Prelude.const "/"++instance Data.ToQuery ListTags where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newListTagsResponse' smart constructor.+data ListTagsResponse = ListTagsResponse'+  { -- | Reserved for future use.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | A list of resource tags.+    resourceTagList :: Prelude.Maybe [ResourceTag],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTagsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listTagsResponse_nextToken' - Reserved for future use.+--+-- 'resourceTagList', 'listTagsResponse_resourceTagList' - A list of resource tags.+--+-- 'httpStatus', 'listTagsResponse_httpStatus' - The response's http status code.+newListTagsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListTagsResponse+newListTagsResponse pHttpStatus_ =+  ListTagsResponse'+    { nextToken = Prelude.Nothing,+      resourceTagList = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Reserved for future use.+listTagsResponse_nextToken :: Lens.Lens' ListTagsResponse (Prelude.Maybe Prelude.Text)+listTagsResponse_nextToken = Lens.lens (\ListTagsResponse' {nextToken} -> nextToken) (\s@ListTagsResponse' {} a -> s {nextToken = a} :: ListTagsResponse)++-- | A list of resource tags.+listTagsResponse_resourceTagList :: Lens.Lens' ListTagsResponse (Prelude.Maybe [ResourceTag])+listTagsResponse_resourceTagList = Lens.lens (\ListTagsResponse' {resourceTagList} -> resourceTagList) (\s@ListTagsResponse' {} a -> s {resourceTagList = a} :: ListTagsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listTagsResponse_httpStatus :: Lens.Lens' ListTagsResponse Prelude.Int+listTagsResponse_httpStatus = Lens.lens (\ListTagsResponse' {httpStatus} -> httpStatus) (\s@ListTagsResponse' {} a -> s {httpStatus = a} :: ListTagsResponse)++instance Prelude.NFData ListTagsResponse where+  rnf ListTagsResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf resourceTagList+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/ListTrails.hs view
@@ -0,0 +1,226 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.ListTrails+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists trails that are in the current account.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.ListTrails+  ( -- * Creating a Request+    ListTrails (..),+    newListTrails,++    -- * Request Lenses+    listTrails_nextToken,++    -- * Destructuring the Response+    ListTrailsResponse (..),+    newListTrailsResponse,++    -- * Response Lenses+    listTrailsResponse_nextToken,+    listTrailsResponse_trails,+    listTrailsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListTrails' smart constructor.+data ListTrails = ListTrails'+  { -- | The token to use to get the next page of results after a previous API+    -- call. This token must be passed in with the same parameters that were+    -- specified in the original call. For example, if the original call+    -- specified an AttributeKey of \'Username\' with a value of \'root\', the+    -- call with NextToken should include those same parameters.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTrails' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listTrails_nextToken' - The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+newListTrails ::+  ListTrails+newListTrails =+  ListTrails' {nextToken = Prelude.Nothing}++-- | The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+listTrails_nextToken :: Lens.Lens' ListTrails (Prelude.Maybe Prelude.Text)+listTrails_nextToken = Lens.lens (\ListTrails' {nextToken} -> nextToken) (\s@ListTrails' {} a -> s {nextToken = a} :: ListTrails)++instance Core.AWSPager ListTrails where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listTrailsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listTrailsResponse_trails+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listTrails_nextToken+          Lens..~ rs+          Lens.^? listTrailsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListTrails where+  type AWSResponse ListTrails = ListTrailsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListTrailsResponse'+            Prelude.<$> (x Data..?> "NextToken")+            Prelude.<*> (x Data..?> "Trails" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListTrails where+  hashWithSalt _salt ListTrails' {..} =+    _salt `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListTrails where+  rnf ListTrails' {..} = Prelude.rnf nextToken++instance Data.ToHeaders ListTrails where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListTrails" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListTrails where+  toJSON ListTrails' {..} =+    Data.object+      ( Prelude.catMaybes+          [("NextToken" Data..=) Prelude.<$> nextToken]+      )++instance Data.ToPath ListTrails where+  toPath = Prelude.const "/"++instance Data.ToQuery ListTrails where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListTrailsResponse' smart constructor.+data ListTrailsResponse = ListTrailsResponse'+  { -- | The token to use to get the next page of results after a previous API+    -- call. If the token does not appear, there are no more results to return.+    -- The token must be passed in with the same parameters as the previous+    -- call. For example, if the original call specified an AttributeKey of+    -- \'Username\' with a value of \'root\', the call with NextToken should+    -- include those same parameters.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Returns the name, ARN, and home region of trails in the current account.+    trails :: Prelude.Maybe [TrailInfo],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTrailsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listTrailsResponse_nextToken' - The token to use to get the next page of results after a previous API+-- call. If the token does not appear, there are no more results to return.+-- The token must be passed in with the same parameters as the previous+-- call. For example, if the original call specified an AttributeKey of+-- \'Username\' with a value of \'root\', the call with NextToken should+-- include those same parameters.+--+-- 'trails', 'listTrailsResponse_trails' - Returns the name, ARN, and home region of trails in the current account.+--+-- 'httpStatus', 'listTrailsResponse_httpStatus' - The response's http status code.+newListTrailsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListTrailsResponse+newListTrailsResponse pHttpStatus_ =+  ListTrailsResponse'+    { nextToken = Prelude.Nothing,+      trails = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The token to use to get the next page of results after a previous API+-- call. If the token does not appear, there are no more results to return.+-- The token must be passed in with the same parameters as the previous+-- call. For example, if the original call specified an AttributeKey of+-- \'Username\' with a value of \'root\', the call with NextToken should+-- include those same parameters.+listTrailsResponse_nextToken :: Lens.Lens' ListTrailsResponse (Prelude.Maybe Prelude.Text)+listTrailsResponse_nextToken = Lens.lens (\ListTrailsResponse' {nextToken} -> nextToken) (\s@ListTrailsResponse' {} a -> s {nextToken = a} :: ListTrailsResponse)++-- | Returns the name, ARN, and home region of trails in the current account.+listTrailsResponse_trails :: Lens.Lens' ListTrailsResponse (Prelude.Maybe [TrailInfo])+listTrailsResponse_trails = Lens.lens (\ListTrailsResponse' {trails} -> trails) (\s@ListTrailsResponse' {} a -> s {trails = a} :: ListTrailsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listTrailsResponse_httpStatus :: Lens.Lens' ListTrailsResponse Prelude.Int+listTrailsResponse_httpStatus = Lens.lens (\ListTrailsResponse' {httpStatus} -> httpStatus) (\s@ListTrailsResponse' {} a -> s {httpStatus = a} :: ListTrailsResponse)++instance Prelude.NFData ListTrailsResponse where+  rnf ListTrailsResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf trails+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/LookupEvents.hs view
@@ -0,0 +1,371 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.LookupEvents+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Looks up+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events management events>+-- or+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events CloudTrail Insights events>+-- that are captured by CloudTrail. You can look up events that occurred in+-- a region within the last 90 days. Lookup supports the following+-- attributes for management events:+--+-- -   Amazon Web Services access key+--+-- -   Event ID+--+-- -   Event name+--+-- -   Event source+--+-- -   Read only+--+-- -   Resource name+--+-- -   Resource type+--+-- -   User name+--+-- Lookup supports the following attributes for Insights events:+--+-- -   Event ID+--+-- -   Event name+--+-- -   Event source+--+-- All attributes are optional. The default number of results returned is+-- 50, with a maximum of 50 possible. The response includes a token that+-- you can use to get the next page of results.+--+-- The rate of lookup requests is limited to two per second, per account,+-- per region. If this limit is exceeded, a throttling error occurs.+--+-- This operation returns paginated results.+module Amazonka.CloudTrail.LookupEvents+  ( -- * Creating a Request+    LookupEvents (..),+    newLookupEvents,++    -- * Request Lenses+    lookupEvents_endTime,+    lookupEvents_eventCategory,+    lookupEvents_lookupAttributes,+    lookupEvents_maxResults,+    lookupEvents_nextToken,+    lookupEvents_startTime,++    -- * Destructuring the Response+    LookupEventsResponse (..),+    newLookupEventsResponse,++    -- * Response Lenses+    lookupEventsResponse_events,+    lookupEventsResponse_nextToken,+    lookupEventsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Contains a request for LookupEvents.+--+-- /See:/ 'newLookupEvents' smart constructor.+data LookupEvents = LookupEvents'+  { -- | Specifies that only events that occur before or at the specified time+    -- are returned. If the specified end time is before the specified start+    -- time, an error is returned.+    endTime :: Prelude.Maybe Data.POSIX,+    -- | Specifies the event category. If you do not specify an event category,+    -- events of the category are not returned in the response. For example, if+    -- you do not specify @insight@ as the value of @EventCategory@, no+    -- Insights events are returned.+    eventCategory :: Prelude.Maybe EventCategory,+    -- | Contains a list of lookup attributes. Currently the list can contain+    -- only one item.+    lookupAttributes :: Prelude.Maybe [LookupAttribute],+    -- | The number of events to return. Possible values are 1 through 50. The+    -- default is 50.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | The token to use to get the next page of results after a previous API+    -- call. This token must be passed in with the same parameters that were+    -- specified in the original call. For example, if the original call+    -- specified an AttributeKey of \'Username\' with a value of \'root\', the+    -- call with NextToken should include those same parameters.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Specifies that only events that occur after or at the specified time are+    -- returned. If the specified start time is after the specified end time,+    -- an error is returned.+    startTime :: Prelude.Maybe Data.POSIX+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'LookupEvents' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'endTime', 'lookupEvents_endTime' - Specifies that only events that occur before or at the specified time+-- are returned. If the specified end time is before the specified start+-- time, an error is returned.+--+-- 'eventCategory', 'lookupEvents_eventCategory' - Specifies the event category. If you do not specify an event category,+-- events of the category are not returned in the response. For example, if+-- you do not specify @insight@ as the value of @EventCategory@, no+-- Insights events are returned.+--+-- 'lookupAttributes', 'lookupEvents_lookupAttributes' - Contains a list of lookup attributes. Currently the list can contain+-- only one item.+--+-- 'maxResults', 'lookupEvents_maxResults' - The number of events to return. Possible values are 1 through 50. The+-- default is 50.+--+-- 'nextToken', 'lookupEvents_nextToken' - The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+--+-- 'startTime', 'lookupEvents_startTime' - Specifies that only events that occur after or at the specified time are+-- returned. If the specified start time is after the specified end time,+-- an error is returned.+newLookupEvents ::+  LookupEvents+newLookupEvents =+  LookupEvents'+    { endTime = Prelude.Nothing,+      eventCategory = Prelude.Nothing,+      lookupAttributes = Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      startTime = Prelude.Nothing+    }++-- | Specifies that only events that occur before or at the specified time+-- are returned. If the specified end time is before the specified start+-- time, an error is returned.+lookupEvents_endTime :: Lens.Lens' LookupEvents (Prelude.Maybe Prelude.UTCTime)+lookupEvents_endTime = Lens.lens (\LookupEvents' {endTime} -> endTime) (\s@LookupEvents' {} a -> s {endTime = a} :: LookupEvents) Prelude.. Lens.mapping Data._Time++-- | Specifies the event category. If you do not specify an event category,+-- events of the category are not returned in the response. For example, if+-- you do not specify @insight@ as the value of @EventCategory@, no+-- Insights events are returned.+lookupEvents_eventCategory :: Lens.Lens' LookupEvents (Prelude.Maybe EventCategory)+lookupEvents_eventCategory = Lens.lens (\LookupEvents' {eventCategory} -> eventCategory) (\s@LookupEvents' {} a -> s {eventCategory = a} :: LookupEvents)++-- | Contains a list of lookup attributes. Currently the list can contain+-- only one item.+lookupEvents_lookupAttributes :: Lens.Lens' LookupEvents (Prelude.Maybe [LookupAttribute])+lookupEvents_lookupAttributes = Lens.lens (\LookupEvents' {lookupAttributes} -> lookupAttributes) (\s@LookupEvents' {} a -> s {lookupAttributes = a} :: LookupEvents) Prelude.. Lens.mapping Lens.coerced++-- | The number of events to return. Possible values are 1 through 50. The+-- default is 50.+lookupEvents_maxResults :: Lens.Lens' LookupEvents (Prelude.Maybe Prelude.Natural)+lookupEvents_maxResults = Lens.lens (\LookupEvents' {maxResults} -> maxResults) (\s@LookupEvents' {} a -> s {maxResults = a} :: LookupEvents)++-- | The token to use to get the next page of results after a previous API+-- call. This token must be passed in with the same parameters that were+-- specified in the original call. For example, if the original call+-- specified an AttributeKey of \'Username\' with a value of \'root\', the+-- call with NextToken should include those same parameters.+lookupEvents_nextToken :: Lens.Lens' LookupEvents (Prelude.Maybe Prelude.Text)+lookupEvents_nextToken = Lens.lens (\LookupEvents' {nextToken} -> nextToken) (\s@LookupEvents' {} a -> s {nextToken = a} :: LookupEvents)++-- | Specifies that only events that occur after or at the specified time are+-- returned. If the specified start time is after the specified end time,+-- an error is returned.+lookupEvents_startTime :: Lens.Lens' LookupEvents (Prelude.Maybe Prelude.UTCTime)+lookupEvents_startTime = Lens.lens (\LookupEvents' {startTime} -> startTime) (\s@LookupEvents' {} a -> s {startTime = a} :: LookupEvents) Prelude.. Lens.mapping Data._Time++instance Core.AWSPager LookupEvents where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? lookupEventsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? lookupEventsResponse_events+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& lookupEvents_nextToken+          Lens..~ rs+          Lens.^? lookupEventsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest LookupEvents where+  type AWSResponse LookupEvents = LookupEventsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          LookupEventsResponse'+            Prelude.<$> (x Data..?> "Events" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable LookupEvents where+  hashWithSalt _salt LookupEvents' {..} =+    _salt+      `Prelude.hashWithSalt` endTime+      `Prelude.hashWithSalt` eventCategory+      `Prelude.hashWithSalt` lookupAttributes+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` startTime++instance Prelude.NFData LookupEvents where+  rnf LookupEvents' {..} =+    Prelude.rnf endTime+      `Prelude.seq` Prelude.rnf eventCategory+      `Prelude.seq` Prelude.rnf lookupAttributes+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf startTime++instance Data.ToHeaders LookupEvents where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.LookupEvents" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON LookupEvents where+  toJSON LookupEvents' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EndTime" Data..=) Prelude.<$> endTime,+            ("EventCategory" Data..=) Prelude.<$> eventCategory,+            ("LookupAttributes" Data..=)+              Prelude.<$> lookupAttributes,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            ("StartTime" Data..=) Prelude.<$> startTime+          ]+      )++instance Data.ToPath LookupEvents where+  toPath = Prelude.const "/"++instance Data.ToQuery LookupEvents where+  toQuery = Prelude.const Prelude.mempty++-- | Contains a response to a LookupEvents action.+--+-- /See:/ 'newLookupEventsResponse' smart constructor.+data LookupEventsResponse = LookupEventsResponse'+  { -- | A list of events returned based on the lookup attributes specified and+    -- the CloudTrail event. The events list is sorted by time. The most recent+    -- event is listed first.+    events :: Prelude.Maybe [Event],+    -- | The token to use to get the next page of results after a previous API+    -- call. If the token does not appear, there are no more results to return.+    -- The token must be passed in with the same parameters as the previous+    -- call. For example, if the original call specified an AttributeKey of+    -- \'Username\' with a value of \'root\', the call with NextToken should+    -- include those same parameters.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'LookupEventsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'events', 'lookupEventsResponse_events' - A list of events returned based on the lookup attributes specified and+-- the CloudTrail event. The events list is sorted by time. The most recent+-- event is listed first.+--+-- 'nextToken', 'lookupEventsResponse_nextToken' - The token to use to get the next page of results after a previous API+-- call. If the token does not appear, there are no more results to return.+-- The token must be passed in with the same parameters as the previous+-- call. For example, if the original call specified an AttributeKey of+-- \'Username\' with a value of \'root\', the call with NextToken should+-- include those same parameters.+--+-- 'httpStatus', 'lookupEventsResponse_httpStatus' - The response's http status code.+newLookupEventsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  LookupEventsResponse+newLookupEventsResponse pHttpStatus_ =+  LookupEventsResponse'+    { events = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A list of events returned based on the lookup attributes specified and+-- the CloudTrail event. The events list is sorted by time. The most recent+-- event is listed first.+lookupEventsResponse_events :: Lens.Lens' LookupEventsResponse (Prelude.Maybe [Event])+lookupEventsResponse_events = Lens.lens (\LookupEventsResponse' {events} -> events) (\s@LookupEventsResponse' {} a -> s {events = a} :: LookupEventsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The token to use to get the next page of results after a previous API+-- call. If the token does not appear, there are no more results to return.+-- The token must be passed in with the same parameters as the previous+-- call. For example, if the original call specified an AttributeKey of+-- \'Username\' with a value of \'root\', the call with NextToken should+-- include those same parameters.+lookupEventsResponse_nextToken :: Lens.Lens' LookupEventsResponse (Prelude.Maybe Prelude.Text)+lookupEventsResponse_nextToken = Lens.lens (\LookupEventsResponse' {nextToken} -> nextToken) (\s@LookupEventsResponse' {} a -> s {nextToken = a} :: LookupEventsResponse)++-- | The response's http status code.+lookupEventsResponse_httpStatus :: Lens.Lens' LookupEventsResponse Prelude.Int+lookupEventsResponse_httpStatus = Lens.lens (\LookupEventsResponse' {httpStatus} -> httpStatus) (\s@LookupEventsResponse' {} a -> s {httpStatus = a} :: LookupEventsResponse)++instance Prelude.NFData LookupEventsResponse where+  rnf LookupEventsResponse' {..} =+    Prelude.rnf events+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/PutEventSelectors.hs view
@@ -0,0 +1,373 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.PutEventSelectors+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Configures an event selector or advanced event selectors for your trail.+-- Use event selectors or advanced event selectors to specify management+-- and data event settings for your trail. By default, trails created+-- without specific event selectors are configured to log all read and+-- write management events, and no data events.+--+-- When an event occurs in your account, CloudTrail evaluates the event+-- selectors or advanced event selectors in 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.+--+-- Example+--+-- 1.  You create an event selector for a trail and specify that you want+--     write-only events.+--+-- 2.  The EC2 @GetConsoleOutput@ and @RunInstances@ API operations occur+--     in your account.+--+-- 3.  CloudTrail evaluates whether the events match your event selectors.+--+-- 4.  The @RunInstances@ is a write-only event and it matches your event+--     selector. The trail logs the event.+--+-- 5.  The @GetConsoleOutput@ is a read-only event that doesn\'t match your+--     event selector. The trail doesn\'t log the event.+--+-- The @PutEventSelectors@ operation must be called from the region in+-- which the trail was created; otherwise, an @InvalidHomeRegionException@+-- exception is thrown.+--+-- You can configure up to five event selectors for each trail. For more+-- information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html Logging management events for trails>+-- ,+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+-- , and+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html Quotas in CloudTrail>+-- in the /CloudTrail User Guide/.+--+-- You can add advanced event selectors, and conditions for your advanced+-- event selectors, up to a maximum of 500 values for all conditions and+-- selectors on a trail. You can use either @AdvancedEventSelectors@ or+-- @EventSelectors@, but not both. If you apply @AdvancedEventSelectors@ to+-- a trail, any existing @EventSelectors@ are overwritten. For more+-- information about advanced event selectors, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+-- in the /CloudTrail User Guide/.+module Amazonka.CloudTrail.PutEventSelectors+  ( -- * Creating a Request+    PutEventSelectors (..),+    newPutEventSelectors,++    -- * Request Lenses+    putEventSelectors_advancedEventSelectors,+    putEventSelectors_eventSelectors,+    putEventSelectors_trailName,++    -- * Destructuring the Response+    PutEventSelectorsResponse (..),+    newPutEventSelectorsResponse,++    -- * Response Lenses+    putEventSelectorsResponse_advancedEventSelectors,+    putEventSelectorsResponse_eventSelectors,+    putEventSelectorsResponse_trailARN,+    putEventSelectorsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutEventSelectors' smart constructor.+data PutEventSelectors = PutEventSelectors'+  { -- | Specifies the settings for advanced event selectors. You can add+    -- advanced event selectors, and conditions for your advanced event+    -- selectors, up to a maximum of 500 values for all conditions and+    -- selectors on a trail. You can use either @AdvancedEventSelectors@ or+    -- @EventSelectors@, but not both. If you apply @AdvancedEventSelectors@ to+    -- a trail, any existing @EventSelectors@ are overwritten. For more+    -- information about advanced event selectors, see+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+    -- in the /CloudTrail User Guide/.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | Specifies the settings for your event selectors. You can configure up to+    -- five event selectors for a trail. You can use either @EventSelectors@ or+    -- @AdvancedEventSelectors@ in a @PutEventSelectors@ request, but not both.+    -- If you apply @EventSelectors@ to a trail, any existing+    -- @AdvancedEventSelectors@ are overwritten.+    eventSelectors :: Prelude.Maybe [EventSelector],+    -- | Specifies the name of the trail or trail ARN. If you specify a trail+    -- name, the string 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 not valid.+    --+    -- -   Not be in IP address format (for example, 192.168.5.4)+    --+    -- If you specify a trail ARN, it must be in the following format.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutEventSelectors' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'putEventSelectors_advancedEventSelectors' - Specifies the settings for advanced event selectors. You can add+-- advanced event selectors, and conditions for your advanced event+-- selectors, up to a maximum of 500 values for all conditions and+-- selectors on a trail. You can use either @AdvancedEventSelectors@ or+-- @EventSelectors@, but not both. If you apply @AdvancedEventSelectors@ to+-- a trail, any existing @EventSelectors@ are overwritten. For more+-- information about advanced event selectors, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+-- in the /CloudTrail User Guide/.+--+-- 'eventSelectors', 'putEventSelectors_eventSelectors' - Specifies the settings for your event selectors. You can configure up to+-- five event selectors for a trail. You can use either @EventSelectors@ or+-- @AdvancedEventSelectors@ in a @PutEventSelectors@ request, but not both.+-- If you apply @EventSelectors@ to a trail, any existing+-- @AdvancedEventSelectors@ are overwritten.+--+-- 'trailName', 'putEventSelectors_trailName' - Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the following format.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newPutEventSelectors ::+  -- | 'trailName'+  Prelude.Text ->+  PutEventSelectors+newPutEventSelectors pTrailName_ =+  PutEventSelectors'+    { advancedEventSelectors =+        Prelude.Nothing,+      eventSelectors = Prelude.Nothing,+      trailName = pTrailName_+    }++-- | Specifies the settings for advanced event selectors. You can add+-- advanced event selectors, and conditions for your advanced event+-- selectors, up to a maximum of 500 values for all conditions and+-- selectors on a trail. You can use either @AdvancedEventSelectors@ or+-- @EventSelectors@, but not both. If you apply @AdvancedEventSelectors@ to+-- a trail, any existing @EventSelectors@ are overwritten. For more+-- information about advanced event selectors, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+-- in the /CloudTrail User Guide/.+putEventSelectors_advancedEventSelectors :: Lens.Lens' PutEventSelectors (Prelude.Maybe [AdvancedEventSelector])+putEventSelectors_advancedEventSelectors = Lens.lens (\PutEventSelectors' {advancedEventSelectors} -> advancedEventSelectors) (\s@PutEventSelectors' {} a -> s {advancedEventSelectors = a} :: PutEventSelectors) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the settings for your event selectors. You can configure up to+-- five event selectors for a trail. You can use either @EventSelectors@ or+-- @AdvancedEventSelectors@ in a @PutEventSelectors@ request, but not both.+-- If you apply @EventSelectors@ to a trail, any existing+-- @AdvancedEventSelectors@ are overwritten.+putEventSelectors_eventSelectors :: Lens.Lens' PutEventSelectors (Prelude.Maybe [EventSelector])+putEventSelectors_eventSelectors = Lens.lens (\PutEventSelectors' {eventSelectors} -> eventSelectors) (\s@PutEventSelectors' {} a -> s {eventSelectors = a} :: PutEventSelectors) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the name of the trail or trail ARN. If you specify a trail+-- name, the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If you specify a trail ARN, it must be in the following format.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+putEventSelectors_trailName :: Lens.Lens' PutEventSelectors Prelude.Text+putEventSelectors_trailName = Lens.lens (\PutEventSelectors' {trailName} -> trailName) (\s@PutEventSelectors' {} a -> s {trailName = a} :: PutEventSelectors)++instance Core.AWSRequest PutEventSelectors where+  type+    AWSResponse PutEventSelectors =+      PutEventSelectorsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          PutEventSelectorsResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "EventSelectors" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable PutEventSelectors where+  hashWithSalt _salt PutEventSelectors' {..} =+    _salt+      `Prelude.hashWithSalt` advancedEventSelectors+      `Prelude.hashWithSalt` eventSelectors+      `Prelude.hashWithSalt` trailName++instance Prelude.NFData PutEventSelectors where+  rnf PutEventSelectors' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf eventSelectors+      `Prelude.seq` Prelude.rnf trailName++instance Data.ToHeaders PutEventSelectors where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.PutEventSelectors" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON PutEventSelectors where+  toJSON PutEventSelectors' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("AdvancedEventSelectors" Data..=)+              Prelude.<$> advancedEventSelectors,+            ("EventSelectors" Data..=)+              Prelude.<$> eventSelectors,+            Prelude.Just ("TrailName" Data..= trailName)+          ]+      )++instance Data.ToPath PutEventSelectors where+  toPath = Prelude.const "/"++instance Data.ToQuery PutEventSelectors where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newPutEventSelectorsResponse' smart constructor.+data PutEventSelectorsResponse = PutEventSelectorsResponse'+  { -- | Specifies the advanced event selectors configured for your trail.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | Specifies the event selectors configured for your trail.+    eventSelectors :: Prelude.Maybe [EventSelector],+    -- | Specifies the ARN of the trail that was updated with event selectors.+    -- The following is the format of a trail ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutEventSelectorsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'putEventSelectorsResponse_advancedEventSelectors' - Specifies the advanced event selectors configured for your trail.+--+-- 'eventSelectors', 'putEventSelectorsResponse_eventSelectors' - Specifies the event selectors configured for your trail.+--+-- 'trailARN', 'putEventSelectorsResponse_trailARN' - Specifies the ARN of the trail that was updated with event selectors.+-- The following is the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- 'httpStatus', 'putEventSelectorsResponse_httpStatus' - The response's http status code.+newPutEventSelectorsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  PutEventSelectorsResponse+newPutEventSelectorsResponse pHttpStatus_ =+  PutEventSelectorsResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      eventSelectors = Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Specifies the advanced event selectors configured for your trail.+putEventSelectorsResponse_advancedEventSelectors :: Lens.Lens' PutEventSelectorsResponse (Prelude.Maybe [AdvancedEventSelector])+putEventSelectorsResponse_advancedEventSelectors = Lens.lens (\PutEventSelectorsResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@PutEventSelectorsResponse' {} a -> s {advancedEventSelectors = a} :: PutEventSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the event selectors configured for your trail.+putEventSelectorsResponse_eventSelectors :: Lens.Lens' PutEventSelectorsResponse (Prelude.Maybe [EventSelector])+putEventSelectorsResponse_eventSelectors = Lens.lens (\PutEventSelectorsResponse' {eventSelectors} -> eventSelectors) (\s@PutEventSelectorsResponse' {} a -> s {eventSelectors = a} :: PutEventSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the ARN of the trail that was updated with event selectors.+-- The following is the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+putEventSelectorsResponse_trailARN :: Lens.Lens' PutEventSelectorsResponse (Prelude.Maybe Prelude.Text)+putEventSelectorsResponse_trailARN = Lens.lens (\PutEventSelectorsResponse' {trailARN} -> trailARN) (\s@PutEventSelectorsResponse' {} a -> s {trailARN = a} :: PutEventSelectorsResponse)++-- | The response's http status code.+putEventSelectorsResponse_httpStatus :: Lens.Lens' PutEventSelectorsResponse Prelude.Int+putEventSelectorsResponse_httpStatus = Lens.lens (\PutEventSelectorsResponse' {httpStatus} -> httpStatus) (\s@PutEventSelectorsResponse' {} a -> s {httpStatus = a} :: PutEventSelectorsResponse)++instance Prelude.NFData PutEventSelectorsResponse where+  rnf PutEventSelectorsResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf eventSelectors+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/PutInsightSelectors.hs view
@@ -0,0 +1,224 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.PutInsightSelectors+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lets you enable Insights event logging by specifying the Insights+-- selectors that you want to enable on an existing trail. You also use+-- @PutInsightSelectors@ to turn off Insights event logging, by passing an+-- empty list of insight types. The valid Insights event types in this+-- release are @ApiErrorRateInsight@ and @ApiCallRateInsight@.+module Amazonka.CloudTrail.PutInsightSelectors+  ( -- * Creating a Request+    PutInsightSelectors (..),+    newPutInsightSelectors,++    -- * Request Lenses+    putInsightSelectors_trailName,+    putInsightSelectors_insightSelectors,++    -- * Destructuring the Response+    PutInsightSelectorsResponse (..),+    newPutInsightSelectorsResponse,++    -- * Response Lenses+    putInsightSelectorsResponse_insightSelectors,+    putInsightSelectorsResponse_trailARN,+    putInsightSelectorsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newPutInsightSelectors' smart constructor.+data PutInsightSelectors = PutInsightSelectors'+  { -- | The name of the CloudTrail trail for which you want to change or add+    -- Insights selectors.+    trailName :: Prelude.Text,+    -- | A JSON string that contains the insight types you want to log on a+    -- trail. @ApiCallRateInsight@ and @ApiErrorRateInsight@ are valid insight+    -- types.+    insightSelectors :: [InsightSelector]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutInsightSelectors' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'trailName', 'putInsightSelectors_trailName' - The name of the CloudTrail trail for which you want to change or add+-- Insights selectors.+--+-- 'insightSelectors', 'putInsightSelectors_insightSelectors' - A JSON string that contains the insight types you want to log on a+-- trail. @ApiCallRateInsight@ and @ApiErrorRateInsight@ are valid insight+-- types.+newPutInsightSelectors ::+  -- | 'trailName'+  Prelude.Text ->+  PutInsightSelectors+newPutInsightSelectors pTrailName_ =+  PutInsightSelectors'+    { trailName = pTrailName_,+      insightSelectors = Prelude.mempty+    }++-- | The name of the CloudTrail trail for which you want to change or add+-- Insights selectors.+putInsightSelectors_trailName :: Lens.Lens' PutInsightSelectors Prelude.Text+putInsightSelectors_trailName = Lens.lens (\PutInsightSelectors' {trailName} -> trailName) (\s@PutInsightSelectors' {} a -> s {trailName = a} :: PutInsightSelectors)++-- | A JSON string that contains the insight types you want to log on a+-- trail. @ApiCallRateInsight@ and @ApiErrorRateInsight@ are valid insight+-- types.+putInsightSelectors_insightSelectors :: Lens.Lens' PutInsightSelectors [InsightSelector]+putInsightSelectors_insightSelectors = Lens.lens (\PutInsightSelectors' {insightSelectors} -> insightSelectors) (\s@PutInsightSelectors' {} a -> s {insightSelectors = a} :: PutInsightSelectors) Prelude.. Lens.coerced++instance Core.AWSRequest PutInsightSelectors where+  type+    AWSResponse PutInsightSelectors =+      PutInsightSelectorsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          PutInsightSelectorsResponse'+            Prelude.<$> ( x+                            Data..?> "InsightSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable PutInsightSelectors where+  hashWithSalt _salt PutInsightSelectors' {..} =+    _salt+      `Prelude.hashWithSalt` trailName+      `Prelude.hashWithSalt` insightSelectors++instance Prelude.NFData PutInsightSelectors where+  rnf PutInsightSelectors' {..} =+    Prelude.rnf trailName+      `Prelude.seq` Prelude.rnf insightSelectors++instance Data.ToHeaders PutInsightSelectors where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.PutInsightSelectors" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON PutInsightSelectors where+  toJSON PutInsightSelectors' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("TrailName" Data..= trailName),+            Prelude.Just+              ("InsightSelectors" Data..= insightSelectors)+          ]+      )++instance Data.ToPath PutInsightSelectors where+  toPath = Prelude.const "/"++instance Data.ToQuery PutInsightSelectors where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newPutInsightSelectorsResponse' smart constructor.+data PutInsightSelectorsResponse = PutInsightSelectorsResponse'+  { -- | A JSON string that contains the Insights event types that you want to+    -- log on a trail. The valid Insights types in this release are+    -- @ApiErrorRateInsight@ and @ApiCallRateInsight@.+    insightSelectors :: Prelude.Maybe [InsightSelector],+    -- | The Amazon Resource Name (ARN) of a trail for which you want to change+    -- or add Insights selectors.+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PutInsightSelectorsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'insightSelectors', 'putInsightSelectorsResponse_insightSelectors' - A JSON string that contains the Insights event types that you want to+-- log on a trail. The valid Insights types in this release are+-- @ApiErrorRateInsight@ and @ApiCallRateInsight@.+--+-- 'trailARN', 'putInsightSelectorsResponse_trailARN' - The Amazon Resource Name (ARN) of a trail for which you want to change+-- or add Insights selectors.+--+-- 'httpStatus', 'putInsightSelectorsResponse_httpStatus' - The response's http status code.+newPutInsightSelectorsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  PutInsightSelectorsResponse+newPutInsightSelectorsResponse pHttpStatus_ =+  PutInsightSelectorsResponse'+    { insightSelectors =+        Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A JSON string that contains the Insights event types that you want to+-- log on a trail. The valid Insights types in this release are+-- @ApiErrorRateInsight@ and @ApiCallRateInsight@.+putInsightSelectorsResponse_insightSelectors :: Lens.Lens' PutInsightSelectorsResponse (Prelude.Maybe [InsightSelector])+putInsightSelectorsResponse_insightSelectors = Lens.lens (\PutInsightSelectorsResponse' {insightSelectors} -> insightSelectors) (\s@PutInsightSelectorsResponse' {} a -> s {insightSelectors = a} :: PutInsightSelectorsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The Amazon Resource Name (ARN) of a trail for which you want to change+-- or add Insights selectors.+putInsightSelectorsResponse_trailARN :: Lens.Lens' PutInsightSelectorsResponse (Prelude.Maybe Prelude.Text)+putInsightSelectorsResponse_trailARN = Lens.lens (\PutInsightSelectorsResponse' {trailARN} -> trailARN) (\s@PutInsightSelectorsResponse' {} a -> s {trailARN = a} :: PutInsightSelectorsResponse)++-- | The response's http status code.+putInsightSelectorsResponse_httpStatus :: Lens.Lens' PutInsightSelectorsResponse Prelude.Int+putInsightSelectorsResponse_httpStatus = Lens.lens (\PutInsightSelectorsResponse' {httpStatus} -> httpStatus) (\s@PutInsightSelectorsResponse' {} a -> s {httpStatus = a} :: PutInsightSelectorsResponse)++instance Prelude.NFData PutInsightSelectorsResponse where+  rnf PutInsightSelectorsResponse' {..} =+    Prelude.rnf insightSelectors+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/RegisterOrganizationDelegatedAdmin.hs view
@@ -0,0 +1,200 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Registers an organization’s member account as the CloudTrail delegated+-- administrator.+module Amazonka.CloudTrail.RegisterOrganizationDelegatedAdmin+  ( -- * Creating a Request+    RegisterOrganizationDelegatedAdmin (..),+    newRegisterOrganizationDelegatedAdmin,++    -- * Request Lenses+    registerOrganizationDelegatedAdmin_memberAccountId,++    -- * Destructuring the Response+    RegisterOrganizationDelegatedAdminResponse (..),+    newRegisterOrganizationDelegatedAdminResponse,++    -- * Response Lenses+    registerOrganizationDelegatedAdminResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies an organization member account ID as a CloudTrail delegated+-- administrator.+--+-- /See:/ 'newRegisterOrganizationDelegatedAdmin' smart constructor.+data RegisterOrganizationDelegatedAdmin = RegisterOrganizationDelegatedAdmin'+  { -- | An organization member account ID that you want to designate as a+    -- delegated administrator.+    memberAccountId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RegisterOrganizationDelegatedAdmin' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'registerOrganizationDelegatedAdmin_memberAccountId' - An organization member account ID that you want to designate as a+-- delegated administrator.+newRegisterOrganizationDelegatedAdmin ::+  -- | 'memberAccountId'+  Prelude.Text ->+  RegisterOrganizationDelegatedAdmin+newRegisterOrganizationDelegatedAdmin+  pMemberAccountId_ =+    RegisterOrganizationDelegatedAdmin'+      { memberAccountId =+          pMemberAccountId_+      }++-- | An organization member account ID that you want to designate as a+-- delegated administrator.+registerOrganizationDelegatedAdmin_memberAccountId :: Lens.Lens' RegisterOrganizationDelegatedAdmin Prelude.Text+registerOrganizationDelegatedAdmin_memberAccountId = Lens.lens (\RegisterOrganizationDelegatedAdmin' {memberAccountId} -> memberAccountId) (\s@RegisterOrganizationDelegatedAdmin' {} a -> s {memberAccountId = a} :: RegisterOrganizationDelegatedAdmin)++instance+  Core.AWSRequest+    RegisterOrganizationDelegatedAdmin+  where+  type+    AWSResponse RegisterOrganizationDelegatedAdmin =+      RegisterOrganizationDelegatedAdminResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          RegisterOrganizationDelegatedAdminResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance+  Prelude.Hashable+    RegisterOrganizationDelegatedAdmin+  where+  hashWithSalt+    _salt+    RegisterOrganizationDelegatedAdmin' {..} =+      _salt `Prelude.hashWithSalt` memberAccountId++instance+  Prelude.NFData+    RegisterOrganizationDelegatedAdmin+  where+  rnf RegisterOrganizationDelegatedAdmin' {..} =+    Prelude.rnf memberAccountId++instance+  Data.ToHeaders+    RegisterOrganizationDelegatedAdmin+  where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.RegisterOrganizationDelegatedAdmin" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance+  Data.ToJSON+    RegisterOrganizationDelegatedAdmin+  where+  toJSON RegisterOrganizationDelegatedAdmin' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("MemberAccountId" Data..= memberAccountId)+          ]+      )++instance+  Data.ToPath+    RegisterOrganizationDelegatedAdmin+  where+  toPath = Prelude.const "/"++instance+  Data.ToQuery+    RegisterOrganizationDelegatedAdmin+  where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the following response if successful. Otherwise, returns an+-- error.+--+-- /See:/ 'newRegisterOrganizationDelegatedAdminResponse' smart constructor.+data RegisterOrganizationDelegatedAdminResponse = RegisterOrganizationDelegatedAdminResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RegisterOrganizationDelegatedAdminResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'registerOrganizationDelegatedAdminResponse_httpStatus' - The response's http status code.+newRegisterOrganizationDelegatedAdminResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  RegisterOrganizationDelegatedAdminResponse+newRegisterOrganizationDelegatedAdminResponse+  pHttpStatus_ =+    RegisterOrganizationDelegatedAdminResponse'+      { httpStatus =+          pHttpStatus_+      }++-- | The response's http status code.+registerOrganizationDelegatedAdminResponse_httpStatus :: Lens.Lens' RegisterOrganizationDelegatedAdminResponse Prelude.Int+registerOrganizationDelegatedAdminResponse_httpStatus = Lens.lens (\RegisterOrganizationDelegatedAdminResponse' {httpStatus} -> httpStatus) (\s@RegisterOrganizationDelegatedAdminResponse' {} a -> s {httpStatus = a} :: RegisterOrganizationDelegatedAdminResponse)++instance+  Prelude.NFData+    RegisterOrganizationDelegatedAdminResponse+  where+  rnf RegisterOrganizationDelegatedAdminResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/RemoveTags.hs view
@@ -0,0 +1,194 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.RemoveTags+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes the specified tags from a trail or event data store.+module Amazonka.CloudTrail.RemoveTags+  ( -- * Creating a Request+    RemoveTags (..),+    newRemoveTags,++    -- * Request Lenses+    removeTags_resourceId,+    removeTags_tagsList,++    -- * Destructuring the Response+    RemoveTagsResponse (..),+    newRemoveTagsResponse,++    -- * Response Lenses+    removeTagsResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies the tags to remove from a trail or event data store.+--+-- /See:/ 'newRemoveTags' smart constructor.+data RemoveTags = RemoveTags'+  { -- | Specifies the ARN of the trail or event data store from which tags+    -- should be removed.+    --+    -- Example trail ARN format:+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    --+    -- Example event data store ARN format:+    -- @arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore\/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE@+    resourceId :: Prelude.Text,+    -- | Specifies a list of tags to be removed.+    tagsList :: [Tag]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RemoveTags' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceId', 'removeTags_resourceId' - Specifies the ARN of the trail or event data store from which tags+-- should be removed.+--+-- Example trail ARN format:+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- Example event data store ARN format:+-- @arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore\/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE@+--+-- 'tagsList', 'removeTags_tagsList' - Specifies a list of tags to be removed.+newRemoveTags ::+  -- | 'resourceId'+  Prelude.Text ->+  RemoveTags+newRemoveTags pResourceId_ =+  RemoveTags'+    { resourceId = pResourceId_,+      tagsList = Prelude.mempty+    }++-- | Specifies the ARN of the trail or event data store from which tags+-- should be removed.+--+-- Example trail ARN format:+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- Example event data store ARN format:+-- @arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore\/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE@+removeTags_resourceId :: Lens.Lens' RemoveTags Prelude.Text+removeTags_resourceId = Lens.lens (\RemoveTags' {resourceId} -> resourceId) (\s@RemoveTags' {} a -> s {resourceId = a} :: RemoveTags)++-- | Specifies a list of tags to be removed.+removeTags_tagsList :: Lens.Lens' RemoveTags [Tag]+removeTags_tagsList = Lens.lens (\RemoveTags' {tagsList} -> tagsList) (\s@RemoveTags' {} a -> s {tagsList = a} :: RemoveTags) Prelude.. Lens.coerced++instance Core.AWSRequest RemoveTags where+  type AWSResponse RemoveTags = RemoveTagsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          RemoveTagsResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable RemoveTags where+  hashWithSalt _salt RemoveTags' {..} =+    _salt+      `Prelude.hashWithSalt` resourceId+      `Prelude.hashWithSalt` tagsList++instance Prelude.NFData RemoveTags where+  rnf RemoveTags' {..} =+    Prelude.rnf resourceId+      `Prelude.seq` Prelude.rnf tagsList++instance Data.ToHeaders RemoveTags where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.RemoveTags" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON RemoveTags where+  toJSON RemoveTags' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("ResourceId" Data..= resourceId),+            Prelude.Just ("TagsList" Data..= tagsList)+          ]+      )++instance Data.ToPath RemoveTags where+  toPath = Prelude.const "/"++instance Data.ToQuery RemoveTags where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newRemoveTagsResponse' smart constructor.+data RemoveTagsResponse = RemoveTagsResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RemoveTagsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'removeTagsResponse_httpStatus' - The response's http status code.+newRemoveTagsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  RemoveTagsResponse+newRemoveTagsResponse pHttpStatus_ =+  RemoveTagsResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+removeTagsResponse_httpStatus :: Lens.Lens' RemoveTagsResponse Prelude.Int+removeTagsResponse_httpStatus = Lens.lens (\RemoveTagsResponse' {httpStatus} -> httpStatus) (\s@RemoveTagsResponse' {} a -> s {httpStatus = a} :: RemoveTagsResponse)++instance Prelude.NFData RemoveTagsResponse where+  rnf RemoveTagsResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/RestoreEventDataStore.hs view
@@ -0,0 +1,335 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.RestoreEventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Restores a deleted event data store specified by @EventDataStore@, which+-- accepts an event data store ARN. You can only restore a deleted event+-- data store within the seven-day wait period after deletion. Restoring an+-- event data store can take several minutes, depending on the size of the+-- event data store.+module Amazonka.CloudTrail.RestoreEventDataStore+  ( -- * Creating a Request+    RestoreEventDataStore (..),+    newRestoreEventDataStore,++    -- * Request Lenses+    restoreEventDataStore_eventDataStore,++    -- * Destructuring the Response+    RestoreEventDataStoreResponse (..),+    newRestoreEventDataStoreResponse,++    -- * Response Lenses+    restoreEventDataStoreResponse_advancedEventSelectors,+    restoreEventDataStoreResponse_createdTimestamp,+    restoreEventDataStoreResponse_eventDataStoreArn,+    restoreEventDataStoreResponse_kmsKeyId,+    restoreEventDataStoreResponse_multiRegionEnabled,+    restoreEventDataStoreResponse_name,+    restoreEventDataStoreResponse_organizationEnabled,+    restoreEventDataStoreResponse_retentionPeriod,+    restoreEventDataStoreResponse_status,+    restoreEventDataStoreResponse_terminationProtectionEnabled,+    restoreEventDataStoreResponse_updatedTimestamp,+    restoreEventDataStoreResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newRestoreEventDataStore' smart constructor.+data RestoreEventDataStore = RestoreEventDataStore'+  { -- | The ARN (or the ID suffix of the ARN) of the event data store that you+    -- want to restore.+    eventDataStore :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RestoreEventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventDataStore', 'restoreEventDataStore_eventDataStore' - The ARN (or the ID suffix of the ARN) of the event data store that you+-- want to restore.+newRestoreEventDataStore ::+  -- | 'eventDataStore'+  Prelude.Text ->+  RestoreEventDataStore+newRestoreEventDataStore pEventDataStore_ =+  RestoreEventDataStore'+    { eventDataStore =+        pEventDataStore_+    }++-- | The ARN (or the ID suffix of the ARN) of the event data store that you+-- want to restore.+restoreEventDataStore_eventDataStore :: Lens.Lens' RestoreEventDataStore Prelude.Text+restoreEventDataStore_eventDataStore = Lens.lens (\RestoreEventDataStore' {eventDataStore} -> eventDataStore) (\s@RestoreEventDataStore' {} a -> s {eventDataStore = a} :: RestoreEventDataStore)++instance Core.AWSRequest RestoreEventDataStore where+  type+    AWSResponse RestoreEventDataStore =+      RestoreEventDataStoreResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          RestoreEventDataStoreResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "EventDataStoreArn")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "MultiRegionEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "OrganizationEnabled")+            Prelude.<*> (x Data..?> "RetentionPeriod")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "TerminationProtectionEnabled")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable RestoreEventDataStore where+  hashWithSalt _salt RestoreEventDataStore' {..} =+    _salt `Prelude.hashWithSalt` eventDataStore++instance Prelude.NFData RestoreEventDataStore where+  rnf RestoreEventDataStore' {..} =+    Prelude.rnf eventDataStore++instance Data.ToHeaders RestoreEventDataStore where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.RestoreEventDataStore" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON RestoreEventDataStore where+  toJSON RestoreEventDataStore' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("EventDataStore" Data..= eventDataStore)+          ]+      )++instance Data.ToPath RestoreEventDataStore where+  toPath = Prelude.const "/"++instance Data.ToQuery RestoreEventDataStore where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newRestoreEventDataStoreResponse' smart constructor.+data RestoreEventDataStoreResponse = RestoreEventDataStoreResponse'+  { -- | The advanced event selectors that were used to select events.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | The timestamp of an event data store\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The event data store ARN.+    eventDataStoreArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the KMS key ID that encrypts the events delivered by+    -- CloudTrail. The value is a fully specified ARN to a KMS key in the+    -- following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether the event data store is collecting events from all+    -- regions, or only from the region in which the event data store was+    -- created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether an event data store is collecting logged events for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | The status of the event data store.+    status :: Prelude.Maybe EventDataStoreStatus,+    -- | Indicates that termination protection is enabled and the event data+    -- store cannot be automatically deleted.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The timestamp that shows when an event data store was updated, if+    -- applicable. @UpdatedTimestamp@ is always either the same or newer than+    -- the time shown in @CreatedTimestamp@.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RestoreEventDataStoreResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'restoreEventDataStoreResponse_advancedEventSelectors' - The advanced event selectors that were used to select events.+--+-- 'createdTimestamp', 'restoreEventDataStoreResponse_createdTimestamp' - The timestamp of an event data store\'s creation.+--+-- 'eventDataStoreArn', 'restoreEventDataStoreResponse_eventDataStoreArn' - The event data store ARN.+--+-- 'kmsKeyId', 'restoreEventDataStoreResponse_kmsKeyId' - Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'restoreEventDataStoreResponse_multiRegionEnabled' - Indicates whether the event data store is collecting events from all+-- regions, or only from the region in which the event data store was+-- created.+--+-- 'name', 'restoreEventDataStoreResponse_name' - The name of the event data store.+--+-- 'organizationEnabled', 'restoreEventDataStoreResponse_organizationEnabled' - Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'restoreEventDataStoreResponse_retentionPeriod' - The retention period, in days.+--+-- 'status', 'restoreEventDataStoreResponse_status' - The status of the event data store.+--+-- 'terminationProtectionEnabled', 'restoreEventDataStoreResponse_terminationProtectionEnabled' - Indicates that termination protection is enabled and the event data+-- store cannot be automatically deleted.+--+-- 'updatedTimestamp', 'restoreEventDataStoreResponse_updatedTimestamp' - The timestamp that shows when an event data store was updated, if+-- applicable. @UpdatedTimestamp@ is always either the same or newer than+-- the time shown in @CreatedTimestamp@.+--+-- 'httpStatus', 'restoreEventDataStoreResponse_httpStatus' - The response's http status code.+newRestoreEventDataStoreResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  RestoreEventDataStoreResponse+newRestoreEventDataStoreResponse pHttpStatus_ =+  RestoreEventDataStoreResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      createdTimestamp = Prelude.Nothing,+      eventDataStoreArn = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      status = Prelude.Nothing,+      terminationProtectionEnabled =+        Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The advanced event selectors that were used to select events.+restoreEventDataStoreResponse_advancedEventSelectors :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe [AdvancedEventSelector])+restoreEventDataStoreResponse_advancedEventSelectors = Lens.lens (\RestoreEventDataStoreResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@RestoreEventDataStoreResponse' {} a -> s {advancedEventSelectors = a} :: RestoreEventDataStoreResponse) Prelude.. Lens.mapping Lens.coerced++-- | The timestamp of an event data store\'s creation.+restoreEventDataStoreResponse_createdTimestamp :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+restoreEventDataStoreResponse_createdTimestamp = Lens.lens (\RestoreEventDataStoreResponse' {createdTimestamp} -> createdTimestamp) (\s@RestoreEventDataStoreResponse' {} a -> s {createdTimestamp = a} :: RestoreEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The event data store ARN.+restoreEventDataStoreResponse_eventDataStoreArn :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Text)+restoreEventDataStoreResponse_eventDataStoreArn = Lens.lens (\RestoreEventDataStoreResponse' {eventDataStoreArn} -> eventDataStoreArn) (\s@RestoreEventDataStoreResponse' {} a -> s {eventDataStoreArn = a} :: RestoreEventDataStoreResponse)++-- | Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+restoreEventDataStoreResponse_kmsKeyId :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Text)+restoreEventDataStoreResponse_kmsKeyId = Lens.lens (\RestoreEventDataStoreResponse' {kmsKeyId} -> kmsKeyId) (\s@RestoreEventDataStoreResponse' {} a -> s {kmsKeyId = a} :: RestoreEventDataStoreResponse)++-- | Indicates whether the event data store is collecting events from all+-- regions, or only from the region in which the event data store was+-- created.+restoreEventDataStoreResponse_multiRegionEnabled :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+restoreEventDataStoreResponse_multiRegionEnabled = Lens.lens (\RestoreEventDataStoreResponse' {multiRegionEnabled} -> multiRegionEnabled) (\s@RestoreEventDataStoreResponse' {} a -> s {multiRegionEnabled = a} :: RestoreEventDataStoreResponse)++-- | The name of the event data store.+restoreEventDataStoreResponse_name :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Text)+restoreEventDataStoreResponse_name = Lens.lens (\RestoreEventDataStoreResponse' {name} -> name) (\s@RestoreEventDataStoreResponse' {} a -> s {name = a} :: RestoreEventDataStoreResponse)++-- | Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+restoreEventDataStoreResponse_organizationEnabled :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+restoreEventDataStoreResponse_organizationEnabled = Lens.lens (\RestoreEventDataStoreResponse' {organizationEnabled} -> organizationEnabled) (\s@RestoreEventDataStoreResponse' {} a -> s {organizationEnabled = a} :: RestoreEventDataStoreResponse)++-- | The retention period, in days.+restoreEventDataStoreResponse_retentionPeriod :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Natural)+restoreEventDataStoreResponse_retentionPeriod = Lens.lens (\RestoreEventDataStoreResponse' {retentionPeriod} -> retentionPeriod) (\s@RestoreEventDataStoreResponse' {} a -> s {retentionPeriod = a} :: RestoreEventDataStoreResponse)++-- | The status of the event data store.+restoreEventDataStoreResponse_status :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe EventDataStoreStatus)+restoreEventDataStoreResponse_status = Lens.lens (\RestoreEventDataStoreResponse' {status} -> status) (\s@RestoreEventDataStoreResponse' {} a -> s {status = a} :: RestoreEventDataStoreResponse)++-- | Indicates that termination protection is enabled and the event data+-- store cannot be automatically deleted.+restoreEventDataStoreResponse_terminationProtectionEnabled :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+restoreEventDataStoreResponse_terminationProtectionEnabled = Lens.lens (\RestoreEventDataStoreResponse' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@RestoreEventDataStoreResponse' {} a -> s {terminationProtectionEnabled = a} :: RestoreEventDataStoreResponse)++-- | The timestamp that shows when an event data store was updated, if+-- applicable. @UpdatedTimestamp@ is always either the same or newer than+-- the time shown in @CreatedTimestamp@.+restoreEventDataStoreResponse_updatedTimestamp :: Lens.Lens' RestoreEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+restoreEventDataStoreResponse_updatedTimestamp = Lens.lens (\RestoreEventDataStoreResponse' {updatedTimestamp} -> updatedTimestamp) (\s@RestoreEventDataStoreResponse' {} a -> s {updatedTimestamp = a} :: RestoreEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+restoreEventDataStoreResponse_httpStatus :: Lens.Lens' RestoreEventDataStoreResponse Prelude.Int+restoreEventDataStoreResponse_httpStatus = Lens.lens (\RestoreEventDataStoreResponse' {httpStatus} -> httpStatus) (\s@RestoreEventDataStoreResponse' {} a -> s {httpStatus = a} :: RestoreEventDataStoreResponse)++instance Prelude.NFData RestoreEventDataStoreResponse where+  rnf RestoreEventDataStoreResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf eventDataStoreArn+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/StartImport.hs view
@@ -0,0 +1,379 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.StartImport+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts an import of logged trail events from a source S3 bucket to a+-- destination event data store. By default, CloudTrail only imports events+-- contained in the S3 bucket\'s @CloudTrail@ prefix and the prefixes+-- inside the @CloudTrail@ prefix, and does not check prefixes for other+-- Amazon Web Services services. If you want to import CloudTrail events+-- contained in another prefix, you must include the prefix in the+-- @S3LocationUri@. For more considerations about importing trail events,+-- see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake.html#cloudtrail-trail-copy-considerations Considerations>.+--+-- When you start a new import, the @Destinations@ and @ImportSource@+-- parameters are required. Before starting a new import, disable any+-- access control lists (ACLs) attached to the source S3 bucket. For more+-- information about disabling ACLs, see+-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html Controlling ownership of objects and disabling ACLs for your bucket>.+--+-- When you retry an import, the @ImportID@ parameter is required.+module Amazonka.CloudTrail.StartImport+  ( -- * Creating a Request+    StartImport (..),+    newStartImport,++    -- * Request Lenses+    startImport_destinations,+    startImport_endEventTime,+    startImport_importId,+    startImport_importSource,+    startImport_startEventTime,++    -- * Destructuring the Response+    StartImportResponse (..),+    newStartImportResponse,++    -- * Response Lenses+    startImportResponse_createdTimestamp,+    startImportResponse_destinations,+    startImportResponse_endEventTime,+    startImportResponse_importId,+    startImportResponse_importSource,+    startImportResponse_importStatus,+    startImportResponse_startEventTime,+    startImportResponse_updatedTimestamp,+    startImportResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newStartImport' smart constructor.+data StartImport = StartImport'+  { -- | The ARN of the destination event data store. Use this parameter for a+    -- new import.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Use with @StartEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period. When you specify a time range, CloudTrail checks the prefix+    -- and log file names to verify the names contain a date between the+    -- specified @StartEventTime@ and @EndEventTime@ before attempting to+    -- import events.+    endEventTime :: Prelude.Maybe Data.POSIX,+    -- | The ID of the import. Use this parameter when you are retrying an+    -- import.+    importId :: Prelude.Maybe Prelude.Text,+    -- | The source S3 bucket for the import. Use this parameter for a new+    -- import.+    importSource :: Prelude.Maybe ImportSource,+    -- | Use with @EndEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period. When you specify a time range, CloudTrail checks the prefix+    -- and log file names to verify the names contain a date between the+    -- specified @StartEventTime@ and @EndEventTime@ before attempting to+    -- import events.+    startEventTime :: Prelude.Maybe Data.POSIX+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartImport' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'destinations', 'startImport_destinations' - The ARN of the destination event data store. Use this parameter for a+-- new import.+--+-- 'endEventTime', 'startImport_endEventTime' - Use with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period. When you specify a time range, CloudTrail checks the prefix+-- and log file names to verify the names contain a date between the+-- specified @StartEventTime@ and @EndEventTime@ before attempting to+-- import events.+--+-- 'importId', 'startImport_importId' - The ID of the import. Use this parameter when you are retrying an+-- import.+--+-- 'importSource', 'startImport_importSource' - The source S3 bucket for the import. Use this parameter for a new+-- import.+--+-- 'startEventTime', 'startImport_startEventTime' - Use with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period. When you specify a time range, CloudTrail checks the prefix+-- and log file names to verify the names contain a date between the+-- specified @StartEventTime@ and @EndEventTime@ before attempting to+-- import events.+newStartImport ::+  StartImport+newStartImport =+  StartImport'+    { destinations = Prelude.Nothing,+      endEventTime = Prelude.Nothing,+      importId = Prelude.Nothing,+      importSource = Prelude.Nothing,+      startEventTime = Prelude.Nothing+    }++-- | The ARN of the destination event data store. Use this parameter for a+-- new import.+startImport_destinations :: Lens.Lens' StartImport (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+startImport_destinations = Lens.lens (\StartImport' {destinations} -> destinations) (\s@StartImport' {} a -> s {destinations = a} :: StartImport) Prelude.. Lens.mapping Lens.coerced++-- | Use with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period. When you specify a time range, CloudTrail checks the prefix+-- and log file names to verify the names contain a date between the+-- specified @StartEventTime@ and @EndEventTime@ before attempting to+-- import events.+startImport_endEventTime :: Lens.Lens' StartImport (Prelude.Maybe Prelude.UTCTime)+startImport_endEventTime = Lens.lens (\StartImport' {endEventTime} -> endEventTime) (\s@StartImport' {} a -> s {endEventTime = a} :: StartImport) Prelude.. Lens.mapping Data._Time++-- | The ID of the import. Use this parameter when you are retrying an+-- import.+startImport_importId :: Lens.Lens' StartImport (Prelude.Maybe Prelude.Text)+startImport_importId = Lens.lens (\StartImport' {importId} -> importId) (\s@StartImport' {} a -> s {importId = a} :: StartImport)++-- | The source S3 bucket for the import. Use this parameter for a new+-- import.+startImport_importSource :: Lens.Lens' StartImport (Prelude.Maybe ImportSource)+startImport_importSource = Lens.lens (\StartImport' {importSource} -> importSource) (\s@StartImport' {} a -> s {importSource = a} :: StartImport)++-- | Use with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period. When you specify a time range, CloudTrail checks the prefix+-- and log file names to verify the names contain a date between the+-- specified @StartEventTime@ and @EndEventTime@ before attempting to+-- import events.+startImport_startEventTime :: Lens.Lens' StartImport (Prelude.Maybe Prelude.UTCTime)+startImport_startEventTime = Lens.lens (\StartImport' {startEventTime} -> startEventTime) (\s@StartImport' {} a -> s {startEventTime = a} :: StartImport) Prelude.. Lens.mapping Data._Time++instance Core.AWSRequest StartImport where+  type AWSResponse StartImport = StartImportResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          StartImportResponse'+            Prelude.<$> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "Destinations")+            Prelude.<*> (x Data..?> "EndEventTime")+            Prelude.<*> (x Data..?> "ImportId")+            Prelude.<*> (x Data..?> "ImportSource")+            Prelude.<*> (x Data..?> "ImportStatus")+            Prelude.<*> (x Data..?> "StartEventTime")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable StartImport where+  hashWithSalt _salt StartImport' {..} =+    _salt+      `Prelude.hashWithSalt` destinations+      `Prelude.hashWithSalt` endEventTime+      `Prelude.hashWithSalt` importId+      `Prelude.hashWithSalt` importSource+      `Prelude.hashWithSalt` startEventTime++instance Prelude.NFData StartImport where+  rnf StartImport' {..} =+    Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf endEventTime+      `Prelude.seq` Prelude.rnf importId+      `Prelude.seq` Prelude.rnf importSource+      `Prelude.seq` Prelude.rnf startEventTime++instance Data.ToHeaders StartImport where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StartImport" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON StartImport where+  toJSON StartImport' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Destinations" Data..=) Prelude.<$> destinations,+            ("EndEventTime" Data..=) Prelude.<$> endEventTime,+            ("ImportId" Data..=) Prelude.<$> importId,+            ("ImportSource" Data..=) Prelude.<$> importSource,+            ("StartEventTime" Data..=)+              Prelude.<$> startEventTime+          ]+      )++instance Data.ToPath StartImport where+  toPath = Prelude.const "/"++instance Data.ToQuery StartImport where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newStartImportResponse' smart constructor.+data StartImportResponse = StartImportResponse'+  { -- | The timestamp for the import\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the destination event data store.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    endEventTime :: Prelude.Maybe Data.POSIX,+    -- | The ID of the import.+    importId :: Prelude.Maybe Prelude.Text,+    -- | The source S3 bucket for the import.+    importSource :: Prelude.Maybe ImportSource,+    -- | Shows the status of the import after a @StartImport@ request. An import+    -- finishes with a status of @COMPLETED@ if there were no failures, or+    -- @FAILED@ if there were failures.+    importStatus :: Prelude.Maybe ImportStatus,+    -- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    startEventTime :: Prelude.Maybe Data.POSIX,+    -- | The timestamp of the import\'s last update, if applicable.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartImportResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'createdTimestamp', 'startImportResponse_createdTimestamp' - The timestamp for the import\'s creation.+--+-- 'destinations', 'startImportResponse_destinations' - The ARN of the destination event data store.+--+-- 'endEventTime', 'startImportResponse_endEventTime' - Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'importId', 'startImportResponse_importId' - The ID of the import.+--+-- 'importSource', 'startImportResponse_importSource' - The source S3 bucket for the import.+--+-- 'importStatus', 'startImportResponse_importStatus' - Shows the status of the import after a @StartImport@ request. An import+-- finishes with a status of @COMPLETED@ if there were no failures, or+-- @FAILED@ if there were failures.+--+-- 'startEventTime', 'startImportResponse_startEventTime' - Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'updatedTimestamp', 'startImportResponse_updatedTimestamp' - The timestamp of the import\'s last update, if applicable.+--+-- 'httpStatus', 'startImportResponse_httpStatus' - The response's http status code.+newStartImportResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  StartImportResponse+newStartImportResponse pHttpStatus_ =+  StartImportResponse'+    { createdTimestamp =+        Prelude.Nothing,+      destinations = Prelude.Nothing,+      endEventTime = Prelude.Nothing,+      importId = Prelude.Nothing,+      importSource = Prelude.Nothing,+      importStatus = Prelude.Nothing,+      startEventTime = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The timestamp for the import\'s creation.+startImportResponse_createdTimestamp :: Lens.Lens' StartImportResponse (Prelude.Maybe Prelude.UTCTime)+startImportResponse_createdTimestamp = Lens.lens (\StartImportResponse' {createdTimestamp} -> createdTimestamp) (\s@StartImportResponse' {} a -> s {createdTimestamp = a} :: StartImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ARN of the destination event data store.+startImportResponse_destinations :: Lens.Lens' StartImportResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+startImportResponse_destinations = Lens.lens (\StartImportResponse' {destinations} -> destinations) (\s@StartImportResponse' {} a -> s {destinations = a} :: StartImportResponse) Prelude.. Lens.mapping Lens.coerced++-- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+startImportResponse_endEventTime :: Lens.Lens' StartImportResponse (Prelude.Maybe Prelude.UTCTime)+startImportResponse_endEventTime = Lens.lens (\StartImportResponse' {endEventTime} -> endEventTime) (\s@StartImportResponse' {} a -> s {endEventTime = a} :: StartImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ID of the import.+startImportResponse_importId :: Lens.Lens' StartImportResponse (Prelude.Maybe Prelude.Text)+startImportResponse_importId = Lens.lens (\StartImportResponse' {importId} -> importId) (\s@StartImportResponse' {} a -> s {importId = a} :: StartImportResponse)++-- | The source S3 bucket for the import.+startImportResponse_importSource :: Lens.Lens' StartImportResponse (Prelude.Maybe ImportSource)+startImportResponse_importSource = Lens.lens (\StartImportResponse' {importSource} -> importSource) (\s@StartImportResponse' {} a -> s {importSource = a} :: StartImportResponse)++-- | Shows the status of the import after a @StartImport@ request. An import+-- finishes with a status of @COMPLETED@ if there were no failures, or+-- @FAILED@ if there were failures.+startImportResponse_importStatus :: Lens.Lens' StartImportResponse (Prelude.Maybe ImportStatus)+startImportResponse_importStatus = Lens.lens (\StartImportResponse' {importStatus} -> importStatus) (\s@StartImportResponse' {} a -> s {importStatus = a} :: StartImportResponse)++-- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+startImportResponse_startEventTime :: Lens.Lens' StartImportResponse (Prelude.Maybe Prelude.UTCTime)+startImportResponse_startEventTime = Lens.lens (\StartImportResponse' {startEventTime} -> startEventTime) (\s@StartImportResponse' {} a -> s {startEventTime = a} :: StartImportResponse) Prelude.. Lens.mapping Data._Time++-- | The timestamp of the import\'s last update, if applicable.+startImportResponse_updatedTimestamp :: Lens.Lens' StartImportResponse (Prelude.Maybe Prelude.UTCTime)+startImportResponse_updatedTimestamp = Lens.lens (\StartImportResponse' {updatedTimestamp} -> updatedTimestamp) (\s@StartImportResponse' {} a -> s {updatedTimestamp = a} :: StartImportResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+startImportResponse_httpStatus :: Lens.Lens' StartImportResponse Prelude.Int+startImportResponse_httpStatus = Lens.lens (\StartImportResponse' {httpStatus} -> httpStatus) (\s@StartImportResponse' {} a -> s {httpStatus = a} :: StartImportResponse)++instance Prelude.NFData StartImportResponse where+  rnf StartImportResponse' {..} =+    Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf endEventTime+      `Prelude.seq` Prelude.rnf importId+      `Prelude.seq` Prelude.rnf importSource+      `Prelude.seq` Prelude.rnf importStatus+      `Prelude.seq` Prelude.rnf startEventTime+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/StartLogging.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.StartLogging+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts the recording of Amazon Web Services 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.+module Amazonka.CloudTrail.StartLogging+  ( -- * Creating a Request+    StartLogging (..),+    newStartLogging,++    -- * Request Lenses+    startLogging_name,++    -- * Destructuring the Response+    StartLoggingResponse (..),+    newStartLoggingResponse,++    -- * Response Lenses+    startLoggingResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | The request to CloudTrail to start logging Amazon Web Services API calls+-- for an account.+--+-- /See:/ 'newStartLogging' smart constructor.+data StartLogging = StartLogging'+  { -- | Specifies the name or the CloudTrail ARN of the trail for which+    -- CloudTrail logs Amazon Web Services API calls. The following is the+    -- format of a trail ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartLogging' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'startLogging_name' - Specifies the name or the CloudTrail ARN of the trail for which+-- CloudTrail logs Amazon Web Services API calls. The following is the+-- format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newStartLogging ::+  -- | 'name'+  Prelude.Text ->+  StartLogging+newStartLogging pName_ = StartLogging' {name = pName_}++-- | Specifies the name or the CloudTrail ARN of the trail for which+-- CloudTrail logs Amazon Web Services API calls. The following is the+-- format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+startLogging_name :: Lens.Lens' StartLogging Prelude.Text+startLogging_name = Lens.lens (\StartLogging' {name} -> name) (\s@StartLogging' {} a -> s {name = a} :: StartLogging)++instance Core.AWSRequest StartLogging where+  type AWSResponse StartLogging = StartLoggingResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          StartLoggingResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable StartLogging where+  hashWithSalt _salt StartLogging' {..} =+    _salt `Prelude.hashWithSalt` name++instance Prelude.NFData StartLogging where+  rnf StartLogging' {..} = Prelude.rnf name++instance Data.ToHeaders StartLogging where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StartLogging" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON StartLogging where+  toJSON StartLogging' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Name" Data..= name)]+      )++instance Data.ToPath StartLogging where+  toPath = Prelude.const "/"++instance Data.ToQuery StartLogging where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newStartLoggingResponse' smart constructor.+data StartLoggingResponse = StartLoggingResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartLoggingResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'startLoggingResponse_httpStatus' - The response's http status code.+newStartLoggingResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  StartLoggingResponse+newStartLoggingResponse pHttpStatus_ =+  StartLoggingResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+startLoggingResponse_httpStatus :: Lens.Lens' StartLoggingResponse Prelude.Int+startLoggingResponse_httpStatus = Lens.lens (\StartLoggingResponse' {httpStatus} -> httpStatus) (\s@StartLoggingResponse' {} a -> s {httpStatus = a} :: StartLoggingResponse)++instance Prelude.NFData StartLoggingResponse where+  rnf StartLoggingResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/StartQuery.hs view
@@ -0,0 +1,187 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.StartQuery+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts a CloudTrail Lake query. The required @QueryStatement@ parameter+-- provides your SQL query, enclosed in single quotation marks. Use the+-- optional @DeliveryS3Uri@ parameter to deliver the query results to an S3+-- bucket.+module Amazonka.CloudTrail.StartQuery+  ( -- * Creating a Request+    StartQuery (..),+    newStartQuery,++    -- * Request Lenses+    startQuery_deliveryS3Uri,+    startQuery_queryStatement,++    -- * Destructuring the Response+    StartQueryResponse (..),+    newStartQueryResponse,++    -- * Response Lenses+    startQueryResponse_queryId,+    startQueryResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newStartQuery' smart constructor.+data StartQuery = StartQuery'+  { -- | The URI for the S3 bucket where CloudTrail delivers the query results.+    deliveryS3Uri :: Prelude.Maybe Prelude.Text,+    -- | The SQL code of your query.+    queryStatement :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartQuery' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'deliveryS3Uri', 'startQuery_deliveryS3Uri' - The URI for the S3 bucket where CloudTrail delivers the query results.+--+-- 'queryStatement', 'startQuery_queryStatement' - The SQL code of your query.+newStartQuery ::+  -- | 'queryStatement'+  Prelude.Text ->+  StartQuery+newStartQuery pQueryStatement_ =+  StartQuery'+    { deliveryS3Uri = Prelude.Nothing,+      queryStatement = pQueryStatement_+    }++-- | The URI for the S3 bucket where CloudTrail delivers the query results.+startQuery_deliveryS3Uri :: Lens.Lens' StartQuery (Prelude.Maybe Prelude.Text)+startQuery_deliveryS3Uri = Lens.lens (\StartQuery' {deliveryS3Uri} -> deliveryS3Uri) (\s@StartQuery' {} a -> s {deliveryS3Uri = a} :: StartQuery)++-- | The SQL code of your query.+startQuery_queryStatement :: Lens.Lens' StartQuery Prelude.Text+startQuery_queryStatement = Lens.lens (\StartQuery' {queryStatement} -> queryStatement) (\s@StartQuery' {} a -> s {queryStatement = a} :: StartQuery)++instance Core.AWSRequest StartQuery where+  type AWSResponse StartQuery = StartQueryResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          StartQueryResponse'+            Prelude.<$> (x Data..?> "QueryId")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable StartQuery where+  hashWithSalt _salt StartQuery' {..} =+    _salt+      `Prelude.hashWithSalt` deliveryS3Uri+      `Prelude.hashWithSalt` queryStatement++instance Prelude.NFData StartQuery where+  rnf StartQuery' {..} =+    Prelude.rnf deliveryS3Uri+      `Prelude.seq` Prelude.rnf queryStatement++instance Data.ToHeaders StartQuery where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StartQuery" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON StartQuery where+  toJSON StartQuery' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("DeliveryS3Uri" Data..=) Prelude.<$> deliveryS3Uri,+            Prelude.Just+              ("QueryStatement" Data..= queryStatement)+          ]+      )++instance Data.ToPath StartQuery where+  toPath = Prelude.const "/"++instance Data.ToQuery StartQuery where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newStartQueryResponse' smart constructor.+data StartQueryResponse = StartQueryResponse'+  { -- | The ID of the started query.+    queryId :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StartQueryResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'queryId', 'startQueryResponse_queryId' - The ID of the started query.+--+-- 'httpStatus', 'startQueryResponse_httpStatus' - The response's http status code.+newStartQueryResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  StartQueryResponse+newStartQueryResponse pHttpStatus_ =+  StartQueryResponse'+    { queryId = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The ID of the started query.+startQueryResponse_queryId :: Lens.Lens' StartQueryResponse (Prelude.Maybe Prelude.Text)+startQueryResponse_queryId = Lens.lens (\StartQueryResponse' {queryId} -> queryId) (\s@StartQueryResponse' {} a -> s {queryId = a} :: StartQueryResponse)++-- | The response's http status code.+startQueryResponse_httpStatus :: Lens.Lens' StartQueryResponse Prelude.Int+startQueryResponse_httpStatus = Lens.lens (\StartQueryResponse' {httpStatus} -> httpStatus) (\s@StartQueryResponse' {} a -> s {httpStatus = a} :: StartQueryResponse)++instance Prelude.NFData StartQueryResponse where+  rnf StartQueryResponse' {..} =+    Prelude.rnf queryId+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/StopImport.hs view
@@ -0,0 +1,274 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.StopImport+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Stops a specified import.+module Amazonka.CloudTrail.StopImport+  ( -- * Creating a Request+    StopImport (..),+    newStopImport,++    -- * Request Lenses+    stopImport_importId,++    -- * Destructuring the Response+    StopImportResponse (..),+    newStopImportResponse,++    -- * Response Lenses+    stopImportResponse_createdTimestamp,+    stopImportResponse_destinations,+    stopImportResponse_endEventTime,+    stopImportResponse_importId,+    stopImportResponse_importSource,+    stopImportResponse_importStatistics,+    stopImportResponse_importStatus,+    stopImportResponse_startEventTime,+    stopImportResponse_updatedTimestamp,+    stopImportResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newStopImport' smart constructor.+data StopImport = StopImport'+  { -- | The ID of the import.+    importId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopImport' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'importId', 'stopImport_importId' - The ID of the import.+newStopImport ::+  -- | 'importId'+  Prelude.Text ->+  StopImport+newStopImport pImportId_ =+  StopImport' {importId = pImportId_}++-- | The ID of the import.+stopImport_importId :: Lens.Lens' StopImport Prelude.Text+stopImport_importId = Lens.lens (\StopImport' {importId} -> importId) (\s@StopImport' {} a -> s {importId = a} :: StopImport)++instance Core.AWSRequest StopImport where+  type AWSResponse StopImport = StopImportResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          StopImportResponse'+            Prelude.<$> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "Destinations")+            Prelude.<*> (x Data..?> "EndEventTime")+            Prelude.<*> (x Data..?> "ImportId")+            Prelude.<*> (x Data..?> "ImportSource")+            Prelude.<*> (x Data..?> "ImportStatistics")+            Prelude.<*> (x Data..?> "ImportStatus")+            Prelude.<*> (x Data..?> "StartEventTime")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable StopImport where+  hashWithSalt _salt StopImport' {..} =+    _salt `Prelude.hashWithSalt` importId++instance Prelude.NFData StopImport where+  rnf StopImport' {..} = Prelude.rnf importId++instance Data.ToHeaders StopImport where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StopImport" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON StopImport where+  toJSON StopImport' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("ImportId" Data..= importId)]+      )++instance Data.ToPath StopImport where+  toPath = Prelude.const "/"++instance Data.ToQuery StopImport where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newStopImportResponse' smart constructor.+data StopImportResponse = StopImportResponse'+  { -- | The timestamp of the import\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the destination event data store.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    endEventTime :: Prelude.Maybe Data.POSIX,+    -- | The ID for the import.+    importId :: Prelude.Maybe Prelude.Text,+    -- | The source S3 bucket for the import.+    importSource :: Prelude.Maybe ImportSource,+    -- | Returns information on the stopped import.+    importStatistics :: Prelude.Maybe ImportStatistics,+    -- | The status of the import.+    importStatus :: Prelude.Maybe ImportStatus,+    -- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+    -- imported trail events to only those events logged within a specified+    -- time period.+    startEventTime :: Prelude.Maybe Data.POSIX,+    -- | The timestamp of the import\'s last update.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopImportResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'createdTimestamp', 'stopImportResponse_createdTimestamp' - The timestamp of the import\'s creation.+--+-- 'destinations', 'stopImportResponse_destinations' - The ARN of the destination event data store.+--+-- 'endEventTime', 'stopImportResponse_endEventTime' - Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'importId', 'stopImportResponse_importId' - The ID for the import.+--+-- 'importSource', 'stopImportResponse_importSource' - The source S3 bucket for the import.+--+-- 'importStatistics', 'stopImportResponse_importStatistics' - Returns information on the stopped import.+--+-- 'importStatus', 'stopImportResponse_importStatus' - The status of the import.+--+-- 'startEventTime', 'stopImportResponse_startEventTime' - Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+--+-- 'updatedTimestamp', 'stopImportResponse_updatedTimestamp' - The timestamp of the import\'s last update.+--+-- 'httpStatus', 'stopImportResponse_httpStatus' - The response's http status code.+newStopImportResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  StopImportResponse+newStopImportResponse pHttpStatus_ =+  StopImportResponse'+    { createdTimestamp =+        Prelude.Nothing,+      destinations = Prelude.Nothing,+      endEventTime = Prelude.Nothing,+      importId = Prelude.Nothing,+      importSource = Prelude.Nothing,+      importStatistics = Prelude.Nothing,+      importStatus = Prelude.Nothing,+      startEventTime = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The timestamp of the import\'s creation.+stopImportResponse_createdTimestamp :: Lens.Lens' StopImportResponse (Prelude.Maybe Prelude.UTCTime)+stopImportResponse_createdTimestamp = Lens.lens (\StopImportResponse' {createdTimestamp} -> createdTimestamp) (\s@StopImportResponse' {} a -> s {createdTimestamp = a} :: StopImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ARN of the destination event data store.+stopImportResponse_destinations :: Lens.Lens' StopImportResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+stopImportResponse_destinations = Lens.lens (\StopImportResponse' {destinations} -> destinations) (\s@StopImportResponse' {} a -> s {destinations = a} :: StopImportResponse) Prelude.. Lens.mapping Lens.coerced++-- | Used with @StartEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+stopImportResponse_endEventTime :: Lens.Lens' StopImportResponse (Prelude.Maybe Prelude.UTCTime)+stopImportResponse_endEventTime = Lens.lens (\StopImportResponse' {endEventTime} -> endEventTime) (\s@StopImportResponse' {} a -> s {endEventTime = a} :: StopImportResponse) Prelude.. Lens.mapping Data._Time++-- | The ID for the import.+stopImportResponse_importId :: Lens.Lens' StopImportResponse (Prelude.Maybe Prelude.Text)+stopImportResponse_importId = Lens.lens (\StopImportResponse' {importId} -> importId) (\s@StopImportResponse' {} a -> s {importId = a} :: StopImportResponse)++-- | The source S3 bucket for the import.+stopImportResponse_importSource :: Lens.Lens' StopImportResponse (Prelude.Maybe ImportSource)+stopImportResponse_importSource = Lens.lens (\StopImportResponse' {importSource} -> importSource) (\s@StopImportResponse' {} a -> s {importSource = a} :: StopImportResponse)++-- | Returns information on the stopped import.+stopImportResponse_importStatistics :: Lens.Lens' StopImportResponse (Prelude.Maybe ImportStatistics)+stopImportResponse_importStatistics = Lens.lens (\StopImportResponse' {importStatistics} -> importStatistics) (\s@StopImportResponse' {} a -> s {importStatistics = a} :: StopImportResponse)++-- | The status of the import.+stopImportResponse_importStatus :: Lens.Lens' StopImportResponse (Prelude.Maybe ImportStatus)+stopImportResponse_importStatus = Lens.lens (\StopImportResponse' {importStatus} -> importStatus) (\s@StopImportResponse' {} a -> s {importStatus = a} :: StopImportResponse)++-- | Used with @EndEventTime@ to bound a @StartImport@ request, and limit+-- imported trail events to only those events logged within a specified+-- time period.+stopImportResponse_startEventTime :: Lens.Lens' StopImportResponse (Prelude.Maybe Prelude.UTCTime)+stopImportResponse_startEventTime = Lens.lens (\StopImportResponse' {startEventTime} -> startEventTime) (\s@StopImportResponse' {} a -> s {startEventTime = a} :: StopImportResponse) Prelude.. Lens.mapping Data._Time++-- | The timestamp of the import\'s last update.+stopImportResponse_updatedTimestamp :: Lens.Lens' StopImportResponse (Prelude.Maybe Prelude.UTCTime)+stopImportResponse_updatedTimestamp = Lens.lens (\StopImportResponse' {updatedTimestamp} -> updatedTimestamp) (\s@StopImportResponse' {} a -> s {updatedTimestamp = a} :: StopImportResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+stopImportResponse_httpStatus :: Lens.Lens' StopImportResponse Prelude.Int+stopImportResponse_httpStatus = Lens.lens (\StopImportResponse' {httpStatus} -> httpStatus) (\s@StopImportResponse' {} a -> s {httpStatus = a} :: StopImportResponse)++instance Prelude.NFData StopImportResponse where+  rnf StopImportResponse' {..} =+    Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf endEventTime+      `Prelude.seq` Prelude.rnf importId+      `Prelude.seq` Prelude.rnf importSource+      `Prelude.seq` Prelude.rnf importStatistics+      `Prelude.seq` Prelude.rnf importStatus+      `Prelude.seq` Prelude.rnf startEventTime+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/StopLogging.hs view
@@ -0,0 +1,174 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.StopLogging+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Suspends the recording of Amazon Web Services 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.+module Amazonka.CloudTrail.StopLogging+  ( -- * Creating a Request+    StopLogging (..),+    newStopLogging,++    -- * Request Lenses+    stopLogging_name,++    -- * Destructuring the Response+    StopLoggingResponse (..),+    newStopLoggingResponse,++    -- * Response Lenses+    stopLoggingResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Passes the request to CloudTrail to stop logging Amazon Web Services API+-- calls for the specified account.+--+-- /See:/ 'newStopLogging' smart constructor.+data StopLogging = StopLogging'+  { -- | Specifies the name or the CloudTrail ARN of the trail for which+    -- CloudTrail will stop logging Amazon Web Services API calls. The+    -- following is the format of a trail ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopLogging' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'stopLogging_name' - Specifies the name or the CloudTrail ARN of the trail for which+-- CloudTrail will stop logging Amazon Web Services API calls. The+-- following is the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newStopLogging ::+  -- | 'name'+  Prelude.Text ->+  StopLogging+newStopLogging pName_ = StopLogging' {name = pName_}++-- | Specifies the name or the CloudTrail ARN of the trail for which+-- CloudTrail will stop logging Amazon Web Services API calls. The+-- following is the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+stopLogging_name :: Lens.Lens' StopLogging Prelude.Text+stopLogging_name = Lens.lens (\StopLogging' {name} -> name) (\s@StopLogging' {} a -> s {name = a} :: StopLogging)++instance Core.AWSRequest StopLogging where+  type AWSResponse StopLogging = StopLoggingResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          StopLoggingResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable StopLogging where+  hashWithSalt _salt StopLogging' {..} =+    _salt `Prelude.hashWithSalt` name++instance Prelude.NFData StopLogging where+  rnf StopLogging' {..} = Prelude.rnf name++instance Data.ToHeaders StopLogging where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StopLogging" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON StopLogging where+  toJSON StopLogging' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("Name" Data..= name)]+      )++instance Data.ToPath StopLogging where+  toPath = Prelude.const "/"++instance Data.ToQuery StopLogging where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newStopLoggingResponse' smart constructor.+data StopLoggingResponse = StopLoggingResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'StopLoggingResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'stopLoggingResponse_httpStatus' - The response's http status code.+newStopLoggingResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  StopLoggingResponse+newStopLoggingResponse pHttpStatus_ =+  StopLoggingResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+stopLoggingResponse_httpStatus :: Lens.Lens' StopLoggingResponse Prelude.Int+stopLoggingResponse_httpStatus = Lens.lens (\StopLoggingResponse' {httpStatus} -> httpStatus) (\s@StopLoggingResponse' {} a -> s {httpStatus = a} :: StopLoggingResponse)++instance Prelude.NFData StopLoggingResponse where+  rnf StopLoggingResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/Types.hs view
@@ -0,0 +1,1052 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    _AccountHasOngoingImportException,+    _AccountNotFoundException,+    _AccountNotRegisteredException,+    _AccountRegisteredException,+    _CannotDelegateManagementAccountException,+    _ChannelARNInvalidException,+    _ChannelNotFoundException,+    _CloudTrailARNInvalidException,+    _CloudTrailAccessNotEnabledException,+    _CloudTrailInvalidClientTokenIdException,+    _CloudWatchLogsDeliveryUnavailableException,+    _ConflictException,+    _DelegatedAdminAccountLimitExceededException,+    _EventDataStoreARNInvalidException,+    _EventDataStoreAlreadyExistsException,+    _EventDataStoreHasOngoingImportException,+    _EventDataStoreMaxLimitExceededException,+    _EventDataStoreNotFoundException,+    _EventDataStoreTerminationProtectedException,+    _ImportNotFoundException,+    _InactiveEventDataStoreException,+    _InactiveQueryException,+    _InsightNotEnabledException,+    _InsufficientDependencyServiceAccessPermissionException,+    _InsufficientEncryptionPolicyException,+    _InsufficientS3BucketPolicyException,+    _InsufficientSnsTopicPolicyException,+    _InvalidCloudWatchLogsLogGroupArnException,+    _InvalidCloudWatchLogsRoleArnException,+    _InvalidDateRangeException,+    _InvalidEventCategoryException,+    _InvalidEventDataStoreCategoryException,+    _InvalidEventDataStoreStatusException,+    _InvalidEventSelectorsException,+    _InvalidHomeRegionException,+    _InvalidImportSourceException,+    _InvalidInsightSelectorsException,+    _InvalidKmsKeyIdException,+    _InvalidLookupAttributesException,+    _InvalidMaxResultsException,+    _InvalidNextTokenException,+    _InvalidParameterCombinationException,+    _InvalidParameterException,+    _InvalidQueryStatementException,+    _InvalidQueryStatusException,+    _InvalidS3BucketNameException,+    _InvalidS3PrefixException,+    _InvalidSnsTopicNameException,+    _InvalidTagParameterException,+    _InvalidTimeRangeException,+    _InvalidTokenException,+    _InvalidTrailNameException,+    _KmsException,+    _KmsKeyDisabledException,+    _KmsKeyNotFoundException,+    _MaxConcurrentQueriesException,+    _MaximumNumberOfTrailsExceededException,+    _NoManagementAccountSLRExistsException,+    _NotOrganizationManagementAccountException,+    _NotOrganizationMasterAccountException,+    _OperationNotPermittedException,+    _OrganizationNotInAllFeaturesModeException,+    _OrganizationsNotInUseException,+    _QueryIdNotFoundException,+    _ResourceNotFoundException,+    _ResourceTypeNotSupportedException,+    _S3BucketDoesNotExistException,+    _TagsLimitExceededException,+    _TrailAlreadyExistsException,+    _TrailNotFoundException,+    _TrailNotProvidedException,+    _UnsupportedOperationException,++    -- * DeliveryStatus+    DeliveryStatus (..),++    -- * DestinationType+    DestinationType (..),++    -- * EventCategory+    EventCategory (..),++    -- * EventDataStoreStatus+    EventDataStoreStatus (..),++    -- * ImportFailureStatus+    ImportFailureStatus (..),++    -- * ImportStatus+    ImportStatus (..),++    -- * InsightType+    InsightType (..),++    -- * LookupAttributeKey+    LookupAttributeKey (..),++    -- * QueryStatus+    QueryStatus (..),++    -- * ReadWriteType+    ReadWriteType (..),++    -- * AdvancedEventSelector+    AdvancedEventSelector (..),+    newAdvancedEventSelector,+    advancedEventSelector_name,+    advancedEventSelector_fieldSelectors,++    -- * AdvancedFieldSelector+    AdvancedFieldSelector (..),+    newAdvancedFieldSelector,+    advancedFieldSelector_endsWith,+    advancedFieldSelector_equals,+    advancedFieldSelector_notEndsWith,+    advancedFieldSelector_notEquals,+    advancedFieldSelector_notStartsWith,+    advancedFieldSelector_startsWith,+    advancedFieldSelector_field,++    -- * Channel+    Channel (..),+    newChannel,+    channel_channelArn,+    channel_name,++    -- * DataResource+    DataResource (..),+    newDataResource,+    dataResource_type,+    dataResource_values,++    -- * Destination+    Destination (..),+    newDestination,+    destination_type,+    destination_location,++    -- * Event+    Event (..),+    newEvent,+    event_accessKeyId,+    event_cloudTrailEvent,+    event_eventId,+    event_eventName,+    event_eventSource,+    event_eventTime,+    event_readOnly,+    event_resources,+    event_username,++    -- * EventDataStore+    EventDataStore (..),+    newEventDataStore,+    eventDataStore_advancedEventSelectors,+    eventDataStore_createdTimestamp,+    eventDataStore_eventDataStoreArn,+    eventDataStore_multiRegionEnabled,+    eventDataStore_name,+    eventDataStore_organizationEnabled,+    eventDataStore_retentionPeriod,+    eventDataStore_status,+    eventDataStore_terminationProtectionEnabled,+    eventDataStore_updatedTimestamp,++    -- * EventSelector+    EventSelector (..),+    newEventSelector,+    eventSelector_dataResources,+    eventSelector_excludeManagementEventSources,+    eventSelector_includeManagementEvents,+    eventSelector_readWriteType,++    -- * ImportFailureListItem+    ImportFailureListItem (..),+    newImportFailureListItem,+    importFailureListItem_errorMessage,+    importFailureListItem_errorType,+    importFailureListItem_lastUpdatedTime,+    importFailureListItem_location,+    importFailureListItem_status,++    -- * ImportSource+    ImportSource (..),+    newImportSource,+    importSource_s3,++    -- * ImportStatistics+    ImportStatistics (..),+    newImportStatistics,+    importStatistics_eventsCompleted,+    importStatistics_failedEntries,+    importStatistics_filesCompleted,+    importStatistics_prefixesCompleted,+    importStatistics_prefixesFound,++    -- * ImportsListItem+    ImportsListItem (..),+    newImportsListItem,+    importsListItem_createdTimestamp,+    importsListItem_destinations,+    importsListItem_importId,+    importsListItem_importStatus,+    importsListItem_updatedTimestamp,++    -- * InsightSelector+    InsightSelector (..),+    newInsightSelector,+    insightSelector_insightType,++    -- * LookupAttribute+    LookupAttribute (..),+    newLookupAttribute,+    lookupAttribute_attributeKey,+    lookupAttribute_attributeValue,++    -- * PublicKey+    PublicKey (..),+    newPublicKey,+    publicKey_fingerprint,+    publicKey_validityEndTime,+    publicKey_validityStartTime,+    publicKey_value,++    -- * Query+    Query (..),+    newQuery,+    query_creationTime,+    query_queryId,+    query_queryStatus,++    -- * QueryStatistics+    QueryStatistics (..),+    newQueryStatistics,+    queryStatistics_bytesScanned,+    queryStatistics_resultsCount,+    queryStatistics_totalResultsCount,++    -- * QueryStatisticsForDescribeQuery+    QueryStatisticsForDescribeQuery (..),+    newQueryStatisticsForDescribeQuery,+    queryStatisticsForDescribeQuery_bytesScanned,+    queryStatisticsForDescribeQuery_creationTime,+    queryStatisticsForDescribeQuery_eventsMatched,+    queryStatisticsForDescribeQuery_eventsScanned,+    queryStatisticsForDescribeQuery_executionTimeInMillis,++    -- * Resource+    Resource (..),+    newResource,+    resource_resourceName,+    resource_resourceType,++    -- * ResourceTag+    ResourceTag (..),+    newResourceTag,+    resourceTag_resourceId,+    resourceTag_tagsList,++    -- * S3ImportSource+    S3ImportSource (..),+    newS3ImportSource,+    s3ImportSource_s3LocationUri,+    s3ImportSource_s3BucketRegion,+    s3ImportSource_s3BucketAccessRoleArn,++    -- * SourceConfig+    SourceConfig (..),+    newSourceConfig,+    sourceConfig_advancedEventSelectors,+    sourceConfig_applyToAllRegions,++    -- * Tag+    Tag (..),+    newTag,+    tag_value,+    tag_key,++    -- * Trail+    Trail (..),+    newTrail,+    trail_cloudWatchLogsLogGroupArn,+    trail_cloudWatchLogsRoleArn,+    trail_hasCustomEventSelectors,+    trail_hasInsightSelectors,+    trail_homeRegion,+    trail_includeGlobalServiceEvents,+    trail_isMultiRegionTrail,+    trail_isOrganizationTrail,+    trail_kmsKeyId,+    trail_logFileValidationEnabled,+    trail_name,+    trail_s3BucketName,+    trail_s3KeyPrefix,+    trail_snsTopicARN,+    trail_snsTopicName,+    trail_trailARN,++    -- * TrailInfo+    TrailInfo (..),+    newTrailInfo,+    trailInfo_homeRegion,+    trailInfo_name,+    trailInfo_trailARN,+  )+where++import Amazonka.CloudTrail.Types.AdvancedEventSelector+import Amazonka.CloudTrail.Types.AdvancedFieldSelector+import Amazonka.CloudTrail.Types.Channel+import Amazonka.CloudTrail.Types.DataResource+import Amazonka.CloudTrail.Types.DeliveryStatus+import Amazonka.CloudTrail.Types.Destination+import Amazonka.CloudTrail.Types.DestinationType+import Amazonka.CloudTrail.Types.Event+import Amazonka.CloudTrail.Types.EventCategory+import Amazonka.CloudTrail.Types.EventDataStore+import Amazonka.CloudTrail.Types.EventDataStoreStatus+import Amazonka.CloudTrail.Types.EventSelector+import Amazonka.CloudTrail.Types.ImportFailureListItem+import Amazonka.CloudTrail.Types.ImportFailureStatus+import Amazonka.CloudTrail.Types.ImportSource+import Amazonka.CloudTrail.Types.ImportStatistics+import Amazonka.CloudTrail.Types.ImportStatus+import Amazonka.CloudTrail.Types.ImportsListItem+import Amazonka.CloudTrail.Types.InsightSelector+import Amazonka.CloudTrail.Types.InsightType+import Amazonka.CloudTrail.Types.LookupAttribute+import Amazonka.CloudTrail.Types.LookupAttributeKey+import Amazonka.CloudTrail.Types.PublicKey+import Amazonka.CloudTrail.Types.Query+import Amazonka.CloudTrail.Types.QueryStatistics+import Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery+import Amazonka.CloudTrail.Types.QueryStatus+import Amazonka.CloudTrail.Types.ReadWriteType+import Amazonka.CloudTrail.Types.Resource+import Amazonka.CloudTrail.Types.ResourceTag+import Amazonka.CloudTrail.Types.S3ImportSource+import Amazonka.CloudTrail.Types.SourceConfig+import Amazonka.CloudTrail.Types.Tag+import Amazonka.CloudTrail.Types.Trail+import Amazonka.CloudTrail.Types.TrailInfo+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2013-11-01@ of the Amazon CloudTrail SDK configuration.+defaultService :: Core.Service+defaultService =+  Core.Service+    { Core.abbrev = "CloudTrail",+      Core.signer = Sign.v4,+      Core.endpointPrefix = "cloudtrail",+      Core.signingName = "cloudtrail",+      Core.version = "2013-11-01",+      Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+      Core.endpoint = Core.defaultEndpoint defaultService,+      Core.timeout = Prelude.Just 70,+      Core.check = Core.statusSuccess,+      Core.error = Core.parseJSONError "CloudTrail",+      Core.retry = retry+    }+  where+    retry =+      Core.Exponential+        { Core.base = 5.0e-2,+          Core.growth = 2,+          Core.attempts = 5,+          Core.check = check+        }+    check e+      | Lens.has (Core.hasStatus 502) e =+          Prelude.Just "bad_gateway"+      | Lens.has (Core.hasStatus 504) e =+          Prelude.Just "gateway_timeout"+      | Lens.has (Core.hasStatus 500) e =+          Prelude.Just "general_server_error"+      | Lens.has (Core.hasStatus 509) e =+          Prelude.Just "limit_exceeded"+      | Lens.has+          ( Core.hasCode "RequestThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "request_throttled_exception"+      | Lens.has (Core.hasStatus 503) e =+          Prelude.Just "service_unavailable"+      | Lens.has+          ( Core.hasCode "ThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttled_exception"+      | Lens.has+          ( Core.hasCode "Throttling"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling"+      | Lens.has+          ( Core.hasCode "ThrottlingException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling_exception"+      | Lens.has+          ( Core.hasCode+              "ProvisionedThroughputExceededException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throughput_exceeded"+      | Lens.has (Core.hasStatus 429) e =+          Prelude.Just "too_many_requests"+      | Prelude.otherwise = Prelude.Nothing++-- | This exception is thrown when you start a new import and a previous+-- import is still in progress.+_AccountHasOngoingImportException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccountHasOngoingImportException =+  Core._MatchServiceError+    defaultService+    "AccountHasOngoingImportException"++-- | This exception is thrown when when the specified account is not found or+-- not part of an organization.+_AccountNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccountNotFoundException =+  Core._MatchServiceError+    defaultService+    "AccountNotFoundException"++-- | This exception is thrown when the specified account is not registered as+-- the CloudTrail delegated administrator.+_AccountNotRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccountNotRegisteredException =+  Core._MatchServiceError+    defaultService+    "AccountNotRegisteredException"++-- | This exception is thrown when the account is already registered as the+-- CloudTrail delegated administrator.+_AccountRegisteredException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccountRegisteredException =+  Core._MatchServiceError+    defaultService+    "AccountRegisteredException"++-- | This exception is thrown when the management account of an organization+-- is registered as the CloudTrail delegated administrator.+_CannotDelegateManagementAccountException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_CannotDelegateManagementAccountException =+  Core._MatchServiceError+    defaultService+    "CannotDelegateManagementAccountException"++-- | This exception is thrown when the specified value of @ChannelARN@ is not+-- valid.+_ChannelARNInvalidException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ChannelARNInvalidException =+  Core._MatchServiceError+    defaultService+    "ChannelARNInvalidException"++-- | The specified channel was not found.+_ChannelNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ChannelNotFoundException =+  Core._MatchServiceError+    defaultService+    "ChannelNotFoundException"++-- | This exception is thrown when an operation is called with a trail ARN+-- that is not valid. The following is the format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+_CloudTrailARNInvalidException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_CloudTrailARNInvalidException =+  Core._MatchServiceError+    defaultService+    "CloudTrailARNInvalidException"++-- | This exception is thrown when trusted access has not been enabled+-- between CloudTrail and Organizations. For more information, see+-- <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html Enabling Trusted Access with Other Amazon Web Services Services>+-- and+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html Prepare For Creating a Trail For Your Organization>.+_CloudTrailAccessNotEnabledException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_CloudTrailAccessNotEnabledException =+  Core._MatchServiceError+    defaultService+    "CloudTrailAccessNotEnabledException"++-- | This exception is thrown when a call results in the+-- @InvalidClientTokenId@ error code. This can occur when you are creating+-- or updating a trail to send notifications to an Amazon SNS topic that is+-- in a suspended Amazon Web Services account.+_CloudTrailInvalidClientTokenIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_CloudTrailInvalidClientTokenIdException =+  Core._MatchServiceError+    defaultService+    "CloudTrailInvalidClientTokenIdException"++-- | Cannot set a CloudWatch Logs delivery for this region.+_CloudWatchLogsDeliveryUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_CloudWatchLogsDeliveryUnavailableException =+  Core._MatchServiceError+    defaultService+    "CloudWatchLogsDeliveryUnavailableException"++-- | This exception is thrown when the specified resource is not ready for an+-- operation. This can occur when you try to run an operation on a resource+-- before CloudTrail has time to fully load the resource. If this exception+-- occurs, wait a few minutes, and then try the operation again.+_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ConflictException =+  Core._MatchServiceError+    defaultService+    "ConflictException"++-- | This exception is thrown when the maximum number of CloudTrail delegated+-- administrators is reached.+_DelegatedAdminAccountLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_DelegatedAdminAccountLimitExceededException =+  Core._MatchServiceError+    defaultService+    "DelegatedAdminAccountLimitExceededException"++-- | The specified event data store ARN is not valid or does not map to an+-- event data store in your account.+_EventDataStoreARNInvalidException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreARNInvalidException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreARNInvalidException"++-- | An event data store with that name already exists.+_EventDataStoreAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreAlreadyExistsException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreAlreadyExistsException"++-- | This exception is thrown when you try to update or delete an event data+-- store that currently has an import in progress.+_EventDataStoreHasOngoingImportException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreHasOngoingImportException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreHasOngoingImportException"++-- | Your account has used the maximum number of event data stores.+_EventDataStoreMaxLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreMaxLimitExceededException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreMaxLimitExceededException"++-- | The specified event data store was not found.+_EventDataStoreNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreNotFoundException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreNotFoundException"++-- | The event data store cannot be deleted because termination protection is+-- enabled for it.+_EventDataStoreTerminationProtectedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EventDataStoreTerminationProtectedException =+  Core._MatchServiceError+    defaultService+    "EventDataStoreTerminationProtectedException"++-- | The specified import was not found.+_ImportNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ImportNotFoundException =+  Core._MatchServiceError+    defaultService+    "ImportNotFoundException"++-- | The event data store is inactive.+_InactiveEventDataStoreException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InactiveEventDataStoreException =+  Core._MatchServiceError+    defaultService+    "InactiveEventDataStoreException"++-- | The specified query cannot be canceled because it is in the @FINISHED@,+-- @FAILED@, @TIMED_OUT@, or @CANCELLED@ state.+_InactiveQueryException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InactiveQueryException =+  Core._MatchServiceError+    defaultService+    "InactiveQueryException"++-- | If you run @GetInsightSelectors@ on a trail that does not have Insights+-- events enabled, the operation throws the exception+-- @InsightNotEnabledException@.+_InsightNotEnabledException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InsightNotEnabledException =+  Core._MatchServiceError+    defaultService+    "InsightNotEnabledException"++-- | This exception is thrown when the IAM user or role that is used to+-- create the organization resource lacks one or more required permissions+-- for creating an organization resource in a required service.+_InsufficientDependencyServiceAccessPermissionException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InsufficientDependencyServiceAccessPermissionException =+  Core._MatchServiceError+    defaultService+    "InsufficientDependencyServiceAccessPermissionException"++-- | This exception is thrown when the policy on the S3 bucket or KMS key+-- does not have sufficient permissions for the operation.+_InsufficientEncryptionPolicyException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InsufficientEncryptionPolicyException =+  Core._MatchServiceError+    defaultService+    "InsufficientEncryptionPolicyException"++-- | This exception is thrown when the policy on the S3 bucket is not+-- sufficient.+_InsufficientS3BucketPolicyException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InsufficientS3BucketPolicyException =+  Core._MatchServiceError+    defaultService+    "InsufficientS3BucketPolicyException"++-- | This exception is thrown when the policy on the Amazon SNS topic is not+-- sufficient.+_InsufficientSnsTopicPolicyException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InsufficientSnsTopicPolicyException =+  Core._MatchServiceError+    defaultService+    "InsufficientSnsTopicPolicyException"++-- | This exception is thrown when the provided CloudWatch Logs log group is+-- not valid.+_InvalidCloudWatchLogsLogGroupArnException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidCloudWatchLogsLogGroupArnException =+  Core._MatchServiceError+    defaultService+    "InvalidCloudWatchLogsLogGroupArnException"++-- | This exception is thrown when the provided role is not valid.+_InvalidCloudWatchLogsRoleArnException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidCloudWatchLogsRoleArnException =+  Core._MatchServiceError+    defaultService+    "InvalidCloudWatchLogsRoleArnException"++-- | A date range for the query was specified that is not valid. Be sure that+-- the start time is chronologically before the end time. For more+-- information about writing a query, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html Create or edit a query>+-- in the /CloudTrail User Guide/.+_InvalidDateRangeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidDateRangeException =+  Core._MatchServiceError+    defaultService+    "InvalidDateRangeException"++-- | Occurs if an event category that is not valid is specified as a value of+-- @EventCategory@.+_InvalidEventCategoryException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidEventCategoryException =+  Core._MatchServiceError+    defaultService+    "InvalidEventCategoryException"++-- | This exception is thrown when event categories of specified event data+-- stores are not valid.+_InvalidEventDataStoreCategoryException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidEventDataStoreCategoryException =+  Core._MatchServiceError+    defaultService+    "InvalidEventDataStoreCategoryException"++-- | The event data store is not in a status that supports the operation.+_InvalidEventDataStoreStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidEventDataStoreStatusException =+  Core._MatchServiceError+    defaultService+    "InvalidEventDataStoreStatusException"++-- | This exception is thrown when the @PutEventSelectors@ operation is+-- called with a number of event selectors, advanced event selectors, or+-- data resources that is not valid. The combination of event selectors or+-- advanced event selectors and data resources is not valid. A trail can+-- have up to 5 event selectors. If a trail uses advanced event selectors,+-- a maximum of 500 total values for all conditions in all advanced event+-- selectors is allowed. A trail is limited to 250 data resources. These+-- data resources can be distributed across event selectors, but the+-- overall total cannot exceed 250.+--+-- You can:+--+-- -   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. The limit of number of resources on an individual event+--     selector is configurable up to 250. However, this upper limit is+--     allowed only if the total number of data resources does not exceed+--     250 across all event selectors for a trail.+--+-- -   Specify up to 500 values for all conditions in all advanced event+--     selectors for a trail.+--+-- -   Specify a valid value for a parameter. For example, specifying the+--     @ReadWriteType@ parameter with a value of @read-only@ is not valid.+_InvalidEventSelectorsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidEventSelectorsException =+  Core._MatchServiceError+    defaultService+    "InvalidEventSelectorsException"++-- | 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.+_InvalidHomeRegionException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidHomeRegionException =+  Core._MatchServiceError+    defaultService+    "InvalidHomeRegionException"++-- | This exception is thrown when the provided source S3 bucket is not valid+-- for import.+_InvalidImportSourceException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidImportSourceException =+  Core._MatchServiceError+    defaultService+    "InvalidImportSourceException"++-- | The formatting or syntax of the @InsightSelectors@ JSON statement in+-- your @PutInsightSelectors@ or @GetInsightSelectors@ request is not+-- valid, or the specified insight type in the @InsightSelectors@ statement+-- is not a valid insight type.+_InvalidInsightSelectorsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidInsightSelectorsException =+  Core._MatchServiceError+    defaultService+    "InvalidInsightSelectorsException"++-- | This exception is thrown when the KMS key ARN is not valid.+_InvalidKmsKeyIdException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidKmsKeyIdException =+  Core._MatchServiceError+    defaultService+    "InvalidKmsKeyIdException"++-- | Occurs when a lookup attribute is specified that is not valid.+_InvalidLookupAttributesException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidLookupAttributesException =+  Core._MatchServiceError+    defaultService+    "InvalidLookupAttributesException"++-- | This exception is thrown if the limit specified is not valid.+_InvalidMaxResultsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidMaxResultsException =+  Core._MatchServiceError+    defaultService+    "InvalidMaxResultsException"++-- | A token that is not valid, or a token that was previously used in a+-- request with different parameters. This exception is thrown if the token+-- is not valid.+_InvalidNextTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidNextTokenException =+  Core._MatchServiceError+    defaultService+    "InvalidNextTokenException"++-- | This exception is thrown when the combination of parameters provided is+-- not valid.+_InvalidParameterCombinationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidParameterCombinationException =+  Core._MatchServiceError+    defaultService+    "InvalidParameterCombinationException"++-- | The request includes a parameter that is not valid.+_InvalidParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidParameterException =+  Core._MatchServiceError+    defaultService+    "InvalidParameterException"++-- | The query that was submitted has validation errors, or uses incorrect+-- syntax or unsupported keywords. For more information about writing a+-- query, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html Create or edit a query>+-- in the /CloudTrail User Guide/.+_InvalidQueryStatementException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidQueryStatementException =+  Core._MatchServiceError+    defaultService+    "InvalidQueryStatementException"++-- | The query status is not valid for the operation.+_InvalidQueryStatusException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidQueryStatusException =+  Core._MatchServiceError+    defaultService+    "InvalidQueryStatusException"++-- | This exception is thrown when the provided S3 bucket name is not valid.+_InvalidS3BucketNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidS3BucketNameException =+  Core._MatchServiceError+    defaultService+    "InvalidS3BucketNameException"++-- | This exception is thrown when the provided S3 prefix is not valid.+_InvalidS3PrefixException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidS3PrefixException =+  Core._MatchServiceError+    defaultService+    "InvalidS3PrefixException"++-- | This exception is thrown when the provided SNS topic name is not valid.+_InvalidSnsTopicNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidSnsTopicNameException =+  Core._MatchServiceError+    defaultService+    "InvalidSnsTopicNameException"++-- | This exception is thrown when the specified tag key or values are not+-- valid. It can also occur if there are duplicate tags or too many tags on+-- the resource.+_InvalidTagParameterException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidTagParameterException =+  Core._MatchServiceError+    defaultService+    "InvalidTagParameterException"++-- | Occurs if the timestamp values are not valid. Either the start time+-- occurs after the end time, or the time range is outside the range of+-- possible values.+_InvalidTimeRangeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidTimeRangeException =+  Core._MatchServiceError+    defaultService+    "InvalidTimeRangeException"++-- | Reserved for future use.+_InvalidTokenException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidTokenException =+  Core._MatchServiceError+    defaultService+    "InvalidTokenException"++-- | 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+_InvalidTrailNameException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidTrailNameException =+  Core._MatchServiceError+    defaultService+    "InvalidTrailNameException"++-- | This exception is thrown when there is an issue with the specified KMS+-- key and the trail or event data store can\'t be updated.+_KmsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_KmsException =+  Core._MatchServiceError+    defaultService+    "KmsException"++-- | This exception is no longer in use.+_KmsKeyDisabledException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_KmsKeyDisabledException =+  Core._MatchServiceError+    defaultService+    "KmsKeyDisabledException"++-- | This exception is thrown when the KMS key does not exist, when the S3+-- bucket and the KMS key are not in the same region, or when the KMS key+-- associated with the Amazon SNS topic either does not exist or is not in+-- the same region.+_KmsKeyNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_KmsKeyNotFoundException =+  Core._MatchServiceError+    defaultService+    "KmsKeyNotFoundException"++-- | You are already running the maximum number of concurrent queries. Wait a+-- minute for some queries to finish, and then run the query again.+_MaxConcurrentQueriesException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_MaxConcurrentQueriesException =+  Core._MatchServiceError+    defaultService+    "MaxConcurrentQueriesException"++-- | This exception is thrown when the maximum number of trails is reached.+_MaximumNumberOfTrailsExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_MaximumNumberOfTrailsExceededException =+  Core._MatchServiceError+    defaultService+    "MaximumNumberOfTrailsExceededException"++-- | This exception is thrown when the management account does not have a+-- service-linked role.+_NoManagementAccountSLRExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_NoManagementAccountSLRExistsException =+  Core._MatchServiceError+    defaultService+    "NoManagementAccountSLRExistsException"++-- | This exception is thrown when the account making the request is not the+-- organization\'s management account.+_NotOrganizationManagementAccountException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_NotOrganizationManagementAccountException =+  Core._MatchServiceError+    defaultService+    "NotOrganizationManagementAccountException"++-- | This exception is thrown when the Amazon Web Services account making the+-- request to create or update an organization trail or event data store is+-- not the management account for an organization in Organizations. For+-- more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html Prepare For Creating a Trail For Your Organization>+-- or+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html Create an event data store>.+_NotOrganizationMasterAccountException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_NotOrganizationMasterAccountException =+  Core._MatchServiceError+    defaultService+    "NotOrganizationMasterAccountException"++-- | This exception is thrown when the requested operation is not permitted.+_OperationNotPermittedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_OperationNotPermittedException =+  Core._MatchServiceError+    defaultService+    "OperationNotPermittedException"++-- | This exception is thrown when Organizations is not configured to support+-- all features. All features must be enabled in Organizations to support+-- creating an organization trail or event data store.+_OrganizationNotInAllFeaturesModeException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_OrganizationNotInAllFeaturesModeException =+  Core._MatchServiceError+    defaultService+    "OrganizationNotInAllFeaturesModeException"++-- | This exception is thrown when the request is made from an Amazon Web+-- Services account that is not a member of an organization. To make this+-- request, sign in using the credentials of an account that belongs to an+-- organization.+_OrganizationsNotInUseException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_OrganizationsNotInUseException =+  Core._MatchServiceError+    defaultService+    "OrganizationsNotInUseException"++-- | The query ID does not exist or does not map to a query.+_QueryIdNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_QueryIdNotFoundException =+  Core._MatchServiceError+    defaultService+    "QueryIdNotFoundException"++-- | This exception is thrown when the specified resource is not found.+_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceNotFoundException =+  Core._MatchServiceError+    defaultService+    "ResourceNotFoundException"++-- | This exception is thrown when the specified resource type is not+-- supported by CloudTrail.+_ResourceTypeNotSupportedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceTypeNotSupportedException =+  Core._MatchServiceError+    defaultService+    "ResourceTypeNotSupportedException"++-- | This exception is thrown when the specified S3 bucket does not exist.+_S3BucketDoesNotExistException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_S3BucketDoesNotExistException =+  Core._MatchServiceError+    defaultService+    "S3BucketDoesNotExistException"++-- | The number of tags per trail has exceeded the permitted amount.+-- Currently, the limit is 50.+_TagsLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_TagsLimitExceededException =+  Core._MatchServiceError+    defaultService+    "TagsLimitExceededException"++-- | This exception is thrown when the specified trail already exists.+_TrailAlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_TrailAlreadyExistsException =+  Core._MatchServiceError+    defaultService+    "TrailAlreadyExistsException"++-- | This exception is thrown when the trail with the given name is not+-- found.+_TrailNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_TrailNotFoundException =+  Core._MatchServiceError+    defaultService+    "TrailNotFoundException"++-- | This exception is no longer in use.+_TrailNotProvidedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_TrailNotProvidedException =+  Core._MatchServiceError+    defaultService+    "TrailNotProvidedException"++-- | This exception is thrown when the requested operation is not supported.+_UnsupportedOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_UnsupportedOperationException =+  Core._MatchServiceError+    defaultService+    "UnsupportedOperationException"
+ gen/Amazonka/CloudTrail/Types/AdvancedEventSelector.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.AdvancedEventSelector+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.AdvancedEventSelector where++import Amazonka.CloudTrail.Types.AdvancedFieldSelector+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Advanced event selectors let you create fine-grained selectors for the+-- following CloudTrail event record fields. They help you control costs by+-- logging only those events that are important to you. For more+-- information about advanced event selectors, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Logging data events for trails>+-- in the /CloudTrail User Guide/.+--+-- -   @readOnly@+--+-- -   @eventSource@+--+-- -   @eventName@+--+-- -   @eventCategory@+--+-- -   @resources.type@+--+-- -   @resources.ARN@+--+-- You cannot apply both event selectors and advanced event selectors to a+-- trail.+--+-- /See:/ 'newAdvancedEventSelector' smart constructor.+data AdvancedEventSelector = AdvancedEventSelector'+  { -- | An optional, descriptive name for an advanced event selector, such as+    -- \"Log data events for only two S3 buckets\".+    name :: Prelude.Maybe Prelude.Text,+    -- | Contains all selector statements in an advanced event selector.+    fieldSelectors :: Prelude.NonEmpty AdvancedFieldSelector+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AdvancedEventSelector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'advancedEventSelector_name' - An optional, descriptive name for an advanced event selector, such as+-- \"Log data events for only two S3 buckets\".+--+-- 'fieldSelectors', 'advancedEventSelector_fieldSelectors' - Contains all selector statements in an advanced event selector.+newAdvancedEventSelector ::+  -- | 'fieldSelectors'+  Prelude.NonEmpty AdvancedFieldSelector ->+  AdvancedEventSelector+newAdvancedEventSelector pFieldSelectors_ =+  AdvancedEventSelector'+    { name = Prelude.Nothing,+      fieldSelectors =+        Lens.coerced Lens.# pFieldSelectors_+    }++-- | An optional, descriptive name for an advanced event selector, such as+-- \"Log data events for only two S3 buckets\".+advancedEventSelector_name :: Lens.Lens' AdvancedEventSelector (Prelude.Maybe Prelude.Text)+advancedEventSelector_name = Lens.lens (\AdvancedEventSelector' {name} -> name) (\s@AdvancedEventSelector' {} a -> s {name = a} :: AdvancedEventSelector)++-- | Contains all selector statements in an advanced event selector.+advancedEventSelector_fieldSelectors :: Lens.Lens' AdvancedEventSelector (Prelude.NonEmpty AdvancedFieldSelector)+advancedEventSelector_fieldSelectors = Lens.lens (\AdvancedEventSelector' {fieldSelectors} -> fieldSelectors) (\s@AdvancedEventSelector' {} a -> s {fieldSelectors = a} :: AdvancedEventSelector) Prelude.. Lens.coerced++instance Data.FromJSON AdvancedEventSelector where+  parseJSON =+    Data.withObject+      "AdvancedEventSelector"+      ( \x ->+          AdvancedEventSelector'+            Prelude.<$> (x Data..:? "Name")+            Prelude.<*> (x Data..: "FieldSelectors")+      )++instance Prelude.Hashable AdvancedEventSelector where+  hashWithSalt _salt AdvancedEventSelector' {..} =+    _salt+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` fieldSelectors++instance Prelude.NFData AdvancedEventSelector where+  rnf AdvancedEventSelector' {..} =+    Prelude.rnf name+      `Prelude.seq` Prelude.rnf fieldSelectors++instance Data.ToJSON AdvancedEventSelector where+  toJSON AdvancedEventSelector' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Name" Data..=) Prelude.<$> name,+            Prelude.Just+              ("FieldSelectors" Data..= fieldSelectors)+          ]+      )
+ gen/Amazonka/CloudTrail/Types/AdvancedFieldSelector.hs view
@@ -0,0 +1,547 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.AdvancedFieldSelector+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.AdvancedFieldSelector where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A single selector statement in an advanced event selector.+--+-- /See:/ 'newAdvancedFieldSelector' smart constructor.+data AdvancedFieldSelector = AdvancedFieldSelector'+  { -- | An operator that includes events that match the last few characters of+    -- the event record field specified as the value of @Field@.+    endsWith :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | An operator that includes events that match the exact value of the event+    -- record field specified as the value of @Field@. This is the only valid+    -- operator that you can use with the @readOnly@, @eventCategory@, and+    -- @resources.type@ fields.+    equals :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | An operator that excludes events that match the last few characters of+    -- the event record field specified as the value of @Field@.+    notEndsWith :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | An operator that excludes events that match the exact value of the event+    -- record field specified as the value of @Field@.+    notEquals :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | An operator that excludes events that match the first few characters of+    -- the event record field specified as the value of @Field@.+    notStartsWith :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | An operator that includes events that match the first few characters of+    -- the event record field specified as the value of @Field@.+    startsWith :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | A field in an event record on which to filter events to be logged.+    -- Supported fields include @readOnly@, @eventCategory@, @eventSource@ (for+    -- management events), @eventName@, @resources.type@, and @resources.ARN@.+    --+    -- -   __@readOnly@__ - Optional. Can be set to @Equals@ a value of @true@+    --     or @false@. If you do not add this field, CloudTrail logs both+    --     @read@ and @write@ events. A value of @true@ logs only @read@+    --     events. A value of @false@ logs only @write@ events.+    --+    -- -   __@eventSource@__ - For filtering management events only. This can+    --     be set only to @NotEquals@ @kms.amazonaws.com@.+    --+    -- -   __@eventName@__ - Can use any operator. You can use it to filter in+    --     or filter out any data event logged to CloudTrail, such as+    --     @PutBucket@ or @GetSnapshotBlock@. You can have multiple values for+    --     this field, separated by commas.+    --+    -- -   __@eventCategory@__ - This is required. It must be set to @Equals@,+    --     and the value must be @Management@ or @Data@.+    --+    -- -   __@resources.type@__ - This field is required. @resources.type@ can+    --     only use the @Equals@ operator, and the value can be one of the+    --     following:+    --+    --     -   @AWS::S3::Object@+    --+    --     -   @AWS::Lambda::Function@+    --+    --     -   @AWS::DynamoDB::Table@+    --+    --     -   @AWS::S3Outposts::Object@+    --+    --     -   @AWS::ManagedBlockchain::Node@+    --+    --     -   @AWS::S3ObjectLambda::AccessPoint@+    --+    --     -   @AWS::EC2::Snapshot@+    --+    --     -   @AWS::S3::AccessPoint@+    --+    --     -   @AWS::DynamoDB::Stream@+    --+    --     -   @AWS::Glue::Table@+    --+    --     You can have only one @resources.type@ field per selector. To log+    --     data events on more than one resource type, add another selector.+    --+    -- -   __@resources.ARN@__ - You can use any operator with @resources.ARN@,+    --     but if you use @Equals@ or @NotEquals@, the value must exactly match+    --     the ARN of a valid resource of the type you\'ve specified in the+    --     template as the value of resources.type. For example, if+    --     resources.type equals @AWS::S3::Object@, the ARN must be in one of+    --     the following formats. To log all data events for all objects in a+    --     specific S3 bucket, use the @StartsWith@ operator, and include only+    --     the bucket ARN as the matching value.+    --+    --     The trailing slash is intentional; do not exclude it. Replace the+    --     text between less than and greater than symbols (\<>) with+    --     resource-specific information.+    --+    --     -   @arn:\<partition>:s3:::\<bucket_name>\/@+    --+    --     -   @arn:\<partition>:s3:::\<bucket_name>\/\<object_path>\/@+    --+    --     When @resources.type@ equals @AWS::S3::AccessPoint@, and the+    --     operator is set to @Equals@ or @NotEquals@, the ARN must be in one+    --     of the following formats. To log events on all objects in an S3+    --     access point, we recommend that you use only the access point ARN,+    --     don’t include the object path, and use the @StartsWith@ or+    --     @NotStartsWith@ operators.+    --+    --     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+    --+    --     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>\/object\/\<object_path>@+    --+    --     When resources.type equals @AWS::Lambda::Function@, and the operator+    --     is set to @Equals@ or @NotEquals@, the ARN must be in the following+    --     format:+    --+    --     -   @arn:\<partition>:lambda:\<region>:\<account_ID>:function:\<function_name>@+    --+    --     When resources.type equals @AWS::DynamoDB::Table@, and the operator+    --     is set to @Equals@ or @NotEquals@, the ARN must be in the following+    --     format:+    --+    --     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>@+    --+    --     When @resources.type@ equals @AWS::S3Outposts::Object@, and the+    --     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+    --     following format:+    --+    --     -   @arn:\<partition>:s3-outposts:\<region>:\<account_ID>:\<object_path>@+    --+    --     When @resources.type@ equals @AWS::ManagedBlockchain::Node@, and the+    --     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+    --     following format:+    --+    --     -   @arn:\<partition>:managedblockchain:\<region>:\<account_ID>:nodes\/\<node_ID>@+    --+    --     When @resources.type@ equals @AWS::S3ObjectLambda::AccessPoint@, and+    --     the operator is set to @Equals@ or @NotEquals@, the ARN must be in+    --     the following format:+    --+    --     -   @arn:\<partition>:s3-object-lambda:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+    --+    --     When @resources.type@ equals @AWS::EC2::Snapshot@, and the operator+    --     is set to @Equals@ or @NotEquals@, the ARN must be in the following+    --     format:+    --+    --     -   @arn:\<partition>:ec2:\<region>::snapshot\/\<snapshot_ID>@+    --+    --     When @resources.type@ equals @AWS::DynamoDB::Stream@, and the+    --     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+    --     following format:+    --+    --     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>\/stream\/\<date_time>@+    --+    --     When @resources.type@ equals @AWS::Glue::Table@, and the operator is+    --     set to @Equals@ or @NotEquals@, the ARN must be in the following+    --     format:+    --+    --     -   @arn:\<partition>:glue:\<region>:\<account_ID>:table\/\<database_name>\/\<table_name>@+    field :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AdvancedFieldSelector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'endsWith', 'advancedFieldSelector_endsWith' - An operator that includes events that match the last few characters of+-- the event record field specified as the value of @Field@.+--+-- 'equals', 'advancedFieldSelector_equals' - An operator that includes events that match the exact value of the event+-- record field specified as the value of @Field@. This is the only valid+-- operator that you can use with the @readOnly@, @eventCategory@, and+-- @resources.type@ fields.+--+-- 'notEndsWith', 'advancedFieldSelector_notEndsWith' - An operator that excludes events that match the last few characters of+-- the event record field specified as the value of @Field@.+--+-- 'notEquals', 'advancedFieldSelector_notEquals' - An operator that excludes events that match the exact value of the event+-- record field specified as the value of @Field@.+--+-- 'notStartsWith', 'advancedFieldSelector_notStartsWith' - An operator that excludes events that match the first few characters of+-- the event record field specified as the value of @Field@.+--+-- 'startsWith', 'advancedFieldSelector_startsWith' - An operator that includes events that match the first few characters of+-- the event record field specified as the value of @Field@.+--+-- 'field', 'advancedFieldSelector_field' - A field in an event record on which to filter events to be logged.+-- Supported fields include @readOnly@, @eventCategory@, @eventSource@ (for+-- management events), @eventName@, @resources.type@, and @resources.ARN@.+--+-- -   __@readOnly@__ - Optional. Can be set to @Equals@ a value of @true@+--     or @false@. If you do not add this field, CloudTrail logs both+--     @read@ and @write@ events. A value of @true@ logs only @read@+--     events. A value of @false@ logs only @write@ events.+--+-- -   __@eventSource@__ - For filtering management events only. This can+--     be set only to @NotEquals@ @kms.amazonaws.com@.+--+-- -   __@eventName@__ - Can use any operator. You can use it to filter in+--     or filter out any data event logged to CloudTrail, such as+--     @PutBucket@ or @GetSnapshotBlock@. You can have multiple values for+--     this field, separated by commas.+--+-- -   __@eventCategory@__ - This is required. It must be set to @Equals@,+--     and the value must be @Management@ or @Data@.+--+-- -   __@resources.type@__ - This field is required. @resources.type@ can+--     only use the @Equals@ operator, and the value can be one of the+--     following:+--+--     -   @AWS::S3::Object@+--+--     -   @AWS::Lambda::Function@+--+--     -   @AWS::DynamoDB::Table@+--+--     -   @AWS::S3Outposts::Object@+--+--     -   @AWS::ManagedBlockchain::Node@+--+--     -   @AWS::S3ObjectLambda::AccessPoint@+--+--     -   @AWS::EC2::Snapshot@+--+--     -   @AWS::S3::AccessPoint@+--+--     -   @AWS::DynamoDB::Stream@+--+--     -   @AWS::Glue::Table@+--+--     You can have only one @resources.type@ field per selector. To log+--     data events on more than one resource type, add another selector.+--+-- -   __@resources.ARN@__ - You can use any operator with @resources.ARN@,+--     but if you use @Equals@ or @NotEquals@, the value must exactly match+--     the ARN of a valid resource of the type you\'ve specified in the+--     template as the value of resources.type. For example, if+--     resources.type equals @AWS::S3::Object@, the ARN must be in one of+--     the following formats. To log all data events for all objects in a+--     specific S3 bucket, use the @StartsWith@ operator, and include only+--     the bucket ARN as the matching value.+--+--     The trailing slash is intentional; do not exclude it. Replace the+--     text between less than and greater than symbols (\<>) with+--     resource-specific information.+--+--     -   @arn:\<partition>:s3:::\<bucket_name>\/@+--+--     -   @arn:\<partition>:s3:::\<bucket_name>\/\<object_path>\/@+--+--     When @resources.type@ equals @AWS::S3::AccessPoint@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in one+--     of the following formats. To log events on all objects in an S3+--     access point, we recommend that you use only the access point ARN,+--     don’t include the object path, and use the @StartsWith@ or+--     @NotStartsWith@ operators.+--+--     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+--+--     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>\/object\/\<object_path>@+--+--     When resources.type equals @AWS::Lambda::Function@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:lambda:\<region>:\<account_ID>:function:\<function_name>@+--+--     When resources.type equals @AWS::DynamoDB::Table@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>@+--+--     When @resources.type@ equals @AWS::S3Outposts::Object@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:s3-outposts:\<region>:\<account_ID>:\<object_path>@+--+--     When @resources.type@ equals @AWS::ManagedBlockchain::Node@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:managedblockchain:\<region>:\<account_ID>:nodes\/\<node_ID>@+--+--     When @resources.type@ equals @AWS::S3ObjectLambda::AccessPoint@, and+--     the operator is set to @Equals@ or @NotEquals@, the ARN must be in+--     the following format:+--+--     -   @arn:\<partition>:s3-object-lambda:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+--+--     When @resources.type@ equals @AWS::EC2::Snapshot@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:ec2:\<region>::snapshot\/\<snapshot_ID>@+--+--     When @resources.type@ equals @AWS::DynamoDB::Stream@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>\/stream\/\<date_time>@+--+--     When @resources.type@ equals @AWS::Glue::Table@, and the operator is+--     set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:glue:\<region>:\<account_ID>:table\/\<database_name>\/\<table_name>@+newAdvancedFieldSelector ::+  -- | 'field'+  Prelude.Text ->+  AdvancedFieldSelector+newAdvancedFieldSelector pField_ =+  AdvancedFieldSelector'+    { endsWith = Prelude.Nothing,+      equals = Prelude.Nothing,+      notEndsWith = Prelude.Nothing,+      notEquals = Prelude.Nothing,+      notStartsWith = Prelude.Nothing,+      startsWith = Prelude.Nothing,+      field = pField_+    }++-- | An operator that includes events that match the last few characters of+-- the event record field specified as the value of @Field@.+advancedFieldSelector_endsWith :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_endsWith = Lens.lens (\AdvancedFieldSelector' {endsWith} -> endsWith) (\s@AdvancedFieldSelector' {} a -> s {endsWith = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | An operator that includes events that match the exact value of the event+-- record field specified as the value of @Field@. This is the only valid+-- operator that you can use with the @readOnly@, @eventCategory@, and+-- @resources.type@ fields.+advancedFieldSelector_equals :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_equals = Lens.lens (\AdvancedFieldSelector' {equals} -> equals) (\s@AdvancedFieldSelector' {} a -> s {equals = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | An operator that excludes events that match the last few characters of+-- the event record field specified as the value of @Field@.+advancedFieldSelector_notEndsWith :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_notEndsWith = Lens.lens (\AdvancedFieldSelector' {notEndsWith} -> notEndsWith) (\s@AdvancedFieldSelector' {} a -> s {notEndsWith = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | An operator that excludes events that match the exact value of the event+-- record field specified as the value of @Field@.+advancedFieldSelector_notEquals :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_notEquals = Lens.lens (\AdvancedFieldSelector' {notEquals} -> notEquals) (\s@AdvancedFieldSelector' {} a -> s {notEquals = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | An operator that excludes events that match the first few characters of+-- the event record field specified as the value of @Field@.+advancedFieldSelector_notStartsWith :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_notStartsWith = Lens.lens (\AdvancedFieldSelector' {notStartsWith} -> notStartsWith) (\s@AdvancedFieldSelector' {} a -> s {notStartsWith = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | An operator that includes events that match the first few characters of+-- the event record field specified as the value of @Field@.+advancedFieldSelector_startsWith :: Lens.Lens' AdvancedFieldSelector (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+advancedFieldSelector_startsWith = Lens.lens (\AdvancedFieldSelector' {startsWith} -> startsWith) (\s@AdvancedFieldSelector' {} a -> s {startsWith = a} :: AdvancedFieldSelector) Prelude.. Lens.mapping Lens.coerced++-- | A field in an event record on which to filter events to be logged.+-- Supported fields include @readOnly@, @eventCategory@, @eventSource@ (for+-- management events), @eventName@, @resources.type@, and @resources.ARN@.+--+-- -   __@readOnly@__ - Optional. Can be set to @Equals@ a value of @true@+--     or @false@. If you do not add this field, CloudTrail logs both+--     @read@ and @write@ events. A value of @true@ logs only @read@+--     events. A value of @false@ logs only @write@ events.+--+-- -   __@eventSource@__ - For filtering management events only. This can+--     be set only to @NotEquals@ @kms.amazonaws.com@.+--+-- -   __@eventName@__ - Can use any operator. You can use it to filter in+--     or filter out any data event logged to CloudTrail, such as+--     @PutBucket@ or @GetSnapshotBlock@. You can have multiple values for+--     this field, separated by commas.+--+-- -   __@eventCategory@__ - This is required. It must be set to @Equals@,+--     and the value must be @Management@ or @Data@.+--+-- -   __@resources.type@__ - This field is required. @resources.type@ can+--     only use the @Equals@ operator, and the value can be one of the+--     following:+--+--     -   @AWS::S3::Object@+--+--     -   @AWS::Lambda::Function@+--+--     -   @AWS::DynamoDB::Table@+--+--     -   @AWS::S3Outposts::Object@+--+--     -   @AWS::ManagedBlockchain::Node@+--+--     -   @AWS::S3ObjectLambda::AccessPoint@+--+--     -   @AWS::EC2::Snapshot@+--+--     -   @AWS::S3::AccessPoint@+--+--     -   @AWS::DynamoDB::Stream@+--+--     -   @AWS::Glue::Table@+--+--     You can have only one @resources.type@ field per selector. To log+--     data events on more than one resource type, add another selector.+--+-- -   __@resources.ARN@__ - You can use any operator with @resources.ARN@,+--     but if you use @Equals@ or @NotEquals@, the value must exactly match+--     the ARN of a valid resource of the type you\'ve specified in the+--     template as the value of resources.type. For example, if+--     resources.type equals @AWS::S3::Object@, the ARN must be in one of+--     the following formats. To log all data events for all objects in a+--     specific S3 bucket, use the @StartsWith@ operator, and include only+--     the bucket ARN as the matching value.+--+--     The trailing slash is intentional; do not exclude it. Replace the+--     text between less than and greater than symbols (\<>) with+--     resource-specific information.+--+--     -   @arn:\<partition>:s3:::\<bucket_name>\/@+--+--     -   @arn:\<partition>:s3:::\<bucket_name>\/\<object_path>\/@+--+--     When @resources.type@ equals @AWS::S3::AccessPoint@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in one+--     of the following formats. To log events on all objects in an S3+--     access point, we recommend that you use only the access point ARN,+--     don’t include the object path, and use the @StartsWith@ or+--     @NotStartsWith@ operators.+--+--     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+--+--     -   @arn:\<partition>:s3:\<region>:\<account_ID>:accesspoint\/\<access_point_name>\/object\/\<object_path>@+--+--     When resources.type equals @AWS::Lambda::Function@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:lambda:\<region>:\<account_ID>:function:\<function_name>@+--+--     When resources.type equals @AWS::DynamoDB::Table@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>@+--+--     When @resources.type@ equals @AWS::S3Outposts::Object@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:s3-outposts:\<region>:\<account_ID>:\<object_path>@+--+--     When @resources.type@ equals @AWS::ManagedBlockchain::Node@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:managedblockchain:\<region>:\<account_ID>:nodes\/\<node_ID>@+--+--     When @resources.type@ equals @AWS::S3ObjectLambda::AccessPoint@, and+--     the operator is set to @Equals@ or @NotEquals@, the ARN must be in+--     the following format:+--+--     -   @arn:\<partition>:s3-object-lambda:\<region>:\<account_ID>:accesspoint\/\<access_point_name>@+--+--     When @resources.type@ equals @AWS::EC2::Snapshot@, and the operator+--     is set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:ec2:\<region>::snapshot\/\<snapshot_ID>@+--+--     When @resources.type@ equals @AWS::DynamoDB::Stream@, and the+--     operator is set to @Equals@ or @NotEquals@, the ARN must be in the+--     following format:+--+--     -   @arn:\<partition>:dynamodb:\<region>:\<account_ID>:table\/\<table_name>\/stream\/\<date_time>@+--+--     When @resources.type@ equals @AWS::Glue::Table@, and the operator is+--     set to @Equals@ or @NotEquals@, the ARN must be in the following+--     format:+--+--     -   @arn:\<partition>:glue:\<region>:\<account_ID>:table\/\<database_name>\/\<table_name>@+advancedFieldSelector_field :: Lens.Lens' AdvancedFieldSelector Prelude.Text+advancedFieldSelector_field = Lens.lens (\AdvancedFieldSelector' {field} -> field) (\s@AdvancedFieldSelector' {} a -> s {field = a} :: AdvancedFieldSelector)++instance Data.FromJSON AdvancedFieldSelector where+  parseJSON =+    Data.withObject+      "AdvancedFieldSelector"+      ( \x ->+          AdvancedFieldSelector'+            Prelude.<$> (x Data..:? "EndsWith")+            Prelude.<*> (x Data..:? "Equals")+            Prelude.<*> (x Data..:? "NotEndsWith")+            Prelude.<*> (x Data..:? "NotEquals")+            Prelude.<*> (x Data..:? "NotStartsWith")+            Prelude.<*> (x Data..:? "StartsWith")+            Prelude.<*> (x Data..: "Field")+      )++instance Prelude.Hashable AdvancedFieldSelector where+  hashWithSalt _salt AdvancedFieldSelector' {..} =+    _salt+      `Prelude.hashWithSalt` endsWith+      `Prelude.hashWithSalt` equals+      `Prelude.hashWithSalt` notEndsWith+      `Prelude.hashWithSalt` notEquals+      `Prelude.hashWithSalt` notStartsWith+      `Prelude.hashWithSalt` startsWith+      `Prelude.hashWithSalt` field++instance Prelude.NFData AdvancedFieldSelector where+  rnf AdvancedFieldSelector' {..} =+    Prelude.rnf endsWith+      `Prelude.seq` Prelude.rnf equals+      `Prelude.seq` Prelude.rnf notEndsWith+      `Prelude.seq` Prelude.rnf notEquals+      `Prelude.seq` Prelude.rnf notStartsWith+      `Prelude.seq` Prelude.rnf startsWith+      `Prelude.seq` Prelude.rnf field++instance Data.ToJSON AdvancedFieldSelector where+  toJSON AdvancedFieldSelector' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("EndsWith" Data..=) Prelude.<$> endsWith,+            ("Equals" Data..=) Prelude.<$> equals,+            ("NotEndsWith" Data..=) Prelude.<$> notEndsWith,+            ("NotEquals" Data..=) Prelude.<$> notEquals,+            ("NotStartsWith" Data..=) Prelude.<$> notStartsWith,+            ("StartsWith" Data..=) Prelude.<$> startsWith,+            Prelude.Just ("Field" Data..= field)+          ]+      )
+ gen/Amazonka/CloudTrail/Types/Channel.hs view
@@ -0,0 +1,96 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Channel+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Channel where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about a returned CloudTrail channel.+--+-- /See:/ 'newChannel' smart constructor.+data Channel = Channel'+  { -- | The Amazon Resource Name (ARN) of a channel.+    channelArn :: Prelude.Maybe Prelude.Text,+    -- | The name of the CloudTrail channel. For service-linked channels, the+    -- name is @aws-service-channel\/service-name\/custom-suffix@ where+    -- @service-name@ represents the name of the Amazon Web Services service+    -- that created the channel and @custom-suffix@ represents the suffix+    -- created by the Amazon Web Services service.+    name :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Channel' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'channelArn', 'channel_channelArn' - The Amazon Resource Name (ARN) of a channel.+--+-- 'name', 'channel_name' - The name of the CloudTrail channel. For service-linked channels, the+-- name is @aws-service-channel\/service-name\/custom-suffix@ where+-- @service-name@ represents the name of the Amazon Web Services service+-- that created the channel and @custom-suffix@ represents the suffix+-- created by the Amazon Web Services service.+newChannel ::+  Channel+newChannel =+  Channel'+    { channelArn = Prelude.Nothing,+      name = Prelude.Nothing+    }++-- | The Amazon Resource Name (ARN) of a channel.+channel_channelArn :: Lens.Lens' Channel (Prelude.Maybe Prelude.Text)+channel_channelArn = Lens.lens (\Channel' {channelArn} -> channelArn) (\s@Channel' {} a -> s {channelArn = a} :: Channel)++-- | The name of the CloudTrail channel. For service-linked channels, the+-- name is @aws-service-channel\/service-name\/custom-suffix@ where+-- @service-name@ represents the name of the Amazon Web Services service+-- that created the channel and @custom-suffix@ represents the suffix+-- created by the Amazon Web Services service.+channel_name :: Lens.Lens' Channel (Prelude.Maybe Prelude.Text)+channel_name = Lens.lens (\Channel' {name} -> name) (\s@Channel' {} a -> s {name = a} :: Channel)++instance Data.FromJSON Channel where+  parseJSON =+    Data.withObject+      "Channel"+      ( \x ->+          Channel'+            Prelude.<$> (x Data..:? "ChannelArn")+            Prelude.<*> (x Data..:? "Name")+      )++instance Prelude.Hashable Channel where+  hashWithSalt _salt Channel' {..} =+    _salt+      `Prelude.hashWithSalt` channelArn+      `Prelude.hashWithSalt` name++instance Prelude.NFData Channel where+  rnf Channel' {..} =+    Prelude.rnf channelArn+      `Prelude.seq` Prelude.rnf name
+ gen/Amazonka/CloudTrail/Types/DataResource.hs view
@@ -0,0 +1,344 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.DataResource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.DataResource where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The Amazon S3 buckets, Lambda functions, or Amazon DynamoDB tables that+-- you specify in your event selectors for your trail to log data events.+-- Data events provide information about the resource operations performed+-- on or within a resource itself. These are also known as data plane+-- operations. You can specify up to 250 data resources for a trail.+--+-- The total number of allowed data resources is 250. This number can be+-- distributed between 1 and 5 event selectors, but the total cannot exceed+-- 250 across all selectors.+--+-- If you are using advanced event selectors, the maximum total number of+-- values for all conditions, across all advanced event selectors for the+-- trail, is 500.+--+-- The following example demonstrates how logging works when you configure+-- logging of all data events for an S3 bucket named @bucket-1@. In this+-- example, the CloudTrail user specified an empty prefix, and the option+-- to log both @Read@ and @Write@ data events.+--+-- 1.  A user uploads an image file to @bucket-1@.+--+-- 2.  The @PutObject@ API operation is an Amazon S3 object-level API. It+--     is recorded as a data event in CloudTrail. Because the CloudTrail+--     user specified an S3 bucket with an empty prefix, events that occur+--     on any object in that bucket are logged. The trail processes and+--     logs the event.+--+-- 3.  A user uploads an object to an Amazon S3 bucket named+--     @arn:aws:s3:::bucket-2@.+--+-- 4.  The @PutObject@ API operation occurred for an object in an S3 bucket+--     that the CloudTrail user didn\'t specify for the trail. The trail+--     doesn’t log the event.+--+-- The following example demonstrates how logging works when you configure+-- logging of Lambda data events for a Lambda function named+-- /MyLambdaFunction/, but not for all Lambda functions.+--+-- 1.  A user runs a script that includes a call to the /MyLambdaFunction/+--     function and the /MyOtherLambdaFunction/ function.+--+-- 2.  The @Invoke@ API operation on /MyLambdaFunction/ is an Lambda API.+--     It is recorded as a data event in CloudTrail. Because the CloudTrail+--     user specified logging data events for /MyLambdaFunction/, any+--     invocations of that function are logged. The trail processes and+--     logs the event.+--+-- 3.  The @Invoke@ API operation on /MyOtherLambdaFunction/ is an Lambda+--     API. Because the CloudTrail user did not specify logging data events+--     for all Lambda functions, the @Invoke@ operation for+--     /MyOtherLambdaFunction/ does not match the function specified for+--     the trail. The trail doesn’t log the event.+--+-- /See:/ 'newDataResource' smart constructor.+data DataResource = DataResource'+  { -- | The resource type in which you want to log data events. You can specify+    -- the following /basic/ event selector resource types:+    --+    -- -   @AWS::S3::Object@+    --+    -- -   @AWS::Lambda::Function@+    --+    -- -   @AWS::DynamoDB::Table@+    --+    -- The following resource types are also available through /advanced/ event+    -- selectors. Basic event selector resource types are valid in advanced+    -- event selectors, but advanced event selector resource types are not+    -- valid in basic event selectors. For more information, see+    -- AdvancedFieldSelector$Field.+    --+    -- -   @AWS::S3Outposts::Object@+    --+    -- -   @AWS::ManagedBlockchain::Node@+    --+    -- -   @AWS::S3ObjectLambda::AccessPoint@+    --+    -- -   @AWS::EC2::Snapshot@+    --+    -- -   @AWS::S3::AccessPoint@+    --+    -- -   @AWS::DynamoDB::Stream@+    --+    -- -   @AWS::Glue::Table@+    type' :: Prelude.Maybe Prelude.Text,+    -- | An array of Amazon Resource Name (ARN) strings or partial ARN strings+    -- for the specified objects.+    --+    -- -   To log data events for all objects in all S3 buckets in your Amazon+    --     Web Services account, specify the prefix as @arn:aws:s3@.+    --+    --     This also enables logging of data event activity performed by any+    --     user or role in your Amazon Web Services account, even if that+    --     activity is performed on a bucket that belongs to another Amazon Web+    --     Services account.+    --+    -- -   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.+    --+    -- -   To log data events for all Lambda functions in your Amazon Web+    --     Services account, specify the prefix as @arn:aws:lambda@.+    --+    --     This also enables logging of @Invoke@ activity performed by any user+    --     or role in your Amazon Web Services account, even if that activity+    --     is performed on a function that belongs to another Amazon Web+    --     Services account.+    --+    -- -   To log data events for a specific Lambda function, specify the+    --     function ARN.+    --+    --     Lambda function ARNs are exact. For example, if you specify a+    --     function ARN+    --     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/, data+    --     events will only be logged for+    --     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/. They+    --     will not be logged for+    --     /arn:aws:lambda:us-west-2:111111111111:function:helloworld2/.+    --+    -- -   To log data events for all DynamoDB tables in your Amazon Web+    --     Services account, specify the prefix as @arn:aws:dynamodb@.+    values :: Prelude.Maybe [Prelude.Text]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DataResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'type'', 'dataResource_type' - The resource type in which you want to log data events. You can specify+-- the following /basic/ event selector resource types:+--+-- -   @AWS::S3::Object@+--+-- -   @AWS::Lambda::Function@+--+-- -   @AWS::DynamoDB::Table@+--+-- The following resource types are also available through /advanced/ event+-- selectors. Basic event selector resource types are valid in advanced+-- event selectors, but advanced event selector resource types are not+-- valid in basic event selectors. For more information, see+-- AdvancedFieldSelector$Field.+--+-- -   @AWS::S3Outposts::Object@+--+-- -   @AWS::ManagedBlockchain::Node@+--+-- -   @AWS::S3ObjectLambda::AccessPoint@+--+-- -   @AWS::EC2::Snapshot@+--+-- -   @AWS::S3::AccessPoint@+--+-- -   @AWS::DynamoDB::Stream@+--+-- -   @AWS::Glue::Table@+--+-- 'values', 'dataResource_values' - An array of Amazon Resource Name (ARN) strings or partial ARN strings+-- for the specified objects.+--+-- -   To log data events for all objects in all S3 buckets in your Amazon+--     Web Services account, specify the prefix as @arn:aws:s3@.+--+--     This also enables logging of data event activity performed by any+--     user or role in your Amazon Web Services account, even if that+--     activity is performed on a bucket that belongs to another Amazon Web+--     Services account.+--+-- -   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.+--+-- -   To log data events for all Lambda functions in your Amazon Web+--     Services account, specify the prefix as @arn:aws:lambda@.+--+--     This also enables logging of @Invoke@ activity performed by any user+--     or role in your Amazon Web Services account, even if that activity+--     is performed on a function that belongs to another Amazon Web+--     Services account.+--+-- -   To log data events for a specific Lambda function, specify the+--     function ARN.+--+--     Lambda function ARNs are exact. For example, if you specify a+--     function ARN+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/, data+--     events will only be logged for+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/. They+--     will not be logged for+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld2/.+--+-- -   To log data events for all DynamoDB tables in your Amazon Web+--     Services account, specify the prefix as @arn:aws:dynamodb@.+newDataResource ::+  DataResource+newDataResource =+  DataResource'+    { type' = Prelude.Nothing,+      values = Prelude.Nothing+    }++-- | The resource type in which you want to log data events. You can specify+-- the following /basic/ event selector resource types:+--+-- -   @AWS::S3::Object@+--+-- -   @AWS::Lambda::Function@+--+-- -   @AWS::DynamoDB::Table@+--+-- The following resource types are also available through /advanced/ event+-- selectors. Basic event selector resource types are valid in advanced+-- event selectors, but advanced event selector resource types are not+-- valid in basic event selectors. For more information, see+-- AdvancedFieldSelector$Field.+--+-- -   @AWS::S3Outposts::Object@+--+-- -   @AWS::ManagedBlockchain::Node@+--+-- -   @AWS::S3ObjectLambda::AccessPoint@+--+-- -   @AWS::EC2::Snapshot@+--+-- -   @AWS::S3::AccessPoint@+--+-- -   @AWS::DynamoDB::Stream@+--+-- -   @AWS::Glue::Table@+dataResource_type :: Lens.Lens' DataResource (Prelude.Maybe Prelude.Text)+dataResource_type = Lens.lens (\DataResource' {type'} -> type') (\s@DataResource' {} a -> s {type' = a} :: DataResource)++-- | An array of Amazon Resource Name (ARN) strings or partial ARN strings+-- for the specified objects.+--+-- -   To log data events for all objects in all S3 buckets in your Amazon+--     Web Services account, specify the prefix as @arn:aws:s3@.+--+--     This also enables logging of data event activity performed by any+--     user or role in your Amazon Web Services account, even if that+--     activity is performed on a bucket that belongs to another Amazon Web+--     Services account.+--+-- -   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.+--+-- -   To log data events for all Lambda functions in your Amazon Web+--     Services account, specify the prefix as @arn:aws:lambda@.+--+--     This also enables logging of @Invoke@ activity performed by any user+--     or role in your Amazon Web Services account, even if that activity+--     is performed on a function that belongs to another Amazon Web+--     Services account.+--+-- -   To log data events for a specific Lambda function, specify the+--     function ARN.+--+--     Lambda function ARNs are exact. For example, if you specify a+--     function ARN+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/, data+--     events will only be logged for+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld/. They+--     will not be logged for+--     /arn:aws:lambda:us-west-2:111111111111:function:helloworld2/.+--+-- -   To log data events for all DynamoDB tables in your Amazon Web+--     Services account, specify the prefix as @arn:aws:dynamodb@.+dataResource_values :: Lens.Lens' DataResource (Prelude.Maybe [Prelude.Text])+dataResource_values = Lens.lens (\DataResource' {values} -> values) (\s@DataResource' {} a -> s {values = a} :: DataResource) Prelude.. Lens.mapping Lens.coerced++instance Data.FromJSON DataResource where+  parseJSON =+    Data.withObject+      "DataResource"+      ( \x ->+          DataResource'+            Prelude.<$> (x Data..:? "Type")+            Prelude.<*> (x Data..:? "Values" Data..!= Prelude.mempty)+      )++instance Prelude.Hashable DataResource where+  hashWithSalt _salt DataResource' {..} =+    _salt+      `Prelude.hashWithSalt` type'+      `Prelude.hashWithSalt` values++instance Prelude.NFData DataResource where+  rnf DataResource' {..} =+    Prelude.rnf type' `Prelude.seq` Prelude.rnf values++instance Data.ToJSON DataResource where+  toJSON DataResource' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Type" Data..=) Prelude.<$> type',+            ("Values" Data..=) Prelude.<$> values+          ]+      )
+ gen/Amazonka/CloudTrail/Types/DeliveryStatus.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.DeliveryStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.DeliveryStatus+  ( DeliveryStatus+      ( ..,+        DeliveryStatus_ACCESS_DENIED,+        DeliveryStatus_ACCESS_DENIED_SIGNING_FILE,+        DeliveryStatus_CANCELLED,+        DeliveryStatus_FAILED,+        DeliveryStatus_FAILED_SIGNING_FILE,+        DeliveryStatus_PENDING,+        DeliveryStatus_RESOURCE_NOT_FOUND,+        DeliveryStatus_SUCCESS,+        DeliveryStatus_UNKNOWN+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype DeliveryStatus = DeliveryStatus'+  { fromDeliveryStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern DeliveryStatus_ACCESS_DENIED :: DeliveryStatus+pattern DeliveryStatus_ACCESS_DENIED = DeliveryStatus' "ACCESS_DENIED"++pattern DeliveryStatus_ACCESS_DENIED_SIGNING_FILE :: DeliveryStatus+pattern DeliveryStatus_ACCESS_DENIED_SIGNING_FILE = DeliveryStatus' "ACCESS_DENIED_SIGNING_FILE"++pattern DeliveryStatus_CANCELLED :: DeliveryStatus+pattern DeliveryStatus_CANCELLED = DeliveryStatus' "CANCELLED"++pattern DeliveryStatus_FAILED :: DeliveryStatus+pattern DeliveryStatus_FAILED = DeliveryStatus' "FAILED"++pattern DeliveryStatus_FAILED_SIGNING_FILE :: DeliveryStatus+pattern DeliveryStatus_FAILED_SIGNING_FILE = DeliveryStatus' "FAILED_SIGNING_FILE"++pattern DeliveryStatus_PENDING :: DeliveryStatus+pattern DeliveryStatus_PENDING = DeliveryStatus' "PENDING"++pattern DeliveryStatus_RESOURCE_NOT_FOUND :: DeliveryStatus+pattern DeliveryStatus_RESOURCE_NOT_FOUND = DeliveryStatus' "RESOURCE_NOT_FOUND"++pattern DeliveryStatus_SUCCESS :: DeliveryStatus+pattern DeliveryStatus_SUCCESS = DeliveryStatus' "SUCCESS"++pattern DeliveryStatus_UNKNOWN :: DeliveryStatus+pattern DeliveryStatus_UNKNOWN = DeliveryStatus' "UNKNOWN"++{-# COMPLETE+  DeliveryStatus_ACCESS_DENIED,+  DeliveryStatus_ACCESS_DENIED_SIGNING_FILE,+  DeliveryStatus_CANCELLED,+  DeliveryStatus_FAILED,+  DeliveryStatus_FAILED_SIGNING_FILE,+  DeliveryStatus_PENDING,+  DeliveryStatus_RESOURCE_NOT_FOUND,+  DeliveryStatus_SUCCESS,+  DeliveryStatus_UNKNOWN,+  DeliveryStatus'+  #-}
+ gen/Amazonka/CloudTrail/Types/Destination.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Destination+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Destination where++import Amazonka.CloudTrail.Types.DestinationType+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about the service where CloudTrail delivers events.+--+-- /See:/ 'newDestination' smart constructor.+data Destination = Destination'+  { -- | The type of destination for events arriving from a channel. For+    -- service-linked channels, the value is @AWS_SERVICE@.+    type' :: DestinationType,+    -- | For service-linked channels, the value is the name of the Amazon Web+    -- Services service.+    location :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Destination' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'type'', 'destination_type' - The type of destination for events arriving from a channel. For+-- service-linked channels, the value is @AWS_SERVICE@.+--+-- 'location', 'destination_location' - For service-linked channels, the value is the name of the Amazon Web+-- Services service.+newDestination ::+  -- | 'type''+  DestinationType ->+  -- | 'location'+  Prelude.Text ->+  Destination+newDestination pType_ pLocation_ =+  Destination' {type' = pType_, location = pLocation_}++-- | The type of destination for events arriving from a channel. For+-- service-linked channels, the value is @AWS_SERVICE@.+destination_type :: Lens.Lens' Destination DestinationType+destination_type = Lens.lens (\Destination' {type'} -> type') (\s@Destination' {} a -> s {type' = a} :: Destination)++-- | For service-linked channels, the value is the name of the Amazon Web+-- Services service.+destination_location :: Lens.Lens' Destination Prelude.Text+destination_location = Lens.lens (\Destination' {location} -> location) (\s@Destination' {} a -> s {location = a} :: Destination)++instance Data.FromJSON Destination where+  parseJSON =+    Data.withObject+      "Destination"+      ( \x ->+          Destination'+            Prelude.<$> (x Data..: "Type")+            Prelude.<*> (x Data..: "Location")+      )++instance Prelude.Hashable Destination where+  hashWithSalt _salt Destination' {..} =+    _salt+      `Prelude.hashWithSalt` type'+      `Prelude.hashWithSalt` location++instance Prelude.NFData Destination where+  rnf Destination' {..} =+    Prelude.rnf type'+      `Prelude.seq` Prelude.rnf location
+ gen/Amazonka/CloudTrail/Types/DestinationType.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.DestinationType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.DestinationType+  ( DestinationType+      ( ..,+        DestinationType_AWS_SERVICE,+        DestinationType_EVENT_DATA_STORE+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype DestinationType = DestinationType'+  { fromDestinationType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern DestinationType_AWS_SERVICE :: DestinationType+pattern DestinationType_AWS_SERVICE = DestinationType' "AWS_SERVICE"++pattern DestinationType_EVENT_DATA_STORE :: DestinationType+pattern DestinationType_EVENT_DATA_STORE = DestinationType' "EVENT_DATA_STORE"++{-# COMPLETE+  DestinationType_AWS_SERVICE,+  DestinationType_EVENT_DATA_STORE,+  DestinationType'+  #-}
+ gen/Amazonka/CloudTrail/Types/Event.hs view
@@ -0,0 +1,179 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Event+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Event where++import Amazonka.CloudTrail.Types.Resource+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about an event that was returned by a lookup+-- request. The result includes a representation of a CloudTrail event.+--+-- /See:/ 'newEvent' smart constructor.+data Event = Event'+  { -- | The Amazon Web Services access key ID that was used to sign the request.+    -- If the request was made with temporary security credentials, this is the+    -- access key ID of the temporary credentials.+    accessKeyId :: Prelude.Maybe Prelude.Text,+    -- | A JSON string that contains a representation of the event returned.+    cloudTrailEvent :: Prelude.Maybe Prelude.Text,+    -- | The CloudTrail ID of the event returned.+    eventId :: Prelude.Maybe Prelude.Text,+    -- | The name of the event returned.+    eventName :: Prelude.Maybe Prelude.Text,+    -- | The Amazon Web Services service to which the request was made.+    eventSource :: Prelude.Maybe Prelude.Text,+    -- | The date and time of the event returned.+    eventTime :: Prelude.Maybe Data.POSIX,+    -- | Information about whether the event is a write event or a read event.+    readOnly :: Prelude.Maybe Prelude.Text,+    -- | A list of resources referenced by the event returned.+    resources :: Prelude.Maybe [Resource],+    -- | A user name or role name of the requester that called the API in the+    -- event returned.+    username :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Event' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'accessKeyId', 'event_accessKeyId' - The Amazon Web Services access key ID that was used to sign the request.+-- If the request was made with temporary security credentials, this is the+-- access key ID of the temporary credentials.+--+-- 'cloudTrailEvent', 'event_cloudTrailEvent' - A JSON string that contains a representation of the event returned.+--+-- 'eventId', 'event_eventId' - The CloudTrail ID of the event returned.+--+-- 'eventName', 'event_eventName' - The name of the event returned.+--+-- 'eventSource', 'event_eventSource' - The Amazon Web Services service to which the request was made.+--+-- 'eventTime', 'event_eventTime' - The date and time of the event returned.+--+-- 'readOnly', 'event_readOnly' - Information about whether the event is a write event or a read event.+--+-- 'resources', 'event_resources' - A list of resources referenced by the event returned.+--+-- 'username', 'event_username' - A user name or role name of the requester that called the API in the+-- event returned.+newEvent ::+  Event+newEvent =+  Event'+    { accessKeyId = Prelude.Nothing,+      cloudTrailEvent = Prelude.Nothing,+      eventId = Prelude.Nothing,+      eventName = Prelude.Nothing,+      eventSource = Prelude.Nothing,+      eventTime = Prelude.Nothing,+      readOnly = Prelude.Nothing,+      resources = Prelude.Nothing,+      username = Prelude.Nothing+    }++-- | The Amazon Web Services access key ID that was used to sign the request.+-- If the request was made with temporary security credentials, this is the+-- access key ID of the temporary credentials.+event_accessKeyId :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_accessKeyId = Lens.lens (\Event' {accessKeyId} -> accessKeyId) (\s@Event' {} a -> s {accessKeyId = a} :: Event)++-- | A JSON string that contains a representation of the event returned.+event_cloudTrailEvent :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_cloudTrailEvent = Lens.lens (\Event' {cloudTrailEvent} -> cloudTrailEvent) (\s@Event' {} a -> s {cloudTrailEvent = a} :: Event)++-- | The CloudTrail ID of the event returned.+event_eventId :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_eventId = Lens.lens (\Event' {eventId} -> eventId) (\s@Event' {} a -> s {eventId = a} :: Event)++-- | The name of the event returned.+event_eventName :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_eventName = Lens.lens (\Event' {eventName} -> eventName) (\s@Event' {} a -> s {eventName = a} :: Event)++-- | The Amazon Web Services service to which the request was made.+event_eventSource :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_eventSource = Lens.lens (\Event' {eventSource} -> eventSource) (\s@Event' {} a -> s {eventSource = a} :: Event)++-- | The date and time of the event returned.+event_eventTime :: Lens.Lens' Event (Prelude.Maybe Prelude.UTCTime)+event_eventTime = Lens.lens (\Event' {eventTime} -> eventTime) (\s@Event' {} a -> s {eventTime = a} :: Event) Prelude.. Lens.mapping Data._Time++-- | Information about whether the event is a write event or a read event.+event_readOnly :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_readOnly = Lens.lens (\Event' {readOnly} -> readOnly) (\s@Event' {} a -> s {readOnly = a} :: Event)++-- | A list of resources referenced by the event returned.+event_resources :: Lens.Lens' Event (Prelude.Maybe [Resource])+event_resources = Lens.lens (\Event' {resources} -> resources) (\s@Event' {} a -> s {resources = a} :: Event) Prelude.. Lens.mapping Lens.coerced++-- | A user name or role name of the requester that called the API in the+-- event returned.+event_username :: Lens.Lens' Event (Prelude.Maybe Prelude.Text)+event_username = Lens.lens (\Event' {username} -> username) (\s@Event' {} a -> s {username = a} :: Event)++instance Data.FromJSON Event where+  parseJSON =+    Data.withObject+      "Event"+      ( \x ->+          Event'+            Prelude.<$> (x Data..:? "AccessKeyId")+            Prelude.<*> (x Data..:? "CloudTrailEvent")+            Prelude.<*> (x Data..:? "EventId")+            Prelude.<*> (x Data..:? "EventName")+            Prelude.<*> (x Data..:? "EventSource")+            Prelude.<*> (x Data..:? "EventTime")+            Prelude.<*> (x Data..:? "ReadOnly")+            Prelude.<*> (x Data..:? "Resources" Data..!= Prelude.mempty)+            Prelude.<*> (x Data..:? "Username")+      )++instance Prelude.Hashable Event where+  hashWithSalt _salt Event' {..} =+    _salt+      `Prelude.hashWithSalt` accessKeyId+      `Prelude.hashWithSalt` cloudTrailEvent+      `Prelude.hashWithSalt` eventId+      `Prelude.hashWithSalt` eventName+      `Prelude.hashWithSalt` eventSource+      `Prelude.hashWithSalt` eventTime+      `Prelude.hashWithSalt` readOnly+      `Prelude.hashWithSalt` resources+      `Prelude.hashWithSalt` username++instance Prelude.NFData Event where+  rnf Event' {..} =+    Prelude.rnf accessKeyId+      `Prelude.seq` Prelude.rnf cloudTrailEvent+      `Prelude.seq` Prelude.rnf eventId+      `Prelude.seq` Prelude.rnf eventName+      `Prelude.seq` Prelude.rnf eventSource+      `Prelude.seq` Prelude.rnf eventTime+      `Prelude.seq` Prelude.rnf readOnly+      `Prelude.seq` Prelude.rnf resources+      `Prelude.seq` Prelude.rnf username
+ gen/Amazonka/CloudTrail/Types/EventCategory.hs view
@@ -0,0 +1,66 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.EventCategory+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.EventCategory+  ( EventCategory+      ( ..,+        EventCategory_Insight+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype EventCategory = EventCategory'+  { fromEventCategory ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern EventCategory_Insight :: EventCategory+pattern EventCategory_Insight = EventCategory' "insight"++{-# COMPLETE+  EventCategory_Insight,+  EventCategory'+  #-}
+ gen/Amazonka/CloudTrail/Types/EventDataStore.hs view
@@ -0,0 +1,217 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.EventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.EventDataStore where++import Amazonka.CloudTrail.Types.AdvancedEventSelector+import Amazonka.CloudTrail.Types.EventDataStoreStatus+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A storage lake of event data against which you can run complex SQL-based+-- queries. An event data store can include events that you have logged on+-- your account from the last 90 to 2557 days (about three months to up to+-- seven years). To select events for an event data store, use+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced advanced event selectors>.+--+-- /See:/ 'newEventDataStore' smart constructor.+data EventDataStore = EventDataStore'+  { -- | This field is being deprecated. The advanced event selectors that were+    -- used to select events for the data store.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | This field is being deprecated. The timestamp of the event data store\'s+    -- creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the event data store.+    eventDataStoreArn :: Prelude.Maybe Prelude.Text,+    -- | This field is being deprecated. Indicates whether the event data store+    -- includes events from all regions, or only from the region in which it+    -- was created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Maybe Prelude.Text,+    -- | This field is being deprecated. Indicates that an event data store is+    -- collecting logged events for an organization.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | This field is being deprecated. The retention period, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | This field is being deprecated. The status of an event data store.+    -- Values are @ENABLED@ and @PENDING_DELETION@.+    status :: Prelude.Maybe EventDataStoreStatus,+    -- | This field is being deprecated. Indicates whether the event data store+    -- is protected from termination.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | This field is being deprecated. The timestamp showing when an event data+    -- store was updated, if applicable. @UpdatedTimestamp@ is always either+    -- the same or newer than the time shown in @CreatedTimestamp@.+    updatedTimestamp :: Prelude.Maybe Data.POSIX+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'eventDataStore_advancedEventSelectors' - This field is being deprecated. The advanced event selectors that were+-- used to select events for the data store.+--+-- 'createdTimestamp', 'eventDataStore_createdTimestamp' - This field is being deprecated. The timestamp of the event data store\'s+-- creation.+--+-- 'eventDataStoreArn', 'eventDataStore_eventDataStoreArn' - The ARN of the event data store.+--+-- 'multiRegionEnabled', 'eventDataStore_multiRegionEnabled' - This field is being deprecated. Indicates whether the event data store+-- includes events from all regions, or only from the region in which it+-- was created.+--+-- 'name', 'eventDataStore_name' - The name of the event data store.+--+-- 'organizationEnabled', 'eventDataStore_organizationEnabled' - This field is being deprecated. Indicates that an event data store is+-- collecting logged events for an organization.+--+-- 'retentionPeriod', 'eventDataStore_retentionPeriod' - This field is being deprecated. The retention period, in days.+--+-- 'status', 'eventDataStore_status' - This field is being deprecated. The status of an event data store.+-- Values are @ENABLED@ and @PENDING_DELETION@.+--+-- 'terminationProtectionEnabled', 'eventDataStore_terminationProtectionEnabled' - This field is being deprecated. Indicates whether the event data store+-- is protected from termination.+--+-- 'updatedTimestamp', 'eventDataStore_updatedTimestamp' - This field is being deprecated. The timestamp showing when an event data+-- store was updated, if applicable. @UpdatedTimestamp@ is always either+-- the same or newer than the time shown in @CreatedTimestamp@.+newEventDataStore ::+  EventDataStore+newEventDataStore =+  EventDataStore'+    { advancedEventSelectors =+        Prelude.Nothing,+      createdTimestamp = Prelude.Nothing,+      eventDataStoreArn = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      status = Prelude.Nothing,+      terminationProtectionEnabled = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing+    }++-- | This field is being deprecated. The advanced event selectors that were+-- used to select events for the data store.+eventDataStore_advancedEventSelectors :: Lens.Lens' EventDataStore (Prelude.Maybe [AdvancedEventSelector])+eventDataStore_advancedEventSelectors = Lens.lens (\EventDataStore' {advancedEventSelectors} -> advancedEventSelectors) (\s@EventDataStore' {} a -> s {advancedEventSelectors = a} :: EventDataStore) Prelude.. Lens.mapping Lens.coerced++-- | This field is being deprecated. The timestamp of the event data store\'s+-- creation.+eventDataStore_createdTimestamp :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.UTCTime)+eventDataStore_createdTimestamp = Lens.lens (\EventDataStore' {createdTimestamp} -> createdTimestamp) (\s@EventDataStore' {} a -> s {createdTimestamp = a} :: EventDataStore) Prelude.. Lens.mapping Data._Time++-- | The ARN of the event data store.+eventDataStore_eventDataStoreArn :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Text)+eventDataStore_eventDataStoreArn = Lens.lens (\EventDataStore' {eventDataStoreArn} -> eventDataStoreArn) (\s@EventDataStore' {} a -> s {eventDataStoreArn = a} :: EventDataStore)++-- | This field is being deprecated. Indicates whether the event data store+-- includes events from all regions, or only from the region in which it+-- was created.+eventDataStore_multiRegionEnabled :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Bool)+eventDataStore_multiRegionEnabled = Lens.lens (\EventDataStore' {multiRegionEnabled} -> multiRegionEnabled) (\s@EventDataStore' {} a -> s {multiRegionEnabled = a} :: EventDataStore)++-- | The name of the event data store.+eventDataStore_name :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Text)+eventDataStore_name = Lens.lens (\EventDataStore' {name} -> name) (\s@EventDataStore' {} a -> s {name = a} :: EventDataStore)++-- | This field is being deprecated. Indicates that an event data store is+-- collecting logged events for an organization.+eventDataStore_organizationEnabled :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Bool)+eventDataStore_organizationEnabled = Lens.lens (\EventDataStore' {organizationEnabled} -> organizationEnabled) (\s@EventDataStore' {} a -> s {organizationEnabled = a} :: EventDataStore)++-- | This field is being deprecated. The retention period, in days.+eventDataStore_retentionPeriod :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Natural)+eventDataStore_retentionPeriod = Lens.lens (\EventDataStore' {retentionPeriod} -> retentionPeriod) (\s@EventDataStore' {} a -> s {retentionPeriod = a} :: EventDataStore)++-- | This field is being deprecated. The status of an event data store.+-- Values are @ENABLED@ and @PENDING_DELETION@.+eventDataStore_status :: Lens.Lens' EventDataStore (Prelude.Maybe EventDataStoreStatus)+eventDataStore_status = Lens.lens (\EventDataStore' {status} -> status) (\s@EventDataStore' {} a -> s {status = a} :: EventDataStore)++-- | This field is being deprecated. Indicates whether the event data store+-- is protected from termination.+eventDataStore_terminationProtectionEnabled :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.Bool)+eventDataStore_terminationProtectionEnabled = Lens.lens (\EventDataStore' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@EventDataStore' {} a -> s {terminationProtectionEnabled = a} :: EventDataStore)++-- | This field is being deprecated. The timestamp showing when an event data+-- store was updated, if applicable. @UpdatedTimestamp@ is always either+-- the same or newer than the time shown in @CreatedTimestamp@.+eventDataStore_updatedTimestamp :: Lens.Lens' EventDataStore (Prelude.Maybe Prelude.UTCTime)+eventDataStore_updatedTimestamp = Lens.lens (\EventDataStore' {updatedTimestamp} -> updatedTimestamp) (\s@EventDataStore' {} a -> s {updatedTimestamp = a} :: EventDataStore) Prelude.. Lens.mapping Data._Time++instance Data.FromJSON EventDataStore where+  parseJSON =+    Data.withObject+      "EventDataStore"+      ( \x ->+          EventDataStore'+            Prelude.<$> ( x+                            Data..:? "AdvancedEventSelectors"+                            Data..!= Prelude.mempty+                        )+            Prelude.<*> (x Data..:? "CreatedTimestamp")+            Prelude.<*> (x Data..:? "EventDataStoreArn")+            Prelude.<*> (x Data..:? "MultiRegionEnabled")+            Prelude.<*> (x Data..:? "Name")+            Prelude.<*> (x Data..:? "OrganizationEnabled")+            Prelude.<*> (x Data..:? "RetentionPeriod")+            Prelude.<*> (x Data..:? "Status")+            Prelude.<*> (x Data..:? "TerminationProtectionEnabled")+            Prelude.<*> (x Data..:? "UpdatedTimestamp")+      )++instance Prelude.Hashable EventDataStore where+  hashWithSalt _salt EventDataStore' {..} =+    _salt+      `Prelude.hashWithSalt` advancedEventSelectors+      `Prelude.hashWithSalt` createdTimestamp+      `Prelude.hashWithSalt` eventDataStoreArn+      `Prelude.hashWithSalt` multiRegionEnabled+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` organizationEnabled+      `Prelude.hashWithSalt` retentionPeriod+      `Prelude.hashWithSalt` status+      `Prelude.hashWithSalt` terminationProtectionEnabled+      `Prelude.hashWithSalt` updatedTimestamp++instance Prelude.NFData EventDataStore where+  rnf EventDataStore' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf eventDataStoreArn+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf updatedTimestamp
+ gen/Amazonka/CloudTrail/Types/EventDataStoreStatus.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.EventDataStoreStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.EventDataStoreStatus+  ( EventDataStoreStatus+      ( ..,+        EventDataStoreStatus_CREATED,+        EventDataStoreStatus_ENABLED,+        EventDataStoreStatus_PENDING_DELETION+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype EventDataStoreStatus = EventDataStoreStatus'+  { fromEventDataStoreStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern EventDataStoreStatus_CREATED :: EventDataStoreStatus+pattern EventDataStoreStatus_CREATED = EventDataStoreStatus' "CREATED"++pattern EventDataStoreStatus_ENABLED :: EventDataStoreStatus+pattern EventDataStoreStatus_ENABLED = EventDataStoreStatus' "ENABLED"++pattern EventDataStoreStatus_PENDING_DELETION :: EventDataStoreStatus+pattern EventDataStoreStatus_PENDING_DELETION = EventDataStoreStatus' "PENDING_DELETION"++{-# COMPLETE+  EventDataStoreStatus_CREATED,+  EventDataStoreStatus_ENABLED,+  EventDataStoreStatus_PENDING_DELETION,+  EventDataStoreStatus'+  #-}
+ gen/Amazonka/CloudTrail/Types/EventSelector.hs view
@@ -0,0 +1,243 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.EventSelector+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.EventSelector where++import Amazonka.CloudTrail.Types.DataResource+import Amazonka.CloudTrail.Types.ReadWriteType+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Use event selectors to further specify the management and data event+-- settings for your trail. By default, trails created without specific+-- event selectors will be configured to log all read and write management+-- events, and no 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.+--+-- You cannot apply both event selectors and advanced event selectors to a+-- trail.+--+-- /See:/ 'newEventSelector' smart constructor.+data EventSelector = EventSelector'+  { -- | CloudTrail supports data event logging for Amazon S3 objects, Lambda+    -- functions, and Amazon DynamoDB tables with basic event selectors. You+    -- can specify up to 250 resources for an individual event selector, but+    -- the total number of data resources cannot exceed 250 across all event+    -- selectors in a trail. This limit does not apply if you configure+    -- resource logging for all data events.+    --+    -- For more information, see+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Data Events>+    -- and+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html Limits in CloudTrail>+    -- in the /CloudTrail User Guide/.+    dataResources :: Prelude.Maybe [DataResource],+    -- | An optional list of service event sources from which you do not want+    -- management events to be logged on your trail. In this release, the list+    -- can be empty (disables the filter), or it can filter out Key Management+    -- Service or Amazon RDS Data API events by containing @kms.amazonaws.com@+    -- or @rdsdata.amazonaws.com@. By default, @ExcludeManagementEventSources@+    -- is empty, and KMS and Amazon RDS Data API events are logged to your+    -- trail. You can exclude management event sources only in regions that+    -- support the event source.+    excludeManagementEventSources :: Prelude.Maybe [Prelude.Text],+    -- | Specify if you want your event selector to include management events for+    -- your trail.+    --+    -- For more information, see+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html Management Events>+    -- in the /CloudTrail User Guide/.+    --+    -- By default, the value is @true@.+    --+    -- The first copy of management events is free. You are charged for+    -- additional copies of management events that you are logging on any+    -- subsequent trail in the same region. For more information about+    -- CloudTrail pricing, see+    -- <http://aws.amazon.com/cloudtrail/pricing/ CloudTrail Pricing>.+    includeManagementEvents :: Prelude.Maybe Prelude.Bool,+    -- | 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@.+    readWriteType :: Prelude.Maybe ReadWriteType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EventSelector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'dataResources', 'eventSelector_dataResources' - CloudTrail supports data event logging for Amazon S3 objects, Lambda+-- functions, and Amazon DynamoDB tables with basic event selectors. You+-- can specify up to 250 resources for an individual event selector, but+-- the total number of data resources cannot exceed 250 across all event+-- selectors in a trail. This limit does not apply if you configure+-- resource logging for all data events.+--+-- For more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Data Events>+-- and+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html Limits in CloudTrail>+-- in the /CloudTrail User Guide/.+--+-- 'excludeManagementEventSources', 'eventSelector_excludeManagementEventSources' - An optional list of service event sources from which you do not want+-- management events to be logged on your trail. In this release, the list+-- can be empty (disables the filter), or it can filter out Key Management+-- Service or Amazon RDS Data API events by containing @kms.amazonaws.com@+-- or @rdsdata.amazonaws.com@. By default, @ExcludeManagementEventSources@+-- is empty, and KMS and Amazon RDS Data API events are logged to your+-- trail. You can exclude management event sources only in regions that+-- support the event source.+--+-- 'includeManagementEvents', 'eventSelector_includeManagementEvents' - Specify if you want your event selector to include management events for+-- your trail.+--+-- For more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html Management Events>+-- in the /CloudTrail User Guide/.+--+-- By default, the value is @true@.+--+-- The first copy of management events is free. You are charged for+-- additional copies of management events that you are logging on any+-- subsequent trail in the same region. For more information about+-- CloudTrail pricing, see+-- <http://aws.amazon.com/cloudtrail/pricing/ CloudTrail Pricing>.+--+-- 'readWriteType', 'eventSelector_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@.+newEventSelector ::+  EventSelector+newEventSelector =+  EventSelector'+    { dataResources = Prelude.Nothing,+      excludeManagementEventSources = Prelude.Nothing,+      includeManagementEvents = Prelude.Nothing,+      readWriteType = Prelude.Nothing+    }++-- | CloudTrail supports data event logging for Amazon S3 objects, Lambda+-- functions, and Amazon DynamoDB tables with basic event selectors. You+-- can specify up to 250 resources for an individual event selector, but+-- the total number of data resources cannot exceed 250 across all event+-- selectors in a trail. This limit does not apply if you configure+-- resource logging for all data events.+--+-- For more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html Data Events>+-- and+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html Limits in CloudTrail>+-- in the /CloudTrail User Guide/.+eventSelector_dataResources :: Lens.Lens' EventSelector (Prelude.Maybe [DataResource])+eventSelector_dataResources = Lens.lens (\EventSelector' {dataResources} -> dataResources) (\s@EventSelector' {} a -> s {dataResources = a} :: EventSelector) Prelude.. Lens.mapping Lens.coerced++-- | An optional list of service event sources from which you do not want+-- management events to be logged on your trail. In this release, the list+-- can be empty (disables the filter), or it can filter out Key Management+-- Service or Amazon RDS Data API events by containing @kms.amazonaws.com@+-- or @rdsdata.amazonaws.com@. By default, @ExcludeManagementEventSources@+-- is empty, and KMS and Amazon RDS Data API events are logged to your+-- trail. You can exclude management event sources only in regions that+-- support the event source.+eventSelector_excludeManagementEventSources :: Lens.Lens' EventSelector (Prelude.Maybe [Prelude.Text])+eventSelector_excludeManagementEventSources = Lens.lens (\EventSelector' {excludeManagementEventSources} -> excludeManagementEventSources) (\s@EventSelector' {} a -> s {excludeManagementEventSources = a} :: EventSelector) Prelude.. Lens.mapping Lens.coerced++-- | Specify if you want your event selector to include management events for+-- your trail.+--+-- For more information, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html Management Events>+-- in the /CloudTrail User Guide/.+--+-- By default, the value is @true@.+--+-- The first copy of management events is free. You are charged for+-- additional copies of management events that you are logging on any+-- subsequent trail in the same region. For more information about+-- CloudTrail pricing, see+-- <http://aws.amazon.com/cloudtrail/pricing/ CloudTrail Pricing>.+eventSelector_includeManagementEvents :: Lens.Lens' EventSelector (Prelude.Maybe Prelude.Bool)+eventSelector_includeManagementEvents = Lens.lens (\EventSelector' {includeManagementEvents} -> includeManagementEvents) (\s@EventSelector' {} a -> s {includeManagementEvents = a} :: EventSelector)++-- | 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@.+eventSelector_readWriteType :: Lens.Lens' EventSelector (Prelude.Maybe ReadWriteType)+eventSelector_readWriteType = Lens.lens (\EventSelector' {readWriteType} -> readWriteType) (\s@EventSelector' {} a -> s {readWriteType = a} :: EventSelector)++instance Data.FromJSON EventSelector where+  parseJSON =+    Data.withObject+      "EventSelector"+      ( \x ->+          EventSelector'+            Prelude.<$> (x Data..:? "DataResources" Data..!= Prelude.mempty)+            Prelude.<*> ( x+                            Data..:? "ExcludeManagementEventSources"+                            Data..!= Prelude.mempty+                        )+            Prelude.<*> (x Data..:? "IncludeManagementEvents")+            Prelude.<*> (x Data..:? "ReadWriteType")+      )++instance Prelude.Hashable EventSelector where+  hashWithSalt _salt EventSelector' {..} =+    _salt+      `Prelude.hashWithSalt` dataResources+      `Prelude.hashWithSalt` excludeManagementEventSources+      `Prelude.hashWithSalt` includeManagementEvents+      `Prelude.hashWithSalt` readWriteType++instance Prelude.NFData EventSelector where+  rnf EventSelector' {..} =+    Prelude.rnf dataResources+      `Prelude.seq` Prelude.rnf excludeManagementEventSources+      `Prelude.seq` Prelude.rnf includeManagementEvents+      `Prelude.seq` Prelude.rnf readWriteType++instance Data.ToJSON EventSelector where+  toJSON EventSelector' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("DataResources" Data..=) Prelude.<$> dataResources,+            ("ExcludeManagementEventSources" Data..=)+              Prelude.<$> excludeManagementEventSources,+            ("IncludeManagementEvents" Data..=)+              Prelude.<$> includeManagementEvents,+            ("ReadWriteType" Data..=) Prelude.<$> readWriteType+          ]+      )
+ gen/Amazonka/CloudTrail/Types/ImportFailureListItem.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportFailureListItem+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportFailureListItem where++import Amazonka.CloudTrail.Types.ImportFailureStatus+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Provides information about an import failure.+--+-- /See:/ 'newImportFailureListItem' smart constructor.+data ImportFailureListItem = ImportFailureListItem'+  { -- | Provides the reason the import failed.+    errorMessage :: Prelude.Maybe Prelude.Text,+    -- | The type of import error.+    errorType :: Prelude.Maybe Prelude.Text,+    -- | When the import was last updated.+    lastUpdatedTime :: Prelude.Maybe Data.POSIX,+    -- | The location of the failure in the S3 bucket.+    location :: Prelude.Maybe Prelude.Text,+    -- | The status of the import.+    status :: Prelude.Maybe ImportFailureStatus+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ImportFailureListItem' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'errorMessage', 'importFailureListItem_errorMessage' - Provides the reason the import failed.+--+-- 'errorType', 'importFailureListItem_errorType' - The type of import error.+--+-- 'lastUpdatedTime', 'importFailureListItem_lastUpdatedTime' - When the import was last updated.+--+-- 'location', 'importFailureListItem_location' - The location of the failure in the S3 bucket.+--+-- 'status', 'importFailureListItem_status' - The status of the import.+newImportFailureListItem ::+  ImportFailureListItem+newImportFailureListItem =+  ImportFailureListItem'+    { errorMessage =+        Prelude.Nothing,+      errorType = Prelude.Nothing,+      lastUpdatedTime = Prelude.Nothing,+      location = Prelude.Nothing,+      status = Prelude.Nothing+    }++-- | Provides the reason the import failed.+importFailureListItem_errorMessage :: Lens.Lens' ImportFailureListItem (Prelude.Maybe Prelude.Text)+importFailureListItem_errorMessage = Lens.lens (\ImportFailureListItem' {errorMessage} -> errorMessage) (\s@ImportFailureListItem' {} a -> s {errorMessage = a} :: ImportFailureListItem)++-- | The type of import error.+importFailureListItem_errorType :: Lens.Lens' ImportFailureListItem (Prelude.Maybe Prelude.Text)+importFailureListItem_errorType = Lens.lens (\ImportFailureListItem' {errorType} -> errorType) (\s@ImportFailureListItem' {} a -> s {errorType = a} :: ImportFailureListItem)++-- | When the import was last updated.+importFailureListItem_lastUpdatedTime :: Lens.Lens' ImportFailureListItem (Prelude.Maybe Prelude.UTCTime)+importFailureListItem_lastUpdatedTime = Lens.lens (\ImportFailureListItem' {lastUpdatedTime} -> lastUpdatedTime) (\s@ImportFailureListItem' {} a -> s {lastUpdatedTime = a} :: ImportFailureListItem) Prelude.. Lens.mapping Data._Time++-- | The location of the failure in the S3 bucket.+importFailureListItem_location :: Lens.Lens' ImportFailureListItem (Prelude.Maybe Prelude.Text)+importFailureListItem_location = Lens.lens (\ImportFailureListItem' {location} -> location) (\s@ImportFailureListItem' {} a -> s {location = a} :: ImportFailureListItem)++-- | The status of the import.+importFailureListItem_status :: Lens.Lens' ImportFailureListItem (Prelude.Maybe ImportFailureStatus)+importFailureListItem_status = Lens.lens (\ImportFailureListItem' {status} -> status) (\s@ImportFailureListItem' {} a -> s {status = a} :: ImportFailureListItem)++instance Data.FromJSON ImportFailureListItem where+  parseJSON =+    Data.withObject+      "ImportFailureListItem"+      ( \x ->+          ImportFailureListItem'+            Prelude.<$> (x Data..:? "ErrorMessage")+            Prelude.<*> (x Data..:? "ErrorType")+            Prelude.<*> (x Data..:? "LastUpdatedTime")+            Prelude.<*> (x Data..:? "Location")+            Prelude.<*> (x Data..:? "Status")+      )++instance Prelude.Hashable ImportFailureListItem where+  hashWithSalt _salt ImportFailureListItem' {..} =+    _salt+      `Prelude.hashWithSalt` errorMessage+      `Prelude.hashWithSalt` errorType+      `Prelude.hashWithSalt` lastUpdatedTime+      `Prelude.hashWithSalt` location+      `Prelude.hashWithSalt` status++instance Prelude.NFData ImportFailureListItem where+  rnf ImportFailureListItem' {..} =+    Prelude.rnf errorMessage+      `Prelude.seq` Prelude.rnf errorType+      `Prelude.seq` Prelude.rnf lastUpdatedTime+      `Prelude.seq` Prelude.rnf location+      `Prelude.seq` Prelude.rnf status
+ gen/Amazonka/CloudTrail/Types/ImportFailureStatus.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportFailureStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportFailureStatus+  ( ImportFailureStatus+      ( ..,+        ImportFailureStatus_FAILED,+        ImportFailureStatus_RETRY,+        ImportFailureStatus_SUCCEEDED+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ImportFailureStatus = ImportFailureStatus'+  { fromImportFailureStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern ImportFailureStatus_FAILED :: ImportFailureStatus+pattern ImportFailureStatus_FAILED = ImportFailureStatus' "FAILED"++pattern ImportFailureStatus_RETRY :: ImportFailureStatus+pattern ImportFailureStatus_RETRY = ImportFailureStatus' "RETRY"++pattern ImportFailureStatus_SUCCEEDED :: ImportFailureStatus+pattern ImportFailureStatus_SUCCEEDED = ImportFailureStatus' "SUCCEEDED"++{-# COMPLETE+  ImportFailureStatus_FAILED,+  ImportFailureStatus_RETRY,+  ImportFailureStatus_SUCCEEDED,+  ImportFailureStatus'+  #-}
+ gen/Amazonka/CloudTrail/Types/ImportSource.hs view
@@ -0,0 +1,72 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportSource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportSource where++import Amazonka.CloudTrail.Types.S3ImportSource+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The import source.+--+-- /See:/ 'newImportSource' smart constructor.+data ImportSource = ImportSource'+  { -- | The source S3 bucket.+    s3 :: S3ImportSource+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ImportSource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 's3', 'importSource_s3' - The source S3 bucket.+newImportSource ::+  -- | 's3'+  S3ImportSource ->+  ImportSource+newImportSource pS3_ = ImportSource' {s3 = pS3_}++-- | The source S3 bucket.+importSource_s3 :: Lens.Lens' ImportSource S3ImportSource+importSource_s3 = Lens.lens (\ImportSource' {s3} -> s3) (\s@ImportSource' {} a -> s {s3 = a} :: ImportSource)++instance Data.FromJSON ImportSource where+  parseJSON =+    Data.withObject+      "ImportSource"+      (\x -> ImportSource' Prelude.<$> (x Data..: "S3"))++instance Prelude.Hashable ImportSource where+  hashWithSalt _salt ImportSource' {..} =+    _salt `Prelude.hashWithSalt` s3++instance Prelude.NFData ImportSource where+  rnf ImportSource' {..} = Prelude.rnf s3++instance Data.ToJSON ImportSource where+  toJSON ImportSource' {..} =+    Data.object+      (Prelude.catMaybes [Prelude.Just ("S3" Data..= s3)])
+ gen/Amazonka/CloudTrail/Types/ImportStatistics.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportStatistics+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportStatistics where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Provides statistics for the specified @ImportID@. CloudTrail does not+-- update import statistics in real-time. Returned values for parameters+-- such as @EventsCompleted@ may be lower than the actual value, because+-- CloudTrail updates statistics incrementally over the course of the+-- import.+--+-- /See:/ 'newImportStatistics' smart constructor.+data ImportStatistics = ImportStatistics'+  { -- | The number of trail events imported into the event data store.+    eventsCompleted :: Prelude.Maybe Prelude.Integer,+    -- | The number of failed entries.+    failedEntries :: Prelude.Maybe Prelude.Integer,+    -- | The number of log files that completed import.+    filesCompleted :: Prelude.Maybe Prelude.Integer,+    -- | The number of S3 prefixes that completed import.+    prefixesCompleted :: Prelude.Maybe Prelude.Integer,+    -- | The number of S3 prefixes found for the import.+    prefixesFound :: Prelude.Maybe Prelude.Integer+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ImportStatistics' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'eventsCompleted', 'importStatistics_eventsCompleted' - The number of trail events imported into the event data store.+--+-- 'failedEntries', 'importStatistics_failedEntries' - The number of failed entries.+--+-- 'filesCompleted', 'importStatistics_filesCompleted' - The number of log files that completed import.+--+-- 'prefixesCompleted', 'importStatistics_prefixesCompleted' - The number of S3 prefixes that completed import.+--+-- 'prefixesFound', 'importStatistics_prefixesFound' - The number of S3 prefixes found for the import.+newImportStatistics ::+  ImportStatistics+newImportStatistics =+  ImportStatistics'+    { eventsCompleted =+        Prelude.Nothing,+      failedEntries = Prelude.Nothing,+      filesCompleted = Prelude.Nothing,+      prefixesCompleted = Prelude.Nothing,+      prefixesFound = Prelude.Nothing+    }++-- | The number of trail events imported into the event data store.+importStatistics_eventsCompleted :: Lens.Lens' ImportStatistics (Prelude.Maybe Prelude.Integer)+importStatistics_eventsCompleted = Lens.lens (\ImportStatistics' {eventsCompleted} -> eventsCompleted) (\s@ImportStatistics' {} a -> s {eventsCompleted = a} :: ImportStatistics)++-- | The number of failed entries.+importStatistics_failedEntries :: Lens.Lens' ImportStatistics (Prelude.Maybe Prelude.Integer)+importStatistics_failedEntries = Lens.lens (\ImportStatistics' {failedEntries} -> failedEntries) (\s@ImportStatistics' {} a -> s {failedEntries = a} :: ImportStatistics)++-- | The number of log files that completed import.+importStatistics_filesCompleted :: Lens.Lens' ImportStatistics (Prelude.Maybe Prelude.Integer)+importStatistics_filesCompleted = Lens.lens (\ImportStatistics' {filesCompleted} -> filesCompleted) (\s@ImportStatistics' {} a -> s {filesCompleted = a} :: ImportStatistics)++-- | The number of S3 prefixes that completed import.+importStatistics_prefixesCompleted :: Lens.Lens' ImportStatistics (Prelude.Maybe Prelude.Integer)+importStatistics_prefixesCompleted = Lens.lens (\ImportStatistics' {prefixesCompleted} -> prefixesCompleted) (\s@ImportStatistics' {} a -> s {prefixesCompleted = a} :: ImportStatistics)++-- | The number of S3 prefixes found for the import.+importStatistics_prefixesFound :: Lens.Lens' ImportStatistics (Prelude.Maybe Prelude.Integer)+importStatistics_prefixesFound = Lens.lens (\ImportStatistics' {prefixesFound} -> prefixesFound) (\s@ImportStatistics' {} a -> s {prefixesFound = a} :: ImportStatistics)++instance Data.FromJSON ImportStatistics where+  parseJSON =+    Data.withObject+      "ImportStatistics"+      ( \x ->+          ImportStatistics'+            Prelude.<$> (x Data..:? "EventsCompleted")+            Prelude.<*> (x Data..:? "FailedEntries")+            Prelude.<*> (x Data..:? "FilesCompleted")+            Prelude.<*> (x Data..:? "PrefixesCompleted")+            Prelude.<*> (x Data..:? "PrefixesFound")+      )++instance Prelude.Hashable ImportStatistics where+  hashWithSalt _salt ImportStatistics' {..} =+    _salt+      `Prelude.hashWithSalt` eventsCompleted+      `Prelude.hashWithSalt` failedEntries+      `Prelude.hashWithSalt` filesCompleted+      `Prelude.hashWithSalt` prefixesCompleted+      `Prelude.hashWithSalt` prefixesFound++instance Prelude.NFData ImportStatistics where+  rnf ImportStatistics' {..} =+    Prelude.rnf eventsCompleted+      `Prelude.seq` Prelude.rnf failedEntries+      `Prelude.seq` Prelude.rnf filesCompleted+      `Prelude.seq` Prelude.rnf prefixesCompleted+      `Prelude.seq` Prelude.rnf prefixesFound
+ gen/Amazonka/CloudTrail/Types/ImportStatus.hs view
@@ -0,0 +1,86 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportStatus+  ( ImportStatus+      ( ..,+        ImportStatus_COMPLETED,+        ImportStatus_FAILED,+        ImportStatus_INITIALIZING,+        ImportStatus_IN_PROGRESS,+        ImportStatus_STOPPED+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ImportStatus = ImportStatus'+  { fromImportStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern ImportStatus_COMPLETED :: ImportStatus+pattern ImportStatus_COMPLETED = ImportStatus' "COMPLETED"++pattern ImportStatus_FAILED :: ImportStatus+pattern ImportStatus_FAILED = ImportStatus' "FAILED"++pattern ImportStatus_INITIALIZING :: ImportStatus+pattern ImportStatus_INITIALIZING = ImportStatus' "INITIALIZING"++pattern ImportStatus_IN_PROGRESS :: ImportStatus+pattern ImportStatus_IN_PROGRESS = ImportStatus' "IN_PROGRESS"++pattern ImportStatus_STOPPED :: ImportStatus+pattern ImportStatus_STOPPED = ImportStatus' "STOPPED"++{-# COMPLETE+  ImportStatus_COMPLETED,+  ImportStatus_FAILED,+  ImportStatus_INITIALIZING,+  ImportStatus_IN_PROGRESS,+  ImportStatus_STOPPED,+  ImportStatus'+  #-}
+ gen/Amazonka/CloudTrail/Types/ImportsListItem.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ImportsListItem+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ImportsListItem where++import Amazonka.CloudTrail.Types.ImportStatus+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about an import that was returned by a lookup+-- request.+--+-- /See:/ 'newImportsListItem' smart constructor.+data ImportsListItem = ImportsListItem'+  { -- | The timestamp of the import\'s creation.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the destination event data store.+    destinations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | The ID of the import.+    importId :: Prelude.Maybe Prelude.Text,+    -- | The status of the import.+    importStatus :: Prelude.Maybe ImportStatus,+    -- | The timestamp of the import\'s last update.+    updatedTimestamp :: Prelude.Maybe Data.POSIX+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ImportsListItem' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'createdTimestamp', 'importsListItem_createdTimestamp' - The timestamp of the import\'s creation.+--+-- 'destinations', 'importsListItem_destinations' - The ARN of the destination event data store.+--+-- 'importId', 'importsListItem_importId' - The ID of the import.+--+-- 'importStatus', 'importsListItem_importStatus' - The status of the import.+--+-- 'updatedTimestamp', 'importsListItem_updatedTimestamp' - The timestamp of the import\'s last update.+newImportsListItem ::+  ImportsListItem+newImportsListItem =+  ImportsListItem'+    { createdTimestamp =+        Prelude.Nothing,+      destinations = Prelude.Nothing,+      importId = Prelude.Nothing,+      importStatus = Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing+    }++-- | The timestamp of the import\'s creation.+importsListItem_createdTimestamp :: Lens.Lens' ImportsListItem (Prelude.Maybe Prelude.UTCTime)+importsListItem_createdTimestamp = Lens.lens (\ImportsListItem' {createdTimestamp} -> createdTimestamp) (\s@ImportsListItem' {} a -> s {createdTimestamp = a} :: ImportsListItem) Prelude.. Lens.mapping Data._Time++-- | The ARN of the destination event data store.+importsListItem_destinations :: Lens.Lens' ImportsListItem (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+importsListItem_destinations = Lens.lens (\ImportsListItem' {destinations} -> destinations) (\s@ImportsListItem' {} a -> s {destinations = a} :: ImportsListItem) Prelude.. Lens.mapping Lens.coerced++-- | The ID of the import.+importsListItem_importId :: Lens.Lens' ImportsListItem (Prelude.Maybe Prelude.Text)+importsListItem_importId = Lens.lens (\ImportsListItem' {importId} -> importId) (\s@ImportsListItem' {} a -> s {importId = a} :: ImportsListItem)++-- | The status of the import.+importsListItem_importStatus :: Lens.Lens' ImportsListItem (Prelude.Maybe ImportStatus)+importsListItem_importStatus = Lens.lens (\ImportsListItem' {importStatus} -> importStatus) (\s@ImportsListItem' {} a -> s {importStatus = a} :: ImportsListItem)++-- | The timestamp of the import\'s last update.+importsListItem_updatedTimestamp :: Lens.Lens' ImportsListItem (Prelude.Maybe Prelude.UTCTime)+importsListItem_updatedTimestamp = Lens.lens (\ImportsListItem' {updatedTimestamp} -> updatedTimestamp) (\s@ImportsListItem' {} a -> s {updatedTimestamp = a} :: ImportsListItem) Prelude.. Lens.mapping Data._Time++instance Data.FromJSON ImportsListItem where+  parseJSON =+    Data.withObject+      "ImportsListItem"+      ( \x ->+          ImportsListItem'+            Prelude.<$> (x Data..:? "CreatedTimestamp")+            Prelude.<*> (x Data..:? "Destinations")+            Prelude.<*> (x Data..:? "ImportId")+            Prelude.<*> (x Data..:? "ImportStatus")+            Prelude.<*> (x Data..:? "UpdatedTimestamp")+      )++instance Prelude.Hashable ImportsListItem where+  hashWithSalt _salt ImportsListItem' {..} =+    _salt+      `Prelude.hashWithSalt` createdTimestamp+      `Prelude.hashWithSalt` destinations+      `Prelude.hashWithSalt` importId+      `Prelude.hashWithSalt` importStatus+      `Prelude.hashWithSalt` updatedTimestamp++instance Prelude.NFData ImportsListItem where+  rnf ImportsListItem' {..} =+    Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf destinations+      `Prelude.seq` Prelude.rnf importId+      `Prelude.seq` Prelude.rnf importStatus+      `Prelude.seq` Prelude.rnf updatedTimestamp
+ gen/Amazonka/CloudTrail/Types/InsightSelector.hs view
@@ -0,0 +1,80 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.InsightSelector+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.InsightSelector where++import Amazonka.CloudTrail.Types.InsightType+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A JSON string that contains a list of insight types that are logged on a+-- trail.+--+-- /See:/ 'newInsightSelector' smart constructor.+data InsightSelector = InsightSelector'+  { -- | The type of insights to log on a trail. @ApiCallRateInsight@ and+    -- @ApiErrorRateInsight@ are valid insight types.+    insightType :: Prelude.Maybe InsightType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'InsightSelector' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'insightType', 'insightSelector_insightType' - The type of insights to log on a trail. @ApiCallRateInsight@ and+-- @ApiErrorRateInsight@ are valid insight types.+newInsightSelector ::+  InsightSelector+newInsightSelector =+  InsightSelector' {insightType = Prelude.Nothing}++-- | The type of insights to log on a trail. @ApiCallRateInsight@ and+-- @ApiErrorRateInsight@ are valid insight types.+insightSelector_insightType :: Lens.Lens' InsightSelector (Prelude.Maybe InsightType)+insightSelector_insightType = Lens.lens (\InsightSelector' {insightType} -> insightType) (\s@InsightSelector' {} a -> s {insightType = a} :: InsightSelector)++instance Data.FromJSON InsightSelector where+  parseJSON =+    Data.withObject+      "InsightSelector"+      ( \x ->+          InsightSelector'+            Prelude.<$> (x Data..:? "InsightType")+      )++instance Prelude.Hashable InsightSelector where+  hashWithSalt _salt InsightSelector' {..} =+    _salt `Prelude.hashWithSalt` insightType++instance Prelude.NFData InsightSelector where+  rnf InsightSelector' {..} = Prelude.rnf insightType++instance Data.ToJSON InsightSelector where+  toJSON InsightSelector' {..} =+    Data.object+      ( Prelude.catMaybes+          [("InsightType" Data..=) Prelude.<$> insightType]+      )
+ gen/Amazonka/CloudTrail/Types/InsightType.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.InsightType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.InsightType+  ( InsightType+      ( ..,+        InsightType_ApiCallRateInsight,+        InsightType_ApiErrorRateInsight+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype InsightType = InsightType'+  { fromInsightType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern InsightType_ApiCallRateInsight :: InsightType+pattern InsightType_ApiCallRateInsight = InsightType' "ApiCallRateInsight"++pattern InsightType_ApiErrorRateInsight :: InsightType+pattern InsightType_ApiErrorRateInsight = InsightType' "ApiErrorRateInsight"++{-# COMPLETE+  InsightType_ApiCallRateInsight,+  InsightType_ApiErrorRateInsight,+  InsightType'+  #-}
+ gen/Amazonka/CloudTrail/Types/LookupAttribute.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.LookupAttribute+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.LookupAttribute where++import Amazonka.CloudTrail.Types.LookupAttributeKey+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Specifies an attribute and value that filter the events returned.+--+-- /See:/ 'newLookupAttribute' smart constructor.+data LookupAttribute = LookupAttribute'+  { -- | Specifies an attribute on which to filter the events returned.+    attributeKey :: LookupAttributeKey,+    -- | Specifies a value for the specified AttributeKey.+    attributeValue :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'LookupAttribute' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'attributeKey', 'lookupAttribute_attributeKey' - Specifies an attribute on which to filter the events returned.+--+-- 'attributeValue', 'lookupAttribute_attributeValue' - Specifies a value for the specified AttributeKey.+newLookupAttribute ::+  -- | 'attributeKey'+  LookupAttributeKey ->+  -- | 'attributeValue'+  Prelude.Text ->+  LookupAttribute+newLookupAttribute pAttributeKey_ pAttributeValue_ =+  LookupAttribute'+    { attributeKey = pAttributeKey_,+      attributeValue = pAttributeValue_+    }++-- | Specifies an attribute on which to filter the events returned.+lookupAttribute_attributeKey :: Lens.Lens' LookupAttribute LookupAttributeKey+lookupAttribute_attributeKey = Lens.lens (\LookupAttribute' {attributeKey} -> attributeKey) (\s@LookupAttribute' {} a -> s {attributeKey = a} :: LookupAttribute)++-- | Specifies a value for the specified AttributeKey.+lookupAttribute_attributeValue :: Lens.Lens' LookupAttribute Prelude.Text+lookupAttribute_attributeValue = Lens.lens (\LookupAttribute' {attributeValue} -> attributeValue) (\s@LookupAttribute' {} a -> s {attributeValue = a} :: LookupAttribute)++instance Prelude.Hashable LookupAttribute where+  hashWithSalt _salt LookupAttribute' {..} =+    _salt+      `Prelude.hashWithSalt` attributeKey+      `Prelude.hashWithSalt` attributeValue++instance Prelude.NFData LookupAttribute where+  rnf LookupAttribute' {..} =+    Prelude.rnf attributeKey+      `Prelude.seq` Prelude.rnf attributeValue++instance Data.ToJSON LookupAttribute where+  toJSON LookupAttribute' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("AttributeKey" Data..= attributeKey),+            Prelude.Just+              ("AttributeValue" Data..= attributeValue)+          ]+      )
+ gen/Amazonka/CloudTrail/Types/LookupAttributeKey.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.LookupAttributeKey+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.LookupAttributeKey+  ( LookupAttributeKey+      ( ..,+        LookupAttributeKey_AccessKeyId,+        LookupAttributeKey_EventId,+        LookupAttributeKey_EventName,+        LookupAttributeKey_EventSource,+        LookupAttributeKey_ReadOnly,+        LookupAttributeKey_ResourceName,+        LookupAttributeKey_ResourceType,+        LookupAttributeKey_Username+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype LookupAttributeKey = LookupAttributeKey'+  { fromLookupAttributeKey ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern LookupAttributeKey_AccessKeyId :: LookupAttributeKey+pattern LookupAttributeKey_AccessKeyId = LookupAttributeKey' "AccessKeyId"++pattern LookupAttributeKey_EventId :: LookupAttributeKey+pattern LookupAttributeKey_EventId = LookupAttributeKey' "EventId"++pattern LookupAttributeKey_EventName :: LookupAttributeKey+pattern LookupAttributeKey_EventName = LookupAttributeKey' "EventName"++pattern LookupAttributeKey_EventSource :: LookupAttributeKey+pattern LookupAttributeKey_EventSource = LookupAttributeKey' "EventSource"++pattern LookupAttributeKey_ReadOnly :: LookupAttributeKey+pattern LookupAttributeKey_ReadOnly = LookupAttributeKey' "ReadOnly"++pattern LookupAttributeKey_ResourceName :: LookupAttributeKey+pattern LookupAttributeKey_ResourceName = LookupAttributeKey' "ResourceName"++pattern LookupAttributeKey_ResourceType :: LookupAttributeKey+pattern LookupAttributeKey_ResourceType = LookupAttributeKey' "ResourceType"++pattern LookupAttributeKey_Username :: LookupAttributeKey+pattern LookupAttributeKey_Username = LookupAttributeKey' "Username"++{-# COMPLETE+  LookupAttributeKey_AccessKeyId,+  LookupAttributeKey_EventId,+  LookupAttributeKey_EventName,+  LookupAttributeKey_EventSource,+  LookupAttributeKey_ReadOnly,+  LookupAttributeKey_ResourceName,+  LookupAttributeKey_ResourceType,+  LookupAttributeKey_Username,+  LookupAttributeKey'+  #-}
+ gen/Amazonka/CloudTrail/Types/PublicKey.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.PublicKey+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.PublicKey where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains information about a returned public key.+--+-- /See:/ 'newPublicKey' smart constructor.+data PublicKey = PublicKey'+  { -- | The fingerprint of the public key.+    fingerprint :: Prelude.Maybe Prelude.Text,+    -- | The ending time of validity of the public key.+    validityEndTime :: Prelude.Maybe Data.POSIX,+    -- | The starting time of validity of the public key.+    validityStartTime :: Prelude.Maybe Data.POSIX,+    -- | The DER encoded public key value in PKCS#1 format.+    value :: Prelude.Maybe Data.Base64+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PublicKey' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'fingerprint', 'publicKey_fingerprint' - The fingerprint of the public key.+--+-- 'validityEndTime', 'publicKey_validityEndTime' - The ending time of validity of the public key.+--+-- 'validityStartTime', 'publicKey_validityStartTime' - The starting time of validity of the public key.+--+-- 'value', 'publicKey_value' - 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.+newPublicKey ::+  PublicKey+newPublicKey =+  PublicKey'+    { fingerprint = Prelude.Nothing,+      validityEndTime = Prelude.Nothing,+      validityStartTime = Prelude.Nothing,+      value = Prelude.Nothing+    }++-- | The fingerprint of the public key.+publicKey_fingerprint :: Lens.Lens' PublicKey (Prelude.Maybe Prelude.Text)+publicKey_fingerprint = Lens.lens (\PublicKey' {fingerprint} -> fingerprint) (\s@PublicKey' {} a -> s {fingerprint = a} :: PublicKey)++-- | The ending time of validity of the public key.+publicKey_validityEndTime :: Lens.Lens' PublicKey (Prelude.Maybe Prelude.UTCTime)+publicKey_validityEndTime = Lens.lens (\PublicKey' {validityEndTime} -> validityEndTime) (\s@PublicKey' {} a -> s {validityEndTime = a} :: PublicKey) Prelude.. Lens.mapping Data._Time++-- | The starting time of validity of the public key.+publicKey_validityStartTime :: Lens.Lens' PublicKey (Prelude.Maybe Prelude.UTCTime)+publicKey_validityStartTime = Lens.lens (\PublicKey' {validityStartTime} -> validityStartTime) (\s@PublicKey' {} a -> s {validityStartTime = a} :: PublicKey) Prelude.. Lens.mapping Data._Time++-- | 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.+publicKey_value :: Lens.Lens' PublicKey (Prelude.Maybe Prelude.ByteString)+publicKey_value = Lens.lens (\PublicKey' {value} -> value) (\s@PublicKey' {} a -> s {value = a} :: PublicKey) Prelude.. Lens.mapping Data._Base64++instance Data.FromJSON PublicKey where+  parseJSON =+    Data.withObject+      "PublicKey"+      ( \x ->+          PublicKey'+            Prelude.<$> (x Data..:? "Fingerprint")+            Prelude.<*> (x Data..:? "ValidityEndTime")+            Prelude.<*> (x Data..:? "ValidityStartTime")+            Prelude.<*> (x Data..:? "Value")+      )++instance Prelude.Hashable PublicKey where+  hashWithSalt _salt PublicKey' {..} =+    _salt+      `Prelude.hashWithSalt` fingerprint+      `Prelude.hashWithSalt` validityEndTime+      `Prelude.hashWithSalt` validityStartTime+      `Prelude.hashWithSalt` value++instance Prelude.NFData PublicKey where+  rnf PublicKey' {..} =+    Prelude.rnf fingerprint+      `Prelude.seq` Prelude.rnf validityEndTime+      `Prelude.seq` Prelude.rnf validityStartTime+      `Prelude.seq` Prelude.rnf value
+ gen/Amazonka/CloudTrail/Types/Query.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Query+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Query where++import Amazonka.CloudTrail.Types.QueryStatus+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A SQL string of criteria about events that you want to collect in an+-- event data store.+--+-- /See:/ 'newQuery' smart constructor.+data Query = Query'+  { -- | The creation time of a query.+    creationTime :: Prelude.Maybe Data.POSIX,+    -- | The ID of a query.+    queryId :: Prelude.Maybe Prelude.Text,+    -- | The status of the query. This can be @QUEUED@, @RUNNING@, @FINISHED@,+    -- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+    queryStatus :: Prelude.Maybe QueryStatus+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Query' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'creationTime', 'query_creationTime' - The creation time of a query.+--+-- 'queryId', 'query_queryId' - The ID of a query.+--+-- 'queryStatus', 'query_queryStatus' - The status of the query. This can be @QUEUED@, @RUNNING@, @FINISHED@,+-- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+newQuery ::+  Query+newQuery =+  Query'+    { creationTime = Prelude.Nothing,+      queryId = Prelude.Nothing,+      queryStatus = Prelude.Nothing+    }++-- | The creation time of a query.+query_creationTime :: Lens.Lens' Query (Prelude.Maybe Prelude.UTCTime)+query_creationTime = Lens.lens (\Query' {creationTime} -> creationTime) (\s@Query' {} a -> s {creationTime = a} :: Query) Prelude.. Lens.mapping Data._Time++-- | The ID of a query.+query_queryId :: Lens.Lens' Query (Prelude.Maybe Prelude.Text)+query_queryId = Lens.lens (\Query' {queryId} -> queryId) (\s@Query' {} a -> s {queryId = a} :: Query)++-- | The status of the query. This can be @QUEUED@, @RUNNING@, @FINISHED@,+-- @FAILED@, @TIMED_OUT@, or @CANCELLED@.+query_queryStatus :: Lens.Lens' Query (Prelude.Maybe QueryStatus)+query_queryStatus = Lens.lens (\Query' {queryStatus} -> queryStatus) (\s@Query' {} a -> s {queryStatus = a} :: Query)++instance Data.FromJSON Query where+  parseJSON =+    Data.withObject+      "Query"+      ( \x ->+          Query'+            Prelude.<$> (x Data..:? "CreationTime")+            Prelude.<*> (x Data..:? "QueryId")+            Prelude.<*> (x Data..:? "QueryStatus")+      )++instance Prelude.Hashable Query where+  hashWithSalt _salt Query' {..} =+    _salt+      `Prelude.hashWithSalt` creationTime+      `Prelude.hashWithSalt` queryId+      `Prelude.hashWithSalt` queryStatus++instance Prelude.NFData Query where+  rnf Query' {..} =+    Prelude.rnf creationTime+      `Prelude.seq` Prelude.rnf queryId+      `Prelude.seq` Prelude.rnf queryStatus
+ gen/Amazonka/CloudTrail/Types/QueryStatistics.hs view
@@ -0,0 +1,102 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.QueryStatistics+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.QueryStatistics where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Metadata about a query, such as the number of results.+--+-- /See:/ 'newQueryStatistics' smart constructor.+data QueryStatistics = QueryStatistics'+  { -- | The total bytes that the query scanned in the event data store. This+    -- value matches the number of bytes for which your account is billed for+    -- the query, unless the query is still running.+    bytesScanned :: Prelude.Maybe Prelude.Integer,+    -- | The number of results returned.+    resultsCount :: Prelude.Maybe Prelude.Int,+    -- | The total number of results returned by a query.+    totalResultsCount :: Prelude.Maybe Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'QueryStatistics' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'bytesScanned', 'queryStatistics_bytesScanned' - The total bytes that the query scanned in the event data store. This+-- value matches the number of bytes for which your account is billed for+-- the query, unless the query is still running.+--+-- 'resultsCount', 'queryStatistics_resultsCount' - The number of results returned.+--+-- 'totalResultsCount', 'queryStatistics_totalResultsCount' - The total number of results returned by a query.+newQueryStatistics ::+  QueryStatistics+newQueryStatistics =+  QueryStatistics'+    { bytesScanned = Prelude.Nothing,+      resultsCount = Prelude.Nothing,+      totalResultsCount = Prelude.Nothing+    }++-- | The total bytes that the query scanned in the event data store. This+-- value matches the number of bytes for which your account is billed for+-- the query, unless the query is still running.+queryStatistics_bytesScanned :: Lens.Lens' QueryStatistics (Prelude.Maybe Prelude.Integer)+queryStatistics_bytesScanned = Lens.lens (\QueryStatistics' {bytesScanned} -> bytesScanned) (\s@QueryStatistics' {} a -> s {bytesScanned = a} :: QueryStatistics)++-- | The number of results returned.+queryStatistics_resultsCount :: Lens.Lens' QueryStatistics (Prelude.Maybe Prelude.Int)+queryStatistics_resultsCount = Lens.lens (\QueryStatistics' {resultsCount} -> resultsCount) (\s@QueryStatistics' {} a -> s {resultsCount = a} :: QueryStatistics)++-- | The total number of results returned by a query.+queryStatistics_totalResultsCount :: Lens.Lens' QueryStatistics (Prelude.Maybe Prelude.Int)+queryStatistics_totalResultsCount = Lens.lens (\QueryStatistics' {totalResultsCount} -> totalResultsCount) (\s@QueryStatistics' {} a -> s {totalResultsCount = a} :: QueryStatistics)++instance Data.FromJSON QueryStatistics where+  parseJSON =+    Data.withObject+      "QueryStatistics"+      ( \x ->+          QueryStatistics'+            Prelude.<$> (x Data..:? "BytesScanned")+            Prelude.<*> (x Data..:? "ResultsCount")+            Prelude.<*> (x Data..:? "TotalResultsCount")+      )++instance Prelude.Hashable QueryStatistics where+  hashWithSalt _salt QueryStatistics' {..} =+    _salt+      `Prelude.hashWithSalt` bytesScanned+      `Prelude.hashWithSalt` resultsCount+      `Prelude.hashWithSalt` totalResultsCount++instance Prelude.NFData QueryStatistics where+  rnf QueryStatistics' {..} =+    Prelude.rnf bytesScanned+      `Prelude.seq` Prelude.rnf resultsCount+      `Prelude.seq` Prelude.rnf totalResultsCount
+ gen/Amazonka/CloudTrail/Types/QueryStatisticsForDescribeQuery.hs view
@@ -0,0 +1,140 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.QueryStatisticsForDescribeQuery where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Gets metadata about a query, including the number of events that were+-- matched, the total number of events scanned, the query run time in+-- milliseconds, and the query\'s creation time.+--+-- /See:/ 'newQueryStatisticsForDescribeQuery' smart constructor.+data QueryStatisticsForDescribeQuery = QueryStatisticsForDescribeQuery'+  { -- | The total bytes that the query scanned in the event data store. This+    -- value matches the number of bytes for which your account is billed for+    -- the query, unless the query is still running.+    bytesScanned :: Prelude.Maybe Prelude.Integer,+    -- | The creation time of the query.+    creationTime :: Prelude.Maybe Data.POSIX,+    -- | The number of events that matched a query.+    eventsMatched :: Prelude.Maybe Prelude.Integer,+    -- | The number of events that the query scanned in the event data store.+    eventsScanned :: Prelude.Maybe Prelude.Integer,+    -- | The query\'s run time, in milliseconds.+    executionTimeInMillis :: Prelude.Maybe Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'QueryStatisticsForDescribeQuery' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'bytesScanned', 'queryStatisticsForDescribeQuery_bytesScanned' - The total bytes that the query scanned in the event data store. This+-- value matches the number of bytes for which your account is billed for+-- the query, unless the query is still running.+--+-- 'creationTime', 'queryStatisticsForDescribeQuery_creationTime' - The creation time of the query.+--+-- 'eventsMatched', 'queryStatisticsForDescribeQuery_eventsMatched' - The number of events that matched a query.+--+-- 'eventsScanned', 'queryStatisticsForDescribeQuery_eventsScanned' - The number of events that the query scanned in the event data store.+--+-- 'executionTimeInMillis', 'queryStatisticsForDescribeQuery_executionTimeInMillis' - The query\'s run time, in milliseconds.+newQueryStatisticsForDescribeQuery ::+  QueryStatisticsForDescribeQuery+newQueryStatisticsForDescribeQuery =+  QueryStatisticsForDescribeQuery'+    { bytesScanned =+        Prelude.Nothing,+      creationTime = Prelude.Nothing,+      eventsMatched = Prelude.Nothing,+      eventsScanned = Prelude.Nothing,+      executionTimeInMillis = Prelude.Nothing+    }++-- | The total bytes that the query scanned in the event data store. This+-- value matches the number of bytes for which your account is billed for+-- the query, unless the query is still running.+queryStatisticsForDescribeQuery_bytesScanned :: Lens.Lens' QueryStatisticsForDescribeQuery (Prelude.Maybe Prelude.Integer)+queryStatisticsForDescribeQuery_bytesScanned = Lens.lens (\QueryStatisticsForDescribeQuery' {bytesScanned} -> bytesScanned) (\s@QueryStatisticsForDescribeQuery' {} a -> s {bytesScanned = a} :: QueryStatisticsForDescribeQuery)++-- | The creation time of the query.+queryStatisticsForDescribeQuery_creationTime :: Lens.Lens' QueryStatisticsForDescribeQuery (Prelude.Maybe Prelude.UTCTime)+queryStatisticsForDescribeQuery_creationTime = Lens.lens (\QueryStatisticsForDescribeQuery' {creationTime} -> creationTime) (\s@QueryStatisticsForDescribeQuery' {} a -> s {creationTime = a} :: QueryStatisticsForDescribeQuery) Prelude.. Lens.mapping Data._Time++-- | The number of events that matched a query.+queryStatisticsForDescribeQuery_eventsMatched :: Lens.Lens' QueryStatisticsForDescribeQuery (Prelude.Maybe Prelude.Integer)+queryStatisticsForDescribeQuery_eventsMatched = Lens.lens (\QueryStatisticsForDescribeQuery' {eventsMatched} -> eventsMatched) (\s@QueryStatisticsForDescribeQuery' {} a -> s {eventsMatched = a} :: QueryStatisticsForDescribeQuery)++-- | The number of events that the query scanned in the event data store.+queryStatisticsForDescribeQuery_eventsScanned :: Lens.Lens' QueryStatisticsForDescribeQuery (Prelude.Maybe Prelude.Integer)+queryStatisticsForDescribeQuery_eventsScanned = Lens.lens (\QueryStatisticsForDescribeQuery' {eventsScanned} -> eventsScanned) (\s@QueryStatisticsForDescribeQuery' {} a -> s {eventsScanned = a} :: QueryStatisticsForDescribeQuery)++-- | The query\'s run time, in milliseconds.+queryStatisticsForDescribeQuery_executionTimeInMillis :: Lens.Lens' QueryStatisticsForDescribeQuery (Prelude.Maybe Prelude.Int)+queryStatisticsForDescribeQuery_executionTimeInMillis = Lens.lens (\QueryStatisticsForDescribeQuery' {executionTimeInMillis} -> executionTimeInMillis) (\s@QueryStatisticsForDescribeQuery' {} a -> s {executionTimeInMillis = a} :: QueryStatisticsForDescribeQuery)++instance+  Data.FromJSON+    QueryStatisticsForDescribeQuery+  where+  parseJSON =+    Data.withObject+      "QueryStatisticsForDescribeQuery"+      ( \x ->+          QueryStatisticsForDescribeQuery'+            Prelude.<$> (x Data..:? "BytesScanned")+            Prelude.<*> (x Data..:? "CreationTime")+            Prelude.<*> (x Data..:? "EventsMatched")+            Prelude.<*> (x Data..:? "EventsScanned")+            Prelude.<*> (x Data..:? "ExecutionTimeInMillis")+      )++instance+  Prelude.Hashable+    QueryStatisticsForDescribeQuery+  where+  hashWithSalt+    _salt+    QueryStatisticsForDescribeQuery' {..} =+      _salt+        `Prelude.hashWithSalt` bytesScanned+        `Prelude.hashWithSalt` creationTime+        `Prelude.hashWithSalt` eventsMatched+        `Prelude.hashWithSalt` eventsScanned+        `Prelude.hashWithSalt` executionTimeInMillis++instance+  Prelude.NFData+    QueryStatisticsForDescribeQuery+  where+  rnf QueryStatisticsForDescribeQuery' {..} =+    Prelude.rnf bytesScanned+      `Prelude.seq` Prelude.rnf creationTime+      `Prelude.seq` Prelude.rnf eventsMatched+      `Prelude.seq` Prelude.rnf eventsScanned+      `Prelude.seq` Prelude.rnf executionTimeInMillis
+ gen/Amazonka/CloudTrail/Types/QueryStatus.hs view
@@ -0,0 +1,91 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.QueryStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.QueryStatus+  ( QueryStatus+      ( ..,+        QueryStatus_CANCELLED,+        QueryStatus_FAILED,+        QueryStatus_FINISHED,+        QueryStatus_QUEUED,+        QueryStatus_RUNNING,+        QueryStatus_TIMED_OUT+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype QueryStatus = QueryStatus'+  { fromQueryStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern QueryStatus_CANCELLED :: QueryStatus+pattern QueryStatus_CANCELLED = QueryStatus' "CANCELLED"++pattern QueryStatus_FAILED :: QueryStatus+pattern QueryStatus_FAILED = QueryStatus' "FAILED"++pattern QueryStatus_FINISHED :: QueryStatus+pattern QueryStatus_FINISHED = QueryStatus' "FINISHED"++pattern QueryStatus_QUEUED :: QueryStatus+pattern QueryStatus_QUEUED = QueryStatus' "QUEUED"++pattern QueryStatus_RUNNING :: QueryStatus+pattern QueryStatus_RUNNING = QueryStatus' "RUNNING"++pattern QueryStatus_TIMED_OUT :: QueryStatus+pattern QueryStatus_TIMED_OUT = QueryStatus' "TIMED_OUT"++{-# COMPLETE+  QueryStatus_CANCELLED,+  QueryStatus_FAILED,+  QueryStatus_FINISHED,+  QueryStatus_QUEUED,+  QueryStatus_RUNNING,+  QueryStatus_TIMED_OUT,+  QueryStatus'+  #-}
+ gen/Amazonka/CloudTrail/Types/ReadWriteType.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ReadWriteType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ReadWriteType+  ( ReadWriteType+      ( ..,+        ReadWriteType_All,+        ReadWriteType_ReadOnly,+        ReadWriteType_WriteOnly+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ReadWriteType = ReadWriteType'+  { fromReadWriteType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern ReadWriteType_All :: ReadWriteType+pattern ReadWriteType_All = ReadWriteType' "All"++pattern ReadWriteType_ReadOnly :: ReadWriteType+pattern ReadWriteType_ReadOnly = ReadWriteType' "ReadOnly"++pattern ReadWriteType_WriteOnly :: ReadWriteType+pattern ReadWriteType_WriteOnly = ReadWriteType' "WriteOnly"++{-# COMPLETE+  ReadWriteType_All,+  ReadWriteType_ReadOnly,+  ReadWriteType_WriteOnly,+  ReadWriteType'+  #-}
+ gen/Amazonka/CloudTrail/Types/Resource.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Resource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Resource where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Specifies the type and name of a resource referenced by an event.+--+-- /See:/ 'newResource' smart constructor.+data Resource = Resource'+  { -- | 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.+    resourceName :: Prelude.Maybe Prelude.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 Amazon RDS, and __AccessKey__ for IAM. To learn more+    -- about how to look up and filter events by the resource types supported+    -- for a service, see+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events Filtering CloudTrail Events>.+    resourceType :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Resource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceName', 'resource_resourceName' - 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.+--+-- 'resourceType', 'resource_resourceType' - 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 Amazon RDS, and __AccessKey__ for IAM. To learn more+-- about how to look up and filter events by the resource types supported+-- for a service, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events Filtering CloudTrail Events>.+newResource ::+  Resource+newResource =+  Resource'+    { resourceName = Prelude.Nothing,+      resourceType = Prelude.Nothing+    }++-- | 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.+resource_resourceName :: Lens.Lens' Resource (Prelude.Maybe Prelude.Text)+resource_resourceName = Lens.lens (\Resource' {resourceName} -> resourceName) (\s@Resource' {} a -> s {resourceName = a} :: Resource)++-- | 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 Amazon RDS, and __AccessKey__ for IAM. To learn more+-- about how to look up and filter events by the resource types supported+-- for a service, see+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events Filtering CloudTrail Events>.+resource_resourceType :: Lens.Lens' Resource (Prelude.Maybe Prelude.Text)+resource_resourceType = Lens.lens (\Resource' {resourceType} -> resourceType) (\s@Resource' {} a -> s {resourceType = a} :: Resource)++instance Data.FromJSON Resource where+  parseJSON =+    Data.withObject+      "Resource"+      ( \x ->+          Resource'+            Prelude.<$> (x Data..:? "ResourceName")+            Prelude.<*> (x Data..:? "ResourceType")+      )++instance Prelude.Hashable Resource where+  hashWithSalt _salt Resource' {..} =+    _salt+      `Prelude.hashWithSalt` resourceName+      `Prelude.hashWithSalt` resourceType++instance Prelude.NFData Resource where+  rnf Resource' {..} =+    Prelude.rnf resourceName+      `Prelude.seq` Prelude.rnf resourceType
+ gen/Amazonka/CloudTrail/Types/ResourceTag.hs view
@@ -0,0 +1,85 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.ResourceTag+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.ResourceTag where++import Amazonka.CloudTrail.Types.Tag+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A resource tag.+--+-- /See:/ 'newResourceTag' smart constructor.+data ResourceTag = ResourceTag'+  { -- | Specifies the ARN of the resource.+    resourceId :: Prelude.Maybe Prelude.Text,+    -- | A list of tags.+    tagsList :: Prelude.Maybe [Tag]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ResourceTag' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceId', 'resourceTag_resourceId' - Specifies the ARN of the resource.+--+-- 'tagsList', 'resourceTag_tagsList' - A list of tags.+newResourceTag ::+  ResourceTag+newResourceTag =+  ResourceTag'+    { resourceId = Prelude.Nothing,+      tagsList = Prelude.Nothing+    }++-- | Specifies the ARN of the resource.+resourceTag_resourceId :: Lens.Lens' ResourceTag (Prelude.Maybe Prelude.Text)+resourceTag_resourceId = Lens.lens (\ResourceTag' {resourceId} -> resourceId) (\s@ResourceTag' {} a -> s {resourceId = a} :: ResourceTag)++-- | A list of tags.+resourceTag_tagsList :: Lens.Lens' ResourceTag (Prelude.Maybe [Tag])+resourceTag_tagsList = Lens.lens (\ResourceTag' {tagsList} -> tagsList) (\s@ResourceTag' {} a -> s {tagsList = a} :: ResourceTag) Prelude.. Lens.mapping Lens.coerced++instance Data.FromJSON ResourceTag where+  parseJSON =+    Data.withObject+      "ResourceTag"+      ( \x ->+          ResourceTag'+            Prelude.<$> (x Data..:? "ResourceId")+            Prelude.<*> (x Data..:? "TagsList" Data..!= Prelude.mempty)+      )++instance Prelude.Hashable ResourceTag where+  hashWithSalt _salt ResourceTag' {..} =+    _salt+      `Prelude.hashWithSalt` resourceId+      `Prelude.hashWithSalt` tagsList++instance Prelude.NFData ResourceTag where+  rnf ResourceTag' {..} =+    Prelude.rnf resourceId+      `Prelude.seq` Prelude.rnf tagsList
+ gen/Amazonka/CloudTrail/Types/S3ImportSource.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.S3ImportSource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.S3ImportSource where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The settings for the source S3 bucket.+--+-- /See:/ 'newS3ImportSource' smart constructor.+data S3ImportSource = S3ImportSource'+  { -- | The URI for the source S3 bucket.+    s3LocationUri :: Prelude.Text,+    -- | The region associated with the source S3 bucket.+    s3BucketRegion :: Prelude.Text,+    -- | The IAM ARN role used to access the source S3 bucket.+    s3BucketAccessRoleArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'S3ImportSource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 's3LocationUri', 's3ImportSource_s3LocationUri' - The URI for the source S3 bucket.+--+-- 's3BucketRegion', 's3ImportSource_s3BucketRegion' - The region associated with the source S3 bucket.+--+-- 's3BucketAccessRoleArn', 's3ImportSource_s3BucketAccessRoleArn' - The IAM ARN role used to access the source S3 bucket.+newS3ImportSource ::+  -- | 's3LocationUri'+  Prelude.Text ->+  -- | 's3BucketRegion'+  Prelude.Text ->+  -- | 's3BucketAccessRoleArn'+  Prelude.Text ->+  S3ImportSource+newS3ImportSource+  pS3LocationUri_+  pS3BucketRegion_+  pS3BucketAccessRoleArn_ =+    S3ImportSource'+      { s3LocationUri = pS3LocationUri_,+        s3BucketRegion = pS3BucketRegion_,+        s3BucketAccessRoleArn = pS3BucketAccessRoleArn_+      }++-- | The URI for the source S3 bucket.+s3ImportSource_s3LocationUri :: Lens.Lens' S3ImportSource Prelude.Text+s3ImportSource_s3LocationUri = Lens.lens (\S3ImportSource' {s3LocationUri} -> s3LocationUri) (\s@S3ImportSource' {} a -> s {s3LocationUri = a} :: S3ImportSource)++-- | The region associated with the source S3 bucket.+s3ImportSource_s3BucketRegion :: Lens.Lens' S3ImportSource Prelude.Text+s3ImportSource_s3BucketRegion = Lens.lens (\S3ImportSource' {s3BucketRegion} -> s3BucketRegion) (\s@S3ImportSource' {} a -> s {s3BucketRegion = a} :: S3ImportSource)++-- | The IAM ARN role used to access the source S3 bucket.+s3ImportSource_s3BucketAccessRoleArn :: Lens.Lens' S3ImportSource Prelude.Text+s3ImportSource_s3BucketAccessRoleArn = Lens.lens (\S3ImportSource' {s3BucketAccessRoleArn} -> s3BucketAccessRoleArn) (\s@S3ImportSource' {} a -> s {s3BucketAccessRoleArn = a} :: S3ImportSource)++instance Data.FromJSON S3ImportSource where+  parseJSON =+    Data.withObject+      "S3ImportSource"+      ( \x ->+          S3ImportSource'+            Prelude.<$> (x Data..: "S3LocationUri")+            Prelude.<*> (x Data..: "S3BucketRegion")+            Prelude.<*> (x Data..: "S3BucketAccessRoleArn")+      )++instance Prelude.Hashable S3ImportSource where+  hashWithSalt _salt S3ImportSource' {..} =+    _salt+      `Prelude.hashWithSalt` s3LocationUri+      `Prelude.hashWithSalt` s3BucketRegion+      `Prelude.hashWithSalt` s3BucketAccessRoleArn++instance Prelude.NFData S3ImportSource where+  rnf S3ImportSource' {..} =+    Prelude.rnf s3LocationUri+      `Prelude.seq` Prelude.rnf s3BucketRegion+      `Prelude.seq` Prelude.rnf s3BucketAccessRoleArn++instance Data.ToJSON S3ImportSource where+  toJSON S3ImportSource' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("S3LocationUri" Data..= s3LocationUri),+            Prelude.Just+              ("S3BucketRegion" Data..= s3BucketRegion),+            Prelude.Just+              ( "S3BucketAccessRoleArn"+                  Data..= s3BucketAccessRoleArn+              )+          ]+      )
+ gen/Amazonka/CloudTrail/Types/SourceConfig.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.SourceConfig+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.SourceConfig where++import Amazonka.CloudTrail.Types.AdvancedEventSelector+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Contains configuration information about the channel.+--+-- /See:/ 'newSourceConfig' smart constructor.+data SourceConfig = SourceConfig'+  { -- | The advanced event selectors that are configured for the channel.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | Specifies whether the channel applies to a single region or to all+    -- regions.+    applyToAllRegions :: Prelude.Maybe Prelude.Bool+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SourceConfig' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'sourceConfig_advancedEventSelectors' - The advanced event selectors that are configured for the channel.+--+-- 'applyToAllRegions', 'sourceConfig_applyToAllRegions' - Specifies whether the channel applies to a single region or to all+-- regions.+newSourceConfig ::+  SourceConfig+newSourceConfig =+  SourceConfig'+    { advancedEventSelectors =+        Prelude.Nothing,+      applyToAllRegions = Prelude.Nothing+    }++-- | The advanced event selectors that are configured for the channel.+sourceConfig_advancedEventSelectors :: Lens.Lens' SourceConfig (Prelude.Maybe [AdvancedEventSelector])+sourceConfig_advancedEventSelectors = Lens.lens (\SourceConfig' {advancedEventSelectors} -> advancedEventSelectors) (\s@SourceConfig' {} a -> s {advancedEventSelectors = a} :: SourceConfig) Prelude.. Lens.mapping Lens.coerced++-- | Specifies whether the channel applies to a single region or to all+-- regions.+sourceConfig_applyToAllRegions :: Lens.Lens' SourceConfig (Prelude.Maybe Prelude.Bool)+sourceConfig_applyToAllRegions = Lens.lens (\SourceConfig' {applyToAllRegions} -> applyToAllRegions) (\s@SourceConfig' {} a -> s {applyToAllRegions = a} :: SourceConfig)++instance Data.FromJSON SourceConfig where+  parseJSON =+    Data.withObject+      "SourceConfig"+      ( \x ->+          SourceConfig'+            Prelude.<$> ( x+                            Data..:? "AdvancedEventSelectors"+                            Data..!= Prelude.mempty+                        )+            Prelude.<*> (x Data..:? "ApplyToAllRegions")+      )++instance Prelude.Hashable SourceConfig where+  hashWithSalt _salt SourceConfig' {..} =+    _salt+      `Prelude.hashWithSalt` advancedEventSelectors+      `Prelude.hashWithSalt` applyToAllRegions++instance Prelude.NFData SourceConfig where+  rnf SourceConfig' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf applyToAllRegions
+ gen/Amazonka/CloudTrail/Types/Tag.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Tag+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Tag where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A custom key-value pair associated with a resource such as a CloudTrail+-- trail.+--+-- /See:/ 'newTag' smart constructor.+data Tag = Tag'+  { -- | The value in a key-value pair of a tag. The value must be no longer than+    -- 256 Unicode characters.+    value :: Prelude.Maybe Prelude.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.+    key :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Tag' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'value', 'tag_value' - The value in a key-value pair of a tag. The value must be no longer than+-- 256 Unicode characters.+--+-- 'key', 'tag_key' - 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.+newTag ::+  -- | 'key'+  Prelude.Text ->+  Tag+newTag pKey_ =+  Tag' {value = Prelude.Nothing, key = pKey_}++-- | The value in a key-value pair of a tag. The value must be no longer than+-- 256 Unicode characters.+tag_value :: Lens.Lens' Tag (Prelude.Maybe Prelude.Text)+tag_value = Lens.lens (\Tag' {value} -> value) (\s@Tag' {} a -> s {value = a} :: Tag)++-- | 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.+tag_key :: Lens.Lens' Tag Prelude.Text+tag_key = Lens.lens (\Tag' {key} -> key) (\s@Tag' {} a -> s {key = a} :: Tag)++instance Data.FromJSON Tag where+  parseJSON =+    Data.withObject+      "Tag"+      ( \x ->+          Tag'+            Prelude.<$> (x Data..:? "Value")+            Prelude.<*> (x Data..: "Key")+      )++instance Prelude.Hashable Tag where+  hashWithSalt _salt Tag' {..} =+    _salt+      `Prelude.hashWithSalt` value+      `Prelude.hashWithSalt` key++instance Prelude.NFData Tag where+  rnf Tag' {..} =+    Prelude.rnf value `Prelude.seq` Prelude.rnf key++instance Data.ToJSON Tag where+  toJSON Tag' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Value" Data..=) Prelude.<$> value,+            Prelude.Just ("Key" Data..= key)+          ]+      )
+ gen/Amazonka/CloudTrail/Types/Trail.hs view
@@ -0,0 +1,318 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.Trail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.Trail where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The settings for a trail.+--+-- /See:/ 'newTrail' smart constructor.+data Trail = Trail'+  { -- | Specifies an Amazon Resource Name (ARN), a unique identifier that+    -- represents the log group to which CloudTrail logs will be delivered.+    cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the role for the CloudWatch Logs endpoint to assume to write+    -- to a user\'s log group.+    cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies if the trail has custom event selectors.+    hasCustomEventSelectors :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether a trail has insight types specified in an+    -- @InsightSelector@ list.+    hasInsightSelectors :: Prelude.Maybe Prelude.Bool,+    -- | The region in which the trail was created.+    homeRegion :: Prelude.Maybe Prelude.Text,+    -- | Set to __True__ to include Amazon Web Services API calls from Amazon Web+    -- Services global services such as IAM. Otherwise, __False__.+    includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail exists only in one region or exists in all+    -- regions.+    isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is an organization trail.+    isOrganizationTrail :: Prelude.Maybe Prelude.Bool,+    -- | 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 following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether log file validation is enabled.+    logFileValidationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | Name of the trail set by calling CreateTrail. The maximum length is 128+    -- characters.+    name :: Prelude.Maybe Prelude.Text,+    -- | Name of the Amazon S3 bucket into which CloudTrail delivers your trail+    -- files. See+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+    s3BucketName :: Prelude.Maybe Prelude.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+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+    -- The maximum length is 200 characters.+    s3KeyPrefix :: Prelude.Maybe Prelude.Text,+    -- | Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+    -- notifications when log files are delivered. The following is the format+    -- of a topic ARN.+    --+    -- @arn:aws:sns:us-east-2:123456789012:MyTopic@+    snsTopicARN :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use. Use SnsTopicARN.+    snsTopicName :: Prelude.Maybe Prelude.Text,+    -- | Specifies the ARN of the trail. The following is the format of a trail+    -- ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailARN :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Trail' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'cloudWatchLogsLogGroupArn', 'trail_cloudWatchLogsLogGroupArn' - Specifies an Amazon Resource Name (ARN), a unique identifier that+-- represents the log group to which CloudTrail logs will be delivered.+--+-- 'cloudWatchLogsRoleArn', 'trail_cloudWatchLogsRoleArn' - Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+--+-- 'hasCustomEventSelectors', 'trail_hasCustomEventSelectors' - Specifies if the trail has custom event selectors.+--+-- 'hasInsightSelectors', 'trail_hasInsightSelectors' - Specifies whether a trail has insight types specified in an+-- @InsightSelector@ list.+--+-- 'homeRegion', 'trail_homeRegion' - The region in which the trail was created.+--+-- 'includeGlobalServiceEvents', 'trail_includeGlobalServiceEvents' - Set to __True__ to include Amazon Web Services API calls from Amazon Web+-- Services global services such as IAM. Otherwise, __False__.+--+-- 'isMultiRegionTrail', 'trail_isMultiRegionTrail' - Specifies whether the trail exists only in one region or exists in all+-- regions.+--+-- 'isOrganizationTrail', 'trail_isOrganizationTrail' - Specifies whether the trail is an organization trail.+--+-- 'kmsKeyId', 'trail_kmsKeyId' - 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 following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'logFileValidationEnabled', 'trail_logFileValidationEnabled' - Specifies whether log file validation is enabled.+--+-- 'name', 'trail_name' - Name of the trail set by calling CreateTrail. The maximum length is 128+-- characters.+--+-- 's3BucketName', 'trail_s3BucketName' - Name of the Amazon S3 bucket into which CloudTrail delivers your trail+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+--+-- 's3KeyPrefix', 'trail_s3KeyPrefix' - 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+--+-- 'snsTopicARN', 'trail_snsTopicARN' - Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+-- notifications when log files are delivered. The following is the format+-- of a topic ARN.+--+-- @arn:aws:sns:us-east-2:123456789012:MyTopic@+--+-- 'snsTopicName', 'trail_snsTopicName' - This field is no longer in use. Use SnsTopicARN.+--+-- 'trailARN', 'trail_trailARN' - Specifies the ARN of the trail. The following is the format of a trail+-- ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newTrail ::+  Trail+newTrail =+  Trail'+    { cloudWatchLogsLogGroupArn = Prelude.Nothing,+      cloudWatchLogsRoleArn = Prelude.Nothing,+      hasCustomEventSelectors = Prelude.Nothing,+      hasInsightSelectors = Prelude.Nothing,+      homeRegion = Prelude.Nothing,+      includeGlobalServiceEvents = Prelude.Nothing,+      isMultiRegionTrail = Prelude.Nothing,+      isOrganizationTrail = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      logFileValidationEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      s3BucketName = Prelude.Nothing,+      s3KeyPrefix = Prelude.Nothing,+      snsTopicARN = Prelude.Nothing,+      snsTopicName = Prelude.Nothing,+      trailARN = Prelude.Nothing+    }++-- | Specifies an Amazon Resource Name (ARN), a unique identifier that+-- represents the log group to which CloudTrail logs will be delivered.+trail_cloudWatchLogsLogGroupArn :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_cloudWatchLogsLogGroupArn = Lens.lens (\Trail' {cloudWatchLogsLogGroupArn} -> cloudWatchLogsLogGroupArn) (\s@Trail' {} a -> s {cloudWatchLogsLogGroupArn = a} :: Trail)++-- | Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+trail_cloudWatchLogsRoleArn :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_cloudWatchLogsRoleArn = Lens.lens (\Trail' {cloudWatchLogsRoleArn} -> cloudWatchLogsRoleArn) (\s@Trail' {} a -> s {cloudWatchLogsRoleArn = a} :: Trail)++-- | Specifies if the trail has custom event selectors.+trail_hasCustomEventSelectors :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_hasCustomEventSelectors = Lens.lens (\Trail' {hasCustomEventSelectors} -> hasCustomEventSelectors) (\s@Trail' {} a -> s {hasCustomEventSelectors = a} :: Trail)++-- | Specifies whether a trail has insight types specified in an+-- @InsightSelector@ list.+trail_hasInsightSelectors :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_hasInsightSelectors = Lens.lens (\Trail' {hasInsightSelectors} -> hasInsightSelectors) (\s@Trail' {} a -> s {hasInsightSelectors = a} :: Trail)++-- | The region in which the trail was created.+trail_homeRegion :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_homeRegion = Lens.lens (\Trail' {homeRegion} -> homeRegion) (\s@Trail' {} a -> s {homeRegion = a} :: Trail)++-- | Set to __True__ to include Amazon Web Services API calls from Amazon Web+-- Services global services such as IAM. Otherwise, __False__.+trail_includeGlobalServiceEvents :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_includeGlobalServiceEvents = Lens.lens (\Trail' {includeGlobalServiceEvents} -> includeGlobalServiceEvents) (\s@Trail' {} a -> s {includeGlobalServiceEvents = a} :: Trail)++-- | Specifies whether the trail exists only in one region or exists in all+-- regions.+trail_isMultiRegionTrail :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_isMultiRegionTrail = Lens.lens (\Trail' {isMultiRegionTrail} -> isMultiRegionTrail) (\s@Trail' {} a -> s {isMultiRegionTrail = a} :: Trail)++-- | Specifies whether the trail is an organization trail.+trail_isOrganizationTrail :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_isOrganizationTrail = Lens.lens (\Trail' {isOrganizationTrail} -> isOrganizationTrail) (\s@Trail' {} a -> s {isOrganizationTrail = a} :: Trail)++-- | 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 following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+trail_kmsKeyId :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_kmsKeyId = Lens.lens (\Trail' {kmsKeyId} -> kmsKeyId) (\s@Trail' {} a -> s {kmsKeyId = a} :: Trail)++-- | Specifies whether log file validation is enabled.+trail_logFileValidationEnabled :: Lens.Lens' Trail (Prelude.Maybe Prelude.Bool)+trail_logFileValidationEnabled = Lens.lens (\Trail' {logFileValidationEnabled} -> logFileValidationEnabled) (\s@Trail' {} a -> s {logFileValidationEnabled = a} :: Trail)++-- | Name of the trail set by calling CreateTrail. The maximum length is 128+-- characters.+trail_name :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_name = Lens.lens (\Trail' {name} -> name) (\s@Trail' {} a -> s {name = a} :: Trail)++-- | Name of the Amazon S3 bucket into which CloudTrail delivers your trail+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+trail_s3BucketName :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_s3BucketName = Lens.lens (\Trail' {s3BucketName} -> s3BucketName) (\s@Trail' {} a -> s {s3BucketName = a} :: Trail)++-- | 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+trail_s3KeyPrefix :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_s3KeyPrefix = Lens.lens (\Trail' {s3KeyPrefix} -> s3KeyPrefix) (\s@Trail' {} a -> s {s3KeyPrefix = a} :: Trail)++-- | Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+-- notifications when log files are delivered. The following is the format+-- of a topic ARN.+--+-- @arn:aws:sns:us-east-2:123456789012:MyTopic@+trail_snsTopicARN :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_snsTopicARN = Lens.lens (\Trail' {snsTopicARN} -> snsTopicARN) (\s@Trail' {} a -> s {snsTopicARN = a} :: Trail)++-- | This field is no longer in use. Use SnsTopicARN.+trail_snsTopicName :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_snsTopicName = Lens.lens (\Trail' {snsTopicName} -> snsTopicName) (\s@Trail' {} a -> s {snsTopicName = a} :: Trail)++-- | Specifies the ARN of the trail. The following is the format of a trail+-- ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+trail_trailARN :: Lens.Lens' Trail (Prelude.Maybe Prelude.Text)+trail_trailARN = Lens.lens (\Trail' {trailARN} -> trailARN) (\s@Trail' {} a -> s {trailARN = a} :: Trail)++instance Data.FromJSON Trail where+  parseJSON =+    Data.withObject+      "Trail"+      ( \x ->+          Trail'+            Prelude.<$> (x Data..:? "CloudWatchLogsLogGroupArn")+            Prelude.<*> (x Data..:? "CloudWatchLogsRoleArn")+            Prelude.<*> (x Data..:? "HasCustomEventSelectors")+            Prelude.<*> (x Data..:? "HasInsightSelectors")+            Prelude.<*> (x Data..:? "HomeRegion")+            Prelude.<*> (x Data..:? "IncludeGlobalServiceEvents")+            Prelude.<*> (x Data..:? "IsMultiRegionTrail")+            Prelude.<*> (x Data..:? "IsOrganizationTrail")+            Prelude.<*> (x Data..:? "KmsKeyId")+            Prelude.<*> (x Data..:? "LogFileValidationEnabled")+            Prelude.<*> (x Data..:? "Name")+            Prelude.<*> (x Data..:? "S3BucketName")+            Prelude.<*> (x Data..:? "S3KeyPrefix")+            Prelude.<*> (x Data..:? "SnsTopicARN")+            Prelude.<*> (x Data..:? "SnsTopicName")+            Prelude.<*> (x Data..:? "TrailARN")+      )++instance Prelude.Hashable Trail where+  hashWithSalt _salt Trail' {..} =+    _salt+      `Prelude.hashWithSalt` cloudWatchLogsLogGroupArn+      `Prelude.hashWithSalt` cloudWatchLogsRoleArn+      `Prelude.hashWithSalt` hasCustomEventSelectors+      `Prelude.hashWithSalt` hasInsightSelectors+      `Prelude.hashWithSalt` homeRegion+      `Prelude.hashWithSalt` includeGlobalServiceEvents+      `Prelude.hashWithSalt` isMultiRegionTrail+      `Prelude.hashWithSalt` isOrganizationTrail+      `Prelude.hashWithSalt` kmsKeyId+      `Prelude.hashWithSalt` logFileValidationEnabled+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` s3BucketName+      `Prelude.hashWithSalt` s3KeyPrefix+      `Prelude.hashWithSalt` snsTopicARN+      `Prelude.hashWithSalt` snsTopicName+      `Prelude.hashWithSalt` trailARN++instance Prelude.NFData Trail where+  rnf Trail' {..} =+    Prelude.rnf cloudWatchLogsLogGroupArn+      `Prelude.seq` Prelude.rnf cloudWatchLogsRoleArn+      `Prelude.seq` Prelude.rnf hasCustomEventSelectors+      `Prelude.seq` Prelude.rnf hasInsightSelectors+      `Prelude.seq` Prelude.rnf homeRegion+      `Prelude.seq` Prelude.rnf includeGlobalServiceEvents+      `Prelude.seq` Prelude.rnf isMultiRegionTrail+      `Prelude.seq` Prelude.rnf isOrganizationTrail+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf logFileValidationEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf s3BucketName+      `Prelude.seq` Prelude.rnf s3KeyPrefix+      `Prelude.seq` Prelude.rnf snsTopicARN+      `Prelude.seq` Prelude.rnf snsTopicName+      `Prelude.seq` Prelude.rnf trailARN
+ gen/Amazonka/CloudTrail/Types/TrailInfo.hs view
@@ -0,0 +1,97 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Types.TrailInfo+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Types.TrailInfo where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Information about a CloudTrail trail, including the trail\'s name, home+-- region, and Amazon Resource Name (ARN).+--+-- /See:/ 'newTrailInfo' smart constructor.+data TrailInfo = TrailInfo'+  { -- | The Amazon Web Services Region in which a trail was created.+    homeRegion :: Prelude.Maybe Prelude.Text,+    -- | The name of a trail.+    name :: Prelude.Maybe Prelude.Text,+    -- | The ARN of a trail.+    trailARN :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'TrailInfo' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'homeRegion', 'trailInfo_homeRegion' - The Amazon Web Services Region in which a trail was created.+--+-- 'name', 'trailInfo_name' - The name of a trail.+--+-- 'trailARN', 'trailInfo_trailARN' - The ARN of a trail.+newTrailInfo ::+  TrailInfo+newTrailInfo =+  TrailInfo'+    { homeRegion = Prelude.Nothing,+      name = Prelude.Nothing,+      trailARN = Prelude.Nothing+    }++-- | The Amazon Web Services Region in which a trail was created.+trailInfo_homeRegion :: Lens.Lens' TrailInfo (Prelude.Maybe Prelude.Text)+trailInfo_homeRegion = Lens.lens (\TrailInfo' {homeRegion} -> homeRegion) (\s@TrailInfo' {} a -> s {homeRegion = a} :: TrailInfo)++-- | The name of a trail.+trailInfo_name :: Lens.Lens' TrailInfo (Prelude.Maybe Prelude.Text)+trailInfo_name = Lens.lens (\TrailInfo' {name} -> name) (\s@TrailInfo' {} a -> s {name = a} :: TrailInfo)++-- | The ARN of a trail.+trailInfo_trailARN :: Lens.Lens' TrailInfo (Prelude.Maybe Prelude.Text)+trailInfo_trailARN = Lens.lens (\TrailInfo' {trailARN} -> trailARN) (\s@TrailInfo' {} a -> s {trailARN = a} :: TrailInfo)++instance Data.FromJSON TrailInfo where+  parseJSON =+    Data.withObject+      "TrailInfo"+      ( \x ->+          TrailInfo'+            Prelude.<$> (x Data..:? "HomeRegion")+            Prelude.<*> (x Data..:? "Name")+            Prelude.<*> (x Data..:? "TrailARN")+      )++instance Prelude.Hashable TrailInfo where+  hashWithSalt _salt TrailInfo' {..} =+    _salt+      `Prelude.hashWithSalt` homeRegion+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` trailARN++instance Prelude.NFData TrailInfo where+  rnf TrailInfo' {..} =+    Prelude.rnf homeRegion+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf trailARN
+ gen/Amazonka/CloudTrail/UpdateEventDataStore.hs view
@@ -0,0 +1,529 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.UpdateEventDataStore+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an event data store. The required @EventDataStore@ value is an+-- ARN or the ID portion of the ARN. Other parameters are optional, but at+-- least one optional parameter must be specified, or CloudTrail throws an+-- error. @RetentionPeriod@ is in days, and valid values are integers+-- between 90 and 2557. By default, @TerminationProtection@ is enabled.+-- @AdvancedEventSelectors@ includes or excludes management and data events+-- in your event data store; for more information about+-- @AdvancedEventSelectors@, see+-- PutEventSelectorsRequest$AdvancedEventSelectors.+module Amazonka.CloudTrail.UpdateEventDataStore+  ( -- * Creating a Request+    UpdateEventDataStore (..),+    newUpdateEventDataStore,++    -- * Request Lenses+    updateEventDataStore_advancedEventSelectors,+    updateEventDataStore_kmsKeyId,+    updateEventDataStore_multiRegionEnabled,+    updateEventDataStore_name,+    updateEventDataStore_organizationEnabled,+    updateEventDataStore_retentionPeriod,+    updateEventDataStore_terminationProtectionEnabled,+    updateEventDataStore_eventDataStore,++    -- * Destructuring the Response+    UpdateEventDataStoreResponse (..),+    newUpdateEventDataStoreResponse,++    -- * Response Lenses+    updateEventDataStoreResponse_advancedEventSelectors,+    updateEventDataStoreResponse_createdTimestamp,+    updateEventDataStoreResponse_eventDataStoreArn,+    updateEventDataStoreResponse_kmsKeyId,+    updateEventDataStoreResponse_multiRegionEnabled,+    updateEventDataStoreResponse_name,+    updateEventDataStoreResponse_organizationEnabled,+    updateEventDataStoreResponse_retentionPeriod,+    updateEventDataStoreResponse_status,+    updateEventDataStoreResponse_terminationProtectionEnabled,+    updateEventDataStoreResponse_updatedTimestamp,+    updateEventDataStoreResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUpdateEventDataStore' smart constructor.+data UpdateEventDataStore = UpdateEventDataStore'+  { -- | The advanced event selectors used to select events for the event data+    -- store. You can configure up to five advanced event selectors for each+    -- event data store.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | Specifies the KMS key ID to use to encrypt the events delivered by+    -- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+    -- fully specified ARN to an alias, a fully specified ARN to a key, or a+    -- globally unique identifier.+    --+    -- Disabling or deleting the KMS key, or removing CloudTrail permissions on+    -- the key, prevents CloudTrail from logging events to the event data+    -- store, and prevents users from querying the data in the event data store+    -- that was encrypted with the key. After you associate an event data store+    -- with a KMS key, the KMS key cannot be removed or changed. Before you+    -- disable or delete a KMS key that you are using with an event data store,+    -- delete or back up your event data store.+    --+    -- CloudTrail also supports KMS multi-Region keys. For more information+    -- about multi-Region keys, see+    -- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+    -- in the /Key Management Service Developer Guide/.+    --+    -- Examples:+    --+    -- -   @alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+    --+    -- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    --+    -- -   @12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether an event data store collects events from all regions,+    -- or only from the region in which it was created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The event data store name.+    name :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether an event data store collects events logged for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | Indicates that termination protection is enabled and the event data+    -- store cannot be automatically deleted.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The ARN (or the ID suffix of the ARN) of the event data store that you+    -- want to update.+    eventDataStore :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateEventDataStore' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'updateEventDataStore_advancedEventSelectors' - The advanced event selectors used to select events for the event data+-- store. You can configure up to five advanced event selectors for each+-- event data store.+--+-- 'kmsKeyId', 'updateEventDataStore_kmsKeyId' - Specifies the KMS key ID to use to encrypt the events delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- Disabling or deleting the KMS key, or removing CloudTrail permissions on+-- the key, prevents CloudTrail from logging events to the event data+-- store, and prevents users from querying the data in the event data store+-- that was encrypted with the key. After you associate an event data store+-- with a KMS key, the KMS key cannot be removed or changed. Before you+-- disable or delete a KMS key that you are using with an event data store,+-- delete or back up your event data store.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'updateEventDataStore_multiRegionEnabled' - Specifies whether an event data store collects events from all regions,+-- or only from the region in which it was created.+--+-- 'name', 'updateEventDataStore_name' - The event data store name.+--+-- 'organizationEnabled', 'updateEventDataStore_organizationEnabled' - Specifies whether an event data store collects events logged for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'updateEventDataStore_retentionPeriod' - The retention period, in days.+--+-- 'terminationProtectionEnabled', 'updateEventDataStore_terminationProtectionEnabled' - Indicates that termination protection is enabled and the event data+-- store cannot be automatically deleted.+--+-- 'eventDataStore', 'updateEventDataStore_eventDataStore' - The ARN (or the ID suffix of the ARN) of the event data store that you+-- want to update.+newUpdateEventDataStore ::+  -- | 'eventDataStore'+  Prelude.Text ->+  UpdateEventDataStore+newUpdateEventDataStore pEventDataStore_ =+  UpdateEventDataStore'+    { advancedEventSelectors =+        Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      terminationProtectionEnabled = Prelude.Nothing,+      eventDataStore = pEventDataStore_+    }++-- | The advanced event selectors used to select events for the event data+-- store. You can configure up to five advanced event selectors for each+-- event data store.+updateEventDataStore_advancedEventSelectors :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe [AdvancedEventSelector])+updateEventDataStore_advancedEventSelectors = Lens.lens (\UpdateEventDataStore' {advancedEventSelectors} -> advancedEventSelectors) (\s@UpdateEventDataStore' {} a -> s {advancedEventSelectors = a} :: UpdateEventDataStore) Prelude.. Lens.mapping Lens.coerced++-- | Specifies the KMS key ID to use to encrypt the events delivered by+-- CloudTrail. The value can be an alias name prefixed by @alias\/@, a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- Disabling or deleting the KMS key, or removing CloudTrail permissions on+-- the key, prevents CloudTrail from logging events to the event data+-- store, and prevents users from querying the data in the event data store+-- that was encrypted with the key. After you associate an event data store+-- with a KMS key, the KMS key cannot be removed or changed. Before you+-- disable or delete a KMS key that you are using with an event data store,+-- delete or back up your event data store.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   @alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName@+--+-- -   @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- -   @12345678-1234-1234-1234-123456789012@+updateEventDataStore_kmsKeyId :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Text)+updateEventDataStore_kmsKeyId = Lens.lens (\UpdateEventDataStore' {kmsKeyId} -> kmsKeyId) (\s@UpdateEventDataStore' {} a -> s {kmsKeyId = a} :: UpdateEventDataStore)++-- | Specifies whether an event data store collects events from all regions,+-- or only from the region in which it was created.+updateEventDataStore_multiRegionEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)+updateEventDataStore_multiRegionEnabled = Lens.lens (\UpdateEventDataStore' {multiRegionEnabled} -> multiRegionEnabled) (\s@UpdateEventDataStore' {} a -> s {multiRegionEnabled = a} :: UpdateEventDataStore)++-- | The event data store name.+updateEventDataStore_name :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Text)+updateEventDataStore_name = Lens.lens (\UpdateEventDataStore' {name} -> name) (\s@UpdateEventDataStore' {} a -> s {name = a} :: UpdateEventDataStore)++-- | Specifies whether an event data store collects events logged for an+-- organization in Organizations.+updateEventDataStore_organizationEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)+updateEventDataStore_organizationEnabled = Lens.lens (\UpdateEventDataStore' {organizationEnabled} -> organizationEnabled) (\s@UpdateEventDataStore' {} a -> s {organizationEnabled = a} :: UpdateEventDataStore)++-- | The retention period, in days.+updateEventDataStore_retentionPeriod :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Natural)+updateEventDataStore_retentionPeriod = Lens.lens (\UpdateEventDataStore' {retentionPeriod} -> retentionPeriod) (\s@UpdateEventDataStore' {} a -> s {retentionPeriod = a} :: UpdateEventDataStore)++-- | Indicates that termination protection is enabled and the event data+-- store cannot be automatically deleted.+updateEventDataStore_terminationProtectionEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)+updateEventDataStore_terminationProtectionEnabled = Lens.lens (\UpdateEventDataStore' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@UpdateEventDataStore' {} a -> s {terminationProtectionEnabled = a} :: UpdateEventDataStore)++-- | The ARN (or the ID suffix of the ARN) of the event data store that you+-- want to update.+updateEventDataStore_eventDataStore :: Lens.Lens' UpdateEventDataStore Prelude.Text+updateEventDataStore_eventDataStore = Lens.lens (\UpdateEventDataStore' {eventDataStore} -> eventDataStore) (\s@UpdateEventDataStore' {} a -> s {eventDataStore = a} :: UpdateEventDataStore)++instance Core.AWSRequest UpdateEventDataStore where+  type+    AWSResponse UpdateEventDataStore =+      UpdateEventDataStoreResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          UpdateEventDataStoreResponse'+            Prelude.<$> ( x+                            Data..?> "AdvancedEventSelectors"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (x Data..?> "CreatedTimestamp")+            Prelude.<*> (x Data..?> "EventDataStoreArn")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "MultiRegionEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "OrganizationEnabled")+            Prelude.<*> (x Data..?> "RetentionPeriod")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "TerminationProtectionEnabled")+            Prelude.<*> (x Data..?> "UpdatedTimestamp")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UpdateEventDataStore where+  hashWithSalt _salt UpdateEventDataStore' {..} =+    _salt+      `Prelude.hashWithSalt` advancedEventSelectors+      `Prelude.hashWithSalt` kmsKeyId+      `Prelude.hashWithSalt` multiRegionEnabled+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` organizationEnabled+      `Prelude.hashWithSalt` retentionPeriod+      `Prelude.hashWithSalt` terminationProtectionEnabled+      `Prelude.hashWithSalt` eventDataStore++instance Prelude.NFData UpdateEventDataStore where+  rnf UpdateEventDataStore' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf eventDataStore++instance Data.ToHeaders UpdateEventDataStore where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateEventDataStore" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UpdateEventDataStore where+  toJSON UpdateEventDataStore' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("AdvancedEventSelectors" Data..=)+              Prelude.<$> advancedEventSelectors,+            ("KmsKeyId" Data..=) Prelude.<$> kmsKeyId,+            ("MultiRegionEnabled" Data..=)+              Prelude.<$> multiRegionEnabled,+            ("Name" Data..=) Prelude.<$> name,+            ("OrganizationEnabled" Data..=)+              Prelude.<$> organizationEnabled,+            ("RetentionPeriod" Data..=)+              Prelude.<$> retentionPeriod,+            ("TerminationProtectionEnabled" Data..=)+              Prelude.<$> terminationProtectionEnabled,+            Prelude.Just+              ("EventDataStore" Data..= eventDataStore)+          ]+      )++instance Data.ToPath UpdateEventDataStore where+  toPath = Prelude.const "/"++instance Data.ToQuery UpdateEventDataStore where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateEventDataStoreResponse' smart constructor.+data UpdateEventDataStoreResponse = UpdateEventDataStoreResponse'+  { -- | The advanced event selectors that are applied to the event data store.+    advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],+    -- | The timestamp that shows when an event data store was first created.+    createdTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The ARN of the event data store.+    eventDataStoreArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the KMS key ID that encrypts the events delivered by+    -- CloudTrail. The value is a fully specified ARN to a KMS key in the+    -- following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether the event data store includes events from all regions,+    -- or only from the region in which it was created.+    multiRegionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The name of the event data store.+    name :: Prelude.Maybe Prelude.Text,+    -- | Indicates whether an event data store is collecting logged events for an+    -- organization in Organizations.+    organizationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The retention period, in days.+    retentionPeriod :: Prelude.Maybe Prelude.Natural,+    -- | The status of an event data store. Values can be @ENABLED@ and+    -- @PENDING_DELETION@.+    status :: Prelude.Maybe EventDataStoreStatus,+    -- | Indicates whether termination protection is enabled for the event data+    -- store.+    terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,+    -- | The timestamp that shows when the event data store was last updated.+    -- @UpdatedTimestamp@ is always either the same or newer than the time+    -- shown in @CreatedTimestamp@.+    updatedTimestamp :: Prelude.Maybe Data.POSIX,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateEventDataStoreResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'advancedEventSelectors', 'updateEventDataStoreResponse_advancedEventSelectors' - The advanced event selectors that are applied to the event data store.+--+-- 'createdTimestamp', 'updateEventDataStoreResponse_createdTimestamp' - The timestamp that shows when an event data store was first created.+--+-- 'eventDataStoreArn', 'updateEventDataStoreResponse_eventDataStoreArn' - The ARN of the event data store.+--+-- 'kmsKeyId', 'updateEventDataStoreResponse_kmsKeyId' - Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'multiRegionEnabled', 'updateEventDataStoreResponse_multiRegionEnabled' - Indicates whether the event data store includes events from all regions,+-- or only from the region in which it was created.+--+-- 'name', 'updateEventDataStoreResponse_name' - The name of the event data store.+--+-- 'organizationEnabled', 'updateEventDataStoreResponse_organizationEnabled' - Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+--+-- 'retentionPeriod', 'updateEventDataStoreResponse_retentionPeriod' - The retention period, in days.+--+-- 'status', 'updateEventDataStoreResponse_status' - The status of an event data store. Values can be @ENABLED@ and+-- @PENDING_DELETION@.+--+-- 'terminationProtectionEnabled', 'updateEventDataStoreResponse_terminationProtectionEnabled' - Indicates whether termination protection is enabled for the event data+-- store.+--+-- 'updatedTimestamp', 'updateEventDataStoreResponse_updatedTimestamp' - The timestamp that shows when the event data store was last updated.+-- @UpdatedTimestamp@ is always either the same or newer than the time+-- shown in @CreatedTimestamp@.+--+-- 'httpStatus', 'updateEventDataStoreResponse_httpStatus' - The response's http status code.+newUpdateEventDataStoreResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UpdateEventDataStoreResponse+newUpdateEventDataStoreResponse pHttpStatus_ =+  UpdateEventDataStoreResponse'+    { advancedEventSelectors =+        Prelude.Nothing,+      createdTimestamp = Prelude.Nothing,+      eventDataStoreArn = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      multiRegionEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      organizationEnabled = Prelude.Nothing,+      retentionPeriod = Prelude.Nothing,+      status = Prelude.Nothing,+      terminationProtectionEnabled =+        Prelude.Nothing,+      updatedTimestamp = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The advanced event selectors that are applied to the event data store.+updateEventDataStoreResponse_advancedEventSelectors :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe [AdvancedEventSelector])+updateEventDataStoreResponse_advancedEventSelectors = Lens.lens (\UpdateEventDataStoreResponse' {advancedEventSelectors} -> advancedEventSelectors) (\s@UpdateEventDataStoreResponse' {} a -> s {advancedEventSelectors = a} :: UpdateEventDataStoreResponse) Prelude.. Lens.mapping Lens.coerced++-- | The timestamp that shows when an event data store was first created.+updateEventDataStoreResponse_createdTimestamp :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+updateEventDataStoreResponse_createdTimestamp = Lens.lens (\UpdateEventDataStoreResponse' {createdTimestamp} -> createdTimestamp) (\s@UpdateEventDataStoreResponse' {} a -> s {createdTimestamp = a} :: UpdateEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The ARN of the event data store.+updateEventDataStoreResponse_eventDataStoreArn :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+updateEventDataStoreResponse_eventDataStoreArn = Lens.lens (\UpdateEventDataStoreResponse' {eventDataStoreArn} -> eventDataStoreArn) (\s@UpdateEventDataStoreResponse' {} a -> s {eventDataStoreArn = a} :: UpdateEventDataStoreResponse)++-- | Specifies the KMS key ID that encrypts the events delivered by+-- CloudTrail. The value is a fully specified ARN to a KMS key in the+-- following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+updateEventDataStoreResponse_kmsKeyId :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+updateEventDataStoreResponse_kmsKeyId = Lens.lens (\UpdateEventDataStoreResponse' {kmsKeyId} -> kmsKeyId) (\s@UpdateEventDataStoreResponse' {} a -> s {kmsKeyId = a} :: UpdateEventDataStoreResponse)++-- | Indicates whether the event data store includes events from all regions,+-- or only from the region in which it was created.+updateEventDataStoreResponse_multiRegionEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+updateEventDataStoreResponse_multiRegionEnabled = Lens.lens (\UpdateEventDataStoreResponse' {multiRegionEnabled} -> multiRegionEnabled) (\s@UpdateEventDataStoreResponse' {} a -> s {multiRegionEnabled = a} :: UpdateEventDataStoreResponse)++-- | The name of the event data store.+updateEventDataStoreResponse_name :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)+updateEventDataStoreResponse_name = Lens.lens (\UpdateEventDataStoreResponse' {name} -> name) (\s@UpdateEventDataStoreResponse' {} a -> s {name = a} :: UpdateEventDataStoreResponse)++-- | Indicates whether an event data store is collecting logged events for an+-- organization in Organizations.+updateEventDataStoreResponse_organizationEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+updateEventDataStoreResponse_organizationEnabled = Lens.lens (\UpdateEventDataStoreResponse' {organizationEnabled} -> organizationEnabled) (\s@UpdateEventDataStoreResponse' {} a -> s {organizationEnabled = a} :: UpdateEventDataStoreResponse)++-- | The retention period, in days.+updateEventDataStoreResponse_retentionPeriod :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Natural)+updateEventDataStoreResponse_retentionPeriod = Lens.lens (\UpdateEventDataStoreResponse' {retentionPeriod} -> retentionPeriod) (\s@UpdateEventDataStoreResponse' {} a -> s {retentionPeriod = a} :: UpdateEventDataStoreResponse)++-- | The status of an event data store. Values can be @ENABLED@ and+-- @PENDING_DELETION@.+updateEventDataStoreResponse_status :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe EventDataStoreStatus)+updateEventDataStoreResponse_status = Lens.lens (\UpdateEventDataStoreResponse' {status} -> status) (\s@UpdateEventDataStoreResponse' {} a -> s {status = a} :: UpdateEventDataStoreResponse)++-- | Indicates whether termination protection is enabled for the event data+-- store.+updateEventDataStoreResponse_terminationProtectionEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)+updateEventDataStoreResponse_terminationProtectionEnabled = Lens.lens (\UpdateEventDataStoreResponse' {terminationProtectionEnabled} -> terminationProtectionEnabled) (\s@UpdateEventDataStoreResponse' {} a -> s {terminationProtectionEnabled = a} :: UpdateEventDataStoreResponse)++-- | The timestamp that shows when the event data store was last updated.+-- @UpdatedTimestamp@ is always either the same or newer than the time+-- shown in @CreatedTimestamp@.+updateEventDataStoreResponse_updatedTimestamp :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)+updateEventDataStoreResponse_updatedTimestamp = Lens.lens (\UpdateEventDataStoreResponse' {updatedTimestamp} -> updatedTimestamp) (\s@UpdateEventDataStoreResponse' {} a -> s {updatedTimestamp = a} :: UpdateEventDataStoreResponse) Prelude.. Lens.mapping Data._Time++-- | The response's http status code.+updateEventDataStoreResponse_httpStatus :: Lens.Lens' UpdateEventDataStoreResponse Prelude.Int+updateEventDataStoreResponse_httpStatus = Lens.lens (\UpdateEventDataStoreResponse' {httpStatus} -> httpStatus) (\s@UpdateEventDataStoreResponse' {} a -> s {httpStatus = a} :: UpdateEventDataStoreResponse)++instance Prelude.NFData UpdateEventDataStoreResponse where+  rnf UpdateEventDataStoreResponse' {..} =+    Prelude.rnf advancedEventSelectors+      `Prelude.seq` Prelude.rnf createdTimestamp+      `Prelude.seq` Prelude.rnf eventDataStoreArn+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf multiRegionEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf organizationEnabled+      `Prelude.seq` Prelude.rnf retentionPeriod+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf terminationProtectionEnabled+      `Prelude.seq` Prelude.rnf updatedTimestamp+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/UpdateTrail.hs view
@@ -0,0 +1,730 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.UpdateTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates trail settings that control what events you are logging, and how+-- to handle log files. Changes to a trail do not require stopping the+-- CloudTrail service. Use this action to designate an existing bucket for+-- log delivery. If the existing bucket has previously been a target for+-- CloudTrail log files, an IAM policy exists for the bucket. @UpdateTrail@+-- must be called from the region in which the trail was created;+-- otherwise, an @InvalidHomeRegionException@ is thrown.+module Amazonka.CloudTrail.UpdateTrail+  ( -- * Creating a Request+    UpdateTrail (..),+    newUpdateTrail,++    -- * Request Lenses+    updateTrail_cloudWatchLogsLogGroupArn,+    updateTrail_cloudWatchLogsRoleArn,+    updateTrail_enableLogFileValidation,+    updateTrail_includeGlobalServiceEvents,+    updateTrail_isMultiRegionTrail,+    updateTrail_isOrganizationTrail,+    updateTrail_kmsKeyId,+    updateTrail_s3BucketName,+    updateTrail_s3KeyPrefix,+    updateTrail_snsTopicName,+    updateTrail_name,++    -- * Destructuring the Response+    UpdateTrailResponse (..),+    newUpdateTrailResponse,++    -- * Response Lenses+    updateTrailResponse_cloudWatchLogsLogGroupArn,+    updateTrailResponse_cloudWatchLogsRoleArn,+    updateTrailResponse_includeGlobalServiceEvents,+    updateTrailResponse_isMultiRegionTrail,+    updateTrailResponse_isOrganizationTrail,+    updateTrailResponse_kmsKeyId,+    updateTrailResponse_logFileValidationEnabled,+    updateTrailResponse_name,+    updateTrailResponse_s3BucketName,+    updateTrailResponse_s3KeyPrefix,+    updateTrailResponse_snsTopicARN,+    updateTrailResponse_snsTopicName,+    updateTrailResponse_trailARN,+    updateTrailResponse_httpStatus,+  )+where++import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | Specifies settings to update for the trail.+--+-- /See:/ 'newUpdateTrail' smart constructor.+data UpdateTrail = UpdateTrail'+  { -- | Specifies a log group name using an Amazon Resource Name (ARN), a unique+    -- identifier that represents the log group to which CloudTrail logs are+    -- delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+    cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the role for the CloudWatch Logs endpoint to assume to write+    -- to a user\'s log group.+    cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether log file validation is enabled. The default is false.+    --+    -- When you disable log file integrity validation, the chain of digest+    -- files is broken after one hour. CloudTrail does not create digest files+    -- for log files that were delivered during a period in which log file+    -- integrity validation was disabled. For example, if you enable log file+    -- integrity validation at noon on January 1, disable it at noon on January+    -- 2, and re-enable it at noon on January 10, digest files will not be+    -- created for the log files delivered from noon on January 2 to noon on+    -- January 10. The same applies whenever you stop CloudTrail logging or+    -- delete a trail.+    enableLogFileValidation :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is publishing events from global services+    -- such as IAM to the log files.+    includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail applies only to the current region or to all+    -- regions. The default is false. If the trail exists only in the current+    -- region and this value is set to true, shadow trails (replications of the+    -- trail) will be created in the other regions. If the trail exists in all+    -- regions and this value is set to false, the trail will remain in the+    -- region where it was created, and its shadow trails in other regions will+    -- be deleted. As a best practice, consider using trails that log events in+    -- all regions.+    isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is applied to all accounts in an+    -- organization in Organizations, or only for the current Amazon Web+    -- Services account. The default is false, and cannot be true unless the+    -- call is made on behalf of an Amazon Web Services account that is the+    -- management account for an organization in Organizations. If the trail is+    -- not an organization trail and this is set to @true@, the trail will be+    -- created in all Amazon Web Services accounts that belong to the+    -- organization. If the trail is an organization trail and this is set to+    -- @false@, the trail will remain in the current Amazon Web Services+    -- account but be deleted from all member accounts in the organization.+    isOrganizationTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies the KMS key ID to use to encrypt the logs delivered by+    -- CloudTrail. The value can be an alias name prefixed by \"alias\/\", a+    -- fully specified ARN to an alias, a fully specified ARN to a key, or a+    -- globally unique identifier.+    --+    -- CloudTrail also supports KMS multi-Region keys. For more information+    -- about multi-Region keys, see+    -- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+    -- in the /Key Management Service Developer Guide/.+    --+    -- Examples:+    --+    -- -   alias\/MyAliasName+    --+    -- -   arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName+    --+    -- -   arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012+    --+    -- -   12345678-1234-1234-1234-123456789012+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the Amazon S3 bucket designated for publishing log+    -- files. See+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+    s3BucketName :: Prelude.Maybe Prelude.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+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+    -- The maximum length is 200 characters.+    s3KeyPrefix :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the Amazon SNS topic defined for notification of+    -- log file delivery. The maximum length is 256 characters.+    snsTopicName :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the trail or trail ARN. If @Name@ is a trail name,+    -- the string 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 not valid.+    --+    -- -   Not be in IP address format (for example, 192.168.5.4)+    --+    -- If @Name@ is a trail ARN, it must be in the following format.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    name :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateTrail' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'cloudWatchLogsLogGroupArn', 'updateTrail_cloudWatchLogsLogGroupArn' - Specifies a log group name using an Amazon Resource Name (ARN), a unique+-- identifier that represents the log group to which CloudTrail logs are+-- delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+--+-- 'cloudWatchLogsRoleArn', 'updateTrail_cloudWatchLogsRoleArn' - Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+--+-- 'enableLogFileValidation', 'updateTrail_enableLogFileValidation' - Specifies whether log file validation is enabled. The default is false.+--+-- When you disable log file integrity validation, the chain of digest+-- files is broken after one hour. CloudTrail does not create digest files+-- for log files that were delivered during a period in which log file+-- integrity validation was disabled. For example, if you enable log file+-- integrity validation at noon on January 1, disable it at noon on January+-- 2, and re-enable it at noon on January 10, digest files will not be+-- created for the log files delivered from noon on January 2 to noon on+-- January 10. The same applies whenever you stop CloudTrail logging or+-- delete a trail.+--+-- 'includeGlobalServiceEvents', 'updateTrail_includeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+--+-- 'isMultiRegionTrail', 'updateTrail_isMultiRegionTrail' - Specifies whether the trail applies only to the current region or to all+-- regions. The default is false. If the trail exists only in the current+-- region and this value is set to true, shadow trails (replications of the+-- trail) will be created in the other regions. If the trail exists in all+-- regions and this value is set to false, the trail will remain in the+-- region where it was created, and its shadow trails in other regions will+-- be deleted. As a best practice, consider using trails that log events in+-- all regions.+--+-- 'isOrganizationTrail', 'updateTrail_isOrganizationTrail' - Specifies whether the trail is applied to all accounts in an+-- organization in Organizations, or only for the current Amazon Web+-- Services account. The default is false, and cannot be true unless the+-- call is made on behalf of an Amazon Web Services account that is the+-- management account for an organization in Organizations. If the trail is+-- not an organization trail and this is set to @true@, the trail will be+-- created in all Amazon Web Services accounts that belong to the+-- organization. If the trail is an organization trail and this is set to+-- @false@, the trail will remain in the current Amazon Web Services+-- account but be deleted from all member accounts in the organization.+--+-- 'kmsKeyId', 'updateTrail_kmsKeyId' - Specifies the KMS key ID to use to encrypt the logs delivered by+-- CloudTrail. The value can be an alias name prefixed by \"alias\/\", a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   alias\/MyAliasName+--+-- -   arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName+--+-- -   arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012+--+-- -   12345678-1234-1234-1234-123456789012+--+-- 's3BucketName', 'updateTrail_s3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+--+-- 's3KeyPrefix', 'updateTrail_s3KeyPrefix' - 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+--+-- 'snsTopicName', 'updateTrail_snsTopicName' - Specifies the name of the Amazon SNS topic defined for notification of+-- log file delivery. The maximum length is 256 characters.+--+-- 'name', 'updateTrail_name' - Specifies the name of the trail or trail ARN. If @Name@ is a trail name,+-- the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If @Name@ is a trail ARN, it must be in the following format.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+newUpdateTrail ::+  -- | 'name'+  Prelude.Text ->+  UpdateTrail+newUpdateTrail pName_ =+  UpdateTrail'+    { cloudWatchLogsLogGroupArn =+        Prelude.Nothing,+      cloudWatchLogsRoleArn = Prelude.Nothing,+      enableLogFileValidation = Prelude.Nothing,+      includeGlobalServiceEvents = Prelude.Nothing,+      isMultiRegionTrail = Prelude.Nothing,+      isOrganizationTrail = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      s3BucketName = Prelude.Nothing,+      s3KeyPrefix = Prelude.Nothing,+      snsTopicName = Prelude.Nothing,+      name = pName_+    }++-- | Specifies a log group name using an Amazon Resource Name (ARN), a unique+-- identifier that represents the log group to which CloudTrail logs are+-- delivered. Not required unless you specify @CloudWatchLogsRoleArn@.+updateTrail_cloudWatchLogsLogGroupArn :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_cloudWatchLogsLogGroupArn = Lens.lens (\UpdateTrail' {cloudWatchLogsLogGroupArn} -> cloudWatchLogsLogGroupArn) (\s@UpdateTrail' {} a -> s {cloudWatchLogsLogGroupArn = a} :: UpdateTrail)++-- | Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+updateTrail_cloudWatchLogsRoleArn :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_cloudWatchLogsRoleArn = Lens.lens (\UpdateTrail' {cloudWatchLogsRoleArn} -> cloudWatchLogsRoleArn) (\s@UpdateTrail' {} a -> s {cloudWatchLogsRoleArn = a} :: UpdateTrail)++-- | Specifies whether log file validation is enabled. The default is false.+--+-- When you disable log file integrity validation, the chain of digest+-- files is broken after one hour. CloudTrail does not create digest files+-- for log files that were delivered during a period in which log file+-- integrity validation was disabled. For example, if you enable log file+-- integrity validation at noon on January 1, disable it at noon on January+-- 2, and re-enable it at noon on January 10, digest files will not be+-- created for the log files delivered from noon on January 2 to noon on+-- January 10. The same applies whenever you stop CloudTrail logging or+-- delete a trail.+updateTrail_enableLogFileValidation :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)+updateTrail_enableLogFileValidation = Lens.lens (\UpdateTrail' {enableLogFileValidation} -> enableLogFileValidation) (\s@UpdateTrail' {} a -> s {enableLogFileValidation = a} :: UpdateTrail)++-- | Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+updateTrail_includeGlobalServiceEvents :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)+updateTrail_includeGlobalServiceEvents = Lens.lens (\UpdateTrail' {includeGlobalServiceEvents} -> includeGlobalServiceEvents) (\s@UpdateTrail' {} a -> s {includeGlobalServiceEvents = a} :: UpdateTrail)++-- | Specifies whether the trail applies only to the current region or to all+-- regions. The default is false. If the trail exists only in the current+-- region and this value is set to true, shadow trails (replications of the+-- trail) will be created in the other regions. If the trail exists in all+-- regions and this value is set to false, the trail will remain in the+-- region where it was created, and its shadow trails in other regions will+-- be deleted. As a best practice, consider using trails that log events in+-- all regions.+updateTrail_isMultiRegionTrail :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)+updateTrail_isMultiRegionTrail = Lens.lens (\UpdateTrail' {isMultiRegionTrail} -> isMultiRegionTrail) (\s@UpdateTrail' {} a -> s {isMultiRegionTrail = a} :: UpdateTrail)++-- | Specifies whether the trail is applied to all accounts in an+-- organization in Organizations, or only for the current Amazon Web+-- Services account. The default is false, and cannot be true unless the+-- call is made on behalf of an Amazon Web Services account that is the+-- management account for an organization in Organizations. If the trail is+-- not an organization trail and this is set to @true@, the trail will be+-- created in all Amazon Web Services accounts that belong to the+-- organization. If the trail is an organization trail and this is set to+-- @false@, the trail will remain in the current Amazon Web Services+-- account but be deleted from all member accounts in the organization.+updateTrail_isOrganizationTrail :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)+updateTrail_isOrganizationTrail = Lens.lens (\UpdateTrail' {isOrganizationTrail} -> isOrganizationTrail) (\s@UpdateTrail' {} a -> s {isOrganizationTrail = a} :: UpdateTrail)++-- | Specifies the KMS key ID to use to encrypt the logs delivered by+-- CloudTrail. The value can be an alias name prefixed by \"alias\/\", a+-- fully specified ARN to an alias, a fully specified ARN to a key, or a+-- globally unique identifier.+--+-- CloudTrail also supports KMS multi-Region keys. For more information+-- about multi-Region keys, see+-- <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html Using multi-Region keys>+-- in the /Key Management Service Developer Guide/.+--+-- Examples:+--+-- -   alias\/MyAliasName+--+-- -   arn:aws:kms:us-east-2:123456789012:alias\/MyAliasName+--+-- -   arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012+--+-- -   12345678-1234-1234-1234-123456789012+updateTrail_kmsKeyId :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_kmsKeyId = Lens.lens (\UpdateTrail' {kmsKeyId} -> kmsKeyId) (\s@UpdateTrail' {} a -> s {kmsKeyId = a} :: UpdateTrail)++-- | Specifies the name of the Amazon S3 bucket designated for publishing log+-- files. See+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements>.+updateTrail_s3BucketName :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_s3BucketName = Lens.lens (\UpdateTrail' {s3BucketName} -> s3BucketName) (\s@UpdateTrail' {} a -> s {s3BucketName = a} :: UpdateTrail)++-- | 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files>.+-- The maximum length is 200 characters.+updateTrail_s3KeyPrefix :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_s3KeyPrefix = Lens.lens (\UpdateTrail' {s3KeyPrefix} -> s3KeyPrefix) (\s@UpdateTrail' {} a -> s {s3KeyPrefix = a} :: UpdateTrail)++-- | Specifies the name of the Amazon SNS topic defined for notification of+-- log file delivery. The maximum length is 256 characters.+updateTrail_snsTopicName :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)+updateTrail_snsTopicName = Lens.lens (\UpdateTrail' {snsTopicName} -> snsTopicName) (\s@UpdateTrail' {} a -> s {snsTopicName = a} :: UpdateTrail)++-- | Specifies the name of the trail or trail ARN. If @Name@ is a trail name,+-- the string 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 not valid.+--+-- -   Not be in IP address format (for example, 192.168.5.4)+--+-- If @Name@ is a trail ARN, it must be in the following format.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+updateTrail_name :: Lens.Lens' UpdateTrail Prelude.Text+updateTrail_name = Lens.lens (\UpdateTrail' {name} -> name) (\s@UpdateTrail' {} a -> s {name = a} :: UpdateTrail)++instance Core.AWSRequest UpdateTrail where+  type AWSResponse UpdateTrail = UpdateTrailResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          UpdateTrailResponse'+            Prelude.<$> (x Data..?> "CloudWatchLogsLogGroupArn")+            Prelude.<*> (x Data..?> "CloudWatchLogsRoleArn")+            Prelude.<*> (x Data..?> "IncludeGlobalServiceEvents")+            Prelude.<*> (x Data..?> "IsMultiRegionTrail")+            Prelude.<*> (x Data..?> "IsOrganizationTrail")+            Prelude.<*> (x Data..?> "KmsKeyId")+            Prelude.<*> (x Data..?> "LogFileValidationEnabled")+            Prelude.<*> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "S3BucketName")+            Prelude.<*> (x Data..?> "S3KeyPrefix")+            Prelude.<*> (x Data..?> "SnsTopicARN")+            Prelude.<*> (x Data..?> "SnsTopicName")+            Prelude.<*> (x Data..?> "TrailARN")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UpdateTrail where+  hashWithSalt _salt UpdateTrail' {..} =+    _salt+      `Prelude.hashWithSalt` cloudWatchLogsLogGroupArn+      `Prelude.hashWithSalt` cloudWatchLogsRoleArn+      `Prelude.hashWithSalt` enableLogFileValidation+      `Prelude.hashWithSalt` includeGlobalServiceEvents+      `Prelude.hashWithSalt` isMultiRegionTrail+      `Prelude.hashWithSalt` isOrganizationTrail+      `Prelude.hashWithSalt` kmsKeyId+      `Prelude.hashWithSalt` s3BucketName+      `Prelude.hashWithSalt` s3KeyPrefix+      `Prelude.hashWithSalt` snsTopicName+      `Prelude.hashWithSalt` name++instance Prelude.NFData UpdateTrail where+  rnf UpdateTrail' {..} =+    Prelude.rnf cloudWatchLogsLogGroupArn+      `Prelude.seq` Prelude.rnf cloudWatchLogsRoleArn+      `Prelude.seq` Prelude.rnf enableLogFileValidation+      `Prelude.seq` Prelude.rnf includeGlobalServiceEvents+      `Prelude.seq` Prelude.rnf isMultiRegionTrail+      `Prelude.seq` Prelude.rnf isOrganizationTrail+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf s3BucketName+      `Prelude.seq` Prelude.rnf s3KeyPrefix+      `Prelude.seq` Prelude.rnf snsTopicName+      `Prelude.seq` Prelude.rnf name++instance Data.ToHeaders UpdateTrail where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateTrail" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UpdateTrail where+  toJSON UpdateTrail' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("CloudWatchLogsLogGroupArn" Data..=)+              Prelude.<$> cloudWatchLogsLogGroupArn,+            ("CloudWatchLogsRoleArn" Data..=)+              Prelude.<$> cloudWatchLogsRoleArn,+            ("EnableLogFileValidation" Data..=)+              Prelude.<$> enableLogFileValidation,+            ("IncludeGlobalServiceEvents" Data..=)+              Prelude.<$> includeGlobalServiceEvents,+            ("IsMultiRegionTrail" Data..=)+              Prelude.<$> isMultiRegionTrail,+            ("IsOrganizationTrail" Data..=)+              Prelude.<$> isOrganizationTrail,+            ("KmsKeyId" Data..=) Prelude.<$> kmsKeyId,+            ("S3BucketName" Data..=) Prelude.<$> s3BucketName,+            ("S3KeyPrefix" Data..=) Prelude.<$> s3KeyPrefix,+            ("SnsTopicName" Data..=) Prelude.<$> snsTopicName,+            Prelude.Just ("Name" Data..= name)+          ]+      )++instance Data.ToPath UpdateTrail where+  toPath = Prelude.const "/"++instance Data.ToQuery UpdateTrail where+  toQuery = Prelude.const Prelude.mempty++-- | Returns the objects or data listed below if successful. Otherwise,+-- returns an error.+--+-- /See:/ 'newUpdateTrailResponse' smart constructor.+data UpdateTrailResponse = UpdateTrailResponse'+  { -- | Specifies the Amazon Resource Name (ARN) of the log group to which+    -- CloudTrail logs are delivered.+    cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies the role for the CloudWatch Logs endpoint to assume to write+    -- to a user\'s log group.+    cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether the trail is publishing events from global services+    -- such as IAM to the log files.+    includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail exists in one region or in all regions.+    isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,+    -- | Specifies whether the trail is an organization trail.+    isOrganizationTrail :: Prelude.Maybe Prelude.Bool,+    -- | 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 following format.+    --+    -- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+    kmsKeyId :: Prelude.Maybe Prelude.Text,+    -- | Specifies whether log file integrity validation is enabled.+    logFileValidationEnabled :: Prelude.Maybe Prelude.Bool,+    -- | Specifies the name of the trail.+    name :: Prelude.Maybe Prelude.Text,+    -- | Specifies the name of the Amazon S3 bucket designated for publishing log+    -- files.+    s3BucketName :: Prelude.Maybe Prelude.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+    -- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your IAM Log Files>.+    s3KeyPrefix :: Prelude.Maybe Prelude.Text,+    -- | Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+    -- notifications when log files are delivered. The following is the format+    -- of a topic ARN.+    --+    -- @arn:aws:sns:us-east-2:123456789012:MyTopic@+    snsTopicARN :: Prelude.Maybe Prelude.Text,+    -- | This field is no longer in use. Use UpdateTrailResponse$SnsTopicARN.+    snsTopicName :: Prelude.Maybe Prelude.Text,+    -- | Specifies the ARN of the trail that was updated. The following is the+    -- format of a trail ARN.+    --+    -- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+    trailARN :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateTrailResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'cloudWatchLogsLogGroupArn', 'updateTrailResponse_cloudWatchLogsLogGroupArn' - Specifies the Amazon Resource Name (ARN) of the log group to which+-- CloudTrail logs are delivered.+--+-- 'cloudWatchLogsRoleArn', 'updateTrailResponse_cloudWatchLogsRoleArn' - Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+--+-- 'includeGlobalServiceEvents', 'updateTrailResponse_includeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+--+-- 'isMultiRegionTrail', 'updateTrailResponse_isMultiRegionTrail' - Specifies whether the trail exists in one region or in all regions.+--+-- 'isOrganizationTrail', 'updateTrailResponse_isOrganizationTrail' - Specifies whether the trail is an organization trail.+--+-- 'kmsKeyId', 'updateTrailResponse_kmsKeyId' - 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 following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+--+-- 'logFileValidationEnabled', 'updateTrailResponse_logFileValidationEnabled' - Specifies whether log file integrity validation is enabled.+--+-- 'name', 'updateTrailResponse_name' - Specifies the name of the trail.+--+-- 's3BucketName', 'updateTrailResponse_s3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log+-- files.+--+-- 's3KeyPrefix', 'updateTrailResponse_s3KeyPrefix' - 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your IAM Log Files>.+--+-- 'snsTopicARN', 'updateTrailResponse_snsTopicARN' - Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+-- notifications when log files are delivered. The following is the format+-- of a topic ARN.+--+-- @arn:aws:sns:us-east-2:123456789012:MyTopic@+--+-- 'snsTopicName', 'updateTrailResponse_snsTopicName' - This field is no longer in use. Use UpdateTrailResponse$SnsTopicARN.+--+-- 'trailARN', 'updateTrailResponse_trailARN' - Specifies the ARN of the trail that was updated. The following is the+-- format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+--+-- 'httpStatus', 'updateTrailResponse_httpStatus' - The response's http status code.+newUpdateTrailResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UpdateTrailResponse+newUpdateTrailResponse pHttpStatus_ =+  UpdateTrailResponse'+    { cloudWatchLogsLogGroupArn =+        Prelude.Nothing,+      cloudWatchLogsRoleArn = Prelude.Nothing,+      includeGlobalServiceEvents = Prelude.Nothing,+      isMultiRegionTrail = Prelude.Nothing,+      isOrganizationTrail = Prelude.Nothing,+      kmsKeyId = Prelude.Nothing,+      logFileValidationEnabled = Prelude.Nothing,+      name = Prelude.Nothing,+      s3BucketName = Prelude.Nothing,+      s3KeyPrefix = Prelude.Nothing,+      snsTopicARN = Prelude.Nothing,+      snsTopicName = Prelude.Nothing,+      trailARN = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Specifies the Amazon Resource Name (ARN) of the log group to which+-- CloudTrail logs are delivered.+updateTrailResponse_cloudWatchLogsLogGroupArn :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_cloudWatchLogsLogGroupArn = Lens.lens (\UpdateTrailResponse' {cloudWatchLogsLogGroupArn} -> cloudWatchLogsLogGroupArn) (\s@UpdateTrailResponse' {} a -> s {cloudWatchLogsLogGroupArn = a} :: UpdateTrailResponse)++-- | Specifies the role for the CloudWatch Logs endpoint to assume to write+-- to a user\'s log group.+updateTrailResponse_cloudWatchLogsRoleArn :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_cloudWatchLogsRoleArn = Lens.lens (\UpdateTrailResponse' {cloudWatchLogsRoleArn} -> cloudWatchLogsRoleArn) (\s@UpdateTrailResponse' {} a -> s {cloudWatchLogsRoleArn = a} :: UpdateTrailResponse)++-- | Specifies whether the trail is publishing events from global services+-- such as IAM to the log files.+updateTrailResponse_includeGlobalServiceEvents :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)+updateTrailResponse_includeGlobalServiceEvents = Lens.lens (\UpdateTrailResponse' {includeGlobalServiceEvents} -> includeGlobalServiceEvents) (\s@UpdateTrailResponse' {} a -> s {includeGlobalServiceEvents = a} :: UpdateTrailResponse)++-- | Specifies whether the trail exists in one region or in all regions.+updateTrailResponse_isMultiRegionTrail :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)+updateTrailResponse_isMultiRegionTrail = Lens.lens (\UpdateTrailResponse' {isMultiRegionTrail} -> isMultiRegionTrail) (\s@UpdateTrailResponse' {} a -> s {isMultiRegionTrail = a} :: UpdateTrailResponse)++-- | Specifies whether the trail is an organization trail.+updateTrailResponse_isOrganizationTrail :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)+updateTrailResponse_isOrganizationTrail = Lens.lens (\UpdateTrailResponse' {isOrganizationTrail} -> isOrganizationTrail) (\s@UpdateTrailResponse' {} a -> s {isOrganizationTrail = a} :: UpdateTrailResponse)++-- | 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 following format.+--+-- @arn:aws:kms:us-east-2:123456789012:key\/12345678-1234-1234-1234-123456789012@+updateTrailResponse_kmsKeyId :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_kmsKeyId = Lens.lens (\UpdateTrailResponse' {kmsKeyId} -> kmsKeyId) (\s@UpdateTrailResponse' {} a -> s {kmsKeyId = a} :: UpdateTrailResponse)++-- | Specifies whether log file integrity validation is enabled.+updateTrailResponse_logFileValidationEnabled :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)+updateTrailResponse_logFileValidationEnabled = Lens.lens (\UpdateTrailResponse' {logFileValidationEnabled} -> logFileValidationEnabled) (\s@UpdateTrailResponse' {} a -> s {logFileValidationEnabled = a} :: UpdateTrailResponse)++-- | Specifies the name of the trail.+updateTrailResponse_name :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_name = Lens.lens (\UpdateTrailResponse' {name} -> name) (\s@UpdateTrailResponse' {} a -> s {name = a} :: UpdateTrailResponse)++-- | Specifies the name of the Amazon S3 bucket designated for publishing log+-- files.+updateTrailResponse_s3BucketName :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_s3BucketName = Lens.lens (\UpdateTrailResponse' {s3BucketName} -> s3BucketName) (\s@UpdateTrailResponse' {} a -> s {s3BucketName = a} :: UpdateTrailResponse)++-- | 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+-- <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your IAM Log Files>.+updateTrailResponse_s3KeyPrefix :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_s3KeyPrefix = Lens.lens (\UpdateTrailResponse' {s3KeyPrefix} -> s3KeyPrefix) (\s@UpdateTrailResponse' {} a -> s {s3KeyPrefix = a} :: UpdateTrailResponse)++-- | Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send+-- notifications when log files are delivered. The following is the format+-- of a topic ARN.+--+-- @arn:aws:sns:us-east-2:123456789012:MyTopic@+updateTrailResponse_snsTopicARN :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_snsTopicARN = Lens.lens (\UpdateTrailResponse' {snsTopicARN} -> snsTopicARN) (\s@UpdateTrailResponse' {} a -> s {snsTopicARN = a} :: UpdateTrailResponse)++-- | This field is no longer in use. Use UpdateTrailResponse$SnsTopicARN.+updateTrailResponse_snsTopicName :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_snsTopicName = Lens.lens (\UpdateTrailResponse' {snsTopicName} -> snsTopicName) (\s@UpdateTrailResponse' {} a -> s {snsTopicName = a} :: UpdateTrailResponse)++-- | Specifies the ARN of the trail that was updated. The following is the+-- format of a trail ARN.+--+-- @arn:aws:cloudtrail:us-east-2:123456789012:trail\/MyTrail@+updateTrailResponse_trailARN :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)+updateTrailResponse_trailARN = Lens.lens (\UpdateTrailResponse' {trailARN} -> trailARN) (\s@UpdateTrailResponse' {} a -> s {trailARN = a} :: UpdateTrailResponse)++-- | The response's http status code.+updateTrailResponse_httpStatus :: Lens.Lens' UpdateTrailResponse Prelude.Int+updateTrailResponse_httpStatus = Lens.lens (\UpdateTrailResponse' {httpStatus} -> httpStatus) (\s@UpdateTrailResponse' {} a -> s {httpStatus = a} :: UpdateTrailResponse)++instance Prelude.NFData UpdateTrailResponse where+  rnf UpdateTrailResponse' {..} =+    Prelude.rnf cloudWatchLogsLogGroupArn+      `Prelude.seq` Prelude.rnf cloudWatchLogsRoleArn+      `Prelude.seq` Prelude.rnf includeGlobalServiceEvents+      `Prelude.seq` Prelude.rnf isMultiRegionTrail+      `Prelude.seq` Prelude.rnf isOrganizationTrail+      `Prelude.seq` Prelude.rnf kmsKeyId+      `Prelude.seq` Prelude.rnf logFileValidationEnabled+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf s3BucketName+      `Prelude.seq` Prelude.rnf s3KeyPrefix+      `Prelude.seq` Prelude.rnf snsTopicARN+      `Prelude.seq` Prelude.rnf snsTopicName+      `Prelude.seq` Prelude.rnf trailARN+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CloudTrail/Waiters.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CloudTrail.Waiters+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CloudTrail.Waiters where++import Amazonka.CloudTrail.Lens+import Amazonka.CloudTrail.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude
− gen/Network/AWS/CloudTrail.hs
@@ -1,308 +0,0 @@-{-# OPTIONS_GHC -fno-warn-unused-imports    #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ __AWS CloudTrail__------ This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.------ CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.------ See the <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html AWS CloudTrail User Guide> for information about the data that is included with each AWS API call listed in the log files.----module Network.AWS.CloudTrail-    (-    -- * Service Configuration-      cloudTrail--    -- * Errors-    -- $errors--    -- ** InvalidTimeRangeException-    , _InvalidTimeRangeException--    -- ** InsufficientS3BucketPolicyException-    , _InsufficientS3BucketPolicyException--    -- ** MaximumNumberOfTrailsExceededException-    , _MaximumNumberOfTrailsExceededException--    -- ** UnsupportedOperationException-    , _UnsupportedOperationException--    -- ** KMSKeyDisabledException-    , _KMSKeyDisabledException--    -- ** InsufficientEncryptionPolicyException-    , _InsufficientEncryptionPolicyException--    -- ** InsufficientSNSTopicPolicyException-    , _InsufficientSNSTopicPolicyException--    -- ** InvalidCloudWatchLogsRoleARNException-    , _InvalidCloudWatchLogsRoleARNException--    -- ** TagsLimitExceededException-    , _TagsLimitExceededException--    -- ** CloudTrailARNInvalidException-    , _CloudTrailARNInvalidException--    -- ** InvalidLookupAttributesException-    , _InvalidLookupAttributesException--    -- ** InvalidTrailNameException-    , _InvalidTrailNameException--    -- ** InvalidSNSTopicNameException-    , _InvalidSNSTopicNameException--    -- ** ResourceTypeNotSupportedException-    , _ResourceTypeNotSupportedException--    -- ** CloudWatchLogsDeliveryUnavailableException-    , _CloudWatchLogsDeliveryUnavailableException--    -- ** KMSKeyNotFoundException-    , _KMSKeyNotFoundException--    -- ** TrailNotFoundException-    , _TrailNotFoundException--    -- ** InvalidEventSelectorsException-    , _InvalidEventSelectorsException--    -- ** TrailNotProvidedException-    , _TrailNotProvidedException--    -- ** InvalidS3BucketNameException-    , _InvalidS3BucketNameException--    -- ** InvalidCloudWatchLogsLogGroupARNException-    , _InvalidCloudWatchLogsLogGroupARNException--    -- ** KMSException-    , _KMSException--    -- ** S3BucketDoesNotExistException-    , _S3BucketDoesNotExistException--    -- ** InvalidNextTokenException-    , _InvalidNextTokenException--    -- ** InvalidTagParameterException-    , _InvalidTagParameterException--    -- ** OperationNotPermittedException-    , _OperationNotPermittedException--    -- ** InvalidTokenException-    , _InvalidTokenException--    -- ** InvalidMaxResultsException-    , _InvalidMaxResultsException--    -- ** TrailAlreadyExistsException-    , _TrailAlreadyExistsException--    -- ** InvalidS3PrefixException-    , _InvalidS3PrefixException--    -- ** ResourceNotFoundException-    , _ResourceNotFoundException--    -- ** InvalidParameterCombinationException-    , _InvalidParameterCombinationException--    -- ** InvalidKMSKeyIdException-    , _InvalidKMSKeyIdException--    -- ** InvalidHomeRegionException-    , _InvalidHomeRegionException--    -- * Waiters-    -- $waiters--    -- * Operations-    -- $operations--    -- ** DescribeTrails-    , module Network.AWS.CloudTrail.DescribeTrails--    -- ** ListPublicKeys-    , module Network.AWS.CloudTrail.ListPublicKeys--    -- ** RemoveTags-    , module Network.AWS.CloudTrail.RemoveTags--    -- ** LookupEvents (Paginated)-    , module Network.AWS.CloudTrail.LookupEvents--    -- ** StopLogging-    , module Network.AWS.CloudTrail.StopLogging--    -- ** DeleteTrail-    , module Network.AWS.CloudTrail.DeleteTrail--    -- ** UpdateTrail-    , module Network.AWS.CloudTrail.UpdateTrail--    -- ** CreateTrail-    , module Network.AWS.CloudTrail.CreateTrail--    -- ** GetEventSelectors-    , module Network.AWS.CloudTrail.GetEventSelectors--    -- ** GetTrailStatus-    , module Network.AWS.CloudTrail.GetTrailStatus--    -- ** AddTags-    , module Network.AWS.CloudTrail.AddTags--    -- ** ListTags-    , module Network.AWS.CloudTrail.ListTags--    -- ** PutEventSelectors-    , module Network.AWS.CloudTrail.PutEventSelectors--    -- ** StartLogging-    , module Network.AWS.CloudTrail.StartLogging--    -- * Types--    -- ** LookupAttributeKey-    , LookupAttributeKey (..)--    -- ** ReadWriteType-    , ReadWriteType (..)--    -- ** DataResource-    , DataResource-    , dataResource-    , drValues-    , drType--    -- ** Event-    , Event-    , event-    , eUsername-    , eResources-    , eEventTime-    , eCloudTrailEvent-    , eEventName-    , eEventSource-    , eEventId--    -- ** EventSelector-    , EventSelector-    , eventSelector-    , esDataResources-    , esReadWriteType-    , esIncludeManagementEvents--    -- ** LookupAttribute-    , LookupAttribute-    , lookupAttribute-    , laAttributeKey-    , laAttributeValue--    -- ** PublicKey-    , PublicKey-    , publicKey-    , pkFingerprint-    , pkValidityEndTime-    , pkValue-    , pkValidityStartTime--    -- ** Resource-    , Resource-    , resource-    , rResourceType-    , rResourceName--    -- ** ResourceTag-    , ResourceTag-    , resourceTag-    , rResourceId-    , rTagsList--    -- ** Tag-    , Tag-    , tag-    , tagValue-    , tagKey--    -- ** Trail-    , Trail-    , trail-    , tLogFileValidationEnabled-    , tTrailARN-    , tS3KeyPrefix-    , tSNSTopicARN-    , tSNSTopicName-    , tCloudWatchLogsLogGroupARN-    , tKMSKeyId-    , tHomeRegion-    , tName-    , tIncludeGlobalServiceEvents-    , tHasCustomEventSelectors-    , tCloudWatchLogsRoleARN-    , tS3BucketName-    , tIsMultiRegionTrail-    ) where--import Network.AWS.CloudTrail.AddTags-import Network.AWS.CloudTrail.CreateTrail-import Network.AWS.CloudTrail.DeleteTrail-import Network.AWS.CloudTrail.DescribeTrails-import Network.AWS.CloudTrail.GetEventSelectors-import Network.AWS.CloudTrail.GetTrailStatus-import Network.AWS.CloudTrail.ListPublicKeys-import Network.AWS.CloudTrail.ListTags-import Network.AWS.CloudTrail.LookupEvents-import Network.AWS.CloudTrail.PutEventSelectors-import Network.AWS.CloudTrail.RemoveTags-import Network.AWS.CloudTrail.StartLogging-import Network.AWS.CloudTrail.StopLogging-import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.UpdateTrail-import Network.AWS.CloudTrail.Waiters--{- $errors-Error matchers are designed for use with the functions provided by-<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.-This allows catching (and rethrowing) service specific errors returned-by 'CloudTrail'.--}--{- $operations-Some AWS operations return results that are incomplete and require subsequent-requests in order to obtain the entire result set. The process of sending-subsequent requests to continue where a previous request left off is called-pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to-1000 objects at a time, and you must send subsequent requests with the-appropriate Marker in order to retrieve the next page of results.--Operations that have an 'AWSPager' instance can transparently perform subsequent-requests, correctly setting Markers and other request facets to iterate through-the entire result set of a truncated API operation. Operations which support-this have an additional note in the documentation.--Many operations have the ability to filter results on the server side. See the-individual operation parameters for details.--}--{- $waiters-Waiters poll by repeatedly sending a request until some remote success condition-configured by the 'Wait' specification is fulfilled. The 'Wait' specification-determines how many attempts should be made, in addition to delay and retry strategies.--}
− gen/Network/AWS/CloudTrail/AddTags.hs
@@ -1,140 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.AddTags--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Adds one or more tags to a trail, up to a limit of 50. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all regions only from the region in which the trail was created (that is, from its home region).-------module Network.AWS.CloudTrail.AddTags-    (-    -- * Creating a Request-      addTags-    , AddTags-    -- * Request Lenses-    , atTagsList-    , atResourceId--    -- * Destructuring the Response-    , addTagsResponse-    , AddTagsResponse-    -- * Response Lenses-    , atrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Specifies the tags to add to a trail.------------ /See:/ 'addTags' smart constructor.-data AddTags = AddTags'-  { _atTagsList   :: !(Maybe [Tag])-  , _atResourceId :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'AddTags' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atTagsList' - Contains a list of CloudTrail tags, up to a limit of 50------ * 'atResourceId' - Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-addTags-    :: Text -- ^ 'atResourceId'-    -> AddTags-addTags pResourceId_ =-  AddTags' {_atTagsList = Nothing, _atResourceId = pResourceId_}----- | Contains a list of CloudTrail tags, up to a limit of 50-atTagsList :: Lens' AddTags [Tag]-atTagsList = lens _atTagsList (\ s a -> s{_atTagsList = a}) . _Default . _Coerce---- | Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-atResourceId :: Lens' AddTags Text-atResourceId = lens _atResourceId (\ s a -> s{_atResourceId = a})--instance AWSRequest AddTags where-        type Rs AddTags = AddTagsResponse-        request = postJSON cloudTrail-        response-          = receiveEmpty-              (\ s h x -> AddTagsResponse' <$> (pure (fromEnum s)))--instance Hashable AddTags where--instance NFData AddTags where--instance ToHeaders AddTags where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.AddTags"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON AddTags where-        toJSON AddTags'{..}-          = object-              (catMaybes-                 [("TagsList" .=) <$> _atTagsList,-                  Just ("ResourceId" .= _atResourceId)])--instance ToPath AddTags where-        toPath = const "/"--instance ToQuery AddTags where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'addTagsResponse' smart constructor.-newtype AddTagsResponse = AddTagsResponse'-  { _atrsResponseStatus :: Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'AddTagsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atrsResponseStatus' - -- | The response status code.-addTagsResponse-    :: Int -- ^ 'atrsResponseStatus'-    -> AddTagsResponse-addTagsResponse pResponseStatus_ =-  AddTagsResponse' {_atrsResponseStatus = pResponseStatus_}----- | -- | The response status code.-atrsResponseStatus :: Lens' AddTagsResponse Int-atrsResponseStatus = lens _atrsResponseStatus (\ s a -> s{_atrsResponseStatus = a})--instance NFData AddTagsResponse where
− gen/Network/AWS/CloudTrail/CreateTrail.hs
@@ -1,352 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.CreateTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective of the region in which they were created.-------module Network.AWS.CloudTrail.CreateTrail-    (-    -- * Creating a Request-      createTrail-    , CreateTrail-    -- * Request Lenses-    , ctS3KeyPrefix-    , ctSNSTopicName-    , ctEnableLogFileValidation-    , ctCloudWatchLogsLogGroupARN-    , ctKMSKeyId-    , ctIncludeGlobalServiceEvents-    , ctCloudWatchLogsRoleARN-    , ctIsMultiRegionTrail-    , ctName-    , ctS3BucketName--    -- * Destructuring the Response-    , createTrailResponse-    , CreateTrailResponse-    -- * Response Lenses-    , ctrsLogFileValidationEnabled-    , ctrsTrailARN-    , ctrsS3KeyPrefix-    , ctrsSNSTopicARN-    , ctrsSNSTopicName-    , ctrsCloudWatchLogsLogGroupARN-    , ctrsKMSKeyId-    , ctrsName-    , ctrsIncludeGlobalServiceEvents-    , ctrsCloudWatchLogsRoleARN-    , ctrsS3BucketName-    , ctrsIsMultiRegionTrail-    , ctrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Specifies the settings for each trail.------------ /See:/ 'createTrail' smart constructor.-data CreateTrail = CreateTrail'-  { _ctS3KeyPrefix                :: !(Maybe Text)-  , _ctSNSTopicName               :: !(Maybe Text)-  , _ctEnableLogFileValidation    :: !(Maybe Bool)-  , _ctCloudWatchLogsLogGroupARN  :: !(Maybe Text)-  , _ctKMSKeyId                   :: !(Maybe Text)-  , _ctIncludeGlobalServiceEvents :: !(Maybe Bool)-  , _ctCloudWatchLogsRoleARN      :: !(Maybe Text)-  , _ctIsMultiRegionTrail         :: !(Maybe Bool)-  , _ctName                       :: !Text-  , _ctS3BucketName               :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'CreateTrail' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ctS3KeyPrefix' - 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> . The maximum length is 200 characters.------ * 'ctSNSTopicName' - Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.------ * 'ctEnableLogFileValidation' - Specifies whether log file integrity validation is enabled. The default is false.------ * 'ctCloudWatchLogsLogGroupARN' - Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.------ * 'ctKMSKeyId' - Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. Examples:     * alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012     * 12345678-1234-1234-1234-123456789012------ * 'ctIncludeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services such as IAM to the log files.------ * 'ctCloudWatchLogsRoleARN' - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.------ * 'ctIsMultiRegionTrail' - Specifies whether the trail is created in the current region or in all regions. The default is false.------ * 'ctName' - Specifies the name of the trail. The name 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)------ * 'ctS3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log files. See <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .-createTrail-    :: Text -- ^ 'ctName'-    -> Text -- ^ 'ctS3BucketName'-    -> CreateTrail-createTrail pName_ pS3BucketName_ =-  CreateTrail'-    { _ctS3KeyPrefix = Nothing-    , _ctSNSTopicName = Nothing-    , _ctEnableLogFileValidation = Nothing-    , _ctCloudWatchLogsLogGroupARN = Nothing-    , _ctKMSKeyId = Nothing-    , _ctIncludeGlobalServiceEvents = Nothing-    , _ctCloudWatchLogsRoleARN = Nothing-    , _ctIsMultiRegionTrail = Nothing-    , _ctName = pName_-    , _ctS3BucketName = pS3BucketName_-    }----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> . The maximum length is 200 characters.-ctS3KeyPrefix :: Lens' CreateTrail (Maybe Text)-ctS3KeyPrefix = lens _ctS3KeyPrefix (\ s a -> s{_ctS3KeyPrefix = a})---- | Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.-ctSNSTopicName :: Lens' CreateTrail (Maybe Text)-ctSNSTopicName = lens _ctSNSTopicName (\ s a -> s{_ctSNSTopicName = a})---- | Specifies whether log file integrity validation is enabled. The default is false.-ctEnableLogFileValidation :: Lens' CreateTrail (Maybe Bool)-ctEnableLogFileValidation = lens _ctEnableLogFileValidation (\ s a -> s{_ctEnableLogFileValidation = a})---- | Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.-ctCloudWatchLogsLogGroupARN :: Lens' CreateTrail (Maybe Text)-ctCloudWatchLogsLogGroupARN = lens _ctCloudWatchLogsLogGroupARN (\ s a -> s{_ctCloudWatchLogsLogGroupARN = a})---- | Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. Examples:     * alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012     * 12345678-1234-1234-1234-123456789012-ctKMSKeyId :: Lens' CreateTrail (Maybe Text)-ctKMSKeyId = lens _ctKMSKeyId (\ s a -> s{_ctKMSKeyId = a})---- | Specifies whether the trail is publishing events from global services such as IAM to the log files.-ctIncludeGlobalServiceEvents :: Lens' CreateTrail (Maybe Bool)-ctIncludeGlobalServiceEvents = lens _ctIncludeGlobalServiceEvents (\ s a -> s{_ctIncludeGlobalServiceEvents = a})---- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.-ctCloudWatchLogsRoleARN :: Lens' CreateTrail (Maybe Text)-ctCloudWatchLogsRoleARN = lens _ctCloudWatchLogsRoleARN (\ s a -> s{_ctCloudWatchLogsRoleARN = a})---- | Specifies whether the trail is created in the current region or in all regions. The default is false.-ctIsMultiRegionTrail :: Lens' CreateTrail (Maybe Bool)-ctIsMultiRegionTrail = lens _ctIsMultiRegionTrail (\ s a -> s{_ctIsMultiRegionTrail = a})---- | Specifies the name of the trail. The name 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)-ctName :: Lens' CreateTrail Text-ctName = lens _ctName (\ s a -> s{_ctName = a})---- | Specifies the name of the Amazon S3 bucket designated for publishing log files. See <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .-ctS3BucketName :: Lens' CreateTrail Text-ctS3BucketName = lens _ctS3BucketName (\ s a -> s{_ctS3BucketName = a})--instance AWSRequest CreateTrail where-        type Rs CreateTrail = CreateTrailResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 CreateTrailResponse' <$>-                   (x .?> "LogFileValidationEnabled") <*>-                     (x .?> "TrailARN")-                     <*> (x .?> "S3KeyPrefix")-                     <*> (x .?> "SnsTopicARN")-                     <*> (x .?> "SnsTopicName")-                     <*> (x .?> "CloudWatchLogsLogGroupArn")-                     <*> (x .?> "KmsKeyId")-                     <*> (x .?> "Name")-                     <*> (x .?> "IncludeGlobalServiceEvents")-                     <*> (x .?> "CloudWatchLogsRoleArn")-                     <*> (x .?> "S3BucketName")-                     <*> (x .?> "IsMultiRegionTrail")-                     <*> (pure (fromEnum s)))--instance Hashable CreateTrail where--instance NFData CreateTrail where--instance ToHeaders CreateTrail where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.CreateTrail"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON CreateTrail where-        toJSON CreateTrail'{..}-          = object-              (catMaybes-                 [("S3KeyPrefix" .=) <$> _ctS3KeyPrefix,-                  ("SnsTopicName" .=) <$> _ctSNSTopicName,-                  ("EnableLogFileValidation" .=) <$>-                    _ctEnableLogFileValidation,-                  ("CloudWatchLogsLogGroupArn" .=) <$>-                    _ctCloudWatchLogsLogGroupARN,-                  ("KmsKeyId" .=) <$> _ctKMSKeyId,-                  ("IncludeGlobalServiceEvents" .=) <$>-                    _ctIncludeGlobalServiceEvents,-                  ("CloudWatchLogsRoleArn" .=) <$>-                    _ctCloudWatchLogsRoleARN,-                  ("IsMultiRegionTrail" .=) <$> _ctIsMultiRegionTrail,-                  Just ("Name" .= _ctName),-                  Just ("S3BucketName" .= _ctS3BucketName)])--instance ToPath CreateTrail where-        toPath = const "/"--instance ToQuery CreateTrail where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'createTrailResponse' smart constructor.-data CreateTrailResponse = CreateTrailResponse'-  { _ctrsLogFileValidationEnabled   :: !(Maybe Bool)-  , _ctrsTrailARN                   :: !(Maybe Text)-  , _ctrsS3KeyPrefix                :: !(Maybe Text)-  , _ctrsSNSTopicARN                :: !(Maybe Text)-  , _ctrsSNSTopicName               :: !(Maybe Text)-  , _ctrsCloudWatchLogsLogGroupARN  :: !(Maybe Text)-  , _ctrsKMSKeyId                   :: !(Maybe Text)-  , _ctrsName                       :: !(Maybe Text)-  , _ctrsIncludeGlobalServiceEvents :: !(Maybe Bool)-  , _ctrsCloudWatchLogsRoleARN      :: !(Maybe Text)-  , _ctrsS3BucketName               :: !(Maybe Text)-  , _ctrsIsMultiRegionTrail         :: !(Maybe Bool)-  , _ctrsResponseStatus             :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'CreateTrailResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ctrsLogFileValidationEnabled' - Specifies whether log file integrity validation is enabled.------ * 'ctrsTrailARN' - Specifies the ARN of the trail that was created. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@------ * 'ctrsS3KeyPrefix' - 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> .------ * 'ctrsSNSTopicARN' - 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@------ * 'ctrsSNSTopicName' - This field is deprecated. Use SnsTopicARN.------ * 'ctrsCloudWatchLogsLogGroupARN' - Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.------ * 'ctrsKMSKeyId' - 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@------ * 'ctrsName' - Specifies the name of the trail.------ * 'ctrsIncludeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services such as IAM to the log files.------ * 'ctrsCloudWatchLogsRoleARN' - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.------ * 'ctrsS3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log files.------ * 'ctrsIsMultiRegionTrail' - Specifies whether the trail exists in one region or in all regions.------ * 'ctrsResponseStatus' - -- | The response status code.-createTrailResponse-    :: Int -- ^ 'ctrsResponseStatus'-    -> CreateTrailResponse-createTrailResponse pResponseStatus_ =-  CreateTrailResponse'-    { _ctrsLogFileValidationEnabled = Nothing-    , _ctrsTrailARN = Nothing-    , _ctrsS3KeyPrefix = Nothing-    , _ctrsSNSTopicARN = Nothing-    , _ctrsSNSTopicName = Nothing-    , _ctrsCloudWatchLogsLogGroupARN = Nothing-    , _ctrsKMSKeyId = Nothing-    , _ctrsName = Nothing-    , _ctrsIncludeGlobalServiceEvents = Nothing-    , _ctrsCloudWatchLogsRoleARN = Nothing-    , _ctrsS3BucketName = Nothing-    , _ctrsIsMultiRegionTrail = Nothing-    , _ctrsResponseStatus = pResponseStatus_-    }----- | Specifies whether log file integrity validation is enabled.-ctrsLogFileValidationEnabled :: Lens' CreateTrailResponse (Maybe Bool)-ctrsLogFileValidationEnabled = lens _ctrsLogFileValidationEnabled (\ s a -> s{_ctrsLogFileValidationEnabled = a})---- | Specifies the ARN of the trail that was created. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-ctrsTrailARN :: Lens' CreateTrailResponse (Maybe Text)-ctrsTrailARN = lens _ctrsTrailARN (\ s a -> s{_ctrsTrailARN = a})---- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> .-ctrsS3KeyPrefix :: Lens' CreateTrailResponse (Maybe Text)-ctrsS3KeyPrefix = lens _ctrsS3KeyPrefix (\ s a -> s{_ctrsS3KeyPrefix = a})---- | 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@-ctrsSNSTopicARN :: Lens' CreateTrailResponse (Maybe Text)-ctrsSNSTopicARN = lens _ctrsSNSTopicARN (\ s a -> s{_ctrsSNSTopicARN = a})---- | This field is deprecated. Use SnsTopicARN.-ctrsSNSTopicName :: Lens' CreateTrailResponse (Maybe Text)-ctrsSNSTopicName = lens _ctrsSNSTopicName (\ s a -> s{_ctrsSNSTopicName = a})---- | Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.-ctrsCloudWatchLogsLogGroupARN :: Lens' CreateTrailResponse (Maybe Text)-ctrsCloudWatchLogsLogGroupARN = lens _ctrsCloudWatchLogsLogGroupARN (\ s a -> s{_ctrsCloudWatchLogsLogGroupARN = a})---- | 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@-ctrsKMSKeyId :: Lens' CreateTrailResponse (Maybe Text)-ctrsKMSKeyId = lens _ctrsKMSKeyId (\ s a -> s{_ctrsKMSKeyId = a})---- | Specifies the name of the trail.-ctrsName :: Lens' CreateTrailResponse (Maybe Text)-ctrsName = lens _ctrsName (\ s a -> s{_ctrsName = a})---- | Specifies whether the trail is publishing events from global services such as IAM to the log files.-ctrsIncludeGlobalServiceEvents :: Lens' CreateTrailResponse (Maybe Bool)-ctrsIncludeGlobalServiceEvents = lens _ctrsIncludeGlobalServiceEvents (\ s a -> s{_ctrsIncludeGlobalServiceEvents = a})---- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.-ctrsCloudWatchLogsRoleARN :: Lens' CreateTrailResponse (Maybe Text)-ctrsCloudWatchLogsRoleARN = lens _ctrsCloudWatchLogsRoleARN (\ s a -> s{_ctrsCloudWatchLogsRoleARN = a})---- | Specifies the name of the Amazon S3 bucket designated for publishing log files.-ctrsS3BucketName :: Lens' CreateTrailResponse (Maybe Text)-ctrsS3BucketName = lens _ctrsS3BucketName (\ s a -> s{_ctrsS3BucketName = a})---- | Specifies whether the trail exists in one region or in all regions.-ctrsIsMultiRegionTrail :: Lens' CreateTrailResponse (Maybe Bool)-ctrsIsMultiRegionTrail = lens _ctrsIsMultiRegionTrail (\ s a -> s{_ctrsIsMultiRegionTrail = a})---- | -- | The response status code.-ctrsResponseStatus :: Lens' CreateTrailResponse Int-ctrsResponseStatus = lens _ctrsResponseStatus (\ s a -> s{_ctrsResponseStatus = a})--instance NFData CreateTrailResponse where
− gen/Network/AWS/CloudTrail/DeleteTrail.hs
@@ -1,129 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.DeleteTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes a trail. This operation must be called from the region in which the trail was created. @DeleteTrail@ cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.-------module Network.AWS.CloudTrail.DeleteTrail-    (-    -- * Creating a Request-      deleteTrail-    , DeleteTrail-    -- * Request Lenses-    , dtName--    -- * Destructuring the Response-    , deleteTrailResponse-    , DeleteTrailResponse-    -- * Response Lenses-    , drsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | The request that specifies the name of a trail to delete.------------ /See:/ 'deleteTrail' smart constructor.-newtype DeleteTrail = DeleteTrail'-  { _dtName :: Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteTrail' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtName' - Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-deleteTrail-    :: Text -- ^ 'dtName'-    -> DeleteTrail-deleteTrail pName_ = DeleteTrail' {_dtName = pName_}----- | Specifies the name or the CloudTrail ARN of the trail to be deleted. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-dtName :: Lens' DeleteTrail Text-dtName = lens _dtName (\ s a -> s{_dtName = a})--instance AWSRequest DeleteTrail where-        type Rs DeleteTrail = DeleteTrailResponse-        request = postJSON cloudTrail-        response-          = receiveEmpty-              (\ s h x ->-                 DeleteTrailResponse' <$> (pure (fromEnum s)))--instance Hashable DeleteTrail where--instance NFData DeleteTrail where--instance ToHeaders DeleteTrail where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DeleteTrail"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON DeleteTrail where-        toJSON DeleteTrail'{..}-          = object (catMaybes [Just ("Name" .= _dtName)])--instance ToPath DeleteTrail where-        toPath = const "/"--instance ToQuery DeleteTrail where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'deleteTrailResponse' smart constructor.-newtype DeleteTrailResponse = DeleteTrailResponse'-  { _drsResponseStatus :: Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DeleteTrailResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'drsResponseStatus' - -- | The response status code.-deleteTrailResponse-    :: Int -- ^ 'drsResponseStatus'-    -> DeleteTrailResponse-deleteTrailResponse pResponseStatus_ =-  DeleteTrailResponse' {_drsResponseStatus = pResponseStatus_}----- | -- | The response status code.-drsResponseStatus :: Lens' DeleteTrailResponse Int-drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a})--instance NFData DeleteTrailResponse where
− gen/Network/AWS/CloudTrail/DescribeTrails.hs
@@ -1,152 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.DescribeTrails--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves settings for the trail associated with the current region for your account.-------module Network.AWS.CloudTrail.DescribeTrails-    (-    -- * Creating a Request-      describeTrails-    , DescribeTrails-    -- * Request Lenses-    , dtIncludeShadowTrails-    , dtTrailNameList--    -- * Destructuring the Response-    , describeTrailsResponse-    , DescribeTrailsResponse-    -- * Response Lenses-    , dtrsTrailList-    , dtrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Returns information about the trail.------------ /See:/ 'describeTrails' smart constructor.-data DescribeTrails = DescribeTrails'-  { _dtIncludeShadowTrails :: !(Maybe Bool)-  , _dtTrailNameList       :: !(Maybe [Text])-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeTrails' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtIncludeShadowTrails' - Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region. The default is true.------ * 'dtTrailNameList' - Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@  If an empty list is specified, information for the trail in the current region is returned.     * If an empty list is specified and @IncludeShadowTrails@ is false, then information for all trails in the current region is returned.     * If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.-describeTrails-    :: DescribeTrails-describeTrails =-  DescribeTrails' {_dtIncludeShadowTrails = Nothing, _dtTrailNameList = Nothing}----- | Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region. The default is true.-dtIncludeShadowTrails :: Lens' DescribeTrails (Maybe Bool)-dtIncludeShadowTrails = lens _dtIncludeShadowTrails (\ s a -> s{_dtIncludeShadowTrails = a})---- | Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@  If an empty list is specified, information for the trail in the current region is returned.     * If an empty list is specified and @IncludeShadowTrails@ is false, then information for all trails in the current region is returned.     * If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.-dtTrailNameList :: Lens' DescribeTrails [Text]-dtTrailNameList = lens _dtTrailNameList (\ s a -> s{_dtTrailNameList = a}) . _Default . _Coerce--instance AWSRequest DescribeTrails where-        type Rs DescribeTrails = DescribeTrailsResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 DescribeTrailsResponse' <$>-                   (x .?> "trailList" .!@ mempty) <*>-                     (pure (fromEnum s)))--instance Hashable DescribeTrails where--instance NFData DescribeTrails where--instance ToHeaders DescribeTrails where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.DescribeTrails"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON DescribeTrails where-        toJSON DescribeTrails'{..}-          = object-              (catMaybes-                 [("includeShadowTrails" .=) <$>-                    _dtIncludeShadowTrails,-                  ("trailNameList" .=) <$> _dtTrailNameList])--instance ToPath DescribeTrails where-        toPath = const "/"--instance ToQuery DescribeTrails where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'describeTrailsResponse' smart constructor.-data DescribeTrailsResponse = DescribeTrailsResponse'-  { _dtrsTrailList      :: !(Maybe [Trail])-  , _dtrsResponseStatus :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'DescribeTrailsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dtrsTrailList' - The list of trail objects.------ * 'dtrsResponseStatus' - -- | The response status code.-describeTrailsResponse-    :: Int -- ^ 'dtrsResponseStatus'-    -> DescribeTrailsResponse-describeTrailsResponse pResponseStatus_ =-  DescribeTrailsResponse'-    {_dtrsTrailList = Nothing, _dtrsResponseStatus = pResponseStatus_}----- | The list of trail objects.-dtrsTrailList :: Lens' DescribeTrailsResponse [Trail]-dtrsTrailList = lens _dtrsTrailList (\ s a -> s{_dtrsTrailList = a}) . _Default . _Coerce---- | -- | The response status code.-dtrsResponseStatus :: Lens' DescribeTrailsResponse Int-dtrsResponseStatus = lens _dtrsResponseStatus (\ s a -> s{_dtrsResponseStatus = a})--instance NFData DescribeTrailsResponse where
− gen/Network/AWS/CloudTrail/GetEventSelectors.hs
@@ -1,155 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.GetEventSelectors--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:---------     * The S3 objects that you are logging for data events.------     * If your event selector includes management events.------     * If your event selector includes read-only events, write-only events, or all.------------ For more information, see <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html Logging Data and Management Events for Trails > in the /AWS CloudTrail User Guide/ .----module Network.AWS.CloudTrail.GetEventSelectors-    (-    -- * Creating a Request-      getEventSelectors-    , GetEventSelectors-    -- * Request Lenses-    , gesTrailName--    -- * Destructuring the Response-    , getEventSelectorsResponse-    , GetEventSelectorsResponse-    -- * Response Lenses-    , gesrsTrailARN-    , gesrsEventSelectors-    , gesrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'getEventSelectors' smart constructor.-newtype GetEventSelectors = GetEventSelectors'-  { _gesTrailName :: Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetEventSelectors' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gesTrailName' - Specifies the name of the trail or trail ARN. If you specify a trail name, the string 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) If you specify a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-getEventSelectors-    :: Text -- ^ 'gesTrailName'-    -> GetEventSelectors-getEventSelectors pTrailName_ = GetEventSelectors' {_gesTrailName = pTrailName_}----- | Specifies the name of the trail or trail ARN. If you specify a trail name, the string 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) If you specify a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-gesTrailName :: Lens' GetEventSelectors Text-gesTrailName = lens _gesTrailName (\ s a -> s{_gesTrailName = a})--instance AWSRequest GetEventSelectors where-        type Rs GetEventSelectors = GetEventSelectorsResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 GetEventSelectorsResponse' <$>-                   (x .?> "TrailARN") <*>-                     (x .?> "EventSelectors" .!@ mempty)-                     <*> (pure (fromEnum s)))--instance Hashable GetEventSelectors where--instance NFData GetEventSelectors where--instance ToHeaders GetEventSelectors where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetEventSelectors"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON GetEventSelectors where-        toJSON GetEventSelectors'{..}-          = object-              (catMaybes [Just ("TrailName" .= _gesTrailName)])--instance ToPath GetEventSelectors where-        toPath = const "/"--instance ToQuery GetEventSelectors where-        toQuery = const mempty---- | /See:/ 'getEventSelectorsResponse' smart constructor.-data GetEventSelectorsResponse = GetEventSelectorsResponse'-  { _gesrsTrailARN       :: !(Maybe Text)-  , _gesrsEventSelectors :: !(Maybe [EventSelector])-  , _gesrsResponseStatus :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetEventSelectorsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gesrsTrailARN' - The specified trail ARN that has the event selectors.------ * 'gesrsEventSelectors' - The event selectors that are configured for the trail.------ * 'gesrsResponseStatus' - -- | The response status code.-getEventSelectorsResponse-    :: Int -- ^ 'gesrsResponseStatus'-    -> GetEventSelectorsResponse-getEventSelectorsResponse pResponseStatus_ =-  GetEventSelectorsResponse'-    { _gesrsTrailARN = Nothing-    , _gesrsEventSelectors = Nothing-    , _gesrsResponseStatus = pResponseStatus_-    }----- | The specified trail ARN that has the event selectors.-gesrsTrailARN :: Lens' GetEventSelectorsResponse (Maybe Text)-gesrsTrailARN = lens _gesrsTrailARN (\ s a -> s{_gesrsTrailARN = a})---- | The event selectors that are configured for the trail.-gesrsEventSelectors :: Lens' GetEventSelectorsResponse [EventSelector]-gesrsEventSelectors = lens _gesrsEventSelectors (\ s a -> s{_gesrsEventSelectors = a}) . _Default . _Coerce---- | -- | The response status code.-gesrsResponseStatus :: Lens' GetEventSelectorsResponse Int-gesrsResponseStatus = lens _gesrsResponseStatus (\ s a -> s{_gesrsResponseStatus = a})--instance NFData GetEventSelectorsResponse where
− gen/Network/AWS/CloudTrail/GetTrailStatus.hs
@@ -1,302 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.GetTrailStatus--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.-------module Network.AWS.CloudTrail.GetTrailStatus-    (-    -- * Creating a Request-      getTrailStatus-    , GetTrailStatus-    -- * Request Lenses-    , gtsName--    -- * Destructuring the Response-    , getTrailStatusResponse-    , GetTrailStatusResponse-    -- * Response Lenses-    , gtsrsTimeLoggingStopped-    , gtsrsLatestDeliveryError-    , gtsrsLatestDigestDeliveryTime-    , gtsrsLatestNotificationAttemptSucceeded-    , gtsrsStartLoggingTime-    , gtsrsLatestNotificationError-    , gtsrsLatestDeliveryAttemptSucceeded-    , gtsrsIsLogging-    , gtsrsTimeLoggingStarted-    , gtsrsLatestDigestDeliveryError-    , gtsrsLatestDeliveryAttemptTime-    , gtsrsLatestDeliveryTime-    , gtsrsLatestCloudWatchLogsDeliveryTime-    , gtsrsLatestCloudWatchLogsDeliveryError-    , gtsrsLatestNotificationTime-    , gtsrsLatestNotificationAttemptTime-    , gtsrsStopLoggingTime-    , gtsrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | The name of a trail about which you want the current status.------------ /See:/ 'getTrailStatus' smart constructor.-newtype GetTrailStatus = GetTrailStatus'-  { _gtsName :: Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetTrailStatus' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gtsName' - Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-getTrailStatus-    :: Text -- ^ 'gtsName'-    -> GetTrailStatus-getTrailStatus pName_ = GetTrailStatus' {_gtsName = pName_}----- | Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another region), you must specify its ARN. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-gtsName :: Lens' GetTrailStatus Text-gtsName = lens _gtsName (\ s a -> s{_gtsName = a})--instance AWSRequest GetTrailStatus where-        type Rs GetTrailStatus = GetTrailStatusResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 GetTrailStatusResponse' <$>-                   (x .?> "TimeLoggingStopped") <*>-                     (x .?> "LatestDeliveryError")-                     <*> (x .?> "LatestDigestDeliveryTime")-                     <*> (x .?> "LatestNotificationAttemptSucceeded")-                     <*> (x .?> "StartLoggingTime")-                     <*> (x .?> "LatestNotificationError")-                     <*> (x .?> "LatestDeliveryAttemptSucceeded")-                     <*> (x .?> "IsLogging")-                     <*> (x .?> "TimeLoggingStarted")-                     <*> (x .?> "LatestDigestDeliveryError")-                     <*> (x .?> "LatestDeliveryAttemptTime")-                     <*> (x .?> "LatestDeliveryTime")-                     <*> (x .?> "LatestCloudWatchLogsDeliveryTime")-                     <*> (x .?> "LatestCloudWatchLogsDeliveryError")-                     <*> (x .?> "LatestNotificationTime")-                     <*> (x .?> "LatestNotificationAttemptTime")-                     <*> (x .?> "StopLoggingTime")-                     <*> (pure (fromEnum s)))--instance Hashable GetTrailStatus where--instance NFData GetTrailStatus where--instance ToHeaders GetTrailStatus where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetTrailStatus"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON GetTrailStatus where-        toJSON GetTrailStatus'{..}-          = object (catMaybes [Just ("Name" .= _gtsName)])--instance ToPath GetTrailStatus where-        toPath = const "/"--instance ToQuery GetTrailStatus where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'getTrailStatusResponse' smart constructor.-data GetTrailStatusResponse = GetTrailStatusResponse'-  { _gtsrsTimeLoggingStopped                 :: !(Maybe Text)-  , _gtsrsLatestDeliveryError                :: !(Maybe Text)-  , _gtsrsLatestDigestDeliveryTime           :: !(Maybe POSIX)-  , _gtsrsLatestNotificationAttemptSucceeded :: !(Maybe Text)-  , _gtsrsStartLoggingTime                   :: !(Maybe POSIX)-  , _gtsrsLatestNotificationError            :: !(Maybe Text)-  , _gtsrsLatestDeliveryAttemptSucceeded     :: !(Maybe Text)-  , _gtsrsIsLogging                          :: !(Maybe Bool)-  , _gtsrsTimeLoggingStarted                 :: !(Maybe Text)-  , _gtsrsLatestDigestDeliveryError          :: !(Maybe Text)-  , _gtsrsLatestDeliveryAttemptTime          :: !(Maybe Text)-  , _gtsrsLatestDeliveryTime                 :: !(Maybe POSIX)-  , _gtsrsLatestCloudWatchLogsDeliveryTime   :: !(Maybe POSIX)-  , _gtsrsLatestCloudWatchLogsDeliveryError  :: !(Maybe Text)-  , _gtsrsLatestNotificationTime             :: !(Maybe POSIX)-  , _gtsrsLatestNotificationAttemptTime      :: !(Maybe Text)-  , _gtsrsStopLoggingTime                    :: !(Maybe POSIX)-  , _gtsrsResponseStatus                     :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'GetTrailStatusResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gtsrsTimeLoggingStopped' - This field is deprecated.------ * 'gtsrsLatestDeliveryError' - Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic <http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses> in the Amazon S3 API Reference.------ * 'gtsrsLatestDigestDeliveryTime' - Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.------ * 'gtsrsLatestNotificationAttemptSucceeded' - This field is deprecated.------ * 'gtsrsStartLoggingTime' - Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.------ * 'gtsrsLatestNotificationError' - Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the <http://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide> .------ * 'gtsrsLatestDeliveryAttemptSucceeded' - This field is deprecated.------ * 'gtsrsIsLogging' - Whether the CloudTrail is currently logging AWS API calls.------ * 'gtsrsTimeLoggingStarted' - This field is deprecated.------ * 'gtsrsLatestDigestDeliveryError' - Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information see the topic <http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses> in the Amazon S3 API Reference.------ * 'gtsrsLatestDeliveryAttemptTime' - This field is deprecated.------ * 'gtsrsLatestDeliveryTime' - Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.------ * 'gtsrsLatestCloudWatchLogsDeliveryTime' - Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.------ * 'gtsrsLatestCloudWatchLogsDeliveryError' - Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.------ * 'gtsrsLatestNotificationTime' - Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.------ * 'gtsrsLatestNotificationAttemptTime' - This field is deprecated.------ * 'gtsrsStopLoggingTime' - Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.------ * 'gtsrsResponseStatus' - -- | The response status code.-getTrailStatusResponse-    :: Int -- ^ 'gtsrsResponseStatus'-    -> GetTrailStatusResponse-getTrailStatusResponse pResponseStatus_ =-  GetTrailStatusResponse'-    { _gtsrsTimeLoggingStopped = Nothing-    , _gtsrsLatestDeliveryError = Nothing-    , _gtsrsLatestDigestDeliveryTime = Nothing-    , _gtsrsLatestNotificationAttemptSucceeded = Nothing-    , _gtsrsStartLoggingTime = Nothing-    , _gtsrsLatestNotificationError = Nothing-    , _gtsrsLatestDeliveryAttemptSucceeded = Nothing-    , _gtsrsIsLogging = Nothing-    , _gtsrsTimeLoggingStarted = Nothing-    , _gtsrsLatestDigestDeliveryError = Nothing-    , _gtsrsLatestDeliveryAttemptTime = Nothing-    , _gtsrsLatestDeliveryTime = Nothing-    , _gtsrsLatestCloudWatchLogsDeliveryTime = Nothing-    , _gtsrsLatestCloudWatchLogsDeliveryError = Nothing-    , _gtsrsLatestNotificationTime = Nothing-    , _gtsrsLatestNotificationAttemptTime = Nothing-    , _gtsrsStopLoggingTime = Nothing-    , _gtsrsResponseStatus = pResponseStatus_-    }----- | This field is deprecated.-gtsrsTimeLoggingStopped :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsTimeLoggingStopped = lens _gtsrsTimeLoggingStopped (\ s a -> s{_gtsrsTimeLoggingStopped = a})---- | Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information see the topic <http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses> in the Amazon S3 API Reference.-gtsrsLatestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestDeliveryError = lens _gtsrsLatestDeliveryError (\ s a -> s{_gtsrsLatestDeliveryError = a})---- | Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.-gtsrsLatestDigestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsLatestDigestDeliveryTime = lens _gtsrsLatestDigestDeliveryTime (\ s a -> s{_gtsrsLatestDigestDeliveryTime = a}) . mapping _Time---- | This field is deprecated.-gtsrsLatestNotificationAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestNotificationAttemptSucceeded = lens _gtsrsLatestNotificationAttemptSucceeded (\ s a -> s{_gtsrsLatestNotificationAttemptSucceeded = a})---- | Specifies the most recent date and time when CloudTrail started recording API calls for an AWS account.-gtsrsStartLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsStartLoggingTime = lens _gtsrsStartLoggingTime (\ s a -> s{_gtsrsStartLoggingTime = a}) . mapping _Time---- | Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the <http://docs.aws.amazon.com/sns/latest/dg/welcome.html Amazon SNS Developer Guide> .-gtsrsLatestNotificationError :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestNotificationError = lens _gtsrsLatestNotificationError (\ s a -> s{_gtsrsLatestNotificationError = a})---- | This field is deprecated.-gtsrsLatestDeliveryAttemptSucceeded :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestDeliveryAttemptSucceeded = lens _gtsrsLatestDeliveryAttemptSucceeded (\ s a -> s{_gtsrsLatestDeliveryAttemptSucceeded = a})---- | Whether the CloudTrail is currently logging AWS API calls.-gtsrsIsLogging :: Lens' GetTrailStatusResponse (Maybe Bool)-gtsrsIsLogging = lens _gtsrsIsLogging (\ s a -> s{_gtsrsIsLogging = a})---- | This field is deprecated.-gtsrsTimeLoggingStarted :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsTimeLoggingStarted = lens _gtsrsTimeLoggingStarted (\ s a -> s{_gtsrsTimeLoggingStarted = a})---- | Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information see the topic <http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html Error Responses> in the Amazon S3 API Reference.-gtsrsLatestDigestDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestDigestDeliveryError = lens _gtsrsLatestDigestDeliveryError (\ s a -> s{_gtsrsLatestDigestDeliveryError = a})---- | This field is deprecated.-gtsrsLatestDeliveryAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestDeliveryAttemptTime = lens _gtsrsLatestDeliveryAttemptTime (\ s a -> s{_gtsrsLatestDeliveryAttemptTime = a})---- | Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.-gtsrsLatestDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsLatestDeliveryTime = lens _gtsrsLatestDeliveryTime (\ s a -> s{_gtsrsLatestDeliveryTime = a}) . mapping _Time---- | Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.-gtsrsLatestCloudWatchLogsDeliveryTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsLatestCloudWatchLogsDeliveryTime = lens _gtsrsLatestCloudWatchLogsDeliveryTime (\ s a -> s{_gtsrsLatestCloudWatchLogsDeliveryTime = a}) . mapping _Time---- | Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.-gtsrsLatestCloudWatchLogsDeliveryError :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestCloudWatchLogsDeliveryError = lens _gtsrsLatestCloudWatchLogsDeliveryError (\ s a -> s{_gtsrsLatestCloudWatchLogsDeliveryError = a})---- | Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.-gtsrsLatestNotificationTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsLatestNotificationTime = lens _gtsrsLatestNotificationTime (\ s a -> s{_gtsrsLatestNotificationTime = a}) . mapping _Time---- | This field is deprecated.-gtsrsLatestNotificationAttemptTime :: Lens' GetTrailStatusResponse (Maybe Text)-gtsrsLatestNotificationAttemptTime = lens _gtsrsLatestNotificationAttemptTime (\ s a -> s{_gtsrsLatestNotificationAttemptTime = a})---- | Specifies the most recent date and time when CloudTrail stopped recording API calls for an AWS account.-gtsrsStopLoggingTime :: Lens' GetTrailStatusResponse (Maybe UTCTime)-gtsrsStopLoggingTime = lens _gtsrsStopLoggingTime (\ s a -> s{_gtsrsStopLoggingTime = a}) . mapping _Time---- | -- | The response status code.-gtsrsResponseStatus :: Lens' GetTrailStatusResponse Int-gtsrsResponseStatus = lens _gtsrsResponseStatus (\ s a -> s{_gtsrsResponseStatus = a})--instance NFData GetTrailStatusResponse where
− gen/Network/AWS/CloudTrail/ListPublicKeys.hs
@@ -1,173 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.ListPublicKeys--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.-------module Network.AWS.CloudTrail.ListPublicKeys-    (-    -- * Creating a Request-      listPublicKeys-    , ListPublicKeys-    -- * Request Lenses-    , lpkStartTime-    , lpkNextToken-    , lpkEndTime--    -- * Destructuring the Response-    , listPublicKeysResponse-    , ListPublicKeysResponse-    -- * Response Lenses-    , lpkrsPublicKeyList-    , lpkrsNextToken-    , lpkrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Requests the public keys for a specified time range.------------ /See:/ 'listPublicKeys' smart constructor.-data ListPublicKeys = ListPublicKeys'-  { _lpkStartTime :: !(Maybe POSIX)-  , _lpkNextToken :: !(Maybe Text)-  , _lpkEndTime   :: !(Maybe POSIX)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListPublicKeys' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lpkStartTime' - Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.------ * 'lpkNextToken' - Reserved for future use.------ * 'lpkEndTime' - Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.-listPublicKeys-    :: ListPublicKeys-listPublicKeys =-  ListPublicKeys'-    {_lpkStartTime = Nothing, _lpkNextToken = Nothing, _lpkEndTime = Nothing}----- | Optionally specifies, in UTC, the start of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used, and the current public key is returned.-lpkStartTime :: Lens' ListPublicKeys (Maybe UTCTime)-lpkStartTime = lens _lpkStartTime (\ s a -> s{_lpkStartTime = a}) . mapping _Time---- | Reserved for future use.-lpkNextToken :: Lens' ListPublicKeys (Maybe Text)-lpkNextToken = lens _lpkNextToken (\ s a -> s{_lpkNextToken = a})---- | Optionally specifies, in UTC, the end of the time range to look up public keys for CloudTrail digest files. If not specified, the current time is used.-lpkEndTime :: Lens' ListPublicKeys (Maybe UTCTime)-lpkEndTime = lens _lpkEndTime (\ s a -> s{_lpkEndTime = a}) . mapping _Time--instance AWSRequest ListPublicKeys where-        type Rs ListPublicKeys = ListPublicKeysResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 ListPublicKeysResponse' <$>-                   (x .?> "PublicKeyList" .!@ mempty) <*>-                     (x .?> "NextToken")-                     <*> (pure (fromEnum s)))--instance Hashable ListPublicKeys where--instance NFData ListPublicKeys where--instance ToHeaders ListPublicKeys where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListPublicKeys"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON ListPublicKeys where-        toJSON ListPublicKeys'{..}-          = object-              (catMaybes-                 [("StartTime" .=) <$> _lpkStartTime,-                  ("NextToken" .=) <$> _lpkNextToken,-                  ("EndTime" .=) <$> _lpkEndTime])--instance ToPath ListPublicKeys where-        toPath = const "/"--instance ToQuery ListPublicKeys where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'listPublicKeysResponse' smart constructor.-data ListPublicKeysResponse = ListPublicKeysResponse'-  { _lpkrsPublicKeyList  :: !(Maybe [PublicKey])-  , _lpkrsNextToken      :: !(Maybe Text)-  , _lpkrsResponseStatus :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListPublicKeysResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lpkrsPublicKeyList' - Contains an array of PublicKey objects.------ * 'lpkrsNextToken' - Reserved for future use.------ * 'lpkrsResponseStatus' - -- | The response status code.-listPublicKeysResponse-    :: Int -- ^ 'lpkrsResponseStatus'-    -> ListPublicKeysResponse-listPublicKeysResponse pResponseStatus_ =-  ListPublicKeysResponse'-    { _lpkrsPublicKeyList = Nothing-    , _lpkrsNextToken = Nothing-    , _lpkrsResponseStatus = pResponseStatus_-    }----- | Contains an array of PublicKey objects.-lpkrsPublicKeyList :: Lens' ListPublicKeysResponse [PublicKey]-lpkrsPublicKeyList = lens _lpkrsPublicKeyList (\ s a -> s{_lpkrsPublicKeyList = a}) . _Default . _Coerce---- | Reserved for future use.-lpkrsNextToken :: Lens' ListPublicKeysResponse (Maybe Text)-lpkrsNextToken = lens _lpkrsNextToken (\ s a -> s{_lpkrsNextToken = a})---- | -- | The response status code.-lpkrsResponseStatus :: Lens' ListPublicKeysResponse Int-lpkrsResponseStatus = lens _lpkrsResponseStatus (\ s a -> s{_lpkrsResponseStatus = a})--instance NFData ListPublicKeysResponse where
− gen/Network/AWS/CloudTrail/ListTags.hs
@@ -1,162 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.ListTags--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Lists the tags for the trail in the current region.-------module Network.AWS.CloudTrail.ListTags-    (-    -- * Creating a Request-      listTags-    , ListTags-    -- * Request Lenses-    , ltNextToken-    , ltResourceIdList--    -- * Destructuring the Response-    , listTagsResponse-    , ListTagsResponse-    -- * Response Lenses-    , ltrsNextToken-    , ltrsResourceTagList-    , ltrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Specifies a list of trail tags to return.------------ /See:/ 'listTags' smart constructor.-data ListTags = ListTags'-  { _ltNextToken      :: !(Maybe Text)-  , _ltResourceIdList :: ![Text]-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListTags' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ltNextToken' - Reserved for future use.------ * 'ltResourceIdList' - Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-listTags-    :: ListTags-listTags = ListTags' {_ltNextToken = Nothing, _ltResourceIdList = mempty}----- | Reserved for future use.-ltNextToken :: Lens' ListTags (Maybe Text)-ltNextToken = lens _ltNextToken (\ s a -> s{_ltNextToken = a})---- | Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-ltResourceIdList :: Lens' ListTags [Text]-ltResourceIdList = lens _ltResourceIdList (\ s a -> s{_ltResourceIdList = a}) . _Coerce--instance AWSRequest ListTags where-        type Rs ListTags = ListTagsResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 ListTagsResponse' <$>-                   (x .?> "NextToken") <*>-                     (x .?> "ResourceTagList" .!@ mempty)-                     <*> (pure (fromEnum s)))--instance Hashable ListTags where--instance NFData ListTags where--instance ToHeaders ListTags where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.ListTags"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON ListTags where-        toJSON ListTags'{..}-          = object-              (catMaybes-                 [("NextToken" .=) <$> _ltNextToken,-                  Just ("ResourceIdList" .= _ltResourceIdList)])--instance ToPath ListTags where-        toPath = const "/"--instance ToQuery ListTags where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'listTagsResponse' smart constructor.-data ListTagsResponse = ListTagsResponse'-  { _ltrsNextToken       :: !(Maybe Text)-  , _ltrsResourceTagList :: !(Maybe [ResourceTag])-  , _ltrsResponseStatus  :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'ListTagsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ltrsNextToken' - Reserved for future use.------ * 'ltrsResourceTagList' - A list of resource tags.------ * 'ltrsResponseStatus' - -- | The response status code.-listTagsResponse-    :: Int -- ^ 'ltrsResponseStatus'-    -> ListTagsResponse-listTagsResponse pResponseStatus_ =-  ListTagsResponse'-    { _ltrsNextToken = Nothing-    , _ltrsResourceTagList = Nothing-    , _ltrsResponseStatus = pResponseStatus_-    }----- | Reserved for future use.-ltrsNextToken :: Lens' ListTagsResponse (Maybe Text)-ltrsNextToken = lens _ltrsNextToken (\ s a -> s{_ltrsNextToken = a})---- | A list of resource tags.-ltrsResourceTagList :: Lens' ListTagsResponse [ResourceTag]-ltrsResourceTagList = lens _ltrsResourceTagList (\ s a -> s{_ltrsResourceTagList = a}) . _Default . _Coerce---- | -- | The response status code.-ltrsResponseStatus :: Lens' ListTagsResponse Int-ltrsResponseStatus = lens _ltrsResponseStatus (\ s a -> s{_ltrsResponseStatus = a})--instance NFData ListTagsResponse where
− gen/Network/AWS/CloudTrail/LookupEvents.hs
@@ -1,225 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.LookupEvents--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Looks up API activity events captured by CloudTrail that create, update, or delete resources in your account. Events for a region can be looked up for the times in which you had CloudTrail turned on in that region during the last seven days. Lookup supports the following attributes:---------     * Event ID------     * Event name------     * Event source------     * Resource name------     * Resource type------     * User name------------ All attributes are optional. The default number of results returned is 10, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.------ /Important:/ The rate of lookup requests is limited to one per second per account. If this limit is exceeded, a throttling error occurs.------ /Important:/ Events that occurred during the selected time range will not be available for lookup if CloudTrail logging was not enabled when the events occurred.--------- This operation returns paginated results.-module Network.AWS.CloudTrail.LookupEvents-    (-    -- * Creating a Request-      lookupEvents-    , LookupEvents-    -- * Request Lenses-    , leStartTime-    , leLookupAttributes-    , leNextToken-    , leEndTime-    , leMaxResults--    -- * Destructuring the Response-    , lookupEventsResponse-    , LookupEventsResponse-    -- * Response Lenses-    , lersNextToken-    , lersEvents-    , lersResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Pager-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Contains a request for LookupEvents.------------ /See:/ 'lookupEvents' smart constructor.-data LookupEvents = LookupEvents'-  { _leStartTime        :: !(Maybe POSIX)-  , _leLookupAttributes :: !(Maybe [LookupAttribute])-  , _leNextToken        :: !(Maybe Text)-  , _leEndTime          :: !(Maybe POSIX)-  , _leMaxResults       :: !(Maybe Nat)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'LookupEvents' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'leStartTime' - Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.------ * 'leLookupAttributes' - Contains a list of lookup attributes. Currently the list can contain only one item.------ * 'leNextToken' - The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.------ * 'leEndTime' - Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.------ * 'leMaxResults' - The number of events to return. Possible values are 1 through 50. The default is 10.-lookupEvents-    :: LookupEvents-lookupEvents =-  LookupEvents'-    { _leStartTime = Nothing-    , _leLookupAttributes = Nothing-    , _leNextToken = Nothing-    , _leEndTime = Nothing-    , _leMaxResults = Nothing-    }----- | Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned.-leStartTime :: Lens' LookupEvents (Maybe UTCTime)-leStartTime = lens _leStartTime (\ s a -> s{_leStartTime = a}) . mapping _Time---- | Contains a list of lookup attributes. Currently the list can contain only one item.-leLookupAttributes :: Lens' LookupEvents [LookupAttribute]-leLookupAttributes = lens _leLookupAttributes (\ s a -> s{_leLookupAttributes = a}) . _Default . _Coerce---- | The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.-leNextToken :: Lens' LookupEvents (Maybe Text)-leNextToken = lens _leNextToken (\ s a -> s{_leNextToken = a})---- | Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned.-leEndTime :: Lens' LookupEvents (Maybe UTCTime)-leEndTime = lens _leEndTime (\ s a -> s{_leEndTime = a}) . mapping _Time---- | The number of events to return. Possible values are 1 through 50. The default is 10.-leMaxResults :: Lens' LookupEvents (Maybe Natural)-leMaxResults = lens _leMaxResults (\ s a -> s{_leMaxResults = a}) . mapping _Nat--instance AWSPager LookupEvents where-        page rq rs-          | stop (rs ^. lersNextToken) = Nothing-          | stop (rs ^. lersEvents) = Nothing-          | otherwise =-            Just $ rq & leNextToken .~ rs ^. lersNextToken--instance AWSRequest LookupEvents where-        type Rs LookupEvents = LookupEventsResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 LookupEventsResponse' <$>-                   (x .?> "NextToken") <*> (x .?> "Events" .!@ mempty)-                     <*> (pure (fromEnum s)))--instance Hashable LookupEvents where--instance NFData LookupEvents where--instance ToHeaders LookupEvents where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.LookupEvents"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON LookupEvents where-        toJSON LookupEvents'{..}-          = object-              (catMaybes-                 [("StartTime" .=) <$> _leStartTime,-                  ("LookupAttributes" .=) <$> _leLookupAttributes,-                  ("NextToken" .=) <$> _leNextToken,-                  ("EndTime" .=) <$> _leEndTime,-                  ("MaxResults" .=) <$> _leMaxResults])--instance ToPath LookupEvents where-        toPath = const "/"--instance ToQuery LookupEvents where-        toQuery = const mempty---- | Contains a response to a LookupEvents action.------------ /See:/ 'lookupEventsResponse' smart constructor.-data LookupEventsResponse = LookupEventsResponse'-  { _lersNextToken      :: !(Maybe Text)-  , _lersEvents         :: !(Maybe [Event])-  , _lersResponseStatus :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'LookupEventsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lersNextToken' - The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.------ * 'lersEvents' - A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.------ * 'lersResponseStatus' - -- | The response status code.-lookupEventsResponse-    :: Int -- ^ 'lersResponseStatus'-    -> LookupEventsResponse-lookupEventsResponse pResponseStatus_ =-  LookupEventsResponse'-    { _lersNextToken = Nothing-    , _lersEvents = Nothing-    , _lersResponseStatus = pResponseStatus_-    }----- | The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.-lersNextToken :: Lens' LookupEventsResponse (Maybe Text)-lersNextToken = lens _lersNextToken (\ s a -> s{_lersNextToken = a})---- | A list of events returned based on the lookup attributes specified and the CloudTrail event. The events list is sorted by time. The most recent event is listed first.-lersEvents :: Lens' LookupEventsResponse [Event]-lersEvents = lens _lersEvents (\ s a -> s{_lersEvents = a}) . _Default . _Coerce---- | -- | The response status code.-lersResponseStatus :: Lens' LookupEventsResponse Int-lersResponseStatus = lens _lersResponseStatus (\ s a -> s{_lersResponseStatus = a})--instance NFData LookupEventsResponse where
− gen/Network/AWS/CloudTrail/PutEventSelectors.hs
@@ -1,174 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.PutEventSelectors--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Configures an event selector for your trail. 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 selectors in 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.--------- Example------     * You create an event selector for a trail and specify that you want write-only events.------     * The EC2 @GetConsoleOutput@ and @RunInstances@ API operations occur in your account.------     * CloudTrail evaluates whether the events match your event selectors.------     * The @RunInstances@ is a write-only event and it matches your event selector. The trail logs the event.------     * The @GetConsoleOutput@ is a read-only event but it doesn't match your event selector. The trail doesn't log the event.------------ The @PutEventSelectors@ operation must be called from the region in which the trail was created; otherwise, an @InvalidHomeRegionException@ is thrown.------ You can configure up to five event selectors for each trail. For more information, see <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html Logging Data and Management Events for Trails > in the /AWS CloudTrail User Guide/ .----module Network.AWS.CloudTrail.PutEventSelectors-    (-    -- * Creating a Request-      putEventSelectors-    , PutEventSelectors-    -- * Request Lenses-    , pesTrailName-    , pesEventSelectors--    -- * Destructuring the Response-    , putEventSelectorsResponse-    , PutEventSelectorsResponse-    -- * Response Lenses-    , pesrsTrailARN-    , pesrsEventSelectors-    , pesrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | /See:/ 'putEventSelectors' smart constructor.-data PutEventSelectors = PutEventSelectors'-  { _pesTrailName      :: !Text-  , _pesEventSelectors :: ![EventSelector]-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutEventSelectors' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pesTrailName' - Specifies the name of the trail or trail ARN. If you specify a trail name, the string 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) If you specify a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@------ * 'pesEventSelectors' - Specifies the settings for your event selectors. You can configure up to five event selectors for a trail.-putEventSelectors-    :: Text -- ^ 'pesTrailName'-    -> PutEventSelectors-putEventSelectors pTrailName_ =-  PutEventSelectors' {_pesTrailName = pTrailName_, _pesEventSelectors = mempty}----- | Specifies the name of the trail or trail ARN. If you specify a trail name, the string 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) If you specify a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-pesTrailName :: Lens' PutEventSelectors Text-pesTrailName = lens _pesTrailName (\ s a -> s{_pesTrailName = a})---- | Specifies the settings for your event selectors. You can configure up to five event selectors for a trail.-pesEventSelectors :: Lens' PutEventSelectors [EventSelector]-pesEventSelectors = lens _pesEventSelectors (\ s a -> s{_pesEventSelectors = a}) . _Coerce--instance AWSRequest PutEventSelectors where-        type Rs PutEventSelectors = PutEventSelectorsResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 PutEventSelectorsResponse' <$>-                   (x .?> "TrailARN") <*>-                     (x .?> "EventSelectors" .!@ mempty)-                     <*> (pure (fromEnum s)))--instance Hashable PutEventSelectors where--instance NFData PutEventSelectors where--instance ToHeaders PutEventSelectors where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.PutEventSelectors"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON PutEventSelectors where-        toJSON PutEventSelectors'{..}-          = object-              (catMaybes-                 [Just ("TrailName" .= _pesTrailName),-                  Just ("EventSelectors" .= _pesEventSelectors)])--instance ToPath PutEventSelectors where-        toPath = const "/"--instance ToQuery PutEventSelectors where-        toQuery = const mempty---- | /See:/ 'putEventSelectorsResponse' smart constructor.-data PutEventSelectorsResponse = PutEventSelectorsResponse'-  { _pesrsTrailARN       :: !(Maybe Text)-  , _pesrsEventSelectors :: !(Maybe [EventSelector])-  , _pesrsResponseStatus :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'PutEventSelectorsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pesrsTrailARN' - Specifies the ARN of the trail that was updated with event selectors. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@------ * 'pesrsEventSelectors' - Specifies the event selectors configured for your trail.------ * 'pesrsResponseStatus' - -- | The response status code.-putEventSelectorsResponse-    :: Int -- ^ 'pesrsResponseStatus'-    -> PutEventSelectorsResponse-putEventSelectorsResponse pResponseStatus_ =-  PutEventSelectorsResponse'-    { _pesrsTrailARN = Nothing-    , _pesrsEventSelectors = Nothing-    , _pesrsResponseStatus = pResponseStatus_-    }----- | Specifies the ARN of the trail that was updated with event selectors. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-pesrsTrailARN :: Lens' PutEventSelectorsResponse (Maybe Text)-pesrsTrailARN = lens _pesrsTrailARN (\ s a -> s{_pesrsTrailARN = a})---- | Specifies the event selectors configured for your trail.-pesrsEventSelectors :: Lens' PutEventSelectorsResponse [EventSelector]-pesrsEventSelectors = lens _pesrsEventSelectors (\ s a -> s{_pesrsEventSelectors = a}) . _Default . _Coerce---- | -- | The response status code.-pesrsResponseStatus :: Lens' PutEventSelectorsResponse Int-pesrsResponseStatus = lens _pesrsResponseStatus (\ s a -> s{_pesrsResponseStatus = a})--instance NFData PutEventSelectorsResponse where
− gen/Network/AWS/CloudTrail/RemoveTags.hs
@@ -1,141 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.RemoveTags--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Removes the specified tags from a trail.-------module Network.AWS.CloudTrail.RemoveTags-    (-    -- * Creating a Request-      removeTags-    , RemoveTags-    -- * Request Lenses-    , rtTagsList-    , rtResourceId--    -- * Destructuring the Response-    , removeTagsResponse-    , RemoveTagsResponse-    -- * Response Lenses-    , rtrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Specifies the tags to remove from a trail.------------ /See:/ 'removeTags' smart constructor.-data RemoveTags = RemoveTags'-  { _rtTagsList   :: !(Maybe [Tag])-  , _rtResourceId :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'RemoveTags' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rtTagsList' - Specifies a list of tags to be removed.------ * 'rtResourceId' - Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-removeTags-    :: Text -- ^ 'rtResourceId'-    -> RemoveTags-removeTags pResourceId_ =-  RemoveTags' {_rtTagsList = Nothing, _rtResourceId = pResourceId_}----- | Specifies a list of tags to be removed.-rtTagsList :: Lens' RemoveTags [Tag]-rtTagsList = lens _rtTagsList (\ s a -> s{_rtTagsList = a}) . _Default . _Coerce---- | Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-rtResourceId :: Lens' RemoveTags Text-rtResourceId = lens _rtResourceId (\ s a -> s{_rtResourceId = a})--instance AWSRequest RemoveTags where-        type Rs RemoveTags = RemoveTagsResponse-        request = postJSON cloudTrail-        response-          = receiveEmpty-              (\ s h x ->-                 RemoveTagsResponse' <$> (pure (fromEnum s)))--instance Hashable RemoveTags where--instance NFData RemoveTags where--instance ToHeaders RemoveTags where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.RemoveTags"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON RemoveTags where-        toJSON RemoveTags'{..}-          = object-              (catMaybes-                 [("TagsList" .=) <$> _rtTagsList,-                  Just ("ResourceId" .= _rtResourceId)])--instance ToPath RemoveTags where-        toPath = const "/"--instance ToQuery RemoveTags where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'removeTagsResponse' smart constructor.-newtype RemoveTagsResponse = RemoveTagsResponse'-  { _rtrsResponseStatus :: Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'RemoveTagsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rtrsResponseStatus' - -- | The response status code.-removeTagsResponse-    :: Int -- ^ 'rtrsResponseStatus'-    -> RemoveTagsResponse-removeTagsResponse pResponseStatus_ =-  RemoveTagsResponse' {_rtrsResponseStatus = pResponseStatus_}----- | -- | The response status code.-rtrsResponseStatus :: Lens' RemoveTagsResponse Int-rtrsResponseStatus = lens _rtrsResponseStatus (\ s a -> s{_rtrsResponseStatus = a})--instance NFData RemoveTagsResponse where
− gen/Network/AWS/CloudTrail/StartLogging.hs
@@ -1,129 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.StartLogging--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ 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.-------module Network.AWS.CloudTrail.StartLogging-    (-    -- * Creating a Request-      startLogging-    , StartLogging-    -- * Request Lenses-    , sName--    -- * Destructuring the Response-    , startLoggingResponse-    , StartLoggingResponse-    -- * Response Lenses-    , srsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | The request to CloudTrail to start logging AWS API calls for an account.------------ /See:/ 'startLogging' smart constructor.-newtype StartLogging = StartLogging'-  { _sName :: Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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@-startLogging-    :: Text -- ^ 'sName'-    -> StartLogging-startLogging pName_ = StartLogging' {_sName = pName_}----- | 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@-sName :: Lens' StartLogging Text-sName = lens _sName (\ s a -> s{_sName = a})--instance AWSRequest StartLogging where-        type Rs StartLogging = StartLoggingResponse-        request = postJSON cloudTrail-        response-          = receiveEmpty-              (\ s h x ->-                 StartLoggingResponse' <$> (pure (fromEnum s)))--instance Hashable StartLogging where--instance NFData StartLogging where--instance ToHeaders StartLogging where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StartLogging"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON StartLogging where-        toJSON StartLogging'{..}-          = object (catMaybes [Just ("Name" .= _sName)])--instance ToPath StartLogging where-        toPath = const "/"--instance ToQuery StartLogging where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'startLoggingResponse' smart constructor.-newtype StartLoggingResponse = StartLoggingResponse'-  { _srsResponseStatus :: Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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:------ * 'srsResponseStatus' - -- | The response status code.-startLoggingResponse-    :: Int -- ^ 'srsResponseStatus'-    -> StartLoggingResponse-startLoggingResponse pResponseStatus_ =-  StartLoggingResponse' {_srsResponseStatus = pResponseStatus_}----- | -- | The response status code.-srsResponseStatus :: Lens' StartLoggingResponse Int-srsResponseStatus = lens _srsResponseStatus (\ s a -> s{_srsResponseStatus = a})--instance NFData StartLoggingResponse where
− gen/Network/AWS/CloudTrail/StopLogging.hs
@@ -1,129 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.StopLogging--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ 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.-------module Network.AWS.CloudTrail.StopLogging-    (-    -- * Creating a Request-      stopLogging-    , StopLogging-    -- * Request Lenses-    , slName--    -- * Destructuring the Response-    , stopLoggingResponse-    , StopLoggingResponse-    -- * Response Lenses-    , slrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Passes the request to CloudTrail to stop logging AWS API calls for the specified account.------------ /See:/ 'stopLogging' smart constructor.-newtype StopLogging = StopLogging'-  { _slName :: Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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@-stopLogging-    :: Text -- ^ 'slName'-    -> StopLogging-stopLogging pName_ = StopLogging' {_slName = pName_}----- | 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@-slName :: Lens' StopLogging Text-slName = lens _slName (\ s a -> s{_slName = a})--instance AWSRequest StopLogging where-        type Rs StopLogging = StopLoggingResponse-        request = postJSON cloudTrail-        response-          = receiveEmpty-              (\ s h x ->-                 StopLoggingResponse' <$> (pure (fromEnum s)))--instance Hashable StopLogging where--instance NFData StopLogging where--instance ToHeaders StopLogging where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.StopLogging"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON StopLogging where-        toJSON StopLogging'{..}-          = object (catMaybes [Just ("Name" .= _slName)])--instance ToPath StopLogging where-        toPath = const "/"--instance ToQuery StopLogging where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'stopLoggingResponse' smart constructor.-newtype StopLoggingResponse = StopLoggingResponse'-  { _slrsResponseStatus :: Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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:------ * 'slrsResponseStatus' - -- | The response status code.-stopLoggingResponse-    :: Int -- ^ 'slrsResponseStatus'-    -> StopLoggingResponse-stopLoggingResponse pResponseStatus_ =-  StopLoggingResponse' {_slrsResponseStatus = pResponseStatus_}----- | -- | The response status code.-slrsResponseStatus :: Lens' StopLoggingResponse Int-slrsResponseStatus = lens _slrsResponseStatus (\ s a -> s{_slrsResponseStatus = a})--instance NFData StopLoggingResponse where
− gen/Network/AWS/CloudTrail/Types.hs
@@ -1,469 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.Types--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudTrail.Types-    (-    -- * Service Configuration-      cloudTrail--    -- * Errors-    , _InvalidTimeRangeException-    , _InsufficientS3BucketPolicyException-    , _MaximumNumberOfTrailsExceededException-    , _UnsupportedOperationException-    , _KMSKeyDisabledException-    , _InsufficientEncryptionPolicyException-    , _InsufficientSNSTopicPolicyException-    , _InvalidCloudWatchLogsRoleARNException-    , _TagsLimitExceededException-    , _CloudTrailARNInvalidException-    , _InvalidLookupAttributesException-    , _InvalidTrailNameException-    , _InvalidSNSTopicNameException-    , _ResourceTypeNotSupportedException-    , _CloudWatchLogsDeliveryUnavailableException-    , _KMSKeyNotFoundException-    , _TrailNotFoundException-    , _InvalidEventSelectorsException-    , _TrailNotProvidedException-    , _InvalidS3BucketNameException-    , _InvalidCloudWatchLogsLogGroupARNException-    , _KMSException-    , _S3BucketDoesNotExistException-    , _InvalidNextTokenException-    , _InvalidTagParameterException-    , _OperationNotPermittedException-    , _InvalidTokenException-    , _InvalidMaxResultsException-    , _TrailAlreadyExistsException-    , _InvalidS3PrefixException-    , _ResourceNotFoundException-    , _InvalidParameterCombinationException-    , _InvalidKMSKeyIdException-    , _InvalidHomeRegionException--    -- * LookupAttributeKey-    , LookupAttributeKey (..)--    -- * ReadWriteType-    , ReadWriteType (..)--    -- * DataResource-    , DataResource-    , dataResource-    , drValues-    , drType--    -- * Event-    , Event-    , event-    , eUsername-    , eResources-    , eEventTime-    , eCloudTrailEvent-    , eEventName-    , eEventSource-    , eEventId--    -- * EventSelector-    , EventSelector-    , eventSelector-    , esDataResources-    , esReadWriteType-    , esIncludeManagementEvents--    -- * LookupAttribute-    , LookupAttribute-    , lookupAttribute-    , laAttributeKey-    , laAttributeValue--    -- * PublicKey-    , PublicKey-    , publicKey-    , pkFingerprint-    , pkValidityEndTime-    , pkValue-    , pkValidityStartTime--    -- * Resource-    , Resource-    , resource-    , rResourceType-    , rResourceName--    -- * ResourceTag-    , ResourceTag-    , resourceTag-    , rResourceId-    , rTagsList--    -- * Tag-    , Tag-    , tag-    , tagValue-    , tagKey--    -- * Trail-    , Trail-    , trail-    , tLogFileValidationEnabled-    , tTrailARN-    , tS3KeyPrefix-    , tSNSTopicARN-    , tSNSTopicName-    , tCloudWatchLogsLogGroupARN-    , tKMSKeyId-    , tHomeRegion-    , tName-    , tIncludeGlobalServiceEvents-    , tHasCustomEventSelectors-    , tCloudWatchLogsRoleARN-    , tS3BucketName-    , tIsMultiRegionTrail-    ) where--import Network.AWS.CloudTrail.Types.Product-import Network.AWS.CloudTrail.Types.Sum-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Sign.V4---- | API version @2013-11-01@ of the Amazon CloudTrail SDK configuration.-cloudTrail :: Service-cloudTrail =-  Service-    { _svcAbbrev = "CloudTrail"-    , _svcSigner = v4-    , _svcPrefix = "cloudtrail"-    , _svcVersion = "2013-11-01"-    , _svcEndpoint = defaultEndpoint cloudTrail-    , _svcTimeout = Just 70-    , _svcCheck = statusSuccess-    , _svcError = parseJSONError "CloudTrail"-    , _svcRetry = retry-    }-  where-    retry =-      Exponential-        { _retryBase = 5.0e-2-        , _retryGrowth = 2-        , _retryAttempts = 5-        , _retryCheck = check-        }-    check e-      | has (hasCode "ThrottledException" . hasStatus 400) e =-        Just "throttled_exception"-      | has (hasStatus 429) e = Just "too_many_requests"-      | has (hasCode "ThrottlingException" . hasStatus 400) e =-        Just "throttling_exception"-      | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"-      | has (hasStatus 504) e = Just "gateway_timeout"-      | has (hasCode "RequestThrottledException" . hasStatus 400) e =-        Just "request_throttled_exception"-      | has (hasStatus 502) e = Just "bad_gateway"-      | has (hasStatus 503) e = Just "service_unavailable"-      | has (hasStatus 500) e = Just "general_server_error"-      | has (hasStatus 509) e = Just "limit_exceeded"-      | otherwise = Nothing----- | 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.-------_InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidTimeRangeException =-  _MatchServiceError cloudTrail "InvalidTimeRangeException"----- | This exception is thrown when the policy on the S3 bucket is not sufficient.-------_InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError-_InsufficientS3BucketPolicyException =-  _MatchServiceError cloudTrail "InsufficientS3BucketPolicyException"----- | This exception is thrown when the maximum number of trails is reached.-------_MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError-_MaximumNumberOfTrailsExceededException =-  _MatchServiceError cloudTrail "MaximumNumberOfTrailsExceededException"----- | This exception is thrown when the requested operation is not supported.-------_UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError-_UnsupportedOperationException =-  _MatchServiceError cloudTrail "UnsupportedOperationException"----- | This exception is deprecated.-------_KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError-_KMSKeyDisabledException =-  _MatchServiceError cloudTrail "KmsKeyDisabledException"----- | This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.-------_InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError-_InsufficientEncryptionPolicyException =-  _MatchServiceError cloudTrail "InsufficientEncryptionPolicyException"----- | This exception is thrown when the policy on the SNS topic is not sufficient.-------_InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError-_InsufficientSNSTopicPolicyException =-  _MatchServiceError cloudTrail "InsufficientSnsTopicPolicyException"----- | This exception is thrown when the provided role is not valid.-------_InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidCloudWatchLogsRoleARNException =-  _MatchServiceError cloudTrail "InvalidCloudWatchLogsRoleArnException"----- | The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.-------_TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError-_TagsLimitExceededException =-  _MatchServiceError cloudTrail "TagsLimitExceededException"----- | 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@----_CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError-_CloudTrailARNInvalidException =-  _MatchServiceError cloudTrail "CloudTrailARNInvalidException"----- | Occurs when an invalid lookup attribute is specified.-------_InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidLookupAttributesException =-  _MatchServiceError cloudTrail "InvalidLookupAttributesException"----- | 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)----------_InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidTrailNameException =-  _MatchServiceError cloudTrail "InvalidTrailNameException"----- | This exception is thrown when the provided SNS topic name is not valid.-------_InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidSNSTopicNameException =-  _MatchServiceError cloudTrail "InvalidSnsTopicNameException"----- | This exception is thrown when the specified resource type is not supported by CloudTrail.-------_ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError-_ResourceTypeNotSupportedException =-  _MatchServiceError cloudTrail "ResourceTypeNotSupportedException"----- | Cannot set a CloudWatch Logs delivery for this region.-------_CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError-_CloudWatchLogsDeliveryUnavailableException =-  _MatchServiceError cloudTrail "CloudWatchLogsDeliveryUnavailableException"----- | 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.-------_KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError-_KMSKeyNotFoundException =-  _MatchServiceError cloudTrail "KmsKeyNotFoundException"----- | This exception is thrown when the trail with the given name is not found.-------_TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError-_TrailNotFoundException = _MatchServiceError cloudTrail "TrailNotFoundException"----- | 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.----------_InvalidEventSelectorsException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidEventSelectorsException =-  _MatchServiceError cloudTrail "InvalidEventSelectorsException"----- | This exception is deprecated.-------_TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError-_TrailNotProvidedException =-  _MatchServiceError cloudTrail "TrailNotProvidedException"----- | This exception is thrown when the provided S3 bucket name is not valid.-------_InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidS3BucketNameException =-  _MatchServiceError cloudTrail "InvalidS3BucketNameException"----- | This exception is thrown when the provided CloudWatch log group is not valid.-------_InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidCloudWatchLogsLogGroupARNException =-  _MatchServiceError cloudTrail "InvalidCloudWatchLogsLogGroupArnException"----- | This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.-------_KMSException :: AsError a => Getting (First ServiceError) a ServiceError-_KMSException = _MatchServiceError cloudTrail "KmsException"----- | This exception is thrown when the specified S3 bucket does not exist.-------_S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError-_S3BucketDoesNotExistException =-  _MatchServiceError cloudTrail "S3BucketDoesNotExistException"----- | Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.-------_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidNextTokenException =-  _MatchServiceError cloudTrail "InvalidNextTokenException"----- | 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}_.:/=+\\-@]*)$@ .-------_InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidTagParameterException =-  _MatchServiceError cloudTrail "InvalidTagParameterException"----- | This exception is thrown when the requested operation is not permitted.-------_OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError-_OperationNotPermittedException =-  _MatchServiceError cloudTrail "OperationNotPermittedException"----- | Reserved for future use.-------_InvalidTokenException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidTokenException = _MatchServiceError cloudTrail "InvalidTokenException"----- | This exception is thrown if the limit specified is invalid.-------_InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidMaxResultsException =-  _MatchServiceError cloudTrail "InvalidMaxResultsException"----- | This exception is thrown when the specified trail already exists.-------_TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError-_TrailAlreadyExistsException =-  _MatchServiceError cloudTrail "TrailAlreadyExistsException"----- | This exception is thrown when the provided S3 prefix is not valid.-------_InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidS3PrefixException =-  _MatchServiceError cloudTrail "InvalidS3PrefixException"----- | This exception is thrown when the specified resource is not found.-------_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError-_ResourceNotFoundException =-  _MatchServiceError cloudTrail "ResourceNotFoundException"----- | This exception is thrown when the combination of parameters provided is not valid.-------_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidParameterCombinationException =-  _MatchServiceError cloudTrail "InvalidParameterCombinationException"----- | This exception is thrown when the KMS key ARN is invalid.-------_InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidKMSKeyIdException =-  _MatchServiceError cloudTrail "InvalidKmsKeyIdException"----- | 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.-------_InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError-_InvalidHomeRegionException =-  _MatchServiceError cloudTrail "InvalidHomeRegionException"-
− gen/Network/AWS/CloudTrail/Types/Product.hs
@@ -1,641 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.Types.Product--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudTrail.Types.Product where--import Network.AWS.CloudTrail.Types.Sum-import Network.AWS.Lens-import Network.AWS.Prelude---- | 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.-data DataResource = DataResource'-  { _drValues :: !(Maybe [Text])-  , _drType   :: !(Maybe Text)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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@ .-dataResource-    :: DataResource-dataResource = DataResource' {_drValues = Nothing, _drType = Nothing}----- | 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.-drValues :: Lens' DataResource [Text]-drValues = lens _drValues (\ s a -> s{_drValues = a}) . _Default . _Coerce---- | The resource type in which you want to log data events. You can specify only the following value: @AWS::S3::Object@ .-drType :: Lens' DataResource (Maybe Text)-drType = lens _drType (\ s a -> s{_drType = a})--instance FromJSON DataResource where-        parseJSON-          = withObject "DataResource"-              (\ x ->-                 DataResource' <$>-                   (x .:? "Values" .!= mempty) <*> (x .:? "Type"))--instance Hashable DataResource where--instance NFData DataResource where--instance ToJSON DataResource where-        toJSON DataResource'{..}-          = object-              (catMaybes-                 [("Values" .=) <$> _drValues,-                  ("Type" .=) <$> _drType])---- | 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.-data Event = Event'-  { _eUsername        :: !(Maybe Text)-  , _eResources       :: !(Maybe [Resource])-  , _eEventTime       :: !(Maybe POSIX)-  , _eCloudTrailEvent :: !(Maybe Text)-  , _eEventName       :: !(Maybe Text)-  , _eEventSource     :: !(Maybe Text)-  , _eEventId         :: !(Maybe Text)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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.-event-    :: Event-event =-  Event'-    { _eUsername = Nothing-    , _eResources = Nothing-    , _eEventTime = Nothing-    , _eCloudTrailEvent = Nothing-    , _eEventName = Nothing-    , _eEventSource = Nothing-    , _eEventId = Nothing-    }----- | A user name or role name of the requester that called the API in the event returned.-eUsername :: Lens' Event (Maybe Text)-eUsername = lens _eUsername (\ s a -> s{_eUsername = a})---- | A list of resources referenced by the event returned.-eResources :: Lens' Event [Resource]-eResources = lens _eResources (\ s a -> s{_eResources = a}) . _Default . _Coerce---- | The date and time of the event returned.-eEventTime :: Lens' Event (Maybe UTCTime)-eEventTime = lens _eEventTime (\ s a -> s{_eEventTime = a}) . mapping _Time---- | A JSON string that contains a representation of the event returned.-eCloudTrailEvent :: Lens' Event (Maybe Text)-eCloudTrailEvent = lens _eCloudTrailEvent (\ s a -> s{_eCloudTrailEvent = a})---- | The name of the event returned.-eEventName :: Lens' Event (Maybe Text)-eEventName = lens _eEventName (\ s a -> s{_eEventName = a})---- | The AWS service that the request was made to.-eEventSource :: Lens' Event (Maybe Text)-eEventSource = lens _eEventSource (\ s a -> s{_eEventSource = a})---- | The CloudTrail ID of the event returned.-eEventId :: Lens' Event (Maybe Text)-eEventId = lens _eEventId (\ s a -> s{_eEventId = a})--instance FromJSON Event where-        parseJSON-          = withObject "Event"-              (\ x ->-                 Event' <$>-                   (x .:? "Username") <*> (x .:? "Resources" .!= mempty)-                     <*> (x .:? "EventTime")-                     <*> (x .:? "CloudTrailEvent")-                     <*> (x .:? "EventName")-                     <*> (x .:? "EventSource")-                     <*> (x .:? "EventId"))--instance Hashable Event where--instance NFData Event where---- | 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.-data EventSelector = EventSelector'-  { _esDataResources           :: !(Maybe [DataResource])-  , _esReadWriteType           :: !(Maybe ReadWriteType)-  , _esIncludeManagementEvents :: !(Maybe Bool)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events Management Events> in the /AWS CloudTrail User Guide/ . By default, the value is @true@ .-eventSelector-    :: EventSelector-eventSelector =-  EventSelector'-    { _esDataResources = Nothing-    , _esReadWriteType = Nothing-    , _esIncludeManagementEvents = Nothing-    }----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events Data Events> in the /AWS CloudTrail User Guide/ .-esDataResources :: Lens' EventSelector [DataResource]-esDataResources = lens _esDataResources (\ s a -> s{_esDataResources = a}) . _Default . _Coerce---- | 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@ .-esReadWriteType :: Lens' EventSelector (Maybe ReadWriteType)-esReadWriteType = lens _esReadWriteType (\ s a -> s{_esReadWriteType = a})---- | Specify if you want your event selector to include management events for your trail. For more information, see <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events Management Events> in the /AWS CloudTrail User Guide/ . By default, the value is @true@ .-esIncludeManagementEvents :: Lens' EventSelector (Maybe Bool)-esIncludeManagementEvents = lens _esIncludeManagementEvents (\ s a -> s{_esIncludeManagementEvents = a})--instance FromJSON EventSelector where-        parseJSON-          = withObject "EventSelector"-              (\ x ->-                 EventSelector' <$>-                   (x .:? "DataResources" .!= mempty) <*>-                     (x .:? "ReadWriteType")-                     <*> (x .:? "IncludeManagementEvents"))--instance Hashable EventSelector where--instance NFData EventSelector where--instance ToJSON EventSelector where-        toJSON EventSelector'{..}-          = object-              (catMaybes-                 [("DataResources" .=) <$> _esDataResources,-                  ("ReadWriteType" .=) <$> _esReadWriteType,-                  ("IncludeManagementEvents" .=) <$>-                    _esIncludeManagementEvents])---- | Specifies an attribute and value that filter the events returned.------------ /See:/ 'lookupAttribute' smart constructor.-data LookupAttribute = LookupAttribute'-  { _laAttributeKey   :: !LookupAttributeKey-  , _laAttributeValue :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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' - Specifies an attribute on which to filter the events returned.------ * 'laAttributeValue' - Specifies a value for the specified AttributeKey.-lookupAttribute-    :: LookupAttributeKey -- ^ 'laAttributeKey'-    -> Text -- ^ 'laAttributeValue'-    -> LookupAttribute-lookupAttribute pAttributeKey_ pAttributeValue_ =-  LookupAttribute'-    {_laAttributeKey = pAttributeKey_, _laAttributeValue = pAttributeValue_}----- | Specifies an attribute on which to filter the events returned.-laAttributeKey :: Lens' LookupAttribute LookupAttributeKey-laAttributeKey = lens _laAttributeKey (\ s a -> s{_laAttributeKey = a})---- | Specifies a value for the specified AttributeKey.-laAttributeValue :: Lens' LookupAttribute Text-laAttributeValue = lens _laAttributeValue (\ s a -> s{_laAttributeValue = a})--instance Hashable LookupAttribute where--instance NFData LookupAttribute where--instance ToJSON LookupAttribute where-        toJSON LookupAttribute'{..}-          = object-              (catMaybes-                 [Just ("AttributeKey" .= _laAttributeKey),-                  Just ("AttributeValue" .= _laAttributeValue)])---- | Contains information about a returned public key.------------ /See:/ 'publicKey' smart constructor.-data PublicKey = PublicKey'-  { _pkFingerprint       :: !(Maybe Text)-  , _pkValidityEndTime   :: !(Maybe POSIX)-  , _pkValue             :: !(Maybe Base64)-  , _pkValidityStartTime :: !(Maybe POSIX)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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.-publicKey-    :: PublicKey-publicKey =-  PublicKey'-    { _pkFingerprint = Nothing-    , _pkValidityEndTime = Nothing-    , _pkValue = Nothing-    , _pkValidityStartTime = Nothing-    }----- | The fingerprint of the public key.-pkFingerprint :: Lens' PublicKey (Maybe Text)-pkFingerprint = lens _pkFingerprint (\ s a -> s{_pkFingerprint = a})---- | The ending time of validity of the public key.-pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime)-pkValidityEndTime = lens _pkValidityEndTime (\ s a -> s{_pkValidityEndTime = a}) . mapping _Time---- | 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.-pkValue :: Lens' PublicKey (Maybe ByteString)-pkValue = lens _pkValue (\ s a -> s{_pkValue = a}) . mapping _Base64---- | The starting time of validity of the public key.-pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime)-pkValidityStartTime = lens _pkValidityStartTime (\ s a -> s{_pkValidityStartTime = a}) . mapping _Time--instance FromJSON PublicKey where-        parseJSON-          = withObject "PublicKey"-              (\ x ->-                 PublicKey' <$>-                   (x .:? "Fingerprint") <*> (x .:? "ValidityEndTime")-                     <*> (x .:? "Value")-                     <*> (x .:? "ValidityStartTime"))--instance Hashable PublicKey where--instance NFData PublicKey where---- | Specifies the type and name of a resource referenced by an event.------------ /See:/ 'resource' smart constructor.-data Resource = Resource'-  { _rResourceType :: !(Maybe Text)-  , _rResourceName :: !(Maybe Text)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/lookup_supported_resourcetypes.html 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.-resource-    :: Resource-resource = Resource' {_rResourceType = Nothing, _rResourceName = Nothing}----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/lookup_supported_resourcetypes.html Resource Types Supported for Event Lookup> .-rResourceType :: Lens' Resource (Maybe Text)-rResourceType = lens _rResourceType (\ s a -> s{_rResourceType = a})---- | 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.-rResourceName :: Lens' Resource (Maybe Text)-rResourceName = lens _rResourceName (\ s a -> s{_rResourceName = a})--instance FromJSON Resource where-        parseJSON-          = withObject "Resource"-              (\ x ->-                 Resource' <$>-                   (x .:? "ResourceType") <*> (x .:? "ResourceName"))--instance Hashable Resource where--instance NFData Resource where---- | A resource tag.------------ /See:/ 'resourceTag' smart constructor.-data ResourceTag = ResourceTag'-  { _rResourceId :: !(Maybe Text)-  , _rTagsList   :: !(Maybe [Tag])-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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' - Specifies the ARN of the resource.------ * 'rTagsList' - A list of tags.-resourceTag-    :: ResourceTag-resourceTag = ResourceTag' {_rResourceId = Nothing, _rTagsList = Nothing}----- | Specifies the ARN of the resource.-rResourceId :: Lens' ResourceTag (Maybe Text)-rResourceId = lens _rResourceId (\ s a -> s{_rResourceId = a})---- | A list of tags.-rTagsList :: Lens' ResourceTag [Tag]-rTagsList = lens _rTagsList (\ s a -> s{_rTagsList = a}) . _Default . _Coerce--instance FromJSON ResourceTag where-        parseJSON-          = withObject "ResourceTag"-              (\ x ->-                 ResourceTag' <$>-                   (x .:? "ResourceId") <*>-                     (x .:? "TagsList" .!= mempty))--instance Hashable ResourceTag where--instance NFData ResourceTag where---- | A custom key-value pair associated with a resource such as a CloudTrail trail.------------ /See:/ 'tag' smart constructor.-data Tag = Tag'-  { _tagValue :: !(Maybe Text)-  , _tagKey   :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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.-tag-    :: Text -- ^ 'tagKey'-    -> Tag-tag pKey_ = Tag' {_tagValue = Nothing, _tagKey = pKey_}----- | The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.-tagValue :: Lens' Tag (Maybe Text)-tagValue = lens _tagValue (\ s a -> s{_tagValue = a})---- | 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.-tagKey :: Lens' Tag Text-tagKey = lens _tagKey (\ s a -> s{_tagKey = a})--instance FromJSON Tag where-        parseJSON-          = withObject "Tag"-              (\ x -> Tag' <$> (x .:? "Value") <*> (x .: "Key"))--instance Hashable Tag where--instance NFData Tag where--instance ToJSON Tag where-        toJSON Tag'{..}-          = object-              (catMaybes-                 [("Value" .=) <$> _tagValue,-                  Just ("Key" .= _tagKey)])---- | The settings for a trail.------------ /See:/ 'trail' smart constructor.-data Trail = Trail'-  { _tLogFileValidationEnabled   :: !(Maybe Bool)-  , _tTrailARN                   :: !(Maybe Text)-  , _tS3KeyPrefix                :: !(Maybe Text)-  , _tSNSTopicARN                :: !(Maybe Text)-  , _tSNSTopicName               :: !(Maybe Text)-  , _tCloudWatchLogsLogGroupARN  :: !(Maybe Text)-  , _tKMSKeyId                   :: !(Maybe Text)-  , _tHomeRegion                 :: !(Maybe Text)-  , _tName                       :: !(Maybe Text)-  , _tIncludeGlobalServiceEvents :: !(Maybe Bool)-  , _tHasCustomEventSelectors    :: !(Maybe Bool)-  , _tCloudWatchLogsRoleARN      :: !(Maybe Text)-  , _tS3BucketName               :: !(Maybe Text)-  , _tIsMultiRegionTrail         :: !(Maybe Bool)-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .------ * 'tIsMultiRegionTrail' - Specifies whether the trail belongs only to one region or exists in all regions.-trail-    :: Trail-trail =-  Trail'-    { _tLogFileValidationEnabled = Nothing-    , _tTrailARN = Nothing-    , _tS3KeyPrefix = Nothing-    , _tSNSTopicARN = Nothing-    , _tSNSTopicName = Nothing-    , _tCloudWatchLogsLogGroupARN = Nothing-    , _tKMSKeyId = Nothing-    , _tHomeRegion = Nothing-    , _tName = Nothing-    , _tIncludeGlobalServiceEvents = Nothing-    , _tHasCustomEventSelectors = Nothing-    , _tCloudWatchLogsRoleARN = Nothing-    , _tS3BucketName = Nothing-    , _tIsMultiRegionTrail = Nothing-    }----- | Specifies whether log file validation is enabled.-tLogFileValidationEnabled :: Lens' Trail (Maybe Bool)-tLogFileValidationEnabled = lens _tLogFileValidationEnabled (\ s a -> s{_tLogFileValidationEnabled = a})---- | Specifies the ARN of the trail. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-tTrailARN :: Lens' Trail (Maybe Text)-tTrailARN = lens _tTrailARN (\ s a -> s{_tTrailARN = a})---- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> .The maximum length is 200 characters.-tS3KeyPrefix :: Lens' Trail (Maybe Text)-tS3KeyPrefix = lens _tS3KeyPrefix (\ s a -> s{_tS3KeyPrefix = a})---- | 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@-tSNSTopicARN :: Lens' Trail (Maybe Text)-tSNSTopicARN = lens _tSNSTopicARN (\ s a -> s{_tSNSTopicARN = a})---- | This field is deprecated. Use SnsTopicARN.-tSNSTopicName :: Lens' Trail (Maybe Text)-tSNSTopicName = lens _tSNSTopicName (\ s a -> s{_tSNSTopicName = a})---- | Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.-tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text)-tCloudWatchLogsLogGroupARN = lens _tCloudWatchLogsLogGroupARN (\ s a -> s{_tCloudWatchLogsLogGroupARN = a})---- | 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@-tKMSKeyId :: Lens' Trail (Maybe Text)-tKMSKeyId = lens _tKMSKeyId (\ s a -> s{_tKMSKeyId = a})---- | The region in which the trail was created.-tHomeRegion :: Lens' Trail (Maybe Text)-tHomeRegion = lens _tHomeRegion (\ s a -> s{_tHomeRegion = a})---- | Name of the trail set by calling 'CreateTrail' . The maximum length is 128 characters.-tName :: Lens' Trail (Maybe Text)-tName = lens _tName (\ s a -> s{_tName = a})---- | Set to __True__ to include AWS API calls from AWS global services such as IAM. Otherwise, __False__ .-tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool)-tIncludeGlobalServiceEvents = lens _tIncludeGlobalServiceEvents (\ s a -> s{_tIncludeGlobalServiceEvents = a})---- | Specifies if the trail has custom event selectors.-tHasCustomEventSelectors :: Lens' Trail (Maybe Bool)-tHasCustomEventSelectors = lens _tHasCustomEventSelectors (\ s a -> s{_tHasCustomEventSelectors = a})---- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.-tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text)-tCloudWatchLogsRoleARN = lens _tCloudWatchLogsRoleARN (\ s a -> s{_tCloudWatchLogsRoleARN = a})---- | Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .-tS3BucketName :: Lens' Trail (Maybe Text)-tS3BucketName = lens _tS3BucketName (\ s a -> s{_tS3BucketName = a})---- | Specifies whether the trail belongs only to one region or exists in all regions.-tIsMultiRegionTrail :: Lens' Trail (Maybe Bool)-tIsMultiRegionTrail = lens _tIsMultiRegionTrail (\ s a -> s{_tIsMultiRegionTrail = a})--instance FromJSON Trail where-        parseJSON-          = withObject "Trail"-              (\ x ->-                 Trail' <$>-                   (x .:? "LogFileValidationEnabled") <*>-                     (x .:? "TrailARN")-                     <*> (x .:? "S3KeyPrefix")-                     <*> (x .:? "SnsTopicARN")-                     <*> (x .:? "SnsTopicName")-                     <*> (x .:? "CloudWatchLogsLogGroupArn")-                     <*> (x .:? "KmsKeyId")-                     <*> (x .:? "HomeRegion")-                     <*> (x .:? "Name")-                     <*> (x .:? "IncludeGlobalServiceEvents")-                     <*> (x .:? "HasCustomEventSelectors")-                     <*> (x .:? "CloudWatchLogsRoleArn")-                     <*> (x .:? "S3BucketName")-                     <*> (x .:? "IsMultiRegionTrail"))--instance Hashable Trail where--instance NFData Trail where
− gen/Network/AWS/CloudTrail/Types/Sum.hs
@@ -1,92 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE LambdaCase         #-}-{-# LANGUAGE OverloadedStrings  #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.Types.Sum--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudTrail.Types.Sum where--import Network.AWS.Prelude--data LookupAttributeKey-  = EventId-  | EventName-  | EventSource-  | ResourceName-  | ResourceType-  | Username-  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText LookupAttributeKey where-    parser = takeLowerText >>= \case-        "eventid" -> pure EventId-        "eventname" -> pure EventName-        "eventsource" -> pure EventSource-        "resourcename" -> pure ResourceName-        "resourcetype" -> pure ResourceType-        "username" -> pure Username-        e -> fromTextError $ "Failure parsing LookupAttributeKey from value: '" <> e-           <> "'. Accepted values: eventid, eventname, eventsource, resourcename, resourcetype, username"--instance ToText LookupAttributeKey where-    toText = \case-        EventId -> "EventId"-        EventName -> "EventName"-        EventSource -> "EventSource"-        ResourceName -> "ResourceName"-        ResourceType -> "ResourceType"-        Username -> "Username"--instance Hashable     LookupAttributeKey-instance NFData       LookupAttributeKey-instance ToByteString LookupAttributeKey-instance ToQuery      LookupAttributeKey-instance ToHeader     LookupAttributeKey--instance ToJSON LookupAttributeKey where-    toJSON = toJSONText--data ReadWriteType-  = All-  | ReadOnly-  | WriteOnly-  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)---instance FromText ReadWriteType where-    parser = takeLowerText >>= \case-        "all" -> pure All-        "readonly" -> pure ReadOnly-        "writeonly" -> pure WriteOnly-        e -> fromTextError $ "Failure parsing ReadWriteType from value: '" <> e-           <> "'. Accepted values: all, readonly, writeonly"--instance ToText ReadWriteType where-    toText = \case-        All -> "All"-        ReadOnly -> "ReadOnly"-        WriteOnly -> "WriteOnly"--instance Hashable     ReadWriteType-instance NFData       ReadWriteType-instance ToByteString ReadWriteType-instance ToQuery      ReadWriteType-instance ToHeader     ReadWriteType--instance ToJSON ReadWriteType where-    toJSON = toJSONText--instance FromJSON ReadWriteType where-    parseJSON = parseJSONText "ReadWriteType"
− gen/Network/AWS/CloudTrail/UpdateTrail.hs
@@ -1,351 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric      #-}-{-# LANGUAGE OverloadedStrings  #-}-{-# LANGUAGE RecordWildCards    #-}-{-# LANGUAGE TypeFamilies       #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds   #-}-{-# OPTIONS_GHC -fno-warn-unused-matches #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.UpdateTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. @UpdateTrail@ must be called from the region in which the trail was created; otherwise, an @InvalidHomeRegionException@ is thrown.-------module Network.AWS.CloudTrail.UpdateTrail-    (-    -- * Creating a Request-      updateTrail-    , UpdateTrail-    -- * Request Lenses-    , utS3KeyPrefix-    , utSNSTopicName-    , utEnableLogFileValidation-    , utCloudWatchLogsLogGroupARN-    , utKMSKeyId-    , utIncludeGlobalServiceEvents-    , utCloudWatchLogsRoleARN-    , utS3BucketName-    , utIsMultiRegionTrail-    , utName--    -- * Destructuring the Response-    , updateTrailResponse-    , UpdateTrailResponse-    -- * Response Lenses-    , utrsLogFileValidationEnabled-    , utrsTrailARN-    , utrsS3KeyPrefix-    , utrsSNSTopicARN-    , utrsSNSTopicName-    , utrsCloudWatchLogsLogGroupARN-    , utrsKMSKeyId-    , utrsName-    , utrsIncludeGlobalServiceEvents-    , utrsCloudWatchLogsRoleARN-    , utrsS3BucketName-    , utrsIsMultiRegionTrail-    , utrsResponseStatus-    ) where--import Network.AWS.CloudTrail.Types-import Network.AWS.CloudTrail.Types.Product-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Request-import Network.AWS.Response---- | Specifies settings to update for the trail.------------ /See:/ 'updateTrail' smart constructor.-data UpdateTrail = UpdateTrail'-  { _utS3KeyPrefix                :: !(Maybe Text)-  , _utSNSTopicName               :: !(Maybe Text)-  , _utEnableLogFileValidation    :: !(Maybe Bool)-  , _utCloudWatchLogsLogGroupARN  :: !(Maybe Text)-  , _utKMSKeyId                   :: !(Maybe Text)-  , _utIncludeGlobalServiceEvents :: !(Maybe Bool)-  , _utCloudWatchLogsRoleARN      :: !(Maybe Text)-  , _utS3BucketName               :: !(Maybe Text)-  , _utIsMultiRegionTrail         :: !(Maybe Bool)-  , _utName                       :: !Text-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'UpdateTrail' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'utS3KeyPrefix' - 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> . The maximum length is 200 characters.------ * 'utSNSTopicName' - Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.------ * 'utEnableLogFileValidation' - Specifies whether log file validation is enabled. The default is false.------ * 'utCloudWatchLogsLogGroupARN' - Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.------ * 'utKMSKeyId' - Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. Examples:     * alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012     * 12345678-1234-1234-1234-123456789012------ * 'utIncludeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services such as IAM to the log files.------ * 'utCloudWatchLogsRoleARN' - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.------ * 'utS3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log files. See <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .------ * 'utIsMultiRegionTrail' - Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted.------ * 'utName' - Specifies the name of the trail or trail ARN. If @Name@ is a trail name, the string 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) If @Name@ is a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-updateTrail-    :: Text -- ^ 'utName'-    -> UpdateTrail-updateTrail pName_ =-  UpdateTrail'-    { _utS3KeyPrefix = Nothing-    , _utSNSTopicName = Nothing-    , _utEnableLogFileValidation = Nothing-    , _utCloudWatchLogsLogGroupARN = Nothing-    , _utKMSKeyId = Nothing-    , _utIncludeGlobalServiceEvents = Nothing-    , _utCloudWatchLogsRoleARN = Nothing-    , _utS3BucketName = Nothing-    , _utIsMultiRegionTrail = Nothing-    , _utName = pName_-    }----- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> . The maximum length is 200 characters.-utS3KeyPrefix :: Lens' UpdateTrail (Maybe Text)-utS3KeyPrefix = lens _utS3KeyPrefix (\ s a -> s{_utS3KeyPrefix = a})---- | Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.-utSNSTopicName :: Lens' UpdateTrail (Maybe Text)-utSNSTopicName = lens _utSNSTopicName (\ s a -> s{_utSNSTopicName = a})---- | Specifies whether log file validation is enabled. The default is false.-utEnableLogFileValidation :: Lens' UpdateTrail (Maybe Bool)-utEnableLogFileValidation = lens _utEnableLogFileValidation (\ s a -> s{_utEnableLogFileValidation = a})---- | Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.-utCloudWatchLogsLogGroupARN :: Lens' UpdateTrail (Maybe Text)-utCloudWatchLogsLogGroupARN = lens _utCloudWatchLogsLogGroupARN (\ s a -> s{_utCloudWatchLogsLogGroupARN = a})---- | Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by "alias/", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. Examples:     * alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName     * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012     * 12345678-1234-1234-1234-123456789012-utKMSKeyId :: Lens' UpdateTrail (Maybe Text)-utKMSKeyId = lens _utKMSKeyId (\ s a -> s{_utKMSKeyId = a})---- | Specifies whether the trail is publishing events from global services such as IAM to the log files.-utIncludeGlobalServiceEvents :: Lens' UpdateTrail (Maybe Bool)-utIncludeGlobalServiceEvents = lens _utIncludeGlobalServiceEvents (\ s a -> s{_utIncludeGlobalServiceEvents = a})---- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.-utCloudWatchLogsRoleARN :: Lens' UpdateTrail (Maybe Text)-utCloudWatchLogsRoleARN = lens _utCloudWatchLogsRoleARN (\ s a -> s{_utCloudWatchLogsRoleARN = a})---- | Specifies the name of the Amazon S3 bucket designated for publishing log files. See <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html Amazon S3 Bucket Naming Requirements> .-utS3BucketName :: Lens' UpdateTrail (Maybe Text)-utS3BucketName = lens _utS3BucketName (\ s a -> s{_utS3BucketName = a})---- | Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted.-utIsMultiRegionTrail :: Lens' UpdateTrail (Maybe Bool)-utIsMultiRegionTrail = lens _utIsMultiRegionTrail (\ s a -> s{_utIsMultiRegionTrail = a})---- | Specifies the name of the trail or trail ARN. If @Name@ is a trail name, the string 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) If @Name@ is a trail ARN, it must be in the format: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-utName :: Lens' UpdateTrail Text-utName = lens _utName (\ s a -> s{_utName = a})--instance AWSRequest UpdateTrail where-        type Rs UpdateTrail = UpdateTrailResponse-        request = postJSON cloudTrail-        response-          = receiveJSON-              (\ s h x ->-                 UpdateTrailResponse' <$>-                   (x .?> "LogFileValidationEnabled") <*>-                     (x .?> "TrailARN")-                     <*> (x .?> "S3KeyPrefix")-                     <*> (x .?> "SnsTopicARN")-                     <*> (x .?> "SnsTopicName")-                     <*> (x .?> "CloudWatchLogsLogGroupArn")-                     <*> (x .?> "KmsKeyId")-                     <*> (x .?> "Name")-                     <*> (x .?> "IncludeGlobalServiceEvents")-                     <*> (x .?> "CloudWatchLogsRoleArn")-                     <*> (x .?> "S3BucketName")-                     <*> (x .?> "IsMultiRegionTrail")-                     <*> (pure (fromEnum s)))--instance Hashable UpdateTrail where--instance NFData UpdateTrail where--instance ToHeaders UpdateTrail where-        toHeaders-          = const-              (mconcat-                 ["X-Amz-Target" =#-                    ("com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateTrail"-                       :: ByteString),-                  "Content-Type" =#-                    ("application/x-amz-json-1.1" :: ByteString)])--instance ToJSON UpdateTrail where-        toJSON UpdateTrail'{..}-          = object-              (catMaybes-                 [("S3KeyPrefix" .=) <$> _utS3KeyPrefix,-                  ("SnsTopicName" .=) <$> _utSNSTopicName,-                  ("EnableLogFileValidation" .=) <$>-                    _utEnableLogFileValidation,-                  ("CloudWatchLogsLogGroupArn" .=) <$>-                    _utCloudWatchLogsLogGroupARN,-                  ("KmsKeyId" .=) <$> _utKMSKeyId,-                  ("IncludeGlobalServiceEvents" .=) <$>-                    _utIncludeGlobalServiceEvents,-                  ("CloudWatchLogsRoleArn" .=) <$>-                    _utCloudWatchLogsRoleARN,-                  ("S3BucketName" .=) <$> _utS3BucketName,-                  ("IsMultiRegionTrail" .=) <$> _utIsMultiRegionTrail,-                  Just ("Name" .= _utName)])--instance ToPath UpdateTrail where-        toPath = const "/"--instance ToQuery UpdateTrail where-        toQuery = const mempty---- | Returns the objects or data listed below if successful. Otherwise, returns an error.------------ /See:/ 'updateTrailResponse' smart constructor.-data UpdateTrailResponse = UpdateTrailResponse'-  { _utrsLogFileValidationEnabled   :: !(Maybe Bool)-  , _utrsTrailARN                   :: !(Maybe Text)-  , _utrsS3KeyPrefix                :: !(Maybe Text)-  , _utrsSNSTopicARN                :: !(Maybe Text)-  , _utrsSNSTopicName               :: !(Maybe Text)-  , _utrsCloudWatchLogsLogGroupARN  :: !(Maybe Text)-  , _utrsKMSKeyId                   :: !(Maybe Text)-  , _utrsName                       :: !(Maybe Text)-  , _utrsIncludeGlobalServiceEvents :: !(Maybe Bool)-  , _utrsCloudWatchLogsRoleARN      :: !(Maybe Text)-  , _utrsS3BucketName               :: !(Maybe Text)-  , _utrsIsMultiRegionTrail         :: !(Maybe Bool)-  , _utrsResponseStatus             :: !Int-  } deriving (Eq, Read, Show, Data, Typeable, Generic)----- | Creates a value of 'UpdateTrailResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'utrsLogFileValidationEnabled' - Specifies whether log file integrity validation is enabled.------ * 'utrsTrailARN' - Specifies the ARN of the trail that was updated. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@------ * 'utrsS3KeyPrefix' - 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> .------ * 'utrsSNSTopicARN' - 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@------ * 'utrsSNSTopicName' - This field is deprecated. Use SnsTopicARN.------ * 'utrsCloudWatchLogsLogGroupARN' - Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.------ * 'utrsKMSKeyId' - 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@------ * 'utrsName' - Specifies the name of the trail.------ * 'utrsIncludeGlobalServiceEvents' - Specifies whether the trail is publishing events from global services such as IAM to the log files.------ * 'utrsCloudWatchLogsRoleARN' - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.------ * 'utrsS3BucketName' - Specifies the name of the Amazon S3 bucket designated for publishing log files.------ * 'utrsIsMultiRegionTrail' - Specifies whether the trail exists in one region or in all regions.------ * 'utrsResponseStatus' - -- | The response status code.-updateTrailResponse-    :: Int -- ^ 'utrsResponseStatus'-    -> UpdateTrailResponse-updateTrailResponse pResponseStatus_ =-  UpdateTrailResponse'-    { _utrsLogFileValidationEnabled = Nothing-    , _utrsTrailARN = Nothing-    , _utrsS3KeyPrefix = Nothing-    , _utrsSNSTopicARN = Nothing-    , _utrsSNSTopicName = Nothing-    , _utrsCloudWatchLogsLogGroupARN = Nothing-    , _utrsKMSKeyId = Nothing-    , _utrsName = Nothing-    , _utrsIncludeGlobalServiceEvents = Nothing-    , _utrsCloudWatchLogsRoleARN = Nothing-    , _utrsS3BucketName = Nothing-    , _utrsIsMultiRegionTrail = Nothing-    , _utrsResponseStatus = pResponseStatus_-    }----- | Specifies whether log file integrity validation is enabled.-utrsLogFileValidationEnabled :: Lens' UpdateTrailResponse (Maybe Bool)-utrsLogFileValidationEnabled = lens _utrsLogFileValidationEnabled (\ s a -> s{_utrsLogFileValidationEnabled = a})---- | Specifies the ARN of the trail that was updated. The format of a trail ARN is: @arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail@-utrsTrailARN :: Lens' UpdateTrailResponse (Maybe Text)-utrsTrailARN = lens _utrsTrailARN (\ s a -> s{_utrsTrailARN = a})---- | 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 <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html Finding Your CloudTrail Log Files> .-utrsS3KeyPrefix :: Lens' UpdateTrailResponse (Maybe Text)-utrsS3KeyPrefix = lens _utrsS3KeyPrefix (\ s a -> s{_utrsS3KeyPrefix = a})---- | 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@-utrsSNSTopicARN :: Lens' UpdateTrailResponse (Maybe Text)-utrsSNSTopicARN = lens _utrsSNSTopicARN (\ s a -> s{_utrsSNSTopicARN = a})---- | This field is deprecated. Use SnsTopicARN.-utrsSNSTopicName :: Lens' UpdateTrailResponse (Maybe Text)-utrsSNSTopicName = lens _utrsSNSTopicName (\ s a -> s{_utrsSNSTopicName = a})---- | Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.-utrsCloudWatchLogsLogGroupARN :: Lens' UpdateTrailResponse (Maybe Text)-utrsCloudWatchLogsLogGroupARN = lens _utrsCloudWatchLogsLogGroupARN (\ s a -> s{_utrsCloudWatchLogsLogGroupARN = a})---- | 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@-utrsKMSKeyId :: Lens' UpdateTrailResponse (Maybe Text)-utrsKMSKeyId = lens _utrsKMSKeyId (\ s a -> s{_utrsKMSKeyId = a})---- | Specifies the name of the trail.-utrsName :: Lens' UpdateTrailResponse (Maybe Text)-utrsName = lens _utrsName (\ s a -> s{_utrsName = a})---- | Specifies whether the trail is publishing events from global services such as IAM to the log files.-utrsIncludeGlobalServiceEvents :: Lens' UpdateTrailResponse (Maybe Bool)-utrsIncludeGlobalServiceEvents = lens _utrsIncludeGlobalServiceEvents (\ s a -> s{_utrsIncludeGlobalServiceEvents = a})---- | Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.-utrsCloudWatchLogsRoleARN :: Lens' UpdateTrailResponse (Maybe Text)-utrsCloudWatchLogsRoleARN = lens _utrsCloudWatchLogsRoleARN (\ s a -> s{_utrsCloudWatchLogsRoleARN = a})---- | Specifies the name of the Amazon S3 bucket designated for publishing log files.-utrsS3BucketName :: Lens' UpdateTrailResponse (Maybe Text)-utrsS3BucketName = lens _utrsS3BucketName (\ s a -> s{_utrsS3BucketName = a})---- | Specifies whether the trail exists in one region or in all regions.-utrsIsMultiRegionTrail :: Lens' UpdateTrailResponse (Maybe Bool)-utrsIsMultiRegionTrail = lens _utrsIsMultiRegionTrail (\ s a -> s{_utrsIsMultiRegionTrail = a})---- | -- | The response status code.-utrsResponseStatus :: Lens' UpdateTrailResponse Int-utrsResponseStatus = lens _utrsResponseStatus (\ s a -> s{_utrsResponseStatus = a})--instance NFData UpdateTrailResponse where
− gen/Network/AWS/CloudTrail/Waiters.hs
@@ -1,21 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE TypeFamilies      #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Network.AWS.CloudTrail.Waiters--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Network.AWS.CloudTrail.Waiters where--import Network.AWS.CloudTrail.Types-import Network.AWS.Lens-import Network.AWS.Prelude-import Network.AWS.Waiter
test/Main.hs view
@@ -2,20 +2,22 @@  -- | -- Module      : Main--- Copyright   : (c) 2013-2018 Brendan Hay+-- Copyright   : (c) 2013-2023 Brendan Hay -- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Maintainer  : Brendan Hay -- Stability   : auto-generated -- Portability : non-portable (GHC extensions)--- module Main (main) where +import Test.Amazonka.CloudTrail+import Test.Amazonka.CloudTrail.Internal import Test.Tasty-import Test.AWS.CloudTrail-import Test.AWS.CloudTrail.Internal  main :: IO ()-main = defaultMain $ testGroup "CloudTrail"-    [ testGroup "tests"    tests-    , testGroup "fixtures" fixtures-    ]+main =+  defaultMain $+    testGroup+      "CloudTrail"+      [ testGroup "tests" tests,+        testGroup "fixtures" fixtures+      ]
− test/Test/AWS/CloudTrail.hs
@@ -1,26 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}---- Module      : Test.AWS.CloudTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental--- Portability : non-portable (GHC extensions)--module Test.AWS.CloudTrail-    ( tests-    , fixtures-    ) where--import           Network.AWS.CloudTrail-import           Test.AWS.Gen.CloudTrail-import           Test.Tasty--tests :: [TestTree]-tests = []--fixtures :: [TestTree]-fixtures = []
− test/Test/AWS/CloudTrail/Internal.hs
@@ -1,16 +0,0 @@-{-# LANGUAGE OverloadedStrings #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Module      : Test.AWS.CloudTrail.Internal--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : This Source Code Form is subject to the terms of---               the Mozilla Public License, v. 2.0.---               A copy of the MPL can be found in the LICENSE file or---               you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>--- Stability   : experimental--- Portability : non-portable (GHC extensions)--module Test.AWS.CloudTrail.Internal where--import Test.AWS.Prelude
− test/Test/AWS/Gen/CloudTrail.hs
@@ -1,291 +0,0 @@-{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-orphans        #-}---- Derived from AWS service descriptions, licensed under Apache 2.0.---- |--- Module      : Test.AWS.Gen.CloudTrail--- Copyright   : (c) 2013-2018 Brendan Hay--- License     : Mozilla Public License, v. 2.0.--- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>--- Stability   : auto-generated--- Portability : non-portable (GHC extensions)----module Test.AWS.Gen.CloudTrail where--import Data.Proxy-import Network.AWS.CloudTrail-import Test.AWS.CloudTrail.Internal-import Test.AWS.Fixture-import Test.AWS.Prelude-import Test.Tasty---- Auto-generated: the actual test selection needs to be manually placed into--- the top-level so that real test data can be incrementally added.------ This commented snippet is what the entire set should look like:---- fixtures :: TestTree--- fixtures =---     [ testGroup "request"---         [ requestDescribeTrails $---             describeTrails------         , requestListPublicKeys $---             listPublicKeys------         , requestRemoveTags $---             removeTags------         , requestLookupEvents $---             lookupEvents------         , requestStopLogging $---             stopLogging------         , requestDeleteTrail $---             deleteTrail------         , requestUpdateTrail $---             updateTrail------         , requestCreateTrail $---             createTrail------         , requestGetEventSelectors $---             getEventSelectors------         , requestGetTrailStatus $---             getTrailStatus------         , requestAddTags $---             addTags------         , requestListTags $---             listTags------         , requestPutEventSelectors $---             putEventSelectors------         , requestStartLogging $---             startLogging------           ]----     , testGroup "response"---         [ responseDescribeTrails $---             describeTrailsResponse------         , responseListPublicKeys $---             listPublicKeysResponse------         , responseRemoveTags $---             removeTagsResponse------         , responseLookupEvents $---             lookupEventsResponse------         , responseStopLogging $---             stopLoggingResponse------         , responseDeleteTrail $---             deleteTrailResponse------         , responseUpdateTrail $---             updateTrailResponse------         , responseCreateTrail $---             createTrailResponse------         , responseGetEventSelectors $---             getEventSelectorsResponse------         , responseGetTrailStatus $---             getTrailStatusResponse------         , responseAddTags $---             addTagsResponse------         , responseListTags $---             listTagsResponse------         , responsePutEventSelectors $---             putEventSelectorsResponse------         , responseStartLogging $---             startLoggingResponse------           ]---     ]---- Requests--requestDescribeTrails :: DescribeTrails -> TestTree-requestDescribeTrails = req-    "DescribeTrails"-    "fixture/DescribeTrails.yaml"--requestListPublicKeys :: ListPublicKeys -> TestTree-requestListPublicKeys = req-    "ListPublicKeys"-    "fixture/ListPublicKeys.yaml"--requestRemoveTags :: RemoveTags -> TestTree-requestRemoveTags = req-    "RemoveTags"-    "fixture/RemoveTags.yaml"--requestLookupEvents :: LookupEvents -> TestTree-requestLookupEvents = req-    "LookupEvents"-    "fixture/LookupEvents.yaml"--requestStopLogging :: StopLogging -> TestTree-requestStopLogging = req-    "StopLogging"-    "fixture/StopLogging.yaml"--requestDeleteTrail :: DeleteTrail -> TestTree-requestDeleteTrail = req-    "DeleteTrail"-    "fixture/DeleteTrail.yaml"--requestUpdateTrail :: UpdateTrail -> TestTree-requestUpdateTrail = req-    "UpdateTrail"-    "fixture/UpdateTrail.yaml"--requestCreateTrail :: CreateTrail -> TestTree-requestCreateTrail = req-    "CreateTrail"-    "fixture/CreateTrail.yaml"--requestGetEventSelectors :: GetEventSelectors -> TestTree-requestGetEventSelectors = req-    "GetEventSelectors"-    "fixture/GetEventSelectors.yaml"--requestGetTrailStatus :: GetTrailStatus -> TestTree-requestGetTrailStatus = req-    "GetTrailStatus"-    "fixture/GetTrailStatus.yaml"--requestAddTags :: AddTags -> TestTree-requestAddTags = req-    "AddTags"-    "fixture/AddTags.yaml"--requestListTags :: ListTags -> TestTree-requestListTags = req-    "ListTags"-    "fixture/ListTags.yaml"--requestPutEventSelectors :: PutEventSelectors -> TestTree-requestPutEventSelectors = req-    "PutEventSelectors"-    "fixture/PutEventSelectors.yaml"--requestStartLogging :: StartLogging -> TestTree-requestStartLogging = req-    "StartLogging"-    "fixture/StartLogging.yaml"---- Responses--responseDescribeTrails :: DescribeTrailsResponse -> TestTree-responseDescribeTrails = res-    "DescribeTrailsResponse"-    "fixture/DescribeTrailsResponse.proto"-    cloudTrail-    (Proxy :: Proxy DescribeTrails)--responseListPublicKeys :: ListPublicKeysResponse -> TestTree-responseListPublicKeys = res-    "ListPublicKeysResponse"-    "fixture/ListPublicKeysResponse.proto"-    cloudTrail-    (Proxy :: Proxy ListPublicKeys)--responseRemoveTags :: RemoveTagsResponse -> TestTree-responseRemoveTags = res-    "RemoveTagsResponse"-    "fixture/RemoveTagsResponse.proto"-    cloudTrail-    (Proxy :: Proxy RemoveTags)--responseLookupEvents :: LookupEventsResponse -> TestTree-responseLookupEvents = res-    "LookupEventsResponse"-    "fixture/LookupEventsResponse.proto"-    cloudTrail-    (Proxy :: Proxy LookupEvents)--responseStopLogging :: StopLoggingResponse -> TestTree-responseStopLogging = res-    "StopLoggingResponse"-    "fixture/StopLoggingResponse.proto"-    cloudTrail-    (Proxy :: Proxy StopLogging)--responseDeleteTrail :: DeleteTrailResponse -> TestTree-responseDeleteTrail = res-    "DeleteTrailResponse"-    "fixture/DeleteTrailResponse.proto"-    cloudTrail-    (Proxy :: Proxy DeleteTrail)--responseUpdateTrail :: UpdateTrailResponse -> TestTree-responseUpdateTrail = res-    "UpdateTrailResponse"-    "fixture/UpdateTrailResponse.proto"-    cloudTrail-    (Proxy :: Proxy UpdateTrail)--responseCreateTrail :: CreateTrailResponse -> TestTree-responseCreateTrail = res-    "CreateTrailResponse"-    "fixture/CreateTrailResponse.proto"-    cloudTrail-    (Proxy :: Proxy CreateTrail)--responseGetEventSelectors :: GetEventSelectorsResponse -> TestTree-responseGetEventSelectors = res-    "GetEventSelectorsResponse"-    "fixture/GetEventSelectorsResponse.proto"-    cloudTrail-    (Proxy :: Proxy GetEventSelectors)--responseGetTrailStatus :: GetTrailStatusResponse -> TestTree-responseGetTrailStatus = res-    "GetTrailStatusResponse"-    "fixture/GetTrailStatusResponse.proto"-    cloudTrail-    (Proxy :: Proxy GetTrailStatus)--responseAddTags :: AddTagsResponse -> TestTree-responseAddTags = res-    "AddTagsResponse"-    "fixture/AddTagsResponse.proto"-    cloudTrail-    (Proxy :: Proxy AddTags)--responseListTags :: ListTagsResponse -> TestTree-responseListTags = res-    "ListTagsResponse"-    "fixture/ListTagsResponse.proto"-    cloudTrail-    (Proxy :: Proxy ListTags)--responsePutEventSelectors :: PutEventSelectorsResponse -> TestTree-responsePutEventSelectors = res-    "PutEventSelectorsResponse"-    "fixture/PutEventSelectorsResponse.proto"-    cloudTrail-    (Proxy :: Proxy PutEventSelectors)--responseStartLogging :: StartLoggingResponse -> TestTree-responseStartLogging = res-    "StartLoggingResponse"-    "fixture/StartLoggingResponse.proto"-    cloudTrail-    (Proxy :: Proxy StartLogging)
+ test/Test/Amazonka/CloudTrail.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.Amazonka.CloudTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CloudTrail+  ( tests,+    fixtures,+  )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/CloudTrail/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module      : Test.Amazonka.CloudTrail.Internal+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CloudTrail.Internal where
+ test/Test/Amazonka/Gen/CloudTrail.hs view
@@ -0,0 +1,798 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Test.Amazonka.Gen.CloudTrail+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.CloudTrail where++import Amazonka.CloudTrail+import qualified Data.Proxy as Proxy+import Test.Amazonka.CloudTrail.Internal+import Test.Amazonka.Fixture+import Test.Amazonka.Prelude+import Test.Tasty++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+--     [ testGroup "request"+--         [ requestAddTags $+--             newAddTags+--+--         , requestCancelQuery $+--             newCancelQuery+--+--         , requestCreateEventDataStore $+--             newCreateEventDataStore+--+--         , requestCreateTrail $+--             newCreateTrail+--+--         , requestDeleteEventDataStore $+--             newDeleteEventDataStore+--+--         , requestDeleteTrail $+--             newDeleteTrail+--+--         , requestDeregisterOrganizationDelegatedAdmin $+--             newDeregisterOrganizationDelegatedAdmin+--+--         , requestDescribeQuery $+--             newDescribeQuery+--+--         , requestDescribeTrails $+--             newDescribeTrails+--+--         , requestGetChannel $+--             newGetChannel+--+--         , requestGetEventDataStore $+--             newGetEventDataStore+--+--         , requestGetEventSelectors $+--             newGetEventSelectors+--+--         , requestGetImport $+--             newGetImport+--+--         , requestGetInsightSelectors $+--             newGetInsightSelectors+--+--         , requestGetQueryResults $+--             newGetQueryResults+--+--         , requestGetTrail $+--             newGetTrail+--+--         , requestGetTrailStatus $+--             newGetTrailStatus+--+--         , requestListChannels $+--             newListChannels+--+--         , requestListEventDataStores $+--             newListEventDataStores+--+--         , requestListImportFailures $+--             newListImportFailures+--+--         , requestListImports $+--             newListImports+--+--         , requestListPublicKeys $+--             newListPublicKeys+--+--         , requestListQueries $+--             newListQueries+--+--         , requestListTags $+--             newListTags+--+--         , requestListTrails $+--             newListTrails+--+--         , requestLookupEvents $+--             newLookupEvents+--+--         , requestPutEventSelectors $+--             newPutEventSelectors+--+--         , requestPutInsightSelectors $+--             newPutInsightSelectors+--+--         , requestRegisterOrganizationDelegatedAdmin $+--             newRegisterOrganizationDelegatedAdmin+--+--         , requestRemoveTags $+--             newRemoveTags+--+--         , requestRestoreEventDataStore $+--             newRestoreEventDataStore+--+--         , requestStartImport $+--             newStartImport+--+--         , requestStartLogging $+--             newStartLogging+--+--         , requestStartQuery $+--             newStartQuery+--+--         , requestStopImport $+--             newStopImport+--+--         , requestStopLogging $+--             newStopLogging+--+--         , requestUpdateEventDataStore $+--             newUpdateEventDataStore+--+--         , requestUpdateTrail $+--             newUpdateTrail+--+--           ]++--     , testGroup "response"+--         [ responseAddTags $+--             newAddTagsResponse+--+--         , responseCancelQuery $+--             newCancelQueryResponse+--+--         , responseCreateEventDataStore $+--             newCreateEventDataStoreResponse+--+--         , responseCreateTrail $+--             newCreateTrailResponse+--+--         , responseDeleteEventDataStore $+--             newDeleteEventDataStoreResponse+--+--         , responseDeleteTrail $+--             newDeleteTrailResponse+--+--         , responseDeregisterOrganizationDelegatedAdmin $+--             newDeregisterOrganizationDelegatedAdminResponse+--+--         , responseDescribeQuery $+--             newDescribeQueryResponse+--+--         , responseDescribeTrails $+--             newDescribeTrailsResponse+--+--         , responseGetChannel $+--             newGetChannelResponse+--+--         , responseGetEventDataStore $+--             newGetEventDataStoreResponse+--+--         , responseGetEventSelectors $+--             newGetEventSelectorsResponse+--+--         , responseGetImport $+--             newGetImportResponse+--+--         , responseGetInsightSelectors $+--             newGetInsightSelectorsResponse+--+--         , responseGetQueryResults $+--             newGetQueryResultsResponse+--+--         , responseGetTrail $+--             newGetTrailResponse+--+--         , responseGetTrailStatus $+--             newGetTrailStatusResponse+--+--         , responseListChannels $+--             newListChannelsResponse+--+--         , responseListEventDataStores $+--             newListEventDataStoresResponse+--+--         , responseListImportFailures $+--             newListImportFailuresResponse+--+--         , responseListImports $+--             newListImportsResponse+--+--         , responseListPublicKeys $+--             newListPublicKeysResponse+--+--         , responseListQueries $+--             newListQueriesResponse+--+--         , responseListTags $+--             newListTagsResponse+--+--         , responseListTrails $+--             newListTrailsResponse+--+--         , responseLookupEvents $+--             newLookupEventsResponse+--+--         , responsePutEventSelectors $+--             newPutEventSelectorsResponse+--+--         , responsePutInsightSelectors $+--             newPutInsightSelectorsResponse+--+--         , responseRegisterOrganizationDelegatedAdmin $+--             newRegisterOrganizationDelegatedAdminResponse+--+--         , responseRemoveTags $+--             newRemoveTagsResponse+--+--         , responseRestoreEventDataStore $+--             newRestoreEventDataStoreResponse+--+--         , responseStartImport $+--             newStartImportResponse+--+--         , responseStartLogging $+--             newStartLoggingResponse+--+--         , responseStartQuery $+--             newStartQueryResponse+--+--         , responseStopImport $+--             newStopImportResponse+--+--         , responseStopLogging $+--             newStopLoggingResponse+--+--         , responseUpdateEventDataStore $+--             newUpdateEventDataStoreResponse+--+--         , responseUpdateTrail $+--             newUpdateTrailResponse+--+--           ]+--     ]++-- Requests++requestAddTags :: AddTags -> TestTree+requestAddTags =+  req+    "AddTags"+    "fixture/AddTags.yaml"++requestCancelQuery :: CancelQuery -> TestTree+requestCancelQuery =+  req+    "CancelQuery"+    "fixture/CancelQuery.yaml"++requestCreateEventDataStore :: CreateEventDataStore -> TestTree+requestCreateEventDataStore =+  req+    "CreateEventDataStore"+    "fixture/CreateEventDataStore.yaml"++requestCreateTrail :: CreateTrail -> TestTree+requestCreateTrail =+  req+    "CreateTrail"+    "fixture/CreateTrail.yaml"++requestDeleteEventDataStore :: DeleteEventDataStore -> TestTree+requestDeleteEventDataStore =+  req+    "DeleteEventDataStore"+    "fixture/DeleteEventDataStore.yaml"++requestDeleteTrail :: DeleteTrail -> TestTree+requestDeleteTrail =+  req+    "DeleteTrail"+    "fixture/DeleteTrail.yaml"++requestDeregisterOrganizationDelegatedAdmin :: DeregisterOrganizationDelegatedAdmin -> TestTree+requestDeregisterOrganizationDelegatedAdmin =+  req+    "DeregisterOrganizationDelegatedAdmin"+    "fixture/DeregisterOrganizationDelegatedAdmin.yaml"++requestDescribeQuery :: DescribeQuery -> TestTree+requestDescribeQuery =+  req+    "DescribeQuery"+    "fixture/DescribeQuery.yaml"++requestDescribeTrails :: DescribeTrails -> TestTree+requestDescribeTrails =+  req+    "DescribeTrails"+    "fixture/DescribeTrails.yaml"++requestGetChannel :: GetChannel -> TestTree+requestGetChannel =+  req+    "GetChannel"+    "fixture/GetChannel.yaml"++requestGetEventDataStore :: GetEventDataStore -> TestTree+requestGetEventDataStore =+  req+    "GetEventDataStore"+    "fixture/GetEventDataStore.yaml"++requestGetEventSelectors :: GetEventSelectors -> TestTree+requestGetEventSelectors =+  req+    "GetEventSelectors"+    "fixture/GetEventSelectors.yaml"++requestGetImport :: GetImport -> TestTree+requestGetImport =+  req+    "GetImport"+    "fixture/GetImport.yaml"++requestGetInsightSelectors :: GetInsightSelectors -> TestTree+requestGetInsightSelectors =+  req+    "GetInsightSelectors"+    "fixture/GetInsightSelectors.yaml"++requestGetQueryResults :: GetQueryResults -> TestTree+requestGetQueryResults =+  req+    "GetQueryResults"+    "fixture/GetQueryResults.yaml"++requestGetTrail :: GetTrail -> TestTree+requestGetTrail =+  req+    "GetTrail"+    "fixture/GetTrail.yaml"++requestGetTrailStatus :: GetTrailStatus -> TestTree+requestGetTrailStatus =+  req+    "GetTrailStatus"+    "fixture/GetTrailStatus.yaml"++requestListChannels :: ListChannels -> TestTree+requestListChannels =+  req+    "ListChannels"+    "fixture/ListChannels.yaml"++requestListEventDataStores :: ListEventDataStores -> TestTree+requestListEventDataStores =+  req+    "ListEventDataStores"+    "fixture/ListEventDataStores.yaml"++requestListImportFailures :: ListImportFailures -> TestTree+requestListImportFailures =+  req+    "ListImportFailures"+    "fixture/ListImportFailures.yaml"++requestListImports :: ListImports -> TestTree+requestListImports =+  req+    "ListImports"+    "fixture/ListImports.yaml"++requestListPublicKeys :: ListPublicKeys -> TestTree+requestListPublicKeys =+  req+    "ListPublicKeys"+    "fixture/ListPublicKeys.yaml"++requestListQueries :: ListQueries -> TestTree+requestListQueries =+  req+    "ListQueries"+    "fixture/ListQueries.yaml"++requestListTags :: ListTags -> TestTree+requestListTags =+  req+    "ListTags"+    "fixture/ListTags.yaml"++requestListTrails :: ListTrails -> TestTree+requestListTrails =+  req+    "ListTrails"+    "fixture/ListTrails.yaml"++requestLookupEvents :: LookupEvents -> TestTree+requestLookupEvents =+  req+    "LookupEvents"+    "fixture/LookupEvents.yaml"++requestPutEventSelectors :: PutEventSelectors -> TestTree+requestPutEventSelectors =+  req+    "PutEventSelectors"+    "fixture/PutEventSelectors.yaml"++requestPutInsightSelectors :: PutInsightSelectors -> TestTree+requestPutInsightSelectors =+  req+    "PutInsightSelectors"+    "fixture/PutInsightSelectors.yaml"++requestRegisterOrganizationDelegatedAdmin :: RegisterOrganizationDelegatedAdmin -> TestTree+requestRegisterOrganizationDelegatedAdmin =+  req+    "RegisterOrganizationDelegatedAdmin"+    "fixture/RegisterOrganizationDelegatedAdmin.yaml"++requestRemoveTags :: RemoveTags -> TestTree+requestRemoveTags =+  req+    "RemoveTags"+    "fixture/RemoveTags.yaml"++requestRestoreEventDataStore :: RestoreEventDataStore -> TestTree+requestRestoreEventDataStore =+  req+    "RestoreEventDataStore"+    "fixture/RestoreEventDataStore.yaml"++requestStartImport :: StartImport -> TestTree+requestStartImport =+  req+    "StartImport"+    "fixture/StartImport.yaml"++requestStartLogging :: StartLogging -> TestTree+requestStartLogging =+  req+    "StartLogging"+    "fixture/StartLogging.yaml"++requestStartQuery :: StartQuery -> TestTree+requestStartQuery =+  req+    "StartQuery"+    "fixture/StartQuery.yaml"++requestStopImport :: StopImport -> TestTree+requestStopImport =+  req+    "StopImport"+    "fixture/StopImport.yaml"++requestStopLogging :: StopLogging -> TestTree+requestStopLogging =+  req+    "StopLogging"+    "fixture/StopLogging.yaml"++requestUpdateEventDataStore :: UpdateEventDataStore -> TestTree+requestUpdateEventDataStore =+  req+    "UpdateEventDataStore"+    "fixture/UpdateEventDataStore.yaml"++requestUpdateTrail :: UpdateTrail -> TestTree+requestUpdateTrail =+  req+    "UpdateTrail"+    "fixture/UpdateTrail.yaml"++-- Responses++responseAddTags :: AddTagsResponse -> TestTree+responseAddTags =+  res+    "AddTagsResponse"+    "fixture/AddTagsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy AddTags)++responseCancelQuery :: CancelQueryResponse -> TestTree+responseCancelQuery =+  res+    "CancelQueryResponse"+    "fixture/CancelQueryResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy CancelQuery)++responseCreateEventDataStore :: CreateEventDataStoreResponse -> TestTree+responseCreateEventDataStore =+  res+    "CreateEventDataStoreResponse"+    "fixture/CreateEventDataStoreResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy CreateEventDataStore)++responseCreateTrail :: CreateTrailResponse -> TestTree+responseCreateTrail =+  res+    "CreateTrailResponse"+    "fixture/CreateTrailResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy CreateTrail)++responseDeleteEventDataStore :: DeleteEventDataStoreResponse -> TestTree+responseDeleteEventDataStore =+  res+    "DeleteEventDataStoreResponse"+    "fixture/DeleteEventDataStoreResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DeleteEventDataStore)++responseDeleteTrail :: DeleteTrailResponse -> TestTree+responseDeleteTrail =+  res+    "DeleteTrailResponse"+    "fixture/DeleteTrailResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DeleteTrail)++responseDeregisterOrganizationDelegatedAdmin :: DeregisterOrganizationDelegatedAdminResponse -> TestTree+responseDeregisterOrganizationDelegatedAdmin =+  res+    "DeregisterOrganizationDelegatedAdminResponse"+    "fixture/DeregisterOrganizationDelegatedAdminResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DeregisterOrganizationDelegatedAdmin)++responseDescribeQuery :: DescribeQueryResponse -> TestTree+responseDescribeQuery =+  res+    "DescribeQueryResponse"+    "fixture/DescribeQueryResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DescribeQuery)++responseDescribeTrails :: DescribeTrailsResponse -> TestTree+responseDescribeTrails =+  res+    "DescribeTrailsResponse"+    "fixture/DescribeTrailsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DescribeTrails)++responseGetChannel :: GetChannelResponse -> TestTree+responseGetChannel =+  res+    "GetChannelResponse"+    "fixture/GetChannelResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetChannel)++responseGetEventDataStore :: GetEventDataStoreResponse -> TestTree+responseGetEventDataStore =+  res+    "GetEventDataStoreResponse"+    "fixture/GetEventDataStoreResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetEventDataStore)++responseGetEventSelectors :: GetEventSelectorsResponse -> TestTree+responseGetEventSelectors =+  res+    "GetEventSelectorsResponse"+    "fixture/GetEventSelectorsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetEventSelectors)++responseGetImport :: GetImportResponse -> TestTree+responseGetImport =+  res+    "GetImportResponse"+    "fixture/GetImportResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetImport)++responseGetInsightSelectors :: GetInsightSelectorsResponse -> TestTree+responseGetInsightSelectors =+  res+    "GetInsightSelectorsResponse"+    "fixture/GetInsightSelectorsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetInsightSelectors)++responseGetQueryResults :: GetQueryResultsResponse -> TestTree+responseGetQueryResults =+  res+    "GetQueryResultsResponse"+    "fixture/GetQueryResultsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetQueryResults)++responseGetTrail :: GetTrailResponse -> TestTree+responseGetTrail =+  res+    "GetTrailResponse"+    "fixture/GetTrailResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetTrail)++responseGetTrailStatus :: GetTrailStatusResponse -> TestTree+responseGetTrailStatus =+  res+    "GetTrailStatusResponse"+    "fixture/GetTrailStatusResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetTrailStatus)++responseListChannels :: ListChannelsResponse -> TestTree+responseListChannels =+  res+    "ListChannelsResponse"+    "fixture/ListChannelsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListChannels)++responseListEventDataStores :: ListEventDataStoresResponse -> TestTree+responseListEventDataStores =+  res+    "ListEventDataStoresResponse"+    "fixture/ListEventDataStoresResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListEventDataStores)++responseListImportFailures :: ListImportFailuresResponse -> TestTree+responseListImportFailures =+  res+    "ListImportFailuresResponse"+    "fixture/ListImportFailuresResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListImportFailures)++responseListImports :: ListImportsResponse -> TestTree+responseListImports =+  res+    "ListImportsResponse"+    "fixture/ListImportsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListImports)++responseListPublicKeys :: ListPublicKeysResponse -> TestTree+responseListPublicKeys =+  res+    "ListPublicKeysResponse"+    "fixture/ListPublicKeysResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListPublicKeys)++responseListQueries :: ListQueriesResponse -> TestTree+responseListQueries =+  res+    "ListQueriesResponse"+    "fixture/ListQueriesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListQueries)++responseListTags :: ListTagsResponse -> TestTree+responseListTags =+  res+    "ListTagsResponse"+    "fixture/ListTagsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListTags)++responseListTrails :: ListTrailsResponse -> TestTree+responseListTrails =+  res+    "ListTrailsResponse"+    "fixture/ListTrailsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListTrails)++responseLookupEvents :: LookupEventsResponse -> TestTree+responseLookupEvents =+  res+    "LookupEventsResponse"+    "fixture/LookupEventsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy LookupEvents)++responsePutEventSelectors :: PutEventSelectorsResponse -> TestTree+responsePutEventSelectors =+  res+    "PutEventSelectorsResponse"+    "fixture/PutEventSelectorsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy PutEventSelectors)++responsePutInsightSelectors :: PutInsightSelectorsResponse -> TestTree+responsePutInsightSelectors =+  res+    "PutInsightSelectorsResponse"+    "fixture/PutInsightSelectorsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy PutInsightSelectors)++responseRegisterOrganizationDelegatedAdmin :: RegisterOrganizationDelegatedAdminResponse -> TestTree+responseRegisterOrganizationDelegatedAdmin =+  res+    "RegisterOrganizationDelegatedAdminResponse"+    "fixture/RegisterOrganizationDelegatedAdminResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy RegisterOrganizationDelegatedAdmin)++responseRemoveTags :: RemoveTagsResponse -> TestTree+responseRemoveTags =+  res+    "RemoveTagsResponse"+    "fixture/RemoveTagsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy RemoveTags)++responseRestoreEventDataStore :: RestoreEventDataStoreResponse -> TestTree+responseRestoreEventDataStore =+  res+    "RestoreEventDataStoreResponse"+    "fixture/RestoreEventDataStoreResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy RestoreEventDataStore)++responseStartImport :: StartImportResponse -> TestTree+responseStartImport =+  res+    "StartImportResponse"+    "fixture/StartImportResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy StartImport)++responseStartLogging :: StartLoggingResponse -> TestTree+responseStartLogging =+  res+    "StartLoggingResponse"+    "fixture/StartLoggingResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy StartLogging)++responseStartQuery :: StartQueryResponse -> TestTree+responseStartQuery =+  res+    "StartQueryResponse"+    "fixture/StartQueryResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy StartQuery)++responseStopImport :: StopImportResponse -> TestTree+responseStopImport =+  res+    "StopImportResponse"+    "fixture/StopImportResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy StopImport)++responseStopLogging :: StopLoggingResponse -> TestTree+responseStopLogging =+  res+    "StopLoggingResponse"+    "fixture/StopLoggingResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy StopLogging)++responseUpdateEventDataStore :: UpdateEventDataStoreResponse -> TestTree+responseUpdateEventDataStore =+  res+    "UpdateEventDataStoreResponse"+    "fixture/UpdateEventDataStoreResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UpdateEventDataStore)++responseUpdateTrail :: UpdateTrailResponse -> TestTree+responseUpdateTrail =+  res+    "UpdateTrailResponse"+    "fixture/UpdateTrailResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UpdateTrail)