code: def allow_method_with_conditions(self, verb, resource, conditions):
          
          self._add_method('Allow', verb, resource, conditions)
docs: Adds an API Gateway method (Http verb + Resource path) to the
          list of allowed methods and includes a condition for the policy
          statement. More on AWS policy conditions here:
          http://docs.aws.amazon.com/IAM/latest/UserGuide/
          reference_policies_elements.html#Condition