@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:36.702Z") public interface ApplicationMultipleTargetGroupsEc2ServiceProps extends ApplicationMultipleTargetGroupsServiceBaseProps
Example:
// One application load balancer with one listener and two target groups. Cluster cluster; ApplicationMultipleTargetGroupsEc2Service loadBalancedEc2Service = ApplicationMultipleTargetGroupsEc2Service.Builder.create(this, "Service") .cluster(cluster) .memoryLimitMiB(256) .taskImageOptions(ApplicationLoadBalancedTaskImageProps.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .build()) .targetGroups(List.of(ApplicationTargetProps.builder() .containerPort(80) .build(), ApplicationTargetProps.builder() .containerPort(90) .pathPattern("a/b/c") .priority(10) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
ApplicationMultipleTargetGroupsEc2ServiceProps.Builder
A builder for
ApplicationMultipleTargetGroupsEc2ServiceProps |
static class |
ApplicationMultipleTargetGroupsEc2ServiceProps.Jsii$Proxy
An implementation for
ApplicationMultipleTargetGroupsEc2ServiceProps |
Modifier and Type | Method and Description |
---|---|
static ApplicationMultipleTargetGroupsEc2ServiceProps.Builder |
builder() |
default java.lang.Number |
getCpu()
The minimum number of CPU units to reserve for the container.
|
default java.lang.Number |
getMemoryLimitMiB()
The amount (in MiB) of memory to present to the container.
|
default java.lang.Number |
getMemoryReservationMiB()
The soft limit (in MiB) of memory to reserve for the container.
|
default java.util.List<PlacementConstraint> |
getPlacementConstraints()
The placement constraints to use for tasks in the service.
|
default java.util.List<PlacementStrategy> |
getPlacementStrategies()
The placement strategies to use for tasks in the service.
|
default Ec2TaskDefinition |
getTaskDefinition()
The task definition to use for tasks in the service.
|
getCloudMapOptions, getCluster, getDesiredCount, getEnableECSManagedTags, getHealthCheckGracePeriod, getLoadBalancers, getPropagateTags, getServiceName, getTargetGroups, getTaskImageOptions, getVpc
default java.lang.Number getCpu()
Valid values, which determines your range of valid values for the memory parameter:
Default: - No minimum CPU units reserved.
default java.lang.Number getMemoryLimitMiB()
If your container attempts to exceed the allocated memory, the container is terminated.
At least one of memoryLimitMiB and memoryReservationMiB is required.
Default: - No memory limit.
default java.lang.Number getMemoryReservationMiB()
When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit. However, your container can consume more memory when it needs to, up to either the hard limit specified with the memory parameter (if applicable), or all of the available memory on the container instance, whichever comes first.
At least one of memoryLimitMiB and memoryReservationMiB is required.
Note that this setting will be ignored if TaskImagesOptions is specified
Default: - No memory reserved.
default java.util.List<PlacementConstraint> getPlacementConstraints()
For more information, see Amazon ECS Task Placement Constraints.
Default: - No constraints.
default java.util.List<PlacementStrategy> getPlacementStrategies()
For more information, see Amazon ECS Task Placement Strategies.
Default: - No strategies.
default Ec2TaskDefinition getTaskDefinition()
[disable-awslint:ref-via-interface]
Default: - none
static ApplicationMultipleTargetGroupsEc2ServiceProps.Builder builder()
builder
in interface ApplicationMultipleTargetGroupsServiceBaseProps
ApplicationMultipleTargetGroupsEc2ServiceProps.Builder
of ApplicationMultipleTargetGroupsEc2ServiceProps