text: # coding=utf-8
  # *** WARNING: this file was generated by the Pulumi SDK Generator. ***
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
  
  import warnings
  import pulumi
  import pulumi.runtime
  from typing import Any, Mapping, Optional, Sequence, Union
  from ... import _utilities, _tables
  
  __all__ = [
      'GetFirewallRuleResult',
      'AwaitableGetFirewallRuleResult',
      'get_firewall_rule',
  ]
  
  @pulumi.output_type
  class GetFirewallRuleResult:
      """
      Data Lake Analytics firewall rule information.
      """
      def __init__(__self__, end_ip_address=None, name=None, start_ip_address=None, type=None):
          if end_ip_address and not isinstance(end_ip_address, str):
              raise TypeError("Expected argument 'end_ip_address' to be a str")
          pulumi.set(__self__, "end_ip_address", end_ip_address)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if start_ip_address and not isinstance(start_ip_address, str):
              raise TypeError("Expected argument 'start_ip_address' to be a str")
          pulumi.set(__self__, "start_ip_address", start_ip_address)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter(name="endIpAddress")
      def end_ip_address(self) -> str:
          """
          The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.
          """
          return pulumi.get(self, "end_ip_address")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          The resource name.
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="startIpAddress")
      def start_ip_address(self) -> str:
          """
          The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.
          """
          return pulumi.get(self, "start_ip_address")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          The resource type.
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetFirewallRuleResult(GetFirewallRuleResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetFirewallRuleResult(
              end_ip_address=self.end_ip_address,
              name=self.name,
              start_ip_address=self.start_ip_address,
              type=self.type)
  
  
  def get_firewall_rule(account_name: Optional[str] = None,
                        firewall_rule_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFirewallRuleResult:
      """
      Use this data source to access information about an existing resource.
  
      :param str account_name: The name of the Data Lake Analytics account.
      :param str firewall_rule_name: The name of the firewall rule to retrieve.
      :param str resource_group_name: The name of the Azure resource group.
      """
      __args__ = dict()
      __args__['accountName'] = account_name
      __args__['firewallRuleName'] = firewall_rule_name
      __args__['resourceGroupName'] = resource_group_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-nextgen:datalakeanalytics/latest:getFirewallRule', __args__, opts=opts, typ=GetFirewallRuleResult).value
  
      return AwaitableGetFirewallRuleResult(
          end_ip_address=__ret__.end_ip_address,
          name=__ret__.name,
          start_ip_address=__ret__.start_ip_address,
          type=__ret__.type)
  