Class NetworkLoadBalancedFargateService

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedServiceBase
software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedFargateService
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-02T15:58:25.346Z") @Stability(Stable) public class NetworkLoadBalancedFargateService extends NetworkLoadBalancedServiceBase
A Fargate service running on an ECS cluster fronted by a network load balancer.

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();
 
  • Constructor Details

    • NetworkLoadBalancedFargateService

      protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObjectRef objRef)
    • NetworkLoadBalancedFargateService

      protected NetworkLoadBalancedFargateService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NetworkLoadBalancedFargateService

      @Stability(Stable) public NetworkLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable NetworkLoadBalancedFargateServiceProps props)
      Constructs a new instance of the NetworkLoadBalancedFargateService class.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • NetworkLoadBalancedFargateService

      @Stability(Stable) public NetworkLoadBalancedFargateService(@NotNull software.constructs.Construct scope, @NotNull String id)
      Constructs a new instance of the NetworkLoadBalancedFargateService class.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • getAssignPublicIp

      @Stability(Stable) @NotNull public Boolean getAssignPublicIp()
    • getService

      @Stability(Stable) @NotNull public FargateService getService()
      The Fargate service in this construct.
    • getTaskDefinition

      @Stability(Stable) @NotNull public FargateTaskDefinition getTaskDefinition()
      The Fargate task definition in this construct.