

# ShareTarget
<a name="API_ShareTarget"></a>

Identifier that contains details about the directory consumer account.

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

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

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

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

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS Directory Service. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query directoryservice` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
