Skip to main content

IAM_ROLE_ARN_PATTERN

Constant IAM_ROLE_ARN_PATTERN 

Source
pub const IAM_ROLE_ARN_PATTERN: &str = r"^arn:aws[a-zA-Z-]*:iam::\d{12}:role/.+$";
Expand description

Regex for the AWS::IAM::Role.Arn schema format check: the partition must be aws-prefixed and the role name is unrestricted (.+), so a role name containing a space or other legal-but-unusual character is accepted here.