update_omni_dashboard
async
¶
update_omni_dashboard(
space_id: SpaceId,
dashboard_id: DashboardId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
body: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
) -> UpdateOmniDashboardOutput
Updates an existing dashboard within a space. Only the provided fields are changed; omitted fields are left unchanged.
Parameters:
-
space_id(SpaceId) –The unique ID of the space.
-
dashboard_id(DashboardId) –The unique ID of the dashboard.
-
body(Optional[str], default:None) –The new dashboard definition, as a JSON document. Maximum 1 MiB. Omit to leave unchanged.
-
name(Optional[str], default:None) –A new name for the dashboard. Omit to leave unchanged.
-
description(Optional[str], default:None) –A new description of the dashboard. Omit to leave unchanged.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–A service quota was exceeded.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update a dashboard body The following example updates only the body of a dashboard; the name and description are left unchanged. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.update_omni_dashboard(space_id='a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d', dashboard_id='c3d4e5f6-7a8b-4c9d-8e0f-1a2b3c4d5e6f', body='{"widgets":[{"type":"metric","x":0,"y":0,"width":24,"height":6,"properties":{"metrics":[["AWS/Lambda","Errors","FunctionName","OrderProcessor"],["AWS/Lambda","Throttles","FunctionName","OrderProcessor"]],"region":"us-east-1","title":"Lambda Errors and Throttles"}}]}')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 | |