Function scratchstack_aws_principal::validate_account_id
source ยท pub fn validate_account_id<S: Into<String>>(
account_id: S,
) -> Result<String, PrincipalError>Expand description
Verify that an account id meets AWS requirements.
An account id must be 12 ASCII digits.
If account_id meets this requirement, it is returned. Otherwise, a PrincipalError::InvalidAccountId error is
returned.