@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:21.932Z") @Stability(value=Stable) public interface ScheduledFargateTaskImageOptions extends software.amazon.jsii.JsiiSerializable, 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 Number |
getCpu()
The number of cpu units used by the task.
|
default Number |
getMemoryLimitMiB()
The hard limit (in MiB) of memory to present to the container.
|
getCommand, getEnvironment, getImage, getLogDriver, getSecrets@Stability(value=Stable) @Nullable default 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
@Stability(value=Stable) @Nullable default Number getMemoryLimitMiB()
If your container attempts to exceed the allocated memory, the container is terminated.
Default: 512
@Stability(value=Stable) static ScheduledFargateTaskImageOptions.Builder builder()
builder in interface ScheduledTaskImagePropsScheduledFargateTaskImageOptions.Builder of ScheduledFargateTaskImageOptionsCopyright © 2022. All rights reserved.