Class ApplicationMultipleTargetGroupsServiceBase
The base class for ApplicationMultipleTargetGroupsEc2Service and ApplicationMultipleTargetGroupsFargateService classes.
Inheritance
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class ApplicationMultipleTargetGroupsServiceBase : Construct
Syntax (vb)
Public MustInherit Class ApplicationMultipleTargetGroupsServiceBase
Inherits Construct
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. |
InternalDesiredCount | The desired number of instantiations of the task definition to keep running on the service. |
Listener | (deprecated) The default listener for the service (first added listener). |
Listeners | The listeners of the service. |
LoadBalancer | (deprecated) The default Application Load Balancer for the service (first added load balancer). |
LoadBalancers | The load balancers of the service. |
LogDriver | |
TargetGroups | The target groups of the service. |
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
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
(deprecated) The default listener for the service (first added listener).
public virtual ApplicationListener Listener { get; }
Property Value
Remarks
Stability: Deprecated
Listeners
The listeners of the service.
public virtual ApplicationListener[] Listeners { get; }
Property Value
LoadBalancer
(deprecated) The default Application Load Balancer for the service (first added load balancer).
public virtual ApplicationLoadBalancer LoadBalancer { get; }
Property Value
Remarks
Stability: Deprecated
LoadBalancers
The load balancers of the service.
public virtual ApplicationLoadBalancer[] LoadBalancers { get; }
Property Value
LogDriver
TargetGroups
The target groups of the service.
public virtual ApplicationTargetGroup[] TargetGroups { get; }
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