Function validate_account_id

Source
pub fn validate_account_id(account_id: &str) -> Result<(), ArnError>
Expand description

Verify that an account id meets AWS requirements.

An account id must be 12 ASCII digits or the string aws.

If account_id meets this requirement, Ok is returned. Otherwise, a ArnError::InvalidAccountId error is returned.