aws ds share-directory
Shares a specified directory (DirectoryId) in your Amazon Web Services account (directory owner) with another Amazon Web Services account (directory consumer). AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--directory-idIdentifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.--share-methodThe method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).--share-notesA directory share request that is sent by the directory owner to the directory consumer.--share-targetIdentifier for the directory consumer account with whom the directory is to be shared.