AWS SCP's implementation

I want to create an “aws_organizations_policy_attachment” after creating multiple policies.
I also want the user to associate multiple OU’s to the target id how can i implement it if the policy_id length is different from the target_id length?