update_access_profile
async
¶
update_access_profile(
space_id: SpaceId,
profile_id: ProfileId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
name: Optional[AccessProfileName] = None,
description: Optional[str] = None,
) -> UpdateAccessProfileOutput
Updates the name or description of an access profile. Only the provided fields are changed; omitted fields are left unchanged.
Parameters:
-
space_id(SpaceId) –The unique ID of the space.
-
profile_id(ProfileId) –The unique ID of the access profile to update.
-
name(Optional[AccessProfileName], default:None) –A new name for the access profile. Omit to leave unchanged.
-
description(Optional[str], default:None) –A new description of the access profile. 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 an access profile description The following example updates only the description of an access profile; the name is left unchanged. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.update_access_profile(space_id='a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d', profile_id='analyst-readonly', description='Read-only access for analysts and on-call responders.')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 | |