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.99.0 (build 8f757e4)", date="2024-06-13T18:49:18.933Z") @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);
 
  • Constructor Details

    • InstanceTarget

      protected InstanceTarget(software.amazon.jsii.JsiiObjectRef objRef)
    • InstanceTarget

      protected InstanceTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InstanceTarget

      @Stability(Stable) public InstanceTarget(@NotNull Instance instance, @Nullable Number port)
      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

      @Stability(Stable) public InstanceTarget(@NotNull Instance instance)
      Create a new Instance target.

      Parameters:
      instance - Instance to register to. This parameter is required.