Class NetworkMultipleTargetGroupsServiceBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsServiceBase
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
- Direct Known Subclasses:
NetworkMultipleTargetGroupsEc2Service
,NetworkMultipleTargetGroupsFargateService
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:14.796Z")
@Stability(Stable)
public abstract class NetworkMultipleTargetGroupsServiceBase
extends software.constructs.Construct
The base class for NetworkMultipleTargetGroupsEc2Service and NetworkMultipleTargetGroupsFargateService classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
NetworkMultipleTargetGroupsServiceBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
NetworkMultipleTargetGroupsServiceBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
NetworkMultipleTargetGroupsServiceBase
(software.constructs.Construct scope, String id) Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class.protected
NetworkMultipleTargetGroupsServiceBase
(software.constructs.Construct scope, String id, NetworkMultipleTargetGroupsServiceBaseProps props) Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPortMappingForTargets
(ContainerDefinition container, List<NetworkTargetProps> targets) protected AwsLogDriver
createAWSLogDriver
(String prefix) protected NetworkListener
protected NetworkListener
findListener
(String name) The cluster that hosts the service.protected Cluster
getDefaultCluster
(software.constructs.Construct scope) Returns the default cluster.protected Cluster
getDefaultCluster
(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.UseloadBalancers
instead.The load balancers of the service.protected LogDriver
The target groups of the service.protected NetworkTargetGroup
registerECSTargets
(BaseService service, ContainerDefinition container, List<NetworkTargetProps> targets) protected void
setLogDriver
(LogDriver value) Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- 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 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
The cluster that hosts the service. -
getListener
Deprecated.- Use
listeners
instead.
(deprecated) The listener for the service. - Use
-
getListeners
The listeners of the service. -
getLoadBalancer
Deprecated.- Use
loadBalancers
instead.
(deprecated) The Network Load Balancer for the service. - 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
-
listeners
instead.