update_access_profile
¶
update_access_profile(
space_id: SpaceId,
profile_id: ProfileId,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = 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.
>>> 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/cloud_watch_omni.py
4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 | |