Repository: aws-cloudformation/cfn-lint

Issue:
RegEx pattern match for E3510 doesn't allow wildcards
### CloudFormation Lint Version

1.36.0

### What operating system are you using?

Windows

### Describe the bug

I'm getting E3510 errors on working template code that includes wildcards.

Example:   - arn:*:ec2:*:*:launch-template/*

### Expected behavior

Wildcards are allowed in Resource ARNs.

### Reproduction template

```
AWSTemplateFormatVersion: '2010-09-09'

Resources:
  EKSNodeGroupPolicy:
    Type: AWS::IAM::ManagedPolicy
    Properties:
      Description: EKS Node Group Policy
      ManagedPolicyName: "EKSNodeGroupPolicy"
      PolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Sid: PermissionsToCreateEKSAndKubernetesTags
            Effect: Allow
            Action:
              - ec2:CreateTags
            Resource:
              - arn:*:ec2:*:*:security-group/*
              - arn:*:ec2:*:*:launch-template/*
            Condition:
              ForAnyValue:StringLike:
                aws:TagKeys:
                  - eks
                  - eks:cluster-name
                  - eks:nodegroup-name
                  - kubernetes.io/cluster/*
```


Discussion:

Patch:
diff --git a/src/cfnlint/data/schemas/other/iam/policy.json b/src/cfnlint/data/schemas/other/iam/policy.json
index 4c25f711bf..6019127ac5 100644
--- a/src/cfnlint/data/schemas/other/iam/policy.json
+++ b/src/cfnlint/data/schemas/other/iam/policy.json
@@ -16,7 +16,7 @@
    ]
   },
   "AwsArn": {
-   "pattern": "^(arn:aws[A-Za-z\\-]*?:[^:]+:[^:]*(:(?:\\d{12}|\\*|aws)?:.+|)|\\*)$"
+   "pattern": "^(arn:(aws[A-Za-z\\-]*?|\\*):[^:]+:[^:]*(:(?:\\d{12}|\\*|aws)?:.+|)|\\*)$"
   },
   "AwsPrincipalArn": {
    "anyOf": [


Test patch:
diff --git a/test/fixtures/results/quickstart/nist_application.json b/test/fixtures/results/quickstart/nist_application.json
index a60c31a8a7..fdc6e09b31 100644
--- a/test/fixtures/results/quickstart/nist_application.json
+++ b/test/fixtures/results/quickstart/nist_application.json
@@ -89,7 +89,7 @@
     },
     {
         "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
-        "Id": "c855ed21-761f-b3a3-1fac-92578c95872d",
+        "Id": "c95357ae-6a84-2a52-5a04-fa9d9d6c2e4f",
         "Level": "Warning",
         "Location": {
             "End": {
@@ -106,7 +106,7 @@
                 "LineNumber": 198
             }
         },
-        "Message": "{'Ref': 'pSecurityAlarmTopic'} does not match '^(arn:aws[A-Za-z\\\\-]*?:[^:]+:[^:]*(:(?:\\\\d{12}|\\\\*|aws)?:.+|)|\\\\*)$' when 'Ref' is resolved",
+        "Message": "{'Ref': 'pSecurityAlarmTopic'} does not match '^(arn:(aws[A-Za-z\\\\-]*?|\\\\*):[^:]+:[^:]*(:(?:\\\\d{12}|\\\\*|aws)?:.+|)|\\\\*)$' when 'Ref' is resolved",
         "ParentId": null,
         "Rule": {
             "Description": "Resolve the Ref and then validate the values against the schema",
diff --git a/test/fixtures/results/quickstart/non_strict/nist_application.json b/test/fixtures/results/quickstart/non_strict/nist_application.json
index 9bea0bfc8b..06e1a2130d 100644
--- a/test/fixtures/results/quickstart/non_strict/nist_application.json
+++ b/test/fixtures/results/quickstart/non_strict/nist_application.json
@@ -89,7 +89,7 @@
     },
     {
         "Filename": "test/fixtures/templates/quickstart/nist_application.yaml",
-        "Id": "c855ed21-761f-b3a3-1fac-92578c95872d",
+        "Id": "c95357ae-6a84-2a52-5a04-fa9d9d6c2e4f",
         "Level": "Warning",
         "Location": {
             "End": {
@@ -106,7 +106,7 @@
                 "LineNumber": 198
             }
         },
-        "Message": "{'Ref': 'pSecurityAlarmTopic'} does not match '^(arn:aws[A-Za-z\\\\-]*?:[^:]+:[^:]*(:(?:\\\\d{12}|\\\\*|aws)?:.+|)|\\\\*)$' when 'Ref' is resolved",
+        "Message": "{'Ref': 'pSecurityAlarmTopic'} does not match '^(arn:(aws[A-Za-z\\\\-]*?|\\\\*):[^:]+:[^:]*(:(?:\\\\d{12}|\\\\*|aws)?:.+|)|\\\\*)$' when 'Ref' is resolved",
         "ParentId": null,
         "Rule": {
             "Description": "Resolve the Ref and then validate the values against the schema",