Class ScheduledFargateTask
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecs.patterns.ScheduledTaskBase
software.amazon.awscdk.services.ecs.patterns.ScheduledFargateTask
- All Implemented Interfaces:
 IConstruct,IDependable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:30:48.806Z")
@Stability(Stable)
public class ScheduledFargateTask
extends ScheduledTaskBase
A scheduled Fargate task that will be initiated off of CloudWatch Events.
 
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();
 - 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef) ScheduledFargateTask(software.constructs.Construct scope, String id, ScheduledFargateTaskProps props) Constructs a new instance of the ScheduledFargateTask class. - 
Method Summary
Modifier and TypeMethodDescriptiongetTask()The ECS task in this construct.The Fargate task definition in this construct.Methods inherited from class software.amazon.awscdk.services.ecs.patterns.ScheduledTaskBase
addTaskAsTarget, addTaskDefinitionToEventTarget, createAWSLogDriver, getCluster, getDefaultCluster, getDefaultCluster, getDesiredTaskCount, getEventRule, getSubnetSelectionMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Constructor Details
- 
ScheduledFargateTask
protected ScheduledFargateTask(software.amazon.jsii.JsiiObjectRef objRef)  - 
ScheduledFargateTask
protected ScheduledFargateTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  - 
ScheduledFargateTask
@Stability(Stable) public ScheduledFargateTask(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ScheduledFargateTaskProps props) Constructs a new instance of the ScheduledFargateTask class.- Parameters:
 scope- This parameter is required.id- This parameter is required.props- This parameter is required.
 
 - 
 - 
Method Details
- 
getTask
The ECS task in this construct. - 
getTaskDefinition
The Fargate task definition in this construct. 
 -