

# SharedDirectory
<a name="API_SharedDirectory"></a>

Details about the shared directory in the directory owner account for which the share request in the directory consumer account has been accepted.

## Contents
<a name="API_SharedDirectory_Contents"></a>

 ** CreatedDateTime **   <a name="DirectoryService-Type-SharedDirectory-CreatedDateTime"></a>
The date and time that the shared directory was created.  
Type: Timestamp  
Required: No

 ** LastUpdatedDateTime **   <a name="DirectoryService-Type-SharedDirectory-LastUpdatedDateTime"></a>
The date and time that the shared directory was last updated.  
Type: Timestamp  
Required: No

 ** OwnerAccountId **   <a name="DirectoryService-Type-SharedDirectory-OwnerAccountId"></a>
Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.  
Type: String  
Pattern: `^(\d{12})$`   
Required: No

 ** OwnerDirectoryId **   <a name="DirectoryService-Type-SharedDirectory-OwnerDirectoryId"></a>
Identifier of the directory in the directory owner account.   
Type: String  
Pattern: `^d-[0-9a-f]{10}$`   
Required: No

 ** SharedAccountId **   <a name="DirectoryService-Type-SharedDirectory-SharedAccountId"></a>
Identifier of the directory consumer account that has access to the shared directory (`OwnerDirectoryId`) in the directory owner account.  
Type: String  
Pattern: `^(\d{12})$`   
Required: No

 ** SharedDirectoryId **   <a name="DirectoryService-Type-SharedDirectory-SharedDirectoryId"></a>
Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.  
Type: String  
Pattern: `^d-[0-9a-f]{10}$`   
Required: No

 ** ShareMethod **   <a name="DirectoryService-Type-SharedDirectory-ShareMethod"></a>
The method used when sharing a directory to determine whether the directory should be shared within your AWS organization (`ORGANIZATIONS`) or with any AWS account by sending a shared directory request (`HANDSHAKE`).  
Type: String  
Valid Values: `ORGANIZATIONS | HANDSHAKE`   
Required: No

 ** ShareNotes **   <a name="DirectoryService-Type-SharedDirectory-ShareNotes"></a>
A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.  
Type: String  
Length Constraints: Maximum length of 1024.  
Required: No

 ** ShareStatus **   <a name="DirectoryService-Type-SharedDirectory-ShareStatus"></a>
Current directory status of the shared AWS Managed Microsoft AD directory.  
Type: String  
Valid Values: `Shared | PendingAcceptance | Rejected | Rejecting | RejectFailed | Sharing | ShareFailed | Deleted | Deleting`   
Required: No

## See Also
<a name="API_SharedDirectory_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ds-2015-04-16/SharedDirectory) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ds-2015-04-16/SharedDirectory) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ds-2015-04-16/SharedDirectory) 