class NetworkMultipleTargetGroupsServiceBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.Patterns.NetworkMultipleTargetGroupsServiceBase |
Java | software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsServiceBase |
Python | aws_cdk.aws_ecs_patterns.NetworkMultipleTargetGroupsServiceBase |
TypeScript (source) | @aws-cdk/aws-ecs-patterns » NetworkMultipleTargetGroupsServiceBase |
Implements
IConstruct, IConstruct, IDependable
Extends
Construct
Implemented by
Network, Network
The base class for NetworkMultipleTargetGroupsEc2Service and NetworkMultipleTargetGroupsFargateService classes.
Initializer
new NetworkMultipleTargetGroupsServiceBase(scope: Construct, id: string, props?: NetworkMultipleTargetGroupsServiceBaseProps)
Parameters
- scope
Construct - id
string - props
NetworkMultiple Target Groups Service Base Props
Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class.
Properties
| Name | Type | Description |
|---|---|---|
| cluster | ICluster | The cluster that hosts the service. |
| desired | number | The desired number of instantiations of the task definition to keep running on the service. |
| listener | Network | The listener for the service. |
| listeners | Network[] | |
| load | Network | The Network Load Balancer for the service. |
| node | Construct | The construct tree node associated with this construct. |
| target | Network[] | |
| internal | number | The desired number of instantiations of the task definition to keep running on the service. |
| log | Log |
cluster
Type:
ICluster
The cluster that hosts the service.
desiredCount
⚠️ Deprecated: - Use internalDesiredCount instead.
Type:
number
The desired number of instantiations of the task definition to keep running on the service.
listener
Type:
Network
The listener for the service.
listeners
Type:
Network[]
loadBalancer
Type:
Network
The Network Load Balancer for the service.
node
Type:
Construct
The construct tree node associated with this construct.
targetGroups
Type:
Network[]
internalDesiredCount?
Type:
number
(optional)
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.
logDriver?
Type:
Log
(optional)
Methods
| Name | Description |
|---|---|
| to | Returns a string representation of this construct. |
| protected add | |
| protected create | |
| protected find | |
| protected get | Returns the default cluster. |
| protected register |
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
protected addPortMappingForTargets(container, targets)
protected addPortMappingForTargets(container: ContainerDefinition, targets: NetworkTargetProps[]): void
Parameters
- container
ContainerDefinition - targets
NetworkTarget Props []
protected createAWSLogDriver(prefix)
protected createAWSLogDriver(prefix: string): AwsLogDriver
Parameters
- prefix
string
Returns
protected findListener(name?)
protected findListener(name?: string): NetworkListener
Parameters
- name
string
Returns
protected getDefaultCluster(scope, vpc?)
protected getDefaultCluster(scope: Construct, vpc?: IVpc): Cluster
Parameters
Returns
Returns the default cluster.
protected registerECSTargets(service, container, targets)
protected registerECSTargets(service: BaseService, container: ContainerDefinition, targets: NetworkTargetProps[]): NetworkTargetGroup
Parameters
- service
BaseService - container
ContainerDefinition - targets
NetworkTarget Props []
Returns

.NET
Java
Python
TypeScript (