Class NetworkMultipleTargetGroupsServiceBase

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsServiceBase
All Implemented Interfaces:
IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct
Direct Known Subclasses:
NetworkMultipleTargetGroupsEc2Service, NetworkMultipleTargetGroupsFargateService

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.763Z") @Stability(Stable) public abstract class NetworkMultipleTargetGroupsServiceBase extends Construct
The base class for NetworkMultipleTargetGroupsEc2Service and NetworkMultipleTargetGroupsFargateService classes.
  • Constructor Details

    • NetworkMultipleTargetGroupsServiceBase

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

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

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

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

      @Stability(Stable) protected NetworkMultipleTargetGroupsServiceBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase 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<NetworkTargetProps> 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 NetworkListener findListener(@Nullable String name)
      Parameters:
      name -
    • findListener

      @Stability(Stable) @NotNull protected NetworkListener 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 NetworkTargetGroup registerECSTargets(@NotNull BaseService service, @NotNull ContainerDefinition container, @NotNull List<NetworkTargetProps> 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.
    • getDesiredCount

      @Stability(Deprecated) @Deprecated @NotNull public Number getDesiredCount()
      Deprecated.
      • Use internalDesiredCount instead.
      (deprecated) The desired number of instantiations of the task definition to keep running on 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.
    • 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.

    • getListeners

      @Stability(Stable) @NotNull protected List<NetworkListener> getListeners()
    • setListeners

      @Stability(Stable) protected void setListeners(@NotNull List<NetworkListener> value)
    • getTargetGroups

      @Stability(Stable) @NotNull protected List<NetworkTargetGroup> getTargetGroups()
    • setTargetGroups

      @Stability(Stable) protected void setTargetGroups(@NotNull List<NetworkTargetGroup> value)
    • getLogDriver

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

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