github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/alicloud/service_alicloud_slb.go (about)

     1  package alicloud
     2  
     3  import (
     4  	"github.com/denverdino/aliyungo/slb"
     5  )
     6  
     7  func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (*slb.LoadBalancerType, error) {
     8  	loadBalancer, err := client.slbconn.DescribeLoadBalancerAttribute(slbId)
     9  	if err != nil {
    10  		if notFoundError(err) {
    11  			return nil, nil
    12  		}
    13  		return nil, err
    14  	}
    15  
    16  	if loadBalancer != nil {
    17  		return loadBalancer, nil
    18  	}
    19  
    20  	return nil, nil
    21  }