Class 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 for ContainerProps
    • 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.
    • Method Detail

      • getArgs

        public final List<String> getArgs()
        Description copied from interface: ContainerProps
        Arguments 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:
        getArgs in interface ContainerProps
      • getCommand

        public final List<String> getCommand()
        Description copied from interface: ContainerProps
        Entrypoint 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:
        getCommand in interface ContainerProps
      • getEnvFrom

        public final List<EnvFrom> getEnvFrom()
        Description copied from interface: ContainerProps
        List of sources to populate environment variables in the container.

        When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by the envVariables property with a duplicate key will take precedence.

        Default: - No sources.

        Specified by:
        getEnvFrom in interface ContainerProps
      • getLiveness

        public final Probe getLiveness()
        Description copied from interface: ContainerProps
        Periodic probe of container liveness.

        Container will be restarted if the probe fails.

        Default: - no liveness probe is defined

        Specified by:
        getLiveness in interface ContainerProps
      • getName

        public final String getName()
        Description copied from interface: ContainerProps
        Name 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:
        getName in interface ContainerProps
      • getPort

        public final Number getPort()
        Description copied from interface: ContainerProps
        Number 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:
        getPort in interface ContainerProps
      • getReadiness

        public final Probe getReadiness()
        Description copied from interface: ContainerProps
        Determines when the container is ready to serve traffic.

        Default: - no readiness probe is defined

        Specified by:
        getReadiness in interface ContainerProps
      • getSecurityContext

        public final ContainerSecurityContextProps getSecurityContext()
        Description copied from interface: ContainerProps
        SecurityContext 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:
        getSecurityContext in interface ContainerProps
      • getStartup

        public final Probe getStartup()
        Description copied from interface: ContainerProps
        StartupProbe 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:
        getStartup in interface ContainerProps
      • getWorkingDir

        public final String getWorkingDir()
        Description copied from interface: ContainerProps
        Container'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:
        getWorkingDir in interface ContainerProps
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object