@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.956Z") public class ScheduledFargateTask extends ScheduledTaskBase
Example:
Cluster cluster; ScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, "ScheduledFargateTask") .cluster(cluster) .scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .memoryLimitMiB(512) .build()) .schedule(Schedule.expression("rate(1 minute)")) .platformVersion(FargatePlatformVersion.LATEST) .build();
Modifier and Type | Class and Description |
---|---|
static class |
ScheduledFargateTask.Builder
A fluent builder for
ScheduledFargateTask . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
ScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef) |
|
ScheduledFargateTask(software.constructs.Construct scope,
java.lang.String id,
ScheduledFargateTaskProps props)
Constructs a new instance of the ScheduledFargateTask class.
|
Modifier and Type | Method and Description |
---|---|
EcsTask |
getTask()
The ECS task in this construct.
|
FargateTaskDefinition |
getTaskDefinition()
The Fargate task definition in this construct.
|
addTaskAsTarget, addTaskDefinitionToEventTarget, createAWSLogDriver, getCluster, getDefaultCluster, getDefaultCluster, getDesiredTaskCount, getEventRule, getSubnetSelection
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected ScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef)
protected ScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ScheduledFargateTask(software.constructs.Construct scope, java.lang.String id, ScheduledFargateTaskProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public EcsTask getTask()
public FargateTaskDefinition getTaskDefinition()