Class CfnTrail.InsightSelectorProperty.Builder

java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnTrail.InsightSelectorProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrail.InsightSelectorProperty>
Enclosing interface:
CfnTrail.InsightSelectorProperty

@Stability(Stable) public static final class CfnTrail.InsightSelectorProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnTrail.InsightSelectorProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • eventCategories

      @Stability(Stable) public CfnTrail.InsightSelectorProperty.Builder eventCategories(List<String> eventCategories)
      Parameters:
      eventCategories - Select the event category on which Insights should be enabled.
      • If EventCategories is not provided, the specified Insights types are enabled on management API calls by default.
      • If EventCategories is provided, the given event categories will overwrite the existing ones. For example, if a trail already has Insights enabled on management events, and then a PutInsightSelectors request is made with only data events specified in EventCategories, Insights on management events will be disabled.
      Returns:
      this
    • insightType

      @Stability(Stable) public CfnTrail.InsightSelectorProperty.Builder insightType(String insightType)
      Parameters:
      insightType - The type of Insights events to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.

      Returns:
      this
    • build

      @Stability(Stable) public CfnTrail.InsightSelectorProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTrail.InsightSelectorProperty>
      Returns:
      a new instance of CfnTrail.InsightSelectorProperty
      Throws:
      NullPointerException - if any required attribute was not provided