Interface NetworkLoadBalancedFargateServiceProps

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:15.459Z") @Stability(Stable) public interface NetworkLoadBalancedFargateServiceProps extends software.amazon.jsii.JsiiSerializable, NetworkLoadBalancedServiceBaseProps, FargateServiceBaseProps
The properties for the NetworkLoadBalancedFargateService service.

Example:

 Vpc vpc;
 SecurityGroup securityGroup;
 NetworkLoadBalancedFargateService queueProcessingFargateService = NetworkLoadBalancedFargateService.Builder.create(this, "Service")
         .vpc(vpc)
         .memoryLimitMiB(512)
         .taskImageOptions(NetworkLoadBalancedTaskImageOptions.builder()
                 .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample"))
                 .build())
         .securityGroups(List.of(securityGroup))
         .build();
 
  • Method Details

    • getAssignPublicIp

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

      Default: false

    • 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 NetworkLoadBalancedFargateServiceProps.Builder builder()
      Returns:
      a NetworkLoadBalancedFargateServiceProps.Builder of NetworkLoadBalancedFargateServiceProps