@Stability(value=Stable) public static final class ScheduledEc2TaskImageOptions.Builder extends Object implements software.amazon.jsii.Builder<ScheduledEc2TaskImageOptions>
ScheduledEc2TaskImageOptions
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder cpu(Number cpu)
ScheduledEc2TaskImageOptions.getCpu()
cpu
- The minimum number of CPU units to reserve for the container.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder memoryLimitMiB(Number memoryLimitMiB)
ScheduledEc2TaskImageOptions.getMemoryLimitMiB()
memoryLimitMiB
- 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.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder memoryReservationMiB(Number memoryReservationMiB)
ScheduledEc2TaskImageOptions.getMemoryReservationMiB()
memoryReservationMiB
- The soft limit (in MiB) of memory to reserve for the container.
When system memory is under contention, Docker attempts to keep the
container memory within the limit. If the container requires more memory,
it can consume up to the value specified by the Memory property or all of
the available memory on the container instance—whichever comes first.
At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services.
this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder image(ContainerImage image)
ScheduledTaskImageProps.getImage()
image
- The image used to start a container. This parameter is required.
Image or taskDefinition must be specified, but not both.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder command(List<String> command)
ScheduledTaskImageProps.getCommand()
command
- The command that is passed to the container.
If you provide a shell command as a single string, you have to quote command-line arguments.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder environment(Map<String,String> environment)
ScheduledTaskImageProps.getEnvironment()
environment
- The environment variables to pass to the container.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder logDriver(LogDriver logDriver)
ScheduledTaskImageProps.getLogDriver()
logDriver
- The log driver to use.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions.Builder secrets(Map<String,? extends Secret> secrets)
ScheduledTaskImageProps.getSecrets()
secrets
- The secret to expose to the container as an environment variable.this
@Stability(value=Stable) public ScheduledEc2TaskImageOptions build()
build
in interface software.amazon.jsii.Builder<ScheduledEc2TaskImageOptions>
ScheduledEc2TaskImageOptions
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.