class ApplicationMultipleTargetGroupsServiceBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.Patterns.ApplicationMultipleTargetGroupsServiceBase |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecspatterns#ApplicationMultipleTargetGroupsServiceBase |
Java | software.amazon.awscdk.services.ecs.patterns.ApplicationMultipleTargetGroupsServiceBase |
Python | aws_cdk.aws_ecs_patterns.ApplicationMultipleTargetGroupsServiceBase |
TypeScript (source) | aws-cdk-lib » aws_ecs_patterns » ApplicationMultipleTargetGroupsServiceBase |
Implements
IConstruct, IDependable
Extends
Construct
Implemented by
Application, Application
The base class for ApplicationMultipleTargetGroupsEc2Service and ApplicationMultipleTargetGroupsFargateService classes.
Initializer
new ApplicationMultipleTargetGroupsServiceBase(scope: Construct, id: string, props?: ApplicationMultipleTargetGroupsServiceBaseProps)
Parameters
- scope
Construct - id
string - props
ApplicationMultiple Target Groups Service Base Props
Constructs a new instance of the ApplicationMultipleTargetGroupsServiceBase class.
Properties
| Name | Type | Description |
|---|---|---|
| cluster | ICluster | The cluster that hosts the service. |
| listener | Application | The default listener for the service (first added listener). |
| listeners | Application[] | The listeners of the service. |
| load | Application | The default Application Load Balancer for the service (first added load balancer). |
| load | Application[] | The load balancers of the service. |
| node | Node | The tree node. |
| target | Application[] | The target groups of the service. |
| 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.
listener
⚠️ Deprecated: - Use listeners instead.
Type:
Application
The default listener for the service (first added listener).
listeners
Type:
Application[]
The listeners of the service.
loadBalancer
⚠️ Deprecated: - Use loadBalancers instead.
Type:
Application
The default Application Load Balancer for the service (first added load balancer).
loadBalancers
Type:
Application[]
The load balancers of the service.
node
Type:
Node
The tree node.
targetGroups
Type:
Application[]
The target groups of the service.
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. |
| with(...mixins) | Applies one or more mixins to 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.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
protected addPortMappingForTargets(container, targets)
protected addPortMappingForTargets(container: ContainerDefinition, targets: ApplicationTargetProps[]): void
Parameters
- container
ContainerDefinition - targets
ApplicationTarget Props []
protected createAWSLogDriver(prefix)
protected createAWSLogDriver(prefix: string): AwsLogDriver
Parameters
- prefix
string
Returns
protected findListener(name?)
protected findListener(name?: string): ApplicationListener
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: ApplicationTargetProps[]): ApplicationTargetGroup
Parameters
- service
BaseService - container
ContainerDefinition - targets
ApplicationTarget Props []
Returns

.NET
Go
Java
Python
TypeScript (