Class ApplicationMultipleTargetGroupsServiceBase

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:18.524Z") @Stability(Stable) public abstract class ApplicationMultipleTargetGroupsServiceBase extends software.constructs.Construct
The base class for ApplicationMultipleTargetGroupsEc2Service and ApplicationMultipleTargetGroupsFargateService classes.
  • Constructor Details

    • ApplicationMultipleTargetGroupsServiceBase

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

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

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

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

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

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

    • addPortMappingForTargets

      @Stability(Stable) protected void addPortMappingForTargets(@NotNull ContainerDefinition container, @NotNull List<ApplicationTargetProps> targets)
      Parameters:
      container - This parameter is required.
      targets - This parameter is required.
    • createAWSLogDriver

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

      @Stability(Stable) @NotNull protected ApplicationListener findListener(@Nullable String name)
      Parameters:
      name -
    • findListener

      @Stability(Stable) @NotNull protected ApplicationListener findListener()
    • 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.
    • registerECSTargets

      @Stability(Stable) @NotNull protected ApplicationTargetGroup registerECSTargets(@NotNull BaseService service, @NotNull ContainerDefinition container, @NotNull List<ApplicationTargetProps> targets)
      Parameters:
      service - This parameter is required.
      container - This parameter is required.
      targets - This parameter is required.
    • getCluster

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

      @Stability(Deprecated) @Deprecated @NotNull public ApplicationListener getListener()
      Deprecated.
      • Use listeners instead.
      (deprecated) The default listener for the service (first added listener).

    • getListeners

      @Stability(Stable) @NotNull public List<ApplicationListener> getListeners()
      The listeners of the service.
    • getLoadBalancer

      @Stability(Deprecated) @Deprecated @NotNull public ApplicationLoadBalancer getLoadBalancer()
      Deprecated.
      • Use loadBalancers instead.
      (deprecated) The default Application Load Balancer for the service (first added load balancer).

    • getLoadBalancers

      @Stability(Stable) @NotNull public List<ApplicationLoadBalancer> getLoadBalancers()
      The load balancers of the service.
    • getTargetGroups

      @Stability(Stable) @NotNull public List<ApplicationTargetGroup> getTargetGroups()
      The target groups of 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.

    • getLogDriver

      @Stability(Stable) @Nullable protected LogDriver getLogDriver()
    • setLogDriver

      @Stability(Stable) protected void setLogDriver(@Nullable LogDriver value)