Documentation ¶
Overview ¶
Package elbv2 is a client for Elastic Load Balancing (v2).
Index ¶
- type Client
- type CreateListenerParameters
- type CreateLoadBalancerParameters
- type CreateTargetGroupParameters
- type Listener
- type Listeners
- type LoadBalancer
- type LoadBalancers
- type Rule
- type SDKClient
- func (elbv2 SDKClient) AddRule(lbARN, targetGroupARN string, rule Rule)
- func (elbv2 SDKClient) AddRuleToListener(listenerARN, targetGroupARN string, rule Rule)
- func (elbv2 SDKClient) CreateListener(p CreateListenerParameters) (string, error)
- func (elbv2 SDKClient) CreateLoadBalancer(p CreateLoadBalancerParameters) (string, error)
- func (elbv2 SDKClient) CreateTargetGroup(i CreateTargetGroupParameters) (string, error)
- func (elbv2 SDKClient) DeleteLoadBalancer(lbName string)
- func (elbv2 SDKClient) DeleteRule(ruleARN string)
- func (elbv2 SDKClient) DeleteTargetGroup(targetGroupName string)
- func (elbv2 SDKClient) DeleteTargetGroupByArn(targetGroupARN string)
- func (elbv2 SDKClient) DescribeListeners(lbARN string) (Listeners, error)
- func (elbv2 SDKClient) DescribeLoadBalancer(lbName string) LoadBalancer
- func (elbv2 SDKClient) DescribeLoadBalancerByARN(lbARN string) LoadBalancer
- func (elbv2 SDKClient) DescribeLoadBalancers() (LoadBalancers, error)
- func (elbv2 SDKClient) DescribeLoadBalancersByARN(lbARNs []string) (LoadBalancers, error)
- func (elbv2 SDKClient) DescribeLoadBalancersByName(lbNames []string) (LoadBalancers, error)
- func (elbv2 SDKClient) DescribeRules(listenerARN string) []Rule
- func (elbv2 SDKClient) DescribeTargetGroups(targetGroupARNs []string) []TargetGroup
- func (elbv2 SDKClient) GetHighestPriorityFromListener(listenerARN string) int64
- func (elbv2 SDKClient) GetListeners(lbARN string) []Listener
- func (elbv2 SDKClient) GetTargetGroupArn(targetGroupName string) string
- func (elbv2 SDKClient) GetTargetGroupLoadBalancerArn(targetGroupARN string) string
- func (elbv2 SDKClient) ModifyListenerDefaultAction(listenerARN, targetGroupARN string)
- func (elbv2 SDKClient) ModifyLoadBalancerDefaultAction(lbARN, targetGroupARN string)
- type TargetGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.3.0
type Client interface { CreateListener(CreateListenerParameters) (string, error) DescribeListeners(string) (Listeners, error) DescribeLoadBalancers() (LoadBalancers, error) DescribeLoadBalancersByName([]string) (LoadBalancers, error) CreateLoadBalancer(CreateLoadBalancerParameters) (string, error) CreateTargetGroup(CreateTargetGroupParameters) (string, error) }
Client represents a method for accessing Elastic Load Balancing (v2).
type CreateListenerParameters ¶ added in v0.3.0
type CreateListenerParameters struct { CertificateARNs []string DefaultTargetGroupARN string LoadBalancerARN string Port int64 Protocol string }
CreateListenerParameters are the parameters required to create a new listener.
func (*CreateListenerParameters) SetCertificateARNs ¶ added in v0.3.0
func (input *CreateListenerParameters) SetCertificateARNs(arns []string)
SetCertificateARNs sets the certificate ARNs with the given ARNs.
type CreateLoadBalancerParameters ¶ added in v0.3.0
type CreateLoadBalancerParameters struct { Name string SecurityGroupIDs []string SubnetIDs []string Type string Scheme string }
CreateLoadBalancerParameters are the parameters required to create a new load balancer.
type CreateTargetGroupParameters ¶ added in v0.3.0
type Listener ¶
type Listener struct { ARN string CertificateARNs []string Port int64 Protocol string Rules []Rule }
Listener accepts incoming traffic on a load balancer based upon the provided routing rules.
type LoadBalancer ¶
type LoadBalancer struct { ARN string DNSName string HostedZoneID string Listeners Listeners Name string SecurityGroupIDs []string Status string SubnetIDs []string Type string VPCID string }
LoadBalancer represents an Elastic Load Balancing (v2) load balancer.
type LoadBalancers ¶ added in v0.3.0
type LoadBalancers []LoadBalancer
LoadBalancers is a collection of Elastic Load Balancing (v2) load balancers.
type Rule ¶
type Rule struct { ARN string IsDefault bool Priority int TargetGroupARN string Type string Value string }
Rule defines a routing rule defining how traffic should be routed to a listener.
type SDKClient ¶ added in v0.3.0
type SDKClient struct {
// contains filtered or unexported fields
}
SDKClient implements access to Elastic Load Balancing (v2) via the AWS SDK.
func (SDKClient) AddRuleToListener ¶ added in v0.3.0
func (SDKClient) CreateListener ¶ added in v0.3.0
func (elbv2 SDKClient) CreateListener(p CreateListenerParameters) (string, error)
CreateListener creates a new listener and returns the listener ARN if successfully created.
func (SDKClient) CreateLoadBalancer ¶ added in v0.3.0
func (elbv2 SDKClient) CreateLoadBalancer(p CreateLoadBalancerParameters) (string, error)
CreateLoadBalancer creates a new load balancer. It returns the ARN of the load balancer if it is successfully created.
func (SDKClient) CreateTargetGroup ¶ added in v0.3.0
func (elbv2 SDKClient) CreateTargetGroup(i CreateTargetGroupParameters) (string, error)
func (SDKClient) DeleteLoadBalancer ¶ added in v0.3.0
func (SDKClient) DeleteRule ¶ added in v0.3.0
func (SDKClient) DeleteTargetGroup ¶ added in v0.3.0
func (SDKClient) DeleteTargetGroupByArn ¶ added in v0.3.0
func (SDKClient) DescribeListeners ¶ added in v0.3.0
DescribeListeners returns all of the listeners for a given load balancer ARN.
func (SDKClient) DescribeLoadBalancer ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeLoadBalancer(lbName string) LoadBalancer
func (SDKClient) DescribeLoadBalancerByARN ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeLoadBalancerByARN(lbARN string) LoadBalancer
func (SDKClient) DescribeLoadBalancers ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeLoadBalancers() (LoadBalancers, error)
DescribeLoadBalancers returns all load balancers.
func (SDKClient) DescribeLoadBalancersByARN ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeLoadBalancersByARN(lbARNs []string) (LoadBalancers, error)
DescribeLoadBalancersByARN returns load balancers that match the given load balancer ARNs.
func (SDKClient) DescribeLoadBalancersByName ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeLoadBalancersByName(lbNames []string) (LoadBalancers, error)
DescribeLoadBalancersByName returns load balancers that match the given load balancer names.
func (SDKClient) DescribeRules ¶ added in v0.3.0
func (SDKClient) DescribeTargetGroups ¶ added in v0.3.0
func (elbv2 SDKClient) DescribeTargetGroups(targetGroupARNs []string) []TargetGroup