Class NetworkLoadBalancedServiceBase

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.183Z") @Stability(Stable) public abstract class NetworkLoadBalancedServiceBase extends software.constructs.Construct
The base class for NetworkLoadBalancedEc2Service and NetworkLoadBalancedFargateService services.
  • Constructor Details

    • NetworkLoadBalancedServiceBase

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

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

      @Stability(Stable) protected NetworkLoadBalancedServiceBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable NetworkLoadBalancedServiceBaseProps props)
      Constructs a new instance of the NetworkLoadBalancedServiceBase class.

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

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

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

    • addServiceAsTarget

      @Stability(Stable) protected void addServiceAsTarget(@NotNull BaseService service)
      Adds service as a target of the target group.

      Parameters:
      service - This parameter is required.
    • createAWSLogDriver

      @Stability(Stable) @NotNull protected AwsLogDriver createAWSLogDriver(@NotNull String prefix)
      Parameters:
      prefix - This parameter is required.
    • getDefaultCluster

      @Stability(Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope, @Nullable IVpc vpc)
      Returns the default cluster.

      Parameters:
      scope - This parameter is required.
      vpc -
    • getDefaultCluster

      @Stability(Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope)
      Returns the default cluster.

      Parameters:
      scope - This parameter is required.
    • getCluster

      @Stability(Stable) @NotNull public ICluster getCluster()
      The cluster that hosts the service.
    • getListener

      @Stability(Stable) @NotNull public NetworkListener getListener()
      The listener for the service.
    • getLoadBalancer

      @Stability(Stable) @NotNull public NetworkLoadBalancer getLoadBalancer()
      The Network Load Balancer for the service.
    • getTargetGroup

      @Stability(Stable) @NotNull public NetworkTargetGroup getTargetGroup()
      The target group for the service.
    • getInternalDesiredCount

      @Stability(Stable) @Nullable public Number getInternalDesiredCount()
      The desired number of instantiations of the task definition to keep running on the service.

      The default is 1 for all new services and uses the existing services desired count when updating an existing service, if one is not provided.