Last active
December 10, 2015 05:48
-
-
Save flavianmissi/4390442 to your computer and use it in GitHub Desktop.
DescribeLoadBalancers action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DescribeLoadBalancerResp struct { | |
LoadBalancerDescriptions []LoadBalancerDescription | |
} | |
type LoadBalancerDescription struct { | |
AvailZones []string | |
BackendServerDescriptions []BackendServerDescriptions | |
CanonicalHostedZoneName string | |
CanonicalHostedZoneId string | |
CreatedTime time.Time //datetime | |
DNSName string | |
HealthCheck HealthCheck | |
Instances []Instance | |
ListenerDescriptions []ListenerDescription | |
LoadBalancerName string | |
Policies Policies | |
Scheme string | |
SecurityGroups []string //vpc only | |
SourceSecurityGroup SourceSecurityGroup | |
Subnets []string | |
VPCId string | |
} | |
func (elb *ELB) DescribeLoadBalancers(names ...string) (*DescribeLoadBalancerResp, error) { | |
// code :P | |
} | |
type BackendServerDescriptions struct { | |
InstancePort int | |
PolicyNames []string | |
} | |
type HealthCheck struct { | |
HealthyThreshold int | |
Interval int | |
Target string | |
Timeout int | |
UnhealthyThreshold int | |
} | |
type Instance struct { | |
InstanceId string | |
} | |
type ListenerDescription struct { | |
Listener Listener // this type already exists | |
PolicyNames []string | |
} | |
type Policies struct { | |
AppCookieSticknessPolicies []AppCookieSticknessPolicies | |
LBCookieSticknessPolicies []LBCookieSticknessPolicies | |
OtherPolicies []string | |
} | |
// see http://goo.gl/clXGV for more information. | |
type AppCookieSticknessPolicies struct { | |
CookieName string | |
PolicyName string | |
} | |
type LBCookieSticknessPolicies struct { | |
CookieExpirationPeriod int | |
PolicyName string | |
} | |
type SourceSecurityGroup struct { | |
GroupName string | |
OwnerAlias string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment