Class ContainerProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.ContainerProps.Jsii$Proxy
-
- All Implemented Interfaces:
ContainerProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContainerProps
@Stability(Stable) @Internal public static final class ContainerProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerProps
An implementation forContainerProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus20.ContainerProps
ContainerProps.Builder, ContainerProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ContainerProps.Builder builder)Constructor that initializes the object based on literal property values passed by theContainerProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(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.StringgetImage()Docker image name.ImagePullPolicygetImagePullPolicy()Image pull policy for this container.ContainerLifecyclegetLifecycle()Describes actions that the management system should take in response to container lifecycle events.ProbegetLiveness()Periodic probe of container liveness.StringgetName()Name of the container specified as a DNS_LABEL.NumbergetPort()Number of port to expose on the pod's IP address.ProbegetReadiness()Determines when the container is ready to serve traffic.ResourcesgetResources()Compute resources (CPU and memory requests and limits) required by the container.ContainerSecurityContextPropsgetSecurityContext()SecurityContext defines the security options the container should be run with.ProbegetStartup()StartupProbe indicates that the Pod has successfully initialized.List<VolumeMount>getVolumeMounts()Pod volumes to mount into the container's filesystem.StringgetWorkingDir()Container's working directory.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ContainerProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerProps.Builder.
-
-
Method Detail
-
getImage
public final String getImage()
Description copied from interface:ContainerPropsDocker image name.- Specified by:
getImagein interfaceContainerProps
-
getArgs
public final List<String> getArgs()
Description copied from interface:ContainerPropsArguments to the entrypoint. The docker image's CMD is used if `command` 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.
Default: []
- Specified by:
getArgsin interfaceContainerProps
-
getCommand
public final List<String> getCommand()
Description copied from interface:ContainerPropsEntrypoint array.Not 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.
- Specified by:
getCommandin interfaceContainerProps
-
getEnv
public final Map<String,EnvValue> getEnv()
Description copied from interface:ContainerPropsList of environment variables to set in the container.Cannot be updated.
Default: - No environment variables.
- Specified by:
getEnvin interfaceContainerProps
-
getImagePullPolicy
public final ImagePullPolicy getImagePullPolicy()
Description copied from interface:ContainerPropsImage pull policy for this container.Default: ImagePullPolicy.ALWAYS
- Specified by:
getImagePullPolicyin interfaceContainerProps
-
getLifecycle
public final ContainerLifecycle getLifecycle()
Description copied from interface:ContainerPropsDescribes actions that the management system should take in response to container lifecycle events.- Specified by:
getLifecyclein interfaceContainerProps
-
getLiveness
public final Probe getLiveness()
Description copied from interface:ContainerPropsPeriodic probe of container liveness.Container will be restarted if the probe fails.
Default: - no liveness probe is defined
- Specified by:
getLivenessin interfaceContainerProps
-
getName
public final String getName()
Description copied from interface:ContainerPropsName of the container specified as a DNS_LABEL.Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
Default: 'main'
- Specified by:
getNamein interfaceContainerProps
-
getPort
public final Number getPort()
Description copied from interface:ContainerPropsNumber of port to expose on the pod's IP address.This must be a valid port number, 0 < x < 65536.
Default: - No port is exposed.
- Specified by:
getPortin interfaceContainerProps
-
getReadiness
public final Probe getReadiness()
Description copied from interface:ContainerPropsDetermines when the container is ready to serve traffic.Default: - no readiness probe is defined
- Specified by:
getReadinessin interfaceContainerProps
-
getResources
public final Resources getResources()
Description copied from interface:ContainerPropsCompute resources (CPU and memory requests and limits) required by the container.- Specified by:
getResourcesin interfaceContainerProps
-
getSecurityContext
public final ContainerSecurityContextProps getSecurityContext()
Description copied from interface:ContainerPropsSecurityContext defines the security options the container should be run with.If set, the fields override equivalent fields of the pod's security context.
Default: ensureNonRoot: false privileged: false readOnlyRootFilesystem: false
- Specified by:
getSecurityContextin interfaceContainerProps
-
getStartup
public final Probe getStartup()
Description copied from interface:ContainerPropsStartupProbe indicates that the Pod has successfully initialized.If specified, no other probes are executed until this completes successfully
Default: - no startup probe is defined.
- Specified by:
getStartupin interfaceContainerProps
-
getVolumeMounts
public final List<VolumeMount> getVolumeMounts()
Description copied from interface:ContainerPropsPod volumes to mount into the container's filesystem.Cannot be updated.
- Specified by:
getVolumeMountsin interfaceContainerProps
-
getWorkingDir
public final String getWorkingDir()
Description copied from interface:ContainerPropsContainer's working directory.If 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.
- Specified by:
getWorkingDirin interfaceContainerProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-