

# UnshareTarget
<a name="API_UnshareTarget"></a>

Identifier that contains details about the directory consumer account with whom the directory is being unshared.

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

 ** Id **   <a name="DirectoryService-Type-UnshareTarget-Id"></a>
Identifier of the directory consumer account.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Required: Yes

 ** Type **   <a name="DirectoryService-Type-UnshareTarget-Type"></a>
Type of identifier to be used in the *Id* field.  
Type: String  
Valid Values: `ACCOUNT`   
Required: Yes

## See Also
<a name="API_UnshareTarget_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/UnshareTarget) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ds-2015-04-16/UnshareTarget) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ds-2015-04-16/UnshareTarget) 