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
4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 | |