LoadBalancer

class aws_cdk.aws_codedeploy.LoadBalancer

Bases: object

An interface of an abstract load balancer, as needed by CodeDeploy. Create instances using the static factory methods: {@link #classic}, {@link #application} and {@link #network}.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Attributes

generation
Return type

LoadBalancerGeneration

name
Return type

str

Static Methods

classmethod application(alb_target_group)

Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group.

Parameters

alb_target_group (ApplicationTargetGroup) – an ALB Target Group.

Return type

LoadBalancer

classmethod classic(load_balancer)

Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer.

Parameters

load_balancer (LoadBalancer) – a classic ELB Load Balancer.

Return type

LoadBalancer

classmethod network(nlb_target_group)

Creates a new CodeDeploy load balancer from a Network Load Balancer Target Group.

Parameters

nlb_target_group (NetworkTargetGroup) – an NLB Target Group.

Return type

LoadBalancer