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-27T16:50:57.192Z")
@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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNetworkMultipleTargetGroupsFargateServiceProps
static final class
An implementation forNetworkMultipleTargetGroupsFargateServiceProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ecs.patterns.FargateServiceBaseProps
getCpu, getEphemeralStorageGiB, getMemoryLimitMiB, getPlatformVersion, getRuntimePlatform, getTaskDefinition
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsServiceBaseProps
getCloudMapOptions, getCluster, getDesiredCount, getEnableECSManagedTags, getEnableExecuteCommand, getHealthCheckGracePeriod, getLoadBalancers, getPropagateTags, getServiceName, getTargetGroups, getTaskImageOptions, getVpc
-
Method Details
-
getAssignPublicIp
Determines whether the service will be assigned a public IP address.Default: false
-
builder
-