Interface ScheduledFargateTaskProps

All Superinterfaces:
FargateServiceBaseProps, software.amazon.jsii.JsiiSerializable, ScheduledTaskBaseProps
All Known Implementing Classes:
ScheduledFargateTaskProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.219Z") @Stability(Stable) public interface ScheduledFargateTaskProps extends software.amazon.jsii.JsiiSerializable, ScheduledTaskBaseProps, FargateServiceBaseProps
The properties for the ScheduledFargateTask task.

Example:

 Vpc vpc = Vpc.Builder.create(this, "Vpc").maxAzs(1).build();
 Cluster cluster = Cluster.Builder.create(this, "EcsCluster").vpc(vpc).build();
 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)"))
         .tags(List.of(Tag.builder()
                 .key("my-tag")
                 .value("my-tag-value")
                 .build()))
         .build();
 
  • Method Details

    • getScheduledFargateTaskDefinitionOptions

      @Stability(Stable) @Nullable default ScheduledFargateTaskDefinitionOptions getScheduledFargateTaskDefinitionOptions()
      The properties to define if using an existing TaskDefinition in this construct.

      ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.

      Default: none

    • getScheduledFargateTaskImageOptions

      @Stability(Stable) @Nullable default ScheduledFargateTaskImageOptions getScheduledFargateTaskImageOptions()
      The properties to define if the construct is to create a TaskDefinition.

      ScheduledFargateTaskDefinitionOptions or ScheduledFargateTaskImageOptions must be defined, but not both.

      Default: none

    • builder

      @Stability(Stable) static ScheduledFargateTaskProps.Builder builder()
      Returns:
      a ScheduledFargateTaskProps.Builder of ScheduledFargateTaskProps