

Amazon Cloud Directory will no longer be open to new customers starting on November 7, 2025. For alternatives to Cloud Directory, explore [Amazon DynamoDB](https://aws.amazon.com/dynamodb/) and [Amazon Neptune](https://aws.amazon.com/neptune/). If you need help choosing the right alternative for your use case, or for any other questions, contact [AWS Support](https://aws.amazon.com/support/).

# BatchAttachPolicy
<a name="API_BatchAttachPolicy"></a>

Attaches a policy object to a regular object inside a [BatchRead](API_BatchRead.md) operation. For more information, see [AttachPolicy](API_AttachPolicy.md) and [BatchRead:Operations](API_BatchRead.md#amazoncds-BatchRead-request-Operations).

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

 ** ObjectReference **   <a name="amazoncds-Type-BatchAttachPolicy-ObjectReference"></a>
The reference that identifies the object to which the policy will be attached.  
Type: [ObjectReference](API_ObjectReference.md) object  
Required: Yes

 ** PolicyReference **   <a name="amazoncds-Type-BatchAttachPolicy-PolicyReference"></a>
The reference that is associated with the policy object.  
Type: [ObjectReference](API_ObjectReference.md) object  
Required: Yes

## See Also
<a name="API_BatchAttachPolicy_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/clouddirectory-2017-01-11/BatchAttachPolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/clouddirectory-2017-01-11/BatchAttachPolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/clouddirectory-2017-01-11/BatchAttachPolicy) 