ServiceLoadBalancer constructor
const
ServiceLoadBalancer({
- Input<
ServiceLoadBalancerAdvancedConfiguration?> ? advancedConfiguration, - required Input<
String> containerName, - required Input<
int> containerPort, - Input<
String?> ? elbName, - Input<
String?> ? targetGroupArn,
Creates a new ServiceLoadBalancer.
advancedConfiguration Configuration block for Blue/Green deployment settings. Required when using BLUE_GREEN deployment strategy. See below.
containerName Name of the container to associate with the load balancer (as it appears in a container definition).
containerPort Port on the container to associate with the load balancer.
elbName Name of the ELB (Classic) to associate with the service. Required for ELB Classic.
targetGroupArn ARN of the Load Balancer target group to associate with the service. Required for ALB/NLB.
Implementation
const ServiceLoadBalancer({
this.advancedConfiguration,
required this.containerName,
required this.containerPort,
this.elbName,
this.targetGroupArn,
});