DirectoryService.Client.
get_directory_limits
()¶Obtains directory limit information for the current Region.
See also: AWS API Documentation
Request Syntax
response = client.get_directory_limits()
{
'DirectoryLimits': {
'CloudOnlyDirectoriesLimit': 123,
'CloudOnlyDirectoriesCurrentCount': 123,
'CloudOnlyDirectoriesLimitReached': True|False,
'CloudOnlyMicrosoftADLimit': 123,
'CloudOnlyMicrosoftADCurrentCount': 123,
'CloudOnlyMicrosoftADLimitReached': True|False,
'ConnectedDirectoriesLimit': 123,
'ConnectedDirectoriesCurrentCount': 123,
'ConnectedDirectoriesLimitReached': True|False
}
}
Response Structure
Contains the results of the GetDirectoryLimits operation.
A DirectoryLimits object that contains the directory limits for the current Region.
The maximum number of cloud directories allowed in the Region.
The current number of cloud directories in the Region.
Indicates if the cloud directory limit has been reached.
The maximum number of Managed Microsoft AD directories allowed in the region.
The current number of Managed Microsoft AD directories in the region.
Indicates if the Managed Microsoft AD directory limit has been reached.
The maximum number of connected directories allowed in the Region.
The current number of connected directories in the Region.
Indicates if the connected directory limit has been reached.
Exceptions
DirectoryService.Client.exceptions.EntityDoesNotExistException
DirectoryService.Client.exceptions.ClientException
DirectoryService.Client.exceptions.ServiceException