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.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.BuilderNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetworkMultipleTargetGroupsServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNetworkMultipleTargetGroupsServiceBase(software.amazon.jsii.JsiiObjectRef objRef) protectedNetworkMultipleTargetGroupsServiceBase(software.constructs.Construct scope, String id) Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class.protectedNetworkMultipleTargetGroupsServiceBase(software.constructs.Construct scope, String id, NetworkMultipleTargetGroupsServiceBaseProps props) Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPortMappingForTargets(ContainerDefinition container, List<NetworkTargetProps> targets) protected AwsLogDrivercreateAWSLogDriver(String prefix) protected NetworkListenerprotected NetworkListenerfindListener(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.Deprecated.The desired number of instantiations of the task definition to keep running on the service.The listener for the service.protected List<NetworkListener>The Network Load Balancer for the service.protected LogDriverprotected List<NetworkTargetGroup>protected NetworkTargetGroupregisterECSTargets(BaseService service, ContainerDefinition container, List<NetworkTargetProps> targets) protected voidsetListeners(List<NetworkListener> value) protected voidsetLogDriver(LogDriver value) protected voidsetTargetGroups(List<NetworkTargetGroup> value) Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
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
-
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. -
getDesiredCount
Deprecated.- Use
internalDesiredCountinstead.
(deprecated) The desired number of instantiations of the task definition to keep running on the service. - Use
-
getListener
The listener for the service. -
getLoadBalancer
The Network Load Balancer for 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.
-
getListeners
-
setListeners
-
getTargetGroups
-
setTargetGroups
-
getLogDriver
-
setLogDriver
-
internalDesiredCountinstead.