Class InstanceTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceIdTarget
software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceTarget
- All Implemented Interfaces:
IApplicationLoadBalancerTarget
,INetworkLoadBalancerTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-10T01:10:09.492Z")
@Stability(Stable)
public class InstanceTarget
extends InstanceIdTarget
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.ec2.*; import software.amazon.awscdk.services.elasticloadbalancingv2.targets.*; Instance instance; InstanceTarget instanceTarget = new InstanceTarget(instance, 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
ConstructorsModifierConstructorDescriptionInstanceTarget
(Instance instance) Create a new Instance target.InstanceTarget
(Instance instance, Number port) Create a new Instance target.protected
InstanceTarget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
InstanceTarget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceIdTarget
attachToApplicationTargetGroup, attachToNetworkTargetGroup
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) -
InstanceTarget
protected InstanceTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InstanceTarget
Create a new Instance target.- Parameters:
instance
- Instance to register to. This parameter is required.port
- Override the default port for the target group.
-
InstanceTarget
Create a new Instance target.- Parameters:
instance
- Instance to register to. This parameter is required.
-