Interface ApplicationLoadBalancedFargateServiceProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.139Z") @Stability(Stable) public interface ApplicationLoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable, ApplicationLoadBalancedServiceBaseProps, FargateServiceBaseProps
The properties for the ApplicationLoadBalancedFargateService service.

Example:

 Cluster cluster;
 ApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, "Service")
         .cluster(cluster)
         .memoryLimitMiB(1024)
         .desiredCount(1)
         .cpu(512)
         .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()
                 .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
                 .build())
         .build();
 ScalableTaskCount scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder()
         .minCapacity(1)
         .maxCapacity(20)
         .build());
 scalableTarget.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder()
         .targetUtilizationPercent(50)
         .build());
 scalableTarget.scaleOnMemoryUtilization("MemoryScaling", MemoryUtilizationScalingProps.builder()
         .targetUtilizationPercent(50)
         .build());
 
  • Method Details

    • getAssignPublicIp

      @Stability(Stable) @Nullable default Boolean getAssignPublicIp()
      Determines whether the service will be assigned a public IP address.

      Default: false

    • getHealthCheck

      @Stability(Stable) @Nullable default HealthCheck getHealthCheck()
      The health check command and associated configuration parameters for the container.

      Default: - Health check configuration from container.

    • getSecurityGroups

      @Stability(Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
      The security groups to associate with the service.

      If you do not specify a security group, a new security group is created.

      Default: - A new security group is created.

    • getTaskSubnets

      @Stability(Stable) @Nullable default SubnetSelection getTaskSubnets()
      The subnets to associate with the service.

      Default: - Public subnets if `assignPublicIp` is set, otherwise the first available one of Private, Isolated, Public, in that order.

    • builder

      @Stability(Stable) static ApplicationLoadBalancedFargateServiceProps.Builder builder()
      Returns:
      a ApplicationLoadBalancedFargateServiceProps.Builder of ApplicationLoadBalancedFargateServiceProps