We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a97dc93 commit 2bfbac7Copy full SHA for 2bfbac7
1 file changed
aws/logs_monitoring_go/internal/handling/cloudtrail.go
@@ -23,9 +23,7 @@ const (
23
cloudTrailUserIdentityKey = "userIdentity"
24
)
25
26
-var cloudTrailRegex = sync.OnceValue(func() *regexp.Regexp {
27
- return regexp.MustCompile(`\d+_CloudTrail(|-Digest|-Insight)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+)\.json\.gz$`)
28
-})
+var cloudTrailRegex = regexp.MustCompile(`\d+_CloudTrail(|-Digest|-Insight)_\w{2}(|-gov|-cn)-\w{4,9}-\d_(|.+)\d{8}T\d{4,6}Z(|.+)\.json\.gz$`)
29
30
var ec2InstanceRegexp = sync.OnceValue(func() *regexp.Regexp {
31
return regexp.MustCompile(`^arn:aws:sts::.*?:assumed-role/(?P<role>.*?)/(?P<host>i-([0-9a-f]{8}|[0-9a-f]{17}))$`)
0 commit comments