@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.173Z") @Stability(value=Experimental) public class IpTarget extends software.amazon.jsii.JsiiObject implements IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget
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.
software.amazon.jsii.JsiiObject.InitializationModeIApplicationLoadBalancerTarget.Jsii$Default, IApplicationLoadBalancerTarget.Jsii$ProxyINetworkLoadBalancerTarget.Jsii$Default, INetworkLoadBalancerTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
IpTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IpTarget(software.amazon.jsii.JsiiObjectRef objRef) |
|
IpTarget(String ipAddress)
(experimental) Create a new IPAddress target.
|
|
IpTarget(String ipAddress,
Number port)
(experimental) Create a new IPAddress target.
|
|
IpTarget(String ipAddress,
Number port,
String availabilityZone)
(experimental) Create a new IPAddress target.
|
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerTargetProps |
attachToApplicationTargetGroup(IApplicationTargetGroup targetGroup)
(experimental) Register this instance target with a load balancer.
|
LoadBalancerTargetProps |
attachToNetworkTargetGroup(INetworkTargetGroup targetGroup)
(experimental) Register this instance target with a load balancer.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected IpTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected IpTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public IpTarget(@NotNull
String ipAddress,
@Nullable
Number port,
@Nullable
String availabilityZone)
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.
ipAddress - The IP Address to load balance to. This parameter is required.port - Override the group's default port.availabilityZone - Availability zone to send traffic from.@Stability(value=Experimental)
public IpTarget(@NotNull
String ipAddress,
@Nullable
Number port)
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.
ipAddress - The IP Address to load balance to. This parameter is required.port - Override the group's default port.@Stability(value=Experimental)
public IpTarget(@NotNull
String ipAddress)
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.
ipAddress - The IP Address to load balance to. This parameter is required.@Stability(value=Experimental) @NotNull public LoadBalancerTargetProps attachToApplicationTargetGroup(@NotNull IApplicationTargetGroup targetGroup)
Don't call this, it is called automatically when you add the target to a load balancer.
attachToApplicationTargetGroup in interface IApplicationLoadBalancerTargettargetGroup - This parameter is required.@Stability(value=Experimental) @NotNull public LoadBalancerTargetProps attachToNetworkTargetGroup(@NotNull INetworkTargetGroup targetGroup)
Don't call this, it is called automatically when you add the target to a load balancer.
attachToNetworkTargetGroup in interface INetworkLoadBalancerTargettargetGroup - This parameter is required.Copyright © 2021. All rights reserved.