terraform/builtin/providers/alicloud/service_alicloud_slb.go

22 lines
411 B
Go
Raw Normal View History

2017-01-19 15:08:56 +01:00
package alicloud
import (
"github.com/denverdino/aliyungo/slb"
)
func (client *AliyunClient) DescribeLoadBalancerAttribute(slbId string) (*slb.LoadBalancerType, error) {
loadBalancer, err := client.slbconn.DescribeLoadBalancerAttribute(slbId)
if err != nil {
if notFoundError(err) {
return nil, nil
}
return nil, err
}
if loadBalancer != nil {
return loadBalancer, nil
}
return nil, nil
}