Class CfnDashboardPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
- Custom dashboards - Custom dashboards allow you to query events in any event data store type. You can add up to 10 widgets to a custom dashboard. You can manually refresh a custom dashboard, or you can set a refresh schedule.
- Highlights dashboard - You can create the Highlights dashboard to see a summary of key user activities and API usage across all your event data stores. CloudTrail Lake manages the Highlights dashboard and refreshes the dashboard every 6 hours. To create the Highlights dashboard, you must set and enable a refresh schedule.
CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the AWS CloudTrail User Guide .
To set a refresh schedule, CloudTrail must be granted permissions to run the StartDashboardRefresh operation to refresh the dashboard on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the AWS CloudTrail User Guide .
For more information about dashboards, see CloudTrail Lake dashboards in the AWS CloudTrail User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.cloudtrail.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnDashboardPropsMixin cfnDashboardPropsMixin = CfnDashboardPropsMixin.Builder.create(CfnDashboardMixinProps.builder()
.name("name")
.refreshSchedule(RefreshScheduleProperty.builder()
.frequency(FrequencyProperty.builder()
.unit("unit")
.value(123)
.build())
.status("status")
.timeOfDay("timeOfDay")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.terminationProtectionEnabled(false)
.widgets(List.of(WidgetProperty.builder()
.queryParameters(List.of("queryParameters"))
.queryStatement("queryStatement")
.viewProperties(Map.of(
"viewPropertiesKey", "viewProperties"))
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDashboardPropsMixin.static interfaceSpecifies the frequency for a dashboard refresh schedule.static interfaceThe schedule for a dashboard refresh.static interfaceContains information about a widget on a CloudTrail Lake dashboard.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CloudTrail::Dashboard.CfnDashboardPropsMixin(CfnDashboardMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CloudTrail::Dashboard.protectedCfnDashboardPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDashboardPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDashboardMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnDashboardPropsMixin
protected CfnDashboardPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDashboardPropsMixin
protected CfnDashboardPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDashboardPropsMixin
@Stability(Stable) public CfnDashboardPropsMixin(@NotNull CfnDashboardMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CloudTrail::Dashboard.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDashboardPropsMixin
Create a mixin to apply properties toAWS::CloudTrail::Dashboard.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-