CloudTrail / Client / exceptions / InvalidInsightSelectorsException
InvalidInsightSelectorsException¶
- class CloudTrail.Client.exceptions.InvalidInsightSelectorsException¶
- For - PutInsightSelectors, this exception is thrown when the formatting or syntax of the- InsightSelectorsJSON statement is not valid, or the specified- InsightTypein the- InsightSelectorsstatement is not valid. Valid values for- InsightTypeare- ApiCallRateInsightand- ApiErrorRateInsight. To enable Insights on an event data store, the destination event data store specified by the- InsightsDestinationparameter must log Insights events and the source event data store specified by the- EventDataStoreparameter must log management events.- For - UpdateEventDataStore, this exception is thrown if Insights are enabled on the event data store and the updated advanced event selectors are not compatible with the configured- InsightSelectors. If the- InsightSelectorsincludes an- InsightTypeof- ApiCallRateInsight, the source event data store must log- writemanagement events. If the- InsightSelectorsincludes an- InsightTypeof- ApiErrorRateInsight, the source event data store must log management events.- Example- try: ... except client.exceptions.InvalidInsightSelectorsException as e: print(e.response) - response¶
- The parsed error response. All exceptions have a top level - Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.- Syntax- {}- Structure- (dict) – - For - PutInsightSelectors, this exception is thrown when the formatting or syntax of the- InsightSelectorsJSON statement is not valid, or the specified- InsightTypein the- InsightSelectorsstatement is not valid. Valid values for- InsightTypeare- ApiCallRateInsightand- ApiErrorRateInsight. To enable Insights on an event data store, the destination event data store specified by the- InsightsDestinationparameter must log Insights events and the source event data store specified by the- EventDataStoreparameter must log management events.- For - UpdateEventDataStore, this exception is thrown if Insights are enabled on the event data store and the updated advanced event selectors are not compatible with the configured- InsightSelectors. If the- InsightSelectorsincludes an- InsightTypeof- ApiCallRateInsight, the source event data store must log- writemanagement events. If the- InsightSelectorsincludes an- InsightTypeof- ApiErrorRateInsight, the source event data store must log management events.- Error (dict) – Normalized access to common exception attributes. - Code (string) – An identifier specifying the exception type. 
- Message (string) – A descriptive message explaining why the exception occured.