Class CfnDashboardPropsMixin.WidgetProperty
Contains information about a widget on a CloudTrail Lake dashboard.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnDashboardPropsMixin.WidgetProperty : CfnDashboardPropsMixin.IWidgetProperty
Syntax (vb)
Public Class CfnDashboardPropsMixin.WidgetProperty Implements CfnDashboardPropsMixin.IWidgetProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;
var widgetProperty = new WidgetProperty {
QueryParameters = new [] { "queryParameters" },
QueryStatement = "queryStatement",
ViewProperties = new Dictionary<string, string> {
{ "viewPropertiesKey", "viewProperties" }
}
};
Synopsis
Constructors
| WidgetProperty() | Contains information about a widget on a CloudTrail Lake dashboard. |
Properties
| QueryParameters | The optional query parameters. |
| QueryStatement | The query statement for the widget. |
| ViewProperties | The view properties for the widget. |
Constructors
WidgetProperty()
Contains information about a widget on a CloudTrail Lake dashboard.
public WidgetProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins;
var widgetProperty = new WidgetProperty {
QueryParameters = new [] { "queryParameters" },
QueryStatement = "queryStatement",
ViewProperties = new Dictionary<string, string> {
{ "viewPropertiesKey", "viewProperties" }
}
};
Properties
QueryParameters
The optional query parameters.
public string[]? QueryParameters { get; set; }
Property Value
string[]
Remarks
The following query parameters are valid: \(StartTime\) , \(EndTime\) , and \(Period\) .
QueryStatement
The query statement for the widget.
public string? QueryStatement { get; set; }
Property Value
Remarks
For custom dashboard widgets, you can query across multiple event data stores as long as all event data stores exist in your account.
When a query uses <code>?</code> with <code>eventTime</code> , <code>?</code> must be surrounded by single quotes as follows: <code>'?'</code> .
ViewProperties
The view properties for the widget.
public object? ViewProperties { get; set; }
Property Value
Remarks
For more information about view properties, see View properties for widgets in the AWS CloudTrail User Guide .
Type union: either Dictionary<string, string> or IResolvable