File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ package iam
7
7
var (
8
8
ResourceRole = resourceRole
9
9
10
- DeleteServiceLinkedRole = deleteServiceLinkedRole
11
- FindRoleByName = findRoleByName
10
+ DeleteServiceLinkedRole = deleteServiceLinkedRole
11
+ FindRoleByName = findRoleByName
12
+ PolicyHasValidAWSPrincipals = policyHasValidAWSPrincipals
12
13
)
13
14
14
15
type (
Original file line number Diff line number Diff line change @@ -249,11 +249,11 @@ func policyDecodeConfigStringList(lI []any) any {
249
249
return ret
250
250
}
251
251
252
- // PolicyHasValidAWSPrincipals validates that the Principals in an IAM Policy are valid
252
+ // policyHasValidAWSPrincipals validates that the Principals in an IAM Policy are valid
253
253
// Assumes that non-"AWS" Principals are valid
254
254
// The value can be a single string or a slice of strings
255
255
// Valid strings are either an ARN or an AWS account ID
256
- func PolicyHasValidAWSPrincipals (policy string ) (bool , error ) { // nosemgrep:ci.aws-in-func-name
256
+ func policyHasValidAWSPrincipals (policy string ) (bool , error ) { // nosemgrep:ci.aws-in-func-name
257
257
var policyData any
258
258
err := json .Unmarshal ([]byte (policy ), & policyData )
259
259
if err != nil {
You can’t perform that action at this time.
0 commit comments