Class CfnTrailPropsMixin.InsightSelectorProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudtrail.mixins.CfnTrailPropsMixin.InsightSelectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrailPropsMixin.InsightSelectorProperty>
- Enclosing interface:
CfnTrailPropsMixin.InsightSelectorProperty
@Stability(Stable)
public static final class CfnTrailPropsMixin.InsightSelectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrailPropsMixin.InsightSelectorProperty>
A builder for
CfnTrailPropsMixin.InsightSelectorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventCategories(List<String> eventCategories) Sets the value ofCfnTrailPropsMixin.InsightSelectorProperty.getEventCategories()insightType(String insightType) Sets the value ofCfnTrailPropsMixin.InsightSelectorProperty.getInsightType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventCategories
@Stability(Stable) public CfnTrailPropsMixin.InsightSelectorProperty.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnTrailPropsMixin.InsightSelectorProperty.getEventCategories()- 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 CfnTrailPropsMixin.InsightSelectorProperty.Builder insightType(String insightType) Sets the value ofCfnTrailPropsMixin.InsightSelectorProperty.getInsightType()- Parameters:
insightType- The type of Insights events to log on a trail.ApiCallRateInsightandApiErrorRateInsightare valid Insight types. TheApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
ApiErrorRateInsightInsights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrailPropsMixin.InsightSelectorProperty>- Returns:
- a new instance of
CfnTrailPropsMixin.InsightSelectorProperty - Throws:
NullPointerException- if any required attribute was not provided
-