The Amazon CloudTrail dashboard resource allows customers to manage managed dashboards and create custom dashboards. You can manually refresh custom and managed dashboards. For custom dashboards, you can also set up an automatic refresh schedule and modify dashboard widgets.
Create Dashboard Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Dashboard(resource_name: str,
args: Optional[DashboardArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Dashboard(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
refresh_schedule: Optional[DashboardRefreshScheduleArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
termination_protection_enabled: Optional[bool] = None,
widgets: Optional[Sequence[DashboardWidgetArgs]] = None)
public Dashboard(String name, DashboardArgs args)
public Dashboard(String name, DashboardArgs args, CustomResourceOptions options)
type: aws-native:cloudtrail:Dashboard
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_cloudtrail_dashboard" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
DashboardArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
DashboardArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
DashboardArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
DashboardArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
DashboardArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Dashboard Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Dashboard resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Dashboard resource produces the following output properties:
- CreatedTimestamp
string
- The timestamp of the dashboard creation.
- DashboardArn
string
- The ARN of the dashboard.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Status
DashboardStatus
- The status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
- Type
DashboardType
- The type of the dashboard. Values are CUSTOM and MANAGED.
- UpdatedTimestamp
string
- The timestamp showing when the dashboard was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.
- createdTimestamp
String
- The timestamp of the dashboard creation.
- dashboardArn
String
- The ARN of the dashboard.
- id
String
- The provider-assigned unique ID for this managed resource.
- status
DashboardStatus
- The status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
- type
DashboardType
- The type of the dashboard. Values are CUSTOM and MANAGED.
- updatedTimestamp
String
- The timestamp showing when the dashboard was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.
- createdTimestamp
string
- The timestamp of the dashboard creation.
- dashboardArn
string
- The ARN of the dashboard.
- id
string
- The provider-assigned unique ID for this managed resource.
- status
DashboardStatus
- The status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
- type
DashboardType
- The type of the dashboard. Values are CUSTOM and MANAGED.
- updatedTimestamp
string
- The timestamp showing when the dashboard was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.
- created_timestamp
str
- The timestamp of the dashboard creation.
- dashboard_arn
str
- The ARN of the dashboard.
- id
str
- The provider-assigned unique ID for this managed resource.
- status
DashboardStatus
- The status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
- type
DashboardType
- The type of the dashboard. Values are CUSTOM and MANAGED.
- updated_timestamp
str
- The timestamp showing when the dashboard was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.
Look up Existing Dashboard Resource
Get an existing Dashboard resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Dashboard get(String name, Output<String> id, CustomResourceOptions options)
resources: existingDashboard: type: aws-native:cloudtrail:Dashboard get: id: ${id}
import {
to = aws-native_cloudtrail_dashboard.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
DashboardState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
DashboardRefreshSchedule, DashboardRefreshScheduleArgs
Configures the automatic refresh schedule for the dashboard. Includes the frequency unit (DAYS or HOURS) and value, as well as the status (ENABLED or DISABLED) of the refresh schedule.
DashboardRefreshScheduleFrequencyProperties, DashboardRefreshScheduleFrequencyPropertiesArgs
The frequency at which you want the dashboard refreshed.
DashboardRefreshScheduleFrequencyPropertiesUnit
The frequency unit. Supported values are HOURS and DAYS.
| Name | Value |
|---|
| Hours | HOURS |
| Days | DAYS |
| Name | Value |
|---|
| DashboardRefreshScheduleFrequencyPropertiesUnitHours | HOURS |
| DashboardRefreshScheduleFrequencyPropertiesUnitDays | DAYS |
| Name | Value |
|---|
| Hours | HOURS |
| Days | DAYS |
| Name | Value |
|---|
| Hours | HOURS |
| Days | DAYS |
| Name | Value |
|---|
| HOURS | HOURS |
| DAYS | DAYS |
DashboardRefreshScheduleStatus
The status of the schedule. Supported values are ENABLED and DISABLED.
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| DashboardRefreshScheduleStatusEnabled | ENABLED |
| DashboardRefreshScheduleStatusDisabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| ENABLED | ENABLED |
| DISABLED | DISABLED |
DashboardStatus
The status of the dashboard. Values are CREATING, CREATED, UPDATING, UPDATED and DELETING.
| Name | Value |
|---|
| Creating | CREATING |
| Created | CREATED |
| Updating | UPDATING |
| Updated | UPDATED |
| Deleting | DELETING |
| Name | Value |
|---|
| DashboardStatusCreating | CREATING |
| DashboardStatusCreated | CREATED |
| DashboardStatusUpdating | UPDATING |
| DashboardStatusUpdated | UPDATED |
| DashboardStatusDeleting | DELETING |
| Value |
|---|
CREATING |
CREATED |
UPDATING |
UPDATED |
DELETING |
| Name | Value |
|---|
| Creating | CREATING |
| Created | CREATED |
| Updating | UPDATING |
| Updated | UPDATED |
| Deleting | DELETING |
| Name | Value |
|---|
| Creating | CREATING |
| Created | CREATED |
| Updating | UPDATING |
| Updated | UPDATED |
| Deleting | DELETING |
| Name | Value |
|---|
| CREATING | CREATING |
| CREATED | CREATED |
| UPDATING | UPDATING |
| UPDATED | UPDATED |
| DELETING | DELETING |
| Value |
|---|
CREATING |
CREATED |
UPDATING |
UPDATED |
DELETING |
DashboardType
The type of the dashboard. Values are CUSTOM and MANAGED.
| Name | Value |
|---|
| Managed | MANAGED |
| Custom | CUSTOM |
| Name | Value |
|---|
| DashboardTypeManaged | MANAGED |
| DashboardTypeCustom | CUSTOM |
| Name | Value |
|---|
| Managed | MANAGED |
| Custom | CUSTOM |
| Name | Value |
|---|
| Managed | MANAGED |
| Custom | CUSTOM |
| Name | Value |
|---|
| MANAGED | MANAGED |
| CUSTOM | CUSTOM |
The dashboard widget
- QueryStatement
string
- The SQL query statement on one or more event data stores.
- QueryParameters
List<string>
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- ViewProperties
Dictionary<string, string>
- The view properties of the widget.
- QueryStatement
string
- The SQL query statement on one or more event data stores.
- QueryParameters
[]string
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- ViewProperties
map[string]string
- The view properties of the widget.
- query_statement
string
- The SQL query statement on one or more event data stores.
- query_parameters
list(string)
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- view_properties
map(string)
- The view properties of the widget.
- queryStatement
String
- The SQL query statement on one or more event data stores.
- queryParameters
List<String>
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- viewProperties
Map<String,String>
- The view properties of the widget.
- queryStatement
string
- The SQL query statement on one or more event data stores.
- queryParameters
string[]
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- viewProperties
{[key: string]: string}
- The view properties of the widget.
- query_statement
str
- The SQL query statement on one or more event data stores.
- query_parameters
Sequence[str]
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- view_properties
Mapping[str, str]
- The view properties of the widget.
- queryStatement
String
- The SQL query statement on one or more event data stores.
- queryParameters
List<String>
- The placeholder keys in the QueryStatement. For example: $StartTime$, $EndTime$, $Period$.
- viewProperties
Map<String>
- The view properties of the widget.
Tag, TagArgs
A set of tags to apply to the resource.
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
str
- The key name of the tag
- value
str
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0