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.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.854Z")
@Stability(Stable)
public abstract class ApplicationMultipleTargetGroupsServiceBase
extends software.constructs.Construct
The base class for ApplicationMultipleTargetGroupsEc2Service and ApplicationMultipleTargetGroupsFargateService classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplicationMultipleTargetGroupsServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApplicationMultipleTargetGroupsServiceBase(software.amazon.jsii.JsiiObjectRef objRef) protectedApplicationMultipleTargetGroupsServiceBase(software.constructs.Construct scope, String id) Constructs a new instance of the ApplicationMultipleTargetGroupsServiceBase class.protectedApplicationMultipleTargetGroupsServiceBase(software.constructs.Construct scope, String id, ApplicationMultipleTargetGroupsServiceBaseProps props) Constructs a new instance of the ApplicationMultipleTargetGroupsServiceBase class. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPortMappingForTargets(ContainerDefinition container, List<ApplicationTargetProps> targets) protected AwsLogDrivercreateAWSLogDriver(String prefix) protected ApplicationListenerprotected ApplicationListenerfindListener(String name) 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.Deprecated.The listeners of the service.Deprecated.UseloadBalancersinstead.The load balancers of the service.protected LogDriverThe target groups of the service.protected ApplicationTargetGroupregisterECSTargets(BaseService service, ContainerDefinition container, List<ApplicationTargetProps> targets) protected voidsetLogDriver(LogDriver value) Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- Parameters:
prefix- This parameter is required.
-
findListener
- Parameters:
name-
-
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
The cluster that hosts the service. -
getListener
Deprecated.- Use
listenersinstead.
(deprecated) The default listener for the service (first added listener). - Use
-
getListeners
The listeners of the service. -
getLoadBalancer
Deprecated.- Use
loadBalancersinstead.
(deprecated) The default Application Load Balancer for the service (first added load balancer). - Use
-
getLoadBalancers
The load balancers of the service. -
getTargetGroups
The target groups of the service. -
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
-
setLogDriver
-
listenersinstead.