Class NetworkLoadBalancedServiceBase
The base class for NetworkLoadBalancedEc2Service and NetworkLoadBalancedFargateService services.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public abstract class NetworkLoadBalancedServiceBase : Construct, IConstruct, IDependable
Syntax (vb)
Public MustInherit Class NetworkLoadBalancedServiceBase
Inherits Construct
Implements IConstruct, IDependable
Synopsis
Constructors
NetworkLoadBalancedServiceBase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NetworkLoadBalancedServiceBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
NetworkLoadBalancedServiceBase(Construct, String, INetworkLoadBalancedServiceBaseProps) | Constructs a new instance of the NetworkLoadBalancedServiceBase 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 listener for the service. |
LoadBalancer | The Network Load Balancer for the service. |
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
NetworkLoadBalancedServiceBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NetworkLoadBalancedServiceBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NetworkLoadBalancedServiceBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NetworkLoadBalancedServiceBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
NetworkLoadBalancedServiceBase(Construct, String, INetworkLoadBalancedServiceBaseProps)
Constructs a new instance of the NetworkLoadBalancedServiceBase class.
protected NetworkLoadBalancedServiceBase(Construct scope, string id, INetworkLoadBalancedServiceBaseProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props INetworkLoadBalancedServiceBaseProps
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 listener for the service.
public virtual NetworkListener Listener { get; }
Property Value
LoadBalancer
The Network Load Balancer for the service.
public virtual NetworkLoadBalancer LoadBalancer { get; }
Property Value
TargetGroup
The target group for the service.
public virtual NetworkTargetGroup 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