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, overload
  from .. import _utilities
  from . import outputs
  from ._inputs import *
  
  __all__ = ['LoadBalancerArgs', 'LoadBalancer']
  
  @pulumi.input_type
  class LoadBalancerArgs:
      def __init__(__self__, *,
                   ip_address_type: Optional[pulumi.Input[str]] = None,
                   load_balancer_attributes: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerAttributeArgs']]]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   scheme: Optional[pulumi.Input[str]] = None,
                   security_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   subnet_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerSubnetMappingArgs']]]] = None,
                   subnets: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   tags: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerTagArgs']]]] = None,
                   type: Optional[pulumi.Input[str]] = None):
          """
          The set of arguments for constructing a LoadBalancer resource.
          """
          if ip_address_type is not None:
              pulumi.set(__self__, "ip_address_type", ip_address_type)
          if load_balancer_attributes is not None:
              pulumi.set(__self__, "load_balancer_attributes", load_balancer_attributes)
          if name is not None:
              pulumi.set(__self__, "name", name)
          if scheme is not None:
              pulumi.set(__self__, "scheme", scheme)
          if security_groups is not None:
              pulumi.set(__self__, "security_groups", security_groups)
          if subnet_mappings is not None:
              pulumi.set(__self__, "subnet_mappings", subnet_mappings)
          if subnets is not None:
              pulumi.set(__self__, "subnets", subnets)
          if tags is not None:
              pulumi.set(__self__, "tags", tags)
          if type is not None:
              pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter(name="ipAddressType")
      def ip_address_type(self) -> Optional[pulumi.Input[str]]:
          return pulumi.get(self, "ip_address_type")
  
      @ip_address_type.setter
      def ip_address_type(self, value: Optional[pulumi.Input[str]]):
          pulumi.set(self, "ip_address_type", value)
  
      @property
      @pulumi.getter(name="loadBalancerAttributes")
      def load_balancer_attributes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerAttributeArgs']]]]:
          return pulumi.get(self, "load_balancer_attributes")
  
      @load_balancer_attributes.setter
      def load_balancer_attributes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerAttributeArgs']]]]):
          pulumi.set(self, "load_balancer_attributes", value)
  
      @property
      @pulumi.getter
      def name(self) -> Optional[pulumi.Input[str]]:
          return pulumi.get(self, "name")
  
      @name.setter
      def name(self, value: Optional[pulumi.Input[str]]):
          pulumi.set(self, "name", value)
  
      @property
      @pulumi.getter
      def scheme(self) -> Optional[pulumi.Input[str]]:
          return pulumi.get(self, "scheme")
  
      @scheme.setter
      def scheme(self, value: Optional[pulumi.Input[str]]):
          pulumi.set(self, "scheme", value)
  
      @property
      @pulumi.getter(name="securityGroups")
      def security_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
          return pulumi.get(self, "security_groups")
  
      @security_groups.setter
      def security_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
          pulumi.set(self, "security_groups", value)
  
      @property
      @pulumi.getter(name="subnetMappings")
      def subnet_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerSubnetMappingArgs']]]]:
          return pulumi.get(self, "subnet_mappings")
  
      @subnet_mappings.setter
      def subnet_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerSubnetMappingArgs']]]]):
          pulumi.set(self, "subnet_mappings", value)
  
      @property
      @pulumi.getter
      def subnets(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
          return pulumi.get(self, "subnets")
  
      @subnets.setter
      def subnets(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
          pulumi.set(self, "subnets", value)
  
      @property
      @pulumi.getter
      def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerTagArgs']]]]:
          return pulumi.get(self, "tags")
  
      @tags.setter
      def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerTagArgs']]]]):
          pulumi.set(self, "tags", value)
  
      @property
      @pulumi.getter
      def type(self) -> Optional[pulumi.Input[str]]:
          return pulumi.get(self, "type")
  
      @type.setter
      def type(self, value: Optional[pulumi.Input[str]]):
          pulumi.set(self, "type", value)
  
  
  warnings.warn("""LoadBalancer is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""", DeprecationWarning)
  
  
  class LoadBalancer(pulumi.CustomResource):
      warnings.warn("""LoadBalancer is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""", DeprecationWarning)
  
      @overload
      def __init__(__self__,
                   resource_name: str,
                   opts: Optional[pulumi.ResourceOptions] = None,
                   ip_address_type: Optional[pulumi.Input[str]] = None,
                   load_balancer_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerAttributeArgs']]]]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   scheme: Optional[pulumi.Input[str]] = None,
                   security_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   subnet_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerSubnetMappingArgs']]]]] = None,
                   subnets: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerTagArgs']]]]] = None,
                   type: Optional[pulumi.Input[str]] = None,
                   __props__=None):
          """
          Resource Type definition for AWS::ElasticLoadBalancingV2::LoadBalancer
  
          :param str resource_name: The name of the resource.
          :param pulumi.ResourceOptions opts: Options for the resource.
          """
          ...
      @overload
      def __init__(__self__,
                   resource_name: str,
                   args: Optional[LoadBalancerArgs] = None,
                   opts: Optional[pulumi.ResourceOptions] = None):
          """
          Resource Type definition for AWS::ElasticLoadBalancingV2::LoadBalancer
  
          :param str resource_name: The name of the resource.
          :param LoadBalancerArgs args: The arguments to use to populate this resource's properties.
          :param pulumi.ResourceOptions opts: Options for the resource.
          """
          ...
      def __init__(__self__, resource_name: str, *args, **kwargs):
          resource_args, opts = _utilities.get_resource_args_opts(LoadBalancerArgs, pulumi.ResourceOptions, *args, **kwargs)
          if resource_args is not None:
              __self__._internal_init(resource_name, opts, **resource_args.__dict__)
          else:
              __self__._internal_init(resource_name, *args, **kwargs)
  
      def _internal_init(__self__,
                   resource_name: str,
                   opts: Optional[pulumi.ResourceOptions] = None,
                   ip_address_type: Optional[pulumi.Input[str]] = None,
                   load_balancer_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerAttributeArgs']]]]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   scheme: Optional[pulumi.Input[str]] = None,
                   security_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   subnet_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerSubnetMappingArgs']]]]] = None,
                   subnets: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerTagArgs']]]]] = None,
                   type: Optional[pulumi.Input[str]] = None,
                   __props__=None):
          pulumi.log.warn("""LoadBalancer is deprecated: LoadBalancer is not yet supported by AWS Native, so its creation will currently fail. Please use the classic AWS provider, if possible.""")
          if opts is None:
              opts = pulumi.ResourceOptions()
          if not isinstance(opts, pulumi.ResourceOptions):
              raise TypeError('Expected resource options to be a ResourceOptions instance')
          if opts.version is None:
              opts.version = _utilities.get_version()
          if opts.id is None:
              if __props__ is not None:
                  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
              __props__ = LoadBalancerArgs.__new__(LoadBalancerArgs)
  
              __props__.__dict__["ip_address_type"] = ip_address_type
              __props__.__dict__["load_balancer_attributes"] = load_balancer_attributes
              __props__.__dict__["name"] = name
              __props__.__dict__["scheme"] = scheme
              __props__.__dict__["security_groups"] = security_groups
              __props__.__dict__["subnet_mappings"] = subnet_mappings
              __props__.__dict__["subnets"] = subnets
              __props__.__dict__["tags"] = tags
              __props__.__dict__["type"] = type
              __props__.__dict__["canonical_hosted_zone_id"] = None
              __props__.__dict__["d_ns_name"] = None
              __props__.__dict__["load_balancer_full_name"] = None
              __props__.__dict__["load_balancer_name"] = None
          super(LoadBalancer, __self__).__init__(
              'aws-native:elasticloadbalancingv2:LoadBalancer',
              resource_name,
              __props__,
              opts)
  
      @staticmethod
      def get(resource_name: str,
              id: pulumi.Input[str],
              opts: Optional[pulumi.ResourceOptions] = None) -> 'LoadBalancer':
          """
          Get an existing LoadBalancer resource's state with the given name, id, and optional extra
          properties used to qualify the lookup.
  
          :param str resource_name: The unique name of the resulting resource.
          :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
          :param pulumi.ResourceOptions opts: Options for the resource.
          """
          opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
  
          __props__ = LoadBalancerArgs.__new__(LoadBalancerArgs)
  
          __props__.__dict__["canonical_hosted_zone_id"] = None
          __props__.__dict__["d_ns_name"] = None
          __props__.__dict__["ip_address_type"] = None
          __props__.__dict__["load_balancer_attributes"] = None
          __props__.__dict__["load_balancer_full_name"] = None
          __props__.__dict__["load_balancer_name"] = None
          __props__.__dict__["name"] = None
          __props__.__dict__["scheme"] = None
          __props__.__dict__["security_groups"] = None
          __props__.__dict__["subnet_mappings"] = None
          __props__.__dict__["subnets"] = None
          __props__.__dict__["tags"] = None
          __props__.__dict__["type"] = None
          return LoadBalancer(resource_name, opts=opts, __props__=__props__)
  
      @property
      @pulumi.getter(name="canonicalHostedZoneID")
      def canonical_hosted_zone_id(self) -> pulumi.Output[str]:
          return pulumi.get(self, "canonical_hosted_zone_id")
  
      @property
      @pulumi.getter(name="dNSName")
      def d_ns_name(self) -> pulumi.Output[str]:
          return pulumi.get(self, "d_ns_name")
  
      @property
      @pulumi.getter(name="ipAddressType")
      def ip_address_type(self) -> pulumi.Output[Optional[str]]:
          return pulumi.get(self, "ip_address_type")
  
      @property
      @pulumi.getter(name="loadBalancerAttributes")
      def load_balancer_attributes(self) -> pulumi.Output[Optional[Sequence['outputs.LoadBalancerAttribute']]]:
          return pulumi.get(self, "load_balancer_attributes")
  
      @property
      @pulumi.getter(name="loadBalancerFullName")
      def load_balancer_full_name(self) -> pulumi.Output[str]:
          return pulumi.get(self, "load_balancer_full_name")
  
      @property
      @pulumi.getter(name="loadBalancerName")
      def load_balancer_name(self) -> pulumi.Output[str]:
          return pulumi.get(self, "load_balancer_name")
  
      @property
      @pulumi.getter
      def name(self) -> pulumi.Output[Optional[str]]:
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter
      def scheme(self) -> pulumi.Output[Optional[str]]:
          return pulumi.get(self, "scheme")
  
      @property
      @pulumi.getter(name="securityGroups")
      def security_groups(self) -> pulumi.Output[Optional[Sequence[str]]]:
          return pulumi.get(self, "security_groups")
  
      @property
      @pulumi.getter(name="subnetMappings")
      def subnet_mappings(self) -> pulumi.Output[Optional[Sequence['outputs.LoadBalancerSubnetMapping']]]:
          return pulumi.get(self, "subnet_mappings")
  
      @property
      @pulumi.getter
      def subnets(self) -> pulumi.Output[Optional[Sequence[str]]]:
          return pulumi.get(self, "subnets")
  
      @property
      @pulumi.getter
      def tags(self) -> pulumi.Output[Optional[Sequence['outputs.LoadBalancerTag']]]:
          return pulumi.get(self, "tags")
  
      @property
      @pulumi.getter
      def type(self) -> pulumi.Output[Optional[str]]:
          return pulumi.get(self, "type")
  
  