update_space
async
¶
update_space(
space_id: SpaceId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
identity_center_configuration: Optional[SpaceIdentityCenterConfiguration] = None,
name: Optional[str] = None,
agent_core_evaluation_role_arn: Optional[Arn] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
) -> UpdateSpaceOutput
Updates a space. Only the provided fields are changed; omitted fields are left unchanged.
Parameters:
-
space_id(SpaceId) –The unique ID of the space to update.
-
identity_center_configuration(Optional[SpaceIdentityCenterConfiguration], default:None) –Identity Center settings for this space. Omit to leave the configuration unchanged.
-
name(Optional[str], default:None) –A new name for the space. Omit to leave unchanged. Must be 3-64 characters: lowercase letters, numbers, and hyphens. It must begin and end with a letter or number and cannot contain consecutive hyphens.
-
agent_core_evaluation_role_arn(Optional[Arn], default:None) –The ARN of the IAM role used by AgentCore online evaluation. Must be in the caller's account. Omit if the space does not use AgentCore online evaluation.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –How to encrypt the space's data at rest. Omit to leave encryption unchanged. Pass
encryptionStrategyAWS_OWNED to stop using a customer managed key and revert to service owned encryption.
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:
Rename a space The following example updates only the name of a space; omitted fields are left unchanged. The response returns the full space with a later updatedAt timestamp. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.update_space(space_id='a1b2c3d4-5e6f-4a3b-8c9d-0e1f2a3b4c5d', name='prod-observability-team')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 | |