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>
A builder for
CfnTrail.InsightSelectorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.insightType
(String insightType) Sets the value ofCfnTrail.InsightSelectorProperty.getInsightType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
insightType
Sets the value ofCfnTrail.InsightSelectorProperty.getInsightType()
- Parameters:
insightType
- The type of Insights events to log on a trail.ApiCallRateInsight
andApiErrorRateInsight
are valid Insight types. TheApiCallRateInsight
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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrail.InsightSelectorProperty>
- Returns:
- a new instance of
CfnTrail.InsightSelectorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-