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.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:39.363Z")
@Stability(Stable)
public abstract class NetworkLoadBalancedServiceBase
extends software.constructs.Construct
The base class for NetworkLoadBalancedEc2Service and NetworkLoadBalancedFargateService services.
- 
Nested Class SummaryNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$Default
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedNetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObjectRef objRef) protectedNetworkLoadBalancedServiceBase(software.constructs.Construct scope, String id) Constructs a new instance of the NetworkLoadBalancedServiceBase class.protectedNetworkLoadBalancedServiceBase(software.constructs.Construct scope, String id, NetworkLoadBalancedServiceBaseProps props) Constructs a new instance of the NetworkLoadBalancedServiceBase class.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddServiceAsTarget(BaseService service) Adds service as a target of the target group.protected AwsLogDrivercreateAWSLogDriver(String prefix) The cluster that hosts the service.protected ClustergetDefaultCluster(software.constructs.Construct scope) Returns the default cluster.protected ClustergetDefaultCluster(software.constructs.Construct scope, IVpc vpc) Returns the default cluster.The desired number of instantiations of the task definition to keep running on the service.The listener for the service.The Network Load Balancer for the service.The target group for the service.Methods inherited from class software.constructs.ConstructgetNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
NetworkLoadBalancedServiceBaseprotected NetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObjectRef objRef) 
- 
NetworkLoadBalancedServiceBaseprotected 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- 
addServiceAsTargetAdds service as a target of the target group.- Parameters:
- service- This parameter is required.
 
- 
createAWSLogDriver- 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.
 
- 
getClusterThe cluster that hosts the service.
- 
getListenerThe listener for the service.
- 
getLoadBalancerThe Network Load Balancer for the service.
- 
getTargetGroupThe target group for the service.
- 
getInternalDesiredCountThe 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. 
 
-