LoadBalancerTargetProps
- class aws_cdk.aws_elasticloadbalancingv2.LoadBalancerTargetProps(*, target_type, target_json=None)
Bases:
object
Result of attaching a target to load balancer.
- Parameters:
target_type (
TargetType
) – What kind of target this is.target_json (
Optional
[Any
]) – JSON representing the target’s direct addition to the TargetGroup list. May be omitted if the target is going to register itself later.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_elasticloadbalancingv2 as elbv2 # target_json: Any load_balancer_target_props = elbv2.LoadBalancerTargetProps( target_type=elbv2.TargetType.INSTANCE, # the properties below are optional target_json=target_json )
Attributes
- target_json
JSON representing the target’s direct addition to the TargetGroup list.
May be omitted if the target is going to register itself later.
- target_type
What kind of target this is.