Class NetworkMultipleTargetGroupsServiceBase
The base class for NetworkMultipleTargetGroupsEc2Service and NetworkMultipleTargetGroupsFargateService classes.
Inheritance
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class NetworkMultipleTargetGroupsServiceBase : Construct
Syntax (vb)
Public MustInherit Class NetworkMultipleTargetGroupsServiceBase
Inherits Construct
Synopsis
Constructors
NetworkMultipleTargetGroupsServiceBase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NetworkMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
NetworkMultipleTargetGroupsServiceBase(Construct, String, INetworkMultipleTargetGroupsServiceBaseProps) | Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase 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 listener for the service. |
Listeners | The listeners of the service. |
LoadBalancer | (deprecated) The Network Load Balancer for the service. |
LoadBalancers | The load balancers of the service. |
LogDriver | |
TargetGroups | The target groups of the service. |
Methods
Constructors
NetworkMultipleTargetGroupsServiceBase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NetworkMultipleTargetGroupsServiceBase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NetworkMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NetworkMultipleTargetGroupsServiceBase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
NetworkMultipleTargetGroupsServiceBase(Construct, String, INetworkMultipleTargetGroupsServiceBaseProps)
Constructs a new instance of the NetworkMultipleTargetGroupsServiceBase class.
protected NetworkMultipleTargetGroupsServiceBase(Construct scope, string id, INetworkMultipleTargetGroupsServiceBaseProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props INetworkMultipleTargetGroupsServiceBaseProps
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 listener for the service.
public virtual NetworkListener Listener { get; }
Property Value
Remarks
Stability: Deprecated
Listeners
The listeners of the service.
public virtual NetworkListener[] Listeners { get; }
Property Value
LoadBalancer
(deprecated) The Network Load Balancer for the service.
public virtual NetworkLoadBalancer LoadBalancer { get; }
Property Value
Remarks
Stability: Deprecated
LoadBalancers
The load balancers of the service.
public virtual NetworkLoadBalancer[] LoadBalancers { get; }
Property Value
LogDriver
TargetGroups
The target groups of the service.
public virtual NetworkTargetGroup[] TargetGroups { get; }
Property Value
Methods
AddPortMappingForTargets(ContainerDefinition, INetworkTargetProps[])
protected virtual void AddPortMappingForTargets(ContainerDefinition container, INetworkTargetProps[] targets)
Parameters
- container ContainerDefinition
- targets INetworkTargetProps[]
CreateAWSLogDriver(String)
protected virtual AwsLogDriver CreateAWSLogDriver(string prefix)
Parameters
- prefix System.String
Returns
FindListener(String)
protected virtual NetworkListener 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, INetworkTargetProps[])
protected virtual NetworkTargetGroup RegisterECSTargets(BaseService service, ContainerDefinition container, INetworkTargetProps[] targets)
Parameters
- service BaseService
- container ContainerDefinition
- targets INetworkTargetProps[]
Returns