get_directory
(**kwargs)¶Retrieves metadata about a directory.
See also: AWS API Documentation
Request Syntax
response = client.get_directory(
DirectoryArn='string'
)
[REQUIRED]
The ARN of the directory.
{
'Directory': {
'Name': 'string',
'DirectoryArn': 'string',
'State': 'ENABLED'|'DISABLED'|'DELETED',
'CreationDateTime': datetime(2015, 1, 1)
}
}
Response Structure
Metadata about the directory.
The name of the directory.
The Amazon Resource Name (ARN) that is associated with the directory. For more information, see arns.
The state of the directory. Can be either Enabled
, Disabled
, or Deleted
.
The date and time when the directory was created.
Exceptions
CloudDirectory.Client.exceptions.InternalServiceException
CloudDirectory.Client.exceptions.InvalidArnException
CloudDirectory.Client.exceptions.RetryableConflictException
CloudDirectory.Client.exceptions.ValidationException
CloudDirectory.Client.exceptions.LimitExceededException
CloudDirectory.Client.exceptions.AccessDeniedException