@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.892Z") @Stability(value=Experimental) public abstract class ScheduledTaskBase extends software.constructs.Construct
| Modifier | Constructor and Description |
|---|---|
protected |
ScheduledTaskBase(software.constructs.Construct scope,
String id,
ScheduledTaskBaseProps props)
(experimental) Constructs a new instance of the ScheduledTaskBase class.
|
protected |
ScheduledTaskBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ScheduledTaskBase(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTaskAsTarget(EcsTask ecsTaskTarget)
(experimental) Adds task as a target of the scheduled event rule.
|
protected EcsTask |
addTaskDefinitionToEventTarget(TaskDefinition taskDefinition)
(experimental) Create an ECS task using the task definition provided and add it to the scheduled event rule.
|
protected AwsLogDriver |
createAWSLogDriver(String prefix)
(experimental) Create an AWS Log Driver with the provided streamPrefix.
|
ICluster |
getCluster()
(experimental) The name of the cluster that hosts the service.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope)
(experimental) Returns the default cluster.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope,
IVpc vpc)
(experimental) Returns the default cluster.
|
Number |
getDesiredTaskCount()
(experimental) The desired number of instantiations of the task definition to keep running on the service.
|
Rule |
getEventRule()
(experimental) The CloudWatch Events rule for the service.
|
SubnetSelection |
getSubnetSelection()
(experimental) In what subnets to place the task's ENIs.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ScheduledTaskBase(software.amazon.jsii.JsiiObjectRef objRef)
protected ScheduledTaskBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected ScheduledTaskBase(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ScheduledTaskBaseProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
protected void addTaskAsTarget(@NotNull
EcsTask ecsTaskTarget)
ecsTaskTarget - the EcsTask to add to the event rule. This parameter is required.@Stability(value=Experimental) @NotNull protected EcsTask addTaskDefinitionToEventTarget(@NotNull TaskDefinition taskDefinition)
taskDefinition - the TaskDefinition to add to the event rule. This parameter is required.@Stability(value=Experimental) @NotNull protected AwsLogDriver createAWSLogDriver(@NotNull String prefix)
prefix - the Cloudwatch logging prefix. This parameter is required.@Stability(value=Experimental) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope, @Nullable IVpc vpc)
scope - This parameter is required.vpc - @Stability(value=Experimental) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope)
scope - This parameter is required.@Stability(value=Experimental) @NotNull public ICluster getCluster()
@Stability(value=Experimental) @NotNull public Number getDesiredTaskCount()
The minimum value is 1
@Stability(value=Experimental) @NotNull public Rule getEventRule()
@Stability(value=Experimental) @NotNull public SubnetSelection getSubnetSelection()
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)
Default: Private subnets
Copyright © 2021. All rights reserved.