I am configuring my event bridge rule and there I need to use wildcard to match on file patterns, This is what I am using, The sample code is
"s3_object_key":[
{
"wildcard": "request/ftp/NXC12MCPUS*.out"
},
{
"wildcard": "request/ftp/NXPMCPUS*.out"
}
]
The rule is working fine. However when I configure more wildcards for s3_object_key its giving me below error
Resource handler returned message: "Event pattern is not valid. Reason: Rule is too complex - try using fewer wildcard characters or fewer repeating character sequences after a wildcard character (Service: EventBridge, Status Code: 400, Request ID: c8a41580-66a6-4d1d-8b4b-7c680e4fd003)" (RequestToken: 5a89d75b-cfd6-12b6-ed17-7a04763bd21a, HandlerErrorCode: InvalidRequest)