I'm looking for a regex with the following possibilities where for a field it allows only Account Id/ARN (one of the following):
- AWS account ID: 12 digit number
- AWS account ARN: FORMAT: arn:aws:iam::AWS-account-ID:root.
Here AWS-Account-ID is a 12 digit number - IAM user ARN: FORMAT: arn:aws:iam::AWS-account-ID:user/user-name-1.
Here AWS-Account-ID is a 12 digit number and user, user-name-1 are alphanumeric.
The field is a Comma seperated list which may have one or more values.