@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.844Z") @Stability(value=Stable) public abstract class ScheduledTaskBase extends software.constructs.Construct
| Modifier | Constructor and Description |
|---|---|
protected |
ScheduledTaskBase(software.constructs.Construct scope,
String id,
ScheduledTaskBaseProps props)
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)
Adds task as a target of the scheduled event rule.
|
protected EcsTask |
addTaskDefinitionToEventTarget(TaskDefinition taskDefinition)
Create an ECS task using the task definition provided and add it to the scheduled event rule.
|
protected AwsLogDriver |
createAWSLogDriver(String prefix)
Create an AWS Log Driver with the provided streamPrefix.
|
ICluster |
getCluster()
The name of the cluster that hosts the service.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope)
Returns the default cluster.
|
protected Cluster |
getDefaultCluster(software.constructs.Construct scope,
IVpc vpc)
Returns the default cluster.
|
Number |
getDesiredTaskCount()
The desired number of instantiations of the task definition to keep running on the service.
|
Rule |
getEventRule()
The CloudWatch Events rule for the service.
|
SubnetSelection |
getSubnetSelection()
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=Stable)
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=Stable)
protected void addTaskAsTarget(@NotNull
EcsTask ecsTaskTarget)
ecsTaskTarget - the EcsTask to add to the event rule. This parameter is required.@Stability(value=Stable) @NotNull protected EcsTask addTaskDefinitionToEventTarget(@NotNull TaskDefinition taskDefinition)
taskDefinition - the TaskDefinition to add to the event rule. This parameter is required.@Stability(value=Stable) @NotNull protected AwsLogDriver createAWSLogDriver(@NotNull String prefix)
prefix - the Cloudwatch logging prefix. This parameter is required.@Stability(value=Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope, @Nullable IVpc vpc)
scope - This parameter is required.vpc - @Stability(value=Stable) @NotNull protected Cluster getDefaultCluster(@NotNull software.constructs.Construct scope)
scope - This parameter is required.@Stability(value=Stable) @NotNull public ICluster getCluster()
@Stability(value=Stable) @NotNull public Number getDesiredTaskCount()
The minimum value is 1
@Stability(value=Stable) @NotNull public Rule getEventRule()
@Stability(value=Stable) @NotNull public SubnetSelection getSubnetSelection()
(Only applicable in case the TaskDefinition is configured for AwsVpc networking)
Default: Private subnets
Copyright © 2022. All rights reserved.