TargetType

class aws_cdk.aws_elasticloadbalancingv2.TargetType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

How to interpret the load balancing target identifiers.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc


# Target group with slow start mode enabled
tg = elbv2.ApplicationTargetGroup(self, "TG",
    target_type=elbv2.TargetType.INSTANCE,
    slow_start=Duration.seconds(60),
    port=80,
    vpc=vpc
)

Attributes

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.