CloudTrail Lake will no longer be open to new customers starting May 31, 2026¶
Description¶
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 start_dashboard_refresh operation to refresh the dashboard on your behalf. To provide permissions, run the put_resource_policy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the CloudTrail User Guide.
CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the start_query operation on your behalf. To provide permissions, run the put_resource_policy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide.
Usage¶
Arguments¶
-
DashboardId[required] The name or ARN of the dashboard.
-
WidgetsAn 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
get_dashboardoperation 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.
-
RefreshScheduleThe refresh schedule configuration for the dashboard.
-
TerminationProtectionEnabledSpecifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
Value¶
A list with the following syntax:
list(
DashboardArn = "string",
Name = "string",
Type = "MANAGED"|"CUSTOM",
Widgets = list(
list(
QueryAlias = "string",
QueryStatement = "string",
QueryParameters = list(
"string"
),
ViewProperties = list(
"string"
)
)
),
RefreshSchedule = list(
Frequency = list(
Unit = "HOURS"|"DAYS",
Value = 123
),
Status = "ENABLED"|"DISABLED",
TimeOfDay = "string"
),
TerminationProtectionEnabled = TRUE|FALSE,
CreatedTimestamp = as.POSIXct(
"2015-01-01"
),
UpdatedTimestamp = as.POSIXct(
"2015-01-01"
)
)
Request syntax¶
svc$update_dashboard(
DashboardId = "string",
Widgets = list(
list(
QueryStatement = "string",
QueryParameters = list(
"string"
),
ViewProperties = list(
"string"
)
)
),
RefreshSchedule = list(
Frequency = list(
Unit = "HOURS"|"DAYS",
Value = 123
),
Status = "ENABLED"|"DISABLED",
TimeOfDay = "string"
),
TerminationProtectionEnabled = TRUE|FALSE
)