Skip to content

CloudTrailClient.create_dashboard

rboto-cloudtrail==0.4.0 · Service index · Types

Model summary (excerpt): CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change . Creates a custom dashboard or the Highlights dashboard. Custom dashboards - Custom dashboards allow you to query events...

Install and imports

python -m pip install "rboto[cloudtrail]==0.4.0"
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
    CreateDashboardOutput,
    RefreshSchedule,
    RequestWidget,
    Tag,
)

Signature

async def create_dashboard(
    *,
    name: str,
    refresh_schedule: RefreshSchedule | None = None,
    tags_list: Sequence[Tag] | None = None,
    termination_protection_enabled: bool | None = None,
    widgets: Sequence[RequestWidget] | None = None,
) -> CreateDashboardOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name of the dashboard. The name must be unique to your account. To create the Highlights dashboard, the name must be AWSCloudTrail-Highlights .
refresh_schedule No The refresh schedule configuration for the dashboard. To create the Highlights dashboard, you must set a refresh schedule and set the Status to ENABLED . The Unit for the refresh schedule must be HOURS and the Value must be 6 .
tags_list No
termination_protection_enabled No Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
widgets No An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets. You do not need to specify widgets for the Highlights dashboard.

Output

CreateDashboardOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
dashboard_arn str | None Always present —
name str | None Always present —
type DashboardTypeOutput | None Always present DashboardTypeOutput
widgets list[WidgetOutput] | None Always present WidgetOutput
tags_list list[TagOutput] | None Always present TagOutput
refresh_schedule RefreshScheduleOutput | None Always present RefreshScheduleOutput
termination_protection_enabled bool | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateDashboardOutput, RefreshSchedule, RequestWidget, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudtrail.exceptions:

ConflictError, EventDataStoreNotFoundError, InactiveEventDataStoreError, InsufficientEncryptionPolicyError, InvalidQueryStatementError, InvalidTagParameterError, ServiceQuotaExceededError, UnsupportedOperationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model