title: AWS ELB cloudformation by conditonsfor both HTTPS & HTTP
body: <p>As i am trying to create ELB with the condition where in IsSSL = HTTPS/HTTP<br>
    HttpS=443, HttP=80. </p>
  
  <p>The above values are passed from an yaml file as variables. </p>
  
  <p>If the condition is true it should select respective loadbalancer port using the Fn::If conditons. But i am getting the error when building the stack and the subnets section below works fine. Any Help on this?</p>
  
  <p>Error: Value of property loadbalancerport must be of type String</p>
  
  <pre><code>  Conditions:
      IsSSl:
        'Fn::Equals':
          - $(IsSSL)
          - HTTPS
  
    RsbatchELB:
        DependsOn: RsbatchELBSecurityGroup
        Type: 'AWS::ElasticLoadBalancing::LoadBalancer'
        Properties:
          Listeners:
            - LoadBalancerPort:
                - 'Fn::If':
                    - IsSSL
                    - $(HttpS)
                    - $(HttP)
          Subnets:
            - 'Fn::If':
                - IsPublicELB
                - $(publicSubnet-a)
                - $(private-subnet-a)
            - 'Fn::If':
                - IsPublicELB
                - $(publicSubnet-b)
                - $(private-subnet-b)
  </code></pre>