CloudTrailClient.update_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 . Updates the specified dashboard. To set a refresh schedule, CloudTrail must be granted permissions to run the...
Install and imports
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
RefreshSchedule,
RequestWidget,
UpdateDashboardOutput,
)
Signature
async def update_dashboard(
*,
dashboard_id: str,
widgets: Sequence[RequestWidget] | None = None,
refresh_schedule: RefreshSchedule | None = None,
termination_protection_enabled: bool | None = None,
) -> UpdateDashboardOutput: ...
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) |
|---|---|---|
dashboard_id |
Yes | The name or ARN of the dashboard. |
widgets |
No | An array of widgets for the dashboard. A custom dashboard can have a maximum of 10 widgets. To add new widgets, pass in an array that includes the existing widgets along with any new widgets. Run the GetDashboard operation to get the list of widgets for the dashboard. To remove widgets, pass in an array that includes the existing widgets minus the widgets you want removed. |
refresh_schedule |
No | The refresh schedule configuration for the dashboard. |
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. |
Output
UpdateDashboardOutput.
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 |
refresh_schedule |
RefreshScheduleOutput | None |
Always present | RefreshScheduleOutput |
termination_protection_enabled |
bool | None |
Always present | — |
created_timestamp |
str | None |
Always present | — |
updated_timestamp |
str | 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.
Related types
RefreshSchedule, RequestWidget, UpdateDashboardOutput
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, ResourceNotFoundError, ServiceQuotaExceededError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.