@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.135Z") @Stability(value=Stable) public enum TargetType extends 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(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.
|
@Stability(value=Stable) public static final TargetType INSTANCE
@Stability(value=Stable) public static final TargetType IP
@Stability(value=Stable) public static final TargetType LAMBDA
@Stability(value=Stable) public static final TargetType ALB
public static TargetType[] values()
for (TargetType c : TargetType.values()) System.out.println(c);
public static TargetType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.