AWS security group add another security group id as destination in outbound rule

I want to add another security group id as destination in outbound rule of a security group using terraform. But I didn’t find any way to do it . I also checked the documentation but couldn’t find anything.
Is there any way using which I can add another security group id as destination in outbound rule.