@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.842Z") @Stability(value=Stable) 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. |
| Modifier | Constructor and Description |
|---|---|
|
ScheduledFargateTask(software.constructs.Construct scope,
String id,
ScheduledFargateTaskProps props)
Constructs a new instance of the ScheduledFargateTask class.
|
protected |
ScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef) |
| 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, getSubnetSelectionjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef)
protected ScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ScheduledFargateTask(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ScheduledFargateTaskProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public EcsTask getTask()
@Stability(value=Stable) @NotNull public FargateTaskDefinition getTaskDefinition()
Copyright © 2022. All rights reserved.