Class InstanceTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.elasticloadbalancingv2.InstanceTarget
- All Implemented Interfaces:
IApplicationLoadBalancerTarget
,INetworkLoadBalancerTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.349Z")
@Stability(Deprecated)
@Deprecated
public class InstanceTarget
extends software.amazon.jsii.JsiiObject
implements IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget
Deprecated.
Use IpTarget from the
(deprecated) 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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancingv2.*; InstanceTarget instanceTarget = new InstanceTarget("instanceId", 123);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancerTarget
IApplicationLoadBalancerTarget.Jsii$Default, IApplicationLoadBalancerTarget.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget
INetworkLoadBalancerTarget.Jsii$Default, INetworkLoadBalancerTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionInstanceTarget
(String instanceId) Deprecated.InstanceTarget
(String instanceId, Number port) Deprecated.protected
InstanceTarget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protected
InstanceTarget
(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionattachToApplicationTargetGroup
(IApplicationTargetGroup targetGroup) Deprecated.attachToNetworkTargetGroup
(INetworkTargetGroup targetGroup) Deprecated.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InstanceTarget
protected InstanceTarget(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
InstanceTarget
protected InstanceTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
InstanceTarget
@Stability(Deprecated) @Deprecated public InstanceTarget(@NotNull String instanceId, @Nullable Number port) Deprecated.(deprecated) Create a new Instance target.- Parameters:
instanceId
- Instance ID of the instance to register to. This parameter is required.port
- Override the default port for the target group.
-
InstanceTarget
Deprecated.(deprecated) Create a new Instance target.- Parameters:
instanceId
- Instance ID of the instance to register to. This parameter is required.
-
-
Method Details
-
attachToApplicationTargetGroup
@Stability(Deprecated) @Deprecated @NotNull public LoadBalancerTargetProps attachToApplicationTargetGroup(@NotNull IApplicationTargetGroup targetGroup) Deprecated.(deprecated) Register this instance target with a load balancer.Don't call this, it is called automatically when you add the target to a load balancer.
- Specified by:
attachToApplicationTargetGroup
in interfaceIApplicationLoadBalancerTarget
- Parameters:
targetGroup
- This parameter is required.
-
attachToNetworkTargetGroup
@Stability(Deprecated) @Deprecated @NotNull public LoadBalancerTargetProps attachToNetworkTargetGroup(@NotNull INetworkTargetGroup targetGroup) Deprecated.(deprecated) Register this instance target with a load balancer.Don't call this, it is called automatically when you add the target to a load balancer.
- Specified by:
attachToNetworkTargetGroup
in interfaceINetworkLoadBalancerTarget
- Parameters:
targetGroup
- This parameter is required.
-