This is posted in other places but Amazon explicitly says they're not secret, sensitive, or confidential.
https://docs.aws.amazon.com/accounts/latest/reference/manage...
> While account IDs, like any identifying information, should be used and shared carefully, they are not considered secret, sensitive, or confidential information.