@Stability(value=Stable) @Internal public static final class ContainerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerProps
ContainerPropssoftware.amazon.jsii.JsiiObject.InitializationModeContainerProps.Builder, ContainerProps.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(String image,
List<String> args,
List<String> command,
Map<String,? extends EnvValue> env,
ImagePullPolicy imagePullPolicy,
Probe liveness,
String name,
Number port,
Probe readiness,
Probe startup,
List<? extends VolumeMount> volumeMounts,
String workingDir)
Constructor that initializes the object based on literal property values passed by the
ContainerProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
List<String> |
getArgs()
Arguments to the entrypoint.
|
List<String> |
getCommand()
Entrypoint array.
|
Map<String,EnvValue> |
getEnv()
List of environment variables to set in the container.
|
String |
getImage()
Docker image name.
|
ImagePullPolicy |
getImagePullPolicy()
Image pull policy for this container.
|
Probe |
getLiveness()
Periodic probe of container liveness.
|
String |
getName()
Name of the container specified as a DNS_LABEL.
|
Number |
getPort()
Number of port to expose on the pod's IP address.
|
Probe |
getReadiness()
Determines when the container is ready to serve traffic.
|
Probe |
getStartup()
StartupProbe indicates that the Pod has successfully initialized.
|
List<VolumeMount> |
getVolumeMounts()
Pod volumes to mount into the container's filesystem.
|
String |
getWorkingDir()
Container's working directory.
|
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(String image, List<String> args, List<String> command, Map<String,? extends EnvValue> env, ImagePullPolicy imagePullPolicy, Probe liveness, String name, Number port, Probe readiness, Probe startup, List<? extends VolumeMount> volumeMounts, String workingDir)
ContainerProps.Builder.public final String getImage()
ContainerPropsgetImage in interface ContainerPropspublic final List<String> getArgs()
ContainerPropsVariable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
Cannot be updated.
Default: []
getArgs in interface ContainerPropshttps://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shellpublic final List<String> getCommand()
ContainerPropsNot executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
Default: - The docker image's ENTRYPOINT.
getCommand in interface ContainerPropspublic final Map<String,EnvValue> getEnv()
ContainerPropsCannot be updated.
Default: - No environment variables.
getEnv in interface ContainerPropspublic final ImagePullPolicy getImagePullPolicy()
ContainerPropsDefault: ImagePullPolicy.ALWAYS
getImagePullPolicy in interface ContainerPropspublic final Probe getLiveness()
ContainerPropsContainer will be restarted if the probe fails.
Default: - no liveness probe is defined
getLiveness in interface ContainerPropspublic final String getName()
ContainerPropsEach container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
Default: 'main'
getName in interface ContainerPropspublic final Number getPort()
ContainerPropsThis must be a valid port number, 0 < x < 65536.
Default: - No port is exposed.
getPort in interface ContainerPropspublic final Probe getReadiness()
ContainerPropsDefault: - no readiness probe is defined
getReadiness in interface ContainerPropspublic final Probe getStartup()
ContainerPropsIf specified, no other probes are executed until this completes successfully
Default: - no startup probe is defined.
getStartup in interface ContainerPropspublic final List<VolumeMount> getVolumeMounts()
ContainerPropsCannot be updated.
getVolumeMounts in interface ContainerPropspublic final String getWorkingDir()
ContainerPropsIf not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
Default: - The container runtime's default.
getWorkingDir in interface ContainerProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.