Class ApplicationMultipleTargetGroupsServiceBase
The base class for ApplicationMultipleTargetGroupsEc2Service and ApplicationMultipleTargetGroupsFargateService classes.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public abstract class ApplicationMultipleTargetGroupsServiceBase : Construct, IConstruct, IDependable
Syntax (vb)
Public MustInherit Class ApplicationMultipleTargetGroupsServiceBase
Inherits Construct
Implements IConstruct, IDependable
Synopsis
Constructors
ApplicationMultipleTargetGroupsServiceBase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ApplicationMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ApplicationMultipleTargetGroupsServiceBase(Construct, String, IApplicationMultipleTargetGroupsServiceBaseProps) | Constructs a new instance of the ApplicationMultipleTargetGroupsServiceBase class. |
Properties
Cluster | The cluster that hosts the service. |
DesiredCount | (deprecated) The desired number of instantiations of the task definition to keep running on the service. |
InternalDesiredCount | The desired number of instantiations of the task definition to keep running on the service. |
Listener | The default listener for the service (first added listener). |
Listeners | |
LoadBalancer | The default Application Load Balancer for the service (first added load balancer). |
LogDriver | |
TargetGroups |
Methods
Constructors
ApplicationMultipleTargetGroupsServiceBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ApplicationMultipleTargetGroupsServiceBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ApplicationMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ApplicationMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ApplicationMultipleTargetGroupsServiceBase(Construct, String, IApplicationMultipleTargetGroupsServiceBaseProps)
Constructs a new instance of the ApplicationMultipleTargetGroupsServiceBase class.
protected ApplicationMultipleTargetGroupsServiceBase(Construct scope, string id, IApplicationMultipleTargetGroupsServiceBaseProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IApplicationMultipleTargetGroupsServiceBaseProps
Properties
Cluster
The cluster that hosts the service.
public virtual ICluster Cluster { get; }
Property Value
DesiredCount
(deprecated) The desired number of instantiations of the task definition to keep running on the service.
public virtual double DesiredCount { get; }
Property Value
System.Double
Remarks
Stability: Deprecated
InternalDesiredCount
The desired number of instantiations of the task definition to keep running on the service.
public virtual Nullable<double> InternalDesiredCount { get; }
Property Value
System.Nullable<System.Double>
Remarks
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.
Listener
The default listener for the service (first added listener).
public virtual ApplicationListener Listener { get; }
Property Value
Listeners
protected virtual ApplicationListener[] Listeners { get; set; }
Property Value
LoadBalancer
The default Application Load Balancer for the service (first added load balancer).
public virtual ApplicationLoadBalancer LoadBalancer { get; }
Property Value
LogDriver
TargetGroups
protected virtual ApplicationTargetGroup[] TargetGroups { get; set; }
Property Value
Methods
AddPortMappingForTargets(ContainerDefinition, IApplicationTargetProps[])
protected virtual void AddPortMappingForTargets(ContainerDefinition container, IApplicationTargetProps[] targets)
Parameters
- container ContainerDefinition
- targets IApplicationTargetProps[]
CreateAWSLogDriver(String)
protected virtual AwsLogDriver CreateAWSLogDriver(string prefix)
Parameters
- prefix System.String
Returns
FindListener(String)
protected virtual ApplicationListener FindListener(string name = null)
Parameters
- name System.String
Returns
GetDefaultCluster(Construct, IVpc)
Returns the default cluster.
protected virtual Cluster GetDefaultCluster(Construct scope, IVpc vpc = null)
Parameters
- scope Constructs.Construct
- vpc IVpc
Returns
RegisterECSTargets(BaseService, ContainerDefinition, IApplicationTargetProps[])
protected virtual ApplicationTargetGroup RegisterECSTargets(BaseService service, ContainerDefinition container, IApplicationTargetProps[] targets)
Parameters
- service BaseService
- container ContainerDefinition
- targets IApplicationTargetProps[]
Returns