@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:01.635Z") public abstract class NetworkLoadBalancedServiceBase extends Construct
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
NetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
NetworkLoadBalancedServiceBase(software.constructs.Construct scope,
java.lang.String id)
Constructs a new instance of the NetworkLoadBalancedServiceBase class.
|
protected |
NetworkLoadBalancedServiceBase(software.constructs.Construct scope,
java.lang.String id,
NetworkLoadBalancedServiceBaseProps props)
Constructs a new instance of the NetworkLoadBalancedServiceBase class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addServiceAsTarget(BaseService service)
Adds service as a target of the target group.
|
protected AwsLogDriver |
createAWSLogDriver(java.lang.String prefix) |
ICluster |
getCluster()
The cluster that hosts the service.
|
protected Cluster |
getDefaultCluster(Construct scope)
Returns the default cluster.
|
protected Cluster |
getDefaultCluster(Construct scope,
IVpc vpc)
Returns the default cluster.
|
java.lang.Number |
getDesiredCount()
Deprecated.
- Use `internalDesiredCount` instead.
|
java.lang.Number |
getInternalDesiredCount()
The desired number of instantiations of the task definition to keep running on the service.
|
NetworkListener |
getListener()
The listener for the service.
|
NetworkLoadBalancer |
getLoadBalancer()
The Network Load Balancer for the service.
|
NetworkTargetGroup |
getTargetGroup()
The target group for the service.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected NetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObjectRef objRef)
protected NetworkLoadBalancedServiceBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected NetworkLoadBalancedServiceBase(software.constructs.Construct scope, java.lang.String id, NetworkLoadBalancedServiceBaseProps props)
scope
- This parameter is required.id
- This parameter is required.props
- protected NetworkLoadBalancedServiceBase(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.protected void addServiceAsTarget(BaseService service)
service
- This parameter is required.protected AwsLogDriver createAWSLogDriver(java.lang.String prefix)
prefix
- This parameter is required.protected Cluster getDefaultCluster(Construct scope, IVpc vpc)
scope
- This parameter is required.vpc
- protected Cluster getDefaultCluster(Construct scope)
scope
- This parameter is required.public ICluster getCluster()
@Deprecated public java.lang.Number getDesiredCount()
public NetworkListener getListener()
public NetworkLoadBalancer getLoadBalancer()
public NetworkTargetGroup getTargetGroup()
public java.lang.Number getInternalDesiredCount()
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.