@Stability(value=Experimental) @Internal public static final class ScheduledEc2TaskImageOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ScheduledEc2TaskImageOptions
ScheduledEc2TaskImageOptionssoftware.amazon.jsii.JsiiObject.InitializationModeScheduledEc2TaskImageOptions.Builder, ScheduledEc2TaskImageOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Number cpu,
Number memoryLimitMiB,
Number memoryReservationMiB,
ContainerImage image,
List<String> command,
Map<String,String> environment,
LogDriver logDriver,
Map<String,? extends Secret> secrets)
Constructor that initializes the object based on literal property values passed by the
ScheduledEc2TaskImageOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getCommand()
(experimental) The command that is passed to the container.
|
Number |
getCpu()
(experimental) The minimum number of CPU units to reserve for the container.
|
Map<String,String> |
getEnvironment()
(experimental) The environment variables to pass to the container.
|
ContainerImage |
getImage()
(experimental) The image used to start a container.
|
LogDriver |
getLogDriver()
(experimental) The log driver to use.
|
Number |
getMemoryLimitMiB()
(experimental) The hard limit (in MiB) of memory to present to the container.
|
Number |
getMemoryReservationMiB()
(experimental) The soft limit (in MiB) of memory to reserve for the container.
|
Map<String,Secret> |
getSecrets()
(experimental) The secret to expose to the container as an environment variable.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Number cpu, Number memoryLimitMiB, Number memoryReservationMiB, ContainerImage image, List<String> command, Map<String,String> environment, LogDriver logDriver, Map<String,? extends Secret> secrets)
ScheduledEc2TaskImageOptions.Builder.public final Number getCpu()
ScheduledEc2TaskImageOptionsDefault: none
getCpu in interface ScheduledEc2TaskImageOptionspublic final Number getMemoryLimitMiB()
ScheduledEc2TaskImageOptionsIf 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.
Default: - No memory limit.
getMemoryLimitMiB in interface ScheduledEc2TaskImageOptionspublic final Number getMemoryReservationMiB()
ScheduledEc2TaskImageOptionsWhen 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.
Default: - No memory reserved.
getMemoryReservationMiB in interface ScheduledEc2TaskImageOptionspublic final ContainerImage getImage()
ScheduledTaskImagePropsImage or taskDefinition must be specified, but not both.
Default: - none
getImage in interface ScheduledTaskImagePropspublic final List<String> getCommand()
ScheduledTaskImagePropsIf you provide a shell command as a single string, you have to quote command-line arguments.
Default: - CMD value built into container image.
getCommand in interface ScheduledTaskImagePropspublic final Map<String,String> getEnvironment()
ScheduledTaskImagePropsDefault: none
getEnvironment in interface ScheduledTaskImagePropspublic final LogDriver getLogDriver()
ScheduledTaskImagePropsDefault: - AwsLogDriver if enableLogging is true
getLogDriver in interface ScheduledTaskImagePropspublic final Map<String,Secret> getSecrets()
ScheduledTaskImagePropsDefault: - No secret environment variables.
getSecrets in interface ScheduledTaskImageProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.