@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:18.624Z") public enum TargetType extends java.lang.Enum<TargetType>
Example:
Vpc vpc; ApplicationTargetGroup tg = ApplicationTargetGroup.Builder.create(this, "TG") .targetType(TargetType.IP) .port(50051) .protocol(ApplicationProtocol.HTTP) .protocolVersion(ApplicationProtocolVersion.GRPC) .healthCheck(HealthCheck.builder() .enabled(true) .healthyGrpcCodes("0-99") .build()) .vpc(vpc) .build();
Enum Constant and Description |
---|
ALB
Target is a single Application Load Balancer.
|
INSTANCE
Targets identified by instance ID.
|
IP
Targets identified by IP address.
|
LAMBDA
Target is a single Lambda Function.
|
Modifier and Type | Method and Description |
---|---|
static TargetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TargetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetType INSTANCE
public static final TargetType IP
public static final TargetType LAMBDA
public static final TargetType ALB
public static TargetType[] values()
for (TargetType c : TargetType.values()) System.out.println(c);
public static TargetType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null