@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.959Z") public interface ScheduledFargateTaskImageOptions extends ScheduledTaskImageProps
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 | Interface and Description |
---|---|
static class |
ScheduledFargateTaskImageOptions.Builder
A builder for
ScheduledFargateTaskImageOptions |
static class |
ScheduledFargateTaskImageOptions.Jsii$Proxy
An implementation for
ScheduledFargateTaskImageOptions |
Modifier and Type | Method and Description |
---|---|
static ScheduledFargateTaskImageOptions.Builder |
builder() |
default java.lang.Number |
getCpu()
The number of cpu units used by the task.
|
default java.lang.Number |
getMemoryLimitMiB()
The hard limit (in MiB) of memory to present to the container.
|
getCommand, getEnvironment, getImage, getLogDriver, getSecrets
default java.lang.Number getCpu()
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
default java.lang.Number getMemoryLimitMiB()
If your container attempts to exceed the allocated memory, the container is terminated.
Default: 512
static ScheduledFargateTaskImageOptions.Builder builder()
builder
in interface ScheduledTaskImageProps
ScheduledFargateTaskImageOptions.Builder
of ScheduledFargateTaskImageOptions