Package org.sonar.python.checks.cdk
Class CdkIamUtils
- java.lang.Object
-
- org.sonar.python.checks.cdk.CdkIamUtils
-
public class CdkIamUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<DictionaryLiteral>getObjectFromJson(SubscriptionContext ctx, CallExpression call)Return the json object as dictionary from a form_json callstatic List<DictionaryLiteral>getPolicyStatements(SubscriptionContext ctx, DictionaryLiteral json)Return a list of PolicyStatement json representation from a PolicyDocument.from_json callstatic Optional<org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow>getWildcard(SubscriptionContext ctx, org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow json)Examines if the flow contains a string that reflects a wildcard and returns this expression as flow.static booleanhasNotAllowEffect(org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow effect)
-
-
-
Method Detail
-
hasNotAllowEffect
public static boolean hasNotAllowEffect(@Nullable org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow effect)
-
getWildcard
public static Optional<org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow> getWildcard(SubscriptionContext ctx, org.sonar.python.checks.cdk.CdkUtils.ExpressionFlow json)
Examines if the flow contains a string that reflects a wildcard and returns this expression as flow.
-
getObjectFromJson
public static Optional<DictionaryLiteral> getObjectFromJson(SubscriptionContext ctx, CallExpression call)
Return the json object as dictionary from a form_json call
-
getPolicyStatements
public static List<DictionaryLiteral> getPolicyStatements(SubscriptionContext ctx, DictionaryLiteral json)
Return a list of PolicyStatement json representation from a PolicyDocument.from_json call
-
-