class ApplicationMultipleTargetGroupsServiceBase
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.Patterns.ApplicationMultipleTargetGroupsServiceBase |
Java | software.amazon.awscdk.services.ecs.patterns.ApplicationMultipleTargetGroupsServiceBase |
Python | aws_cdk.aws_ecs_patterns.ApplicationMultipleTargetGroupsServiceBase |
TypeScript (source) | @aws-cdk/aws-ecs-patterns » ApplicationMultipleTargetGroupsServiceBase |
Implements
IConstruct
, 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
Application
Multiple 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. |
desired | number | The desired number of instantiations of the task definition to keep running on the service. |
listener | Application | The default listener for the service (first added listener). |
listeners | Application [] | |
load | Application | The default Application Load Balancer for the service (first added load balancer). |
node | Construct | The construct tree node associated with this construct. |
target | Application [] | |
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:
Application
The default listener for the service (first added listener).
listeners
Type:
Application
[]
loadBalancer
Type:
Application
The default Application Load Balancer for the service (first added load balancer).
node
Type:
Construct
The construct tree node associated with this construct.
targetGroups
Type:
Application
[]
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 |
String()
topublic toString(): string
Returns
string
Returns a string representation of this construct.
PortMappingForTargets(container, targets)
protected addprotected addPortMappingForTargets(container: ContainerDefinition, targets: ApplicationTargetProps[]): void
Parameters
- container
Container
Definition - targets
Application
Target Props []
AWSLogDriver(prefix)
protected createprotected createAWSLogDriver(prefix: string): AwsLogDriver
Parameters
- prefix
string
Returns
Listener(name?)
protected findprotected findListener(name?: string): ApplicationListener
Parameters
- name
string
Returns
DefaultCluster(scope, vpc?)
protected getprotected getDefaultCluster(scope: Construct, vpc?: IVpc): Cluster
Parameters
Returns
Returns the default cluster.
ECSTargets(service, container, targets)
protected registerprotected registerECSTargets(service: BaseService, container: ContainerDefinition, targets: ApplicationTargetProps[]): ApplicationTargetGroup
Parameters
- service
Base
Service - container
Container
Definition - targets
Application
Target Props []
Returns