enable_directory

enable_directory(**kwargs)

Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to.

See also: AWS API Documentation

Request Syntax

response = client.enable_directory(
    DirectoryArn='string'
)
Parameters
DirectoryArn (string) --

[REQUIRED]

The ARN of the directory to enable.

Return type
dict
Returns
Response Syntax
{
    'DirectoryArn': 'string'
}

Response Structure

  • (dict) --
    • DirectoryArn (string) --

      The ARN of the enabled directory.

Exceptions

  • CloudDirectory.Client.exceptions.ResourceNotFoundException
  • CloudDirectory.Client.exceptions.DirectoryDeletedException
  • CloudDirectory.Client.exceptions.InternalServiceException
  • CloudDirectory.Client.exceptions.ValidationException
  • CloudDirectory.Client.exceptions.LimitExceededException
  • CloudDirectory.Client.exceptions.AccessDeniedException
  • CloudDirectory.Client.exceptions.RetryableConflictException
  • CloudDirectory.Client.exceptions.InvalidArnException