java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.elasticloadbalancingv2.targets.InstanceIdTarget
All Implemented Interfaces:
IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
InstanceTarget

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.672Z") @Stability(Stable) public class InstanceIdTarget extends software.amazon.jsii.JsiiObject implements IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget
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.targets.*;
 InstanceIdTarget instanceIdTarget = new InstanceIdTarget("instanceId", 123);
 
  • Constructor Details

    • InstanceIdTarget

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

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

      @Stability(Stable) public InstanceIdTarget(@NotNull String instanceId, @Nullable Number port)
      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.
    • InstanceIdTarget

      @Stability(Stable) public InstanceIdTarget(@NotNull String instanceId)
      Create a new Instance target.

      Parameters:
      instanceId - Instance ID of the instance to register to. This parameter is required.
  • Method Details