class ApplicationLoadBalancedServiceBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.Patterns.ApplicationLoadBalancedServiceBase |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecspatterns#ApplicationLoadBalancedServiceBase |
Java | software.amazon.awscdk.services.ecs.patterns.ApplicationLoadBalancedServiceBase |
Python | aws_cdk.aws_ecs_patterns.ApplicationLoadBalancedServiceBase |
TypeScript (source) | aws-cdk-lib » aws_ecs_patterns » ApplicationLoadBalancedServiceBase |
Implements
IConstruct, IDependable
Extends
Construct
Implemented by
Application, Application
The base class for ApplicationLoadBalancedEc2Service and ApplicationLoadBalancedFargateService services.
Initializer
new ApplicationLoadBalancedServiceBase(scope: Construct, id: string, props?: ApplicationLoadBalancedServiceBaseProps)
Parameters
- scope
Construct - id
string - props
ApplicationLoad Balanced Service Base Props
Constructs a new instance of the ApplicationLoadBalancedServiceBase class.
Properties
| Name | Type | Description |
|---|---|---|
| cluster | ICluster | The cluster that hosts the service. |
| listener | Application | The listener for the service. |
| load | Application | The Application Load Balancer for the service. |
| node | Node | The tree node. |
| target | Application | The target group for the service. |
| certificate? | ICertificate | Certificate Manager certificate to associate with the load balancer. |
| internal | number | The desired number of instantiations of the task definition to keep running on the service. |
| redirect | Application | The redirect listener for the service if redirectHTTP is enabled. |
cluster
Type:
ICluster
The cluster that hosts the service.
listener
Type:
Application
The listener for the service.
loadBalancer
Type:
Application
The Application Load Balancer for the service.
node
Type:
Node
The tree node.
targetGroup
Type:
Application
The target group for the service.
certificate?
Type:
ICertificate
(optional)
Certificate Manager certificate to associate with the load balancer.
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.
redirectListener?
Type:
Application
(optional)
The redirect listener for the service if redirectHTTP is enabled.
Methods
| Name | Description |
|---|---|
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
| protected add | Adds service as a target of the target group. |
| protected create | |
| protected get | Returns the default cluster. |
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 addServiceAsTarget(service)
protected addServiceAsTarget(service: BaseService): void
Parameters
- service
BaseService
Adds service as a target of the target group.
protected createAWSLogDriver(prefix)
protected createAWSLogDriver(prefix: string): AwsLogDriver
Parameters
- prefix
string
Returns
protected getDefaultCluster(scope, vpc?)
protected getDefaultCluster(scope: Construct, vpc?: IVpc): Cluster
Parameters
Returns
Returns the default cluster.

.NET
Go
Java
Python
TypeScript (