예제 #1
0
 def _check_policy_document(
     self, result: Result, logical_id: str, policy_document: PolicyDocument, policy_name: Optional[str], extras: Dict
 ):
     statements_to_review = policy_document.statements_with(REGEX_IS_STAR) + policy_document.statements_with(
         REGEX_WILDCARD_ARN
     )
     for statement in statements_to_review:
         self._check_statement(result, logical_id, policy_name, statement, extras=extras)
예제 #2
0
 def _check_policy_document(self, result: Result, logical_id: str,
                            policy_document: PolicyDocument,
                            policy_name: Optional[str], extras: Dict):
     for statement in policy_document.statements_with(REGEX_IS_STAR):
         self._check_statement(result,
                               logical_id,
                               policy_name,
                               statement,
                               extras=extras)