@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:05.916Z") @Stability(value=Experimental) public abstract class ScheduledTaskBase extends Construct
software.constructs.Construct.Buildersoftware.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default| 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(Construct scope)
(experimental) Returns the default cluster.
|
protected Cluster |
getDefaultCluster(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.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, 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 Construct scope, @Nullable IVpc vpc)
scope - This parameter is required.vpc - @Stability(value=Experimental) @NotNull protected Cluster getDefaultCluster(@NotNull 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 © 2022. All rights reserved.