Module Values.GetInsightSelectorsResponseSource

Describes 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.

Sourcetype nonrec t = {
  1. trailARN : String_.t option;
    (*

    The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.

    *)
  2. 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.

    *)
  3. eventDataStoreArn : EventDataStoreArn.t option;
    (*

    The ARN of the source event data store that enabled Insights events.

    *)
  4. insightsDestination : EventDataStoreArn.t option;
    (*

    The ARN of the destination event data store that logs Insights events.

    *)
}
Sourcetype nonrec error = [
  1. | `CloudTrailARNInvalidException of CloudTrailARNInvalidException.t
  2. | `InsightNotEnabledException of InsightNotEnabledException.t
  3. | `InvalidParameterCombinationException of InvalidParameterCombinationException.t
  4. | `InvalidParameterException of InvalidParameterException.t
  5. | `InvalidTrailNameException of InvalidTrailNameException.t
  6. | `NoManagementAccountSLRExistsException of NoManagementAccountSLRExistsException.t
  7. | `OperationNotPermittedException of OperationNotPermittedException.t
  8. | `ThrottlingException of ThrottlingException.t
  9. | `TrailNotFoundException of TrailNotFoundException.t
  10. | `UnsupportedOperationException of UnsupportedOperationException.t
  11. | `Unknown_operation_error of string * string option
]
Sourceval make : ?trailARN:??? -> ?insightSelectors:??? -> ?eventDataStoreArn:??? -> ?insightsDestination:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list ]) list ] list | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t