interface WidgetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudTrail.Mixins.CfnDashboardPropsMixin.WidgetProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudtrail/mixins#CfnDashboardPropsMixin_WidgetProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudtrail.mixins.CfnDashboardPropsMixin.WidgetProperty |
Python | aws_cdk.mixins_preview.aws_cloudtrail.mixins.CfnDashboardPropsMixin.WidgetProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudtrail » mixins » CfnDashboardPropsMixin » WidgetProperty |
Contains information about a widget on a CloudTrail Lake dashboard.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudtrail_mixins } from '@aws-cdk/mixins-preview/aws-cloudtrail';
const widgetProperty: cloudtrail_mixins.CfnDashboardPropsMixin.WidgetProperty = {
queryParameters: ['queryParameters'],
queryStatement: 'queryStatement',
viewProperties: {
viewPropertiesKey: 'viewProperties',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| query | string[] | The optional query parameters. |
| query | string | The query statement for the widget. |
| view | { [string]: string } | IResolvable | The view properties for the widget. |
queryParameters?
Type:
string[]
(optional)
The optional query parameters.
The following query parameters are valid: $StartTime$ , $EndTime$ , and $Period$ .
queryStatement?
Type:
string
(optional)
The query statement for the widget.
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
?witheventTime,?must be surrounded by single quotes as follows:'?'.
viewProperties?
Type:
{ [string]: string } | IResolvable
(optional)
The view properties for the widget.
For more information about view properties, see View properties for widgets in the AWS CloudTrail User Guide .

.NET
Go
Java
Python
TypeScript