code: def generate_policy_statements(self):
          
          statements = self._policy_statements
          statements.extend(
              lambda_basic_execution_statements(
                  self.function.Ref()
              )
          )
          extended_statements = self.extended_policy_statements()
          if extended_statements:
              statements.extend(extended_statements)
          return statements
docs: Generates the policy statements for the role used by the function.
  
          To add additional statements you can either override the
          `extended_policy_statements` method to return a list of Statements
          to be added to the policy, or override this method itself if you
          need more control.
  
          Returns:
              list: A list of :class:`awacs.aws.Statement` objects.