

def assert_cloudtrail_arn_is_valid(trail_arn):
    'Ensures that the arn looks correct.\n\n    ARNs look like: arn:aws:cloudtrail:us-east-1:123456789012:trail/foo'
    pattern = re.compile('arn:.+:cloudtrail:.+:\\d{12}:trail/.+')
    if (not trail_arn.match(trail_arn)):
        raise ValueError(('Invalid trail ARN provided: %s' % trail_arn))

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py assert_cloudtrail_arn_is_valid/VarMisuse@24/95 `pattern`->`trail_arn`