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
  from . import outputs
  
  __all__ = [
      'GetQueueServicePropertiesResult',
      'AwaitableGetQueueServicePropertiesResult',
      'get_queue_service_properties',
  ]
  
  @pulumi.output_type
  class GetQueueServicePropertiesResult:
      """
      The properties of a storage account’s Queue service.
      """
      def __init__(__self__, cors=None, name=None, type=None):
          if cors and not isinstance(cors, dict):
              raise TypeError("Expected argument 'cors' to be a dict")
          pulumi.set(__self__, "cors", cors)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter
      def cors(self) -> Optional['outputs.CorsRulesResponse']:
          """
          Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service.
          """
          return pulumi.get(self, "cors")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          The name of the resource
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetQueueServicePropertiesResult(GetQueueServicePropertiesResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetQueueServicePropertiesResult(
              cors=self.cors,
              name=self.name,
              type=self.type)
  
  
  def get_queue_service_properties(account_name: Optional[str] = None,
                                   queue_service_name: Optional[str] = None,
                                   resource_group_name: Optional[str] = None,
                                   opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetQueueServicePropertiesResult:
      """
      Use this data source to access information about an existing resource.
  
      :param str account_name: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
      :param str queue_service_name: The name of the Queue Service within the specified storage account. Queue Service Name must be 'default'
      :param str resource_group_name: The name of the resource group within the user's subscription. The name is case insensitive.
      """
      __args__ = dict()
      __args__['accountName'] = account_name
      __args__['queueServiceName'] = queue_service_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:storage/latest:getQueueServiceProperties', __args__, opts=opts, typ=GetQueueServicePropertiesResult).value
  
      return AwaitableGetQueueServicePropertiesResult(
          cors=__ret__.cors,
          name=__ret__.name,
          type=__ret__.type)
  