update_directory_setup
async
¶
update_directory_setup(
directory_id: DirectoryId,
update_type: UpdateType,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
os_update_settings: Optional[OSUpdateSettings] = None,
directory_size_update_settings: Optional[DirectorySizeUpdateSettings] = None,
network_update_settings: Optional[NetworkUpdateSettings] = None,
create_snapshot_before_update: Optional[CreateSnapshotBeforeUpdate] = None,
) -> UpdateDirectorySetupResult
Updates directory configuration for the specified update type.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory to update.
-
update_type(UpdateType) –The type of update to perform on the directory.
-
os_update_settings(Optional[OSUpdateSettings], default:None) –Operating system configuration to apply during the directory update operation.
-
directory_size_update_settings(Optional[DirectorySizeUpdateSettings], default:None) –Directory size configuration to apply during the update operation.
-
network_update_settings(Optional[NetworkUpdateSettings], default:None) –Network configuration to apply during the directory update operation.
-
create_snapshot_before_update(Optional[CreateSnapshotBeforeUpdate], default:None) –Specifies whether to create a directory snapshot before performing the update.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryInDesiredStateException–The directory is already updated to desired update type settings.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
SnapshotLimitExceededException–The maximum number of manual snapshots for the directory has been reached. You can use the GetSnapshotLimits operation to determine the snapshot limits for a directory.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
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 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 | |