Values.GetInsightSelectorsResponseSourceDescribes the settings for the Insights event selectors that you configured for your trail or event data store. GetInsightSelectors shows if CloudTrail Insights logging is enabled and which Insights types are configured with corresponding event categories. If you run GetInsightSelectors on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException Specify either the EventDataStore parameter to get Insights event selectors for an event data store, or the TrailName parameter to the get Insights event selectors for a trail. You cannot specify these parameters together. For more information, see Working with CloudTrail Insights in the CloudTrail User Guide.
type nonrec t = {trailARN : String_.t option;The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.
*)insightSelectors : InsightSelectors.t option;Contains the Insights types that are enabled on a trail or event data store. It also specifies the event categories on which a particular Insight type is enabled. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only.
*)eventDataStoreArn : EventDataStoreArn.t option;The ARN of the source event data store that enabled Insights events.
*)insightsDestination : EventDataStoreArn.t option;The ARN of the destination event data store that logs Insights events.
*)}type nonrec error = [ | `CloudTrailARNInvalidException of CloudTrailARNInvalidException.t| `InsightNotEnabledException of InsightNotEnabledException.t| `InvalidParameterCombinationException of InvalidParameterCombinationException.t| `InvalidParameterException of InvalidParameterException.t| `InvalidTrailNameException of InvalidTrailNameException.t| `NoManagementAccountSLRExistsException of
NoManagementAccountSLRExistsException.t| `OperationNotPermittedException of OperationNotPermittedException.t| `ThrottlingException of ThrottlingException.t| `TrailNotFoundException of TrailNotFoundException.t| `UnsupportedOperationException of UnsupportedOperationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `CloudTrailARNInvalidException of unit
| `InsightNotEnabledException of unit
| `InvalidParameterCombinationException of unit
| `InvalidParameterException of unit
| `InvalidTrailNameException of unit
| `NoManagementAccountSLRExistsException of unit
| `OperationNotPermittedException of unit
| `ThrottlingException of unit
| `TrailNotFoundException of unit
| `Unknown_operation_error of string * string option
| `UnsupportedOperationException of unit ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `CloudTrailARNInvalidException of unit
| `InsightNotEnabledException of unit
| `InvalidParameterCombinationException of unit
| `InvalidParameterException of unit
| `InvalidTrailNameException of unit
| `NoManagementAccountSLRExistsException of unit
| `OperationNotPermittedException of unit
| `ThrottlingException of unit
| `TrailNotFoundException of unit
| `Unknown_operation_error of string * string option
| `UnsupportedOperationException of unit ]