Interface ScheduledFargateTaskImageOptions

All Superinterfaces:, ScheduledTaskImageProps
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.809Z") @Stability(Stable) public interface ScheduledFargateTaskImageOptions extends, ScheduledTaskImageProps
The properties for the ScheduledFargateTask using an image.


 Cluster cluster;
 ScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, "ScheduledFargateTask")
         .schedule(Schedule.expression("rate(1 minute)"))
  • Method Details

    • getCpu

      @Stability(Stable) @Nullable default Number getCpu()
      The number of cpu units used by the task.

      Valid values, which determines your range of valid values for the memory parameter:

      256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB

      512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB

      1024 (1 vCPU) - Available memory values: 2GB, 3GB, 4GB, 5GB, 6GB, 7GB, 8GB

      2048 (2 vCPU) - Available memory values: Between 4GB and 16GB in 1GB increments

      4096 (4 vCPU) - Available memory values: Between 8GB and 30GB in 1GB increments

      This default is set in the underlying FargateTaskDefinition construct.

      Default: 256

    • getMemoryLimitMiB

      @Stability(Stable) @Nullable default Number getMemoryLimitMiB()
      The hard limit (in MiB) of memory to present to the container.

      If your container attempts to exceed the allocated memory, the container is terminated.

      Default: 512

    • builder

      @Stability(Stable) static ScheduledFargateTaskImageOptions.Builder builder()
      a ScheduledFargateTaskImageOptions.Builder of ScheduledFargateTaskImageOptions