@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.137Z") @Stability(value=Stable) public class InstanceIdTarget extends software.amazon.jsii.JsiiObject implements IApplicationLoadBalancerTarget, INetworkLoadBalancerTarget
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);
software.amazon.jsii.JsiiObject.InitializationModeIApplicationLoadBalancerTarget.Jsii$Default, IApplicationLoadBalancerTarget.Jsii$ProxyINetworkLoadBalancerTarget.Jsii$Default, INetworkLoadBalancerTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
InstanceIdTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InstanceIdTarget(software.amazon.jsii.JsiiObjectRef objRef) |
|
InstanceIdTarget(String instanceId)
Create a new Instance target.
|
|
InstanceIdTarget(String instanceId,
Number port)
Create a new Instance target.
|
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerTargetProps |
attachToApplicationTargetGroup(IApplicationTargetGroup targetGroup)
Register this instance target with a load balancer.
|
LoadBalancerTargetProps |
attachToNetworkTargetGroup(INetworkTargetGroup targetGroup)
Register this instance target with a load balancer.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected InstanceIdTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected InstanceIdTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public InstanceIdTarget(@NotNull
String instanceId,
@Nullable
Number port)
instanceId - Instance ID of the instance to register to. This parameter is required.port - Override the default port for the target group.@Stability(value=Stable)
public InstanceIdTarget(@NotNull
String instanceId)
instanceId - Instance ID of the instance to register to. This parameter is required.@Stability(value=Stable) @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=Stable) @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 © 2022. All rights reserved.