Class ApplicationLoadBalancedServiceBase
The base class for ApplicationLoadBalancedEc2Service and ApplicationLoadBalancedFargateService services.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public abstract class ApplicationLoadBalancedServiceBase : Construct, IConstruct, IDependable
Syntax (vb)
Public MustInherit Class ApplicationLoadBalancedServiceBase
Inherits Construct
Implements IConstruct, IDependable
Synopsis
Constructors
ApplicationLoadBalancedServiceBase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ApplicationLoadBalancedServiceBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ApplicationLoadBalancedServiceBase(Construct, String, IApplicationLoadBalancedServiceBaseProps) | Constructs a new instance of the ApplicationLoadBalancedServiceBase class. |
Properties
Certificate | Certificate Manager certificate to associate with the load balancer. |
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 listener for the service. |
LoadBalancer | The Application Load Balancer for the service. |
RedirectListener | The redirect listener for the service if redirectHTTP is enabled. |
TargetGroup | The target group for the service. |
Methods
AddServiceAsTarget(BaseService) | Adds service as a target of the target group. |
CreateAWSLogDriver(String) | |
GetDefaultCluster(Construct, IVpc) | Returns the default cluster. |
Constructors
ApplicationLoadBalancedServiceBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ApplicationLoadBalancedServiceBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ApplicationLoadBalancedServiceBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ApplicationLoadBalancedServiceBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ApplicationLoadBalancedServiceBase(Construct, String, IApplicationLoadBalancedServiceBaseProps)
Constructs a new instance of the ApplicationLoadBalancedServiceBase class.
protected ApplicationLoadBalancedServiceBase(Construct scope, string id, IApplicationLoadBalancedServiceBaseProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IApplicationLoadBalancedServiceBaseProps
Properties
Certificate
Certificate Manager certificate to associate with the load balancer.
public virtual ICertificate Certificate { get; }
Property Value
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 listener for the service.
public virtual ApplicationListener Listener { get; }
Property Value
LoadBalancer
The Application Load Balancer for the service.
public virtual ApplicationLoadBalancer LoadBalancer { get; }
Property Value
RedirectListener
The redirect listener for the service if redirectHTTP is enabled.
public virtual ApplicationListener RedirectListener { get; }
Property Value
TargetGroup
The target group for the service.
public virtual ApplicationTargetGroup TargetGroup { get; }
Property Value
Methods
AddServiceAsTarget(BaseService)
Adds service as a target of the target group.
protected virtual void AddServiceAsTarget(BaseService service)
Parameters
- service BaseService
CreateAWSLogDriver(String)
protected virtual AwsLogDriver CreateAWSLogDriver(string prefix)
Parameters
- prefix System.String
Returns
GetDefaultCluster(Construct, IVpc)
Returns the default cluster.
protected virtual Cluster GetDefaultCluster(Construct scope, IVpc vpc = null)
Parameters
Returns