Interface NetworkMultipleTargetGroupsFargateServiceProps

All Superinterfaces:
FargateServiceBaseProps, software.amazon.jsii.JsiiSerializable, NetworkMultipleTargetGroupsServiceBaseProps
All Known Implementing Classes:
NetworkMultipleTargetGroupsFargateServiceProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:01.261Z") @Stability(Stable) public interface NetworkMultipleTargetGroupsFargateServiceProps extends software.amazon.jsii.JsiiSerializable, NetworkMultipleTargetGroupsServiceBaseProps, FargateServiceBaseProps
The properties for the NetworkMultipleTargetGroupsFargateService service.

Example:

 // Two network load balancers, each with their own listener and target group.
 Cluster cluster;
 NetworkMultipleTargetGroupsFargateService loadBalancedFargateService = NetworkMultipleTargetGroupsFargateService.Builder.create(this, "Service")
         .cluster(cluster)
         .memoryLimitMiB(512)
         .taskImageOptions(NetworkLoadBalancedTaskImageProps.builder()
                 .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
                 .build())
         .loadBalancers(List.of(NetworkLoadBalancerProps.builder()
                 .name("lb1")
                 .listeners(List.of(NetworkListenerProps.builder()
                         .name("listener1")
                         .build()))
                 .build(), NetworkLoadBalancerProps.builder()
                 .name("lb2")
                 .listeners(List.of(NetworkListenerProps.builder()
                         .name("listener2")
                         .build()))
                 .build()))
         .targetGroups(List.of(NetworkTargetProps.builder()
                 .containerPort(80)
                 .listener("listener1")
                 .build(), NetworkTargetProps.builder()
                 .containerPort(90)
                 .listener("listener2")
                 .build()))
         .build();