Documentation ¶
Index ¶
- func NewAlbArnTarget_Override(a AlbArnTarget, albArn *string, port *float64)
- func NewAlbTarget_Override(a AlbTarget, alb awselasticloadbalancingv2.ApplicationLoadBalancer, ...)
- func NewInstanceIdTarget_Override(i InstanceIdTarget, instanceId *string, port *float64)
- func NewInstanceTarget_Override(i InstanceTarget, instance awsec2.Instance, port *float64)
- func NewIpTarget_Override(i IpTarget, ipAddress *string, port *float64, availabilityZone *string)
- func NewLambdaTarget_Override(l LambdaTarget, fn awslambda.IFunction)
- type AlbArnTarget
- type AlbTarget
- type InstanceIdTarget
- type InstanceTarget
- type IpTarget
- type LambdaTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlbArnTarget_Override ¶
func NewAlbArnTarget_Override(a AlbArnTarget, albArn *string, port *float64)
Create a new alb target. Experimental.
func NewAlbTarget_Override ¶
func NewAlbTarget_Override(a AlbTarget, alb awselasticloadbalancingv2.ApplicationLoadBalancer, port *float64)
Experimental.
func NewInstanceIdTarget_Override ¶
func NewInstanceIdTarget_Override(i InstanceIdTarget, instanceId *string, port *float64)
Create a new Instance target. Experimental.
func NewInstanceTarget_Override ¶
func NewInstanceTarget_Override(i InstanceTarget, instance awsec2.Instance, port *float64)
Create a new Instance target. Experimental.
func NewIpTarget_Override ¶
Create a new IPAddress target.
The availabilityZone parameter determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
This parameter is not supported if the target type of the target group is instance. If the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.
With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported value is all.
Default is automatic. Experimental.
func NewLambdaTarget_Override ¶
func NewLambdaTarget_Override(l LambdaTarget, fn awslambda.IFunction)
Create a new Lambda target. Experimental.
Types ¶
type AlbArnTarget ¶
type AlbArnTarget interface { awselasticloadbalancingv2.INetworkLoadBalancerTarget AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
A single Application Load Balancer as the target for load balancing.
TODO: EXAMPLE
Experimental.
func NewAlbArnTarget ¶
func NewAlbArnTarget(albArn *string, port *float64) AlbArnTarget
Create a new alb target. Experimental.
type AlbTarget ¶
type AlbTarget interface { AlbArnTarget AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
A single Application Load Balancer as the target for load balancing.
TODO: EXAMPLE
Experimental.
func NewAlbTarget ¶
func NewAlbTarget(alb awselasticloadbalancingv2.ApplicationLoadBalancer, port *float64) AlbTarget
Experimental.
type InstanceIdTarget ¶
type InstanceIdTarget interface { awselasticloadbalancingv2.IApplicationLoadBalancerTarget awselasticloadbalancingv2.INetworkLoadBalancerTarget AttachToApplicationTargetGroup(targetGroup awselasticloadbalancingv2.IApplicationTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
An EC2 instance that is the target for load balancing.
If you register a target of this type, you are responsible for making sure the load balancer's security group can connect to the instance.
TODO: EXAMPLE
Experimental.
func NewInstanceIdTarget ¶
func NewInstanceIdTarget(instanceId *string, port *float64) InstanceIdTarget
Create a new Instance target. Experimental.
type InstanceTarget ¶
type InstanceTarget interface { InstanceIdTarget AttachToApplicationTargetGroup(targetGroup awselasticloadbalancingv2.IApplicationTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
TODO: EXAMPLE
Experimental.
func NewInstanceTarget ¶
func NewInstanceTarget(instance awsec2.Instance, port *float64) InstanceTarget
Create a new Instance target. Experimental.
type IpTarget ¶
type IpTarget interface { awselasticloadbalancingv2.IApplicationLoadBalancerTarget awselasticloadbalancingv2.INetworkLoadBalancerTarget AttachToApplicationTargetGroup(targetGroup awselasticloadbalancingv2.IApplicationTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
An IP address that is a target for load balancing.
Specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.
If you register a target of this type, you are responsible for making sure the load balancer's security group can send packets to the IP address.
TODO: EXAMPLE
Experimental.
func NewIpTarget ¶
Create a new IPAddress target.
The availabilityZone parameter determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
This parameter is not supported if the target type of the target group is instance. If the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.
With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported value is all.
Default is automatic. Experimental.
type LambdaTarget ¶
type LambdaTarget interface { awselasticloadbalancingv2.IApplicationLoadBalancerTarget AttachToApplicationTargetGroup(targetGroup awselasticloadbalancingv2.IApplicationTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps AttachToNetworkTargetGroup(targetGroup awselasticloadbalancingv2.INetworkTargetGroup) *awselasticloadbalancingv2.LoadBalancerTargetProps }
TODO: EXAMPLE
Experimental.
func NewLambdaTarget ¶
func NewLambdaTarget(fn awslambda.IFunction) LambdaTarget
Create a new Lambda target. Experimental.