Skip to content
v2.278.0

InsightType Class ​

Util element for InsightSelector.

Example ​

ts
new cloudtrail.Trail(this, 'Insights', {
    insightTypes: [
      cloudtrail.InsightType.API_CALL_RATE,
      cloudtrail.InsightType.API_ERROR_RATE,
    ],
});
python
cloudtrail.Trail(self, "Insights",
    insight_types=[cloudtrail.InsightType.API_CALL_RATE, cloudtrail.InsightType.API_ERROR_RATE
    ]
)
java
Trail.Builder.create(this, "Insights")
        .insightTypes(List.of(InsightType.API_CALL_RATE, InsightType.API_ERROR_RATE))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new Trail(this, "Insights", new TrailProps {
    InsightTypes = new [] { InsightType.API_CALL_RATE, InsightType.API_ERROR_RATE }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
cloudtrail.NewTrail(this, jsii.String("Insights"), &TrailProps{
	InsightTypes: []InsightType{
		cloudtrail.InsightType_API_CALL_RATE(),
		cloudtrail.InsightType_API_ERROR_RATE(),
	},
})

Properties ​

API_CALL_RATEInsightTypeAPI_CALL_RATEInsightTypeAPI_CALL_RATEInsightTypeAPI_CALL_RATEInsightTypeAPI_CALL_RATEInsightType static #
The type of insights to log on a trail.

(API Call Rate)

API_ERROR_RATEInsightTypeAPI_ERROR_RATEInsightTypeAPI_ERROR_RATEInsightTypeAPI_ERROR_RATEInsightTypeAPI_ERROR_RATEInsightType static #
The type of insights to log on a trail.

(API Error Rate)

valuestringvaluestrvalueStringValuestringValue*string #