update_number_of_domain_controllers
async
¶
update_number_of_domain_controllers(
directory_id: DirectoryId,
desired_number: DesiredNumberOfDomainControllers,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
) -> UpdateNumberOfDomainControllersResult
Adds or removes domain controllers to or from the directory. Based on the difference between current value and new value (provided through this API call), domain controllers will be added or removed. It may take up to 45 minutes for any new domain controllers to become fully active once the requested number of domain controllers is updated. During this time, you cannot make another update request.
Parameters:
-
directory_id(DirectoryId) –Identifier of the directory to which the domain controllers will be added or removed.
-
desired_number(DesiredNumberOfDomainControllers) –The number of domain controllers desired in the directory.
Raises:
-
ClientException–A client exception has occurred.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
DomainControllerLimitExceededException–The maximum allowed number of domain controllers per directory was exceeded. The default limit per directory is 20 domain controllers.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
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
6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 | |