Class ContainerSecurityContextProps.Jsii$Proxy

    • 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

      • getEnsureNonRoot

        public final Boolean getEnsureNonRoot()
        Description copied from interface: ContainerSecurityContextProps
        Indicates that the container must run as a non-root user.

        If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does.

        Default: false

        Specified by:
        getEnsureNonRoot in interface ContainerSecurityContextProps
      • getGroup

        public final Number getGroup()
        Description copied from interface: ContainerSecurityContextProps
        The GID to run the entrypoint of the container process.

        Default: - 26000. An arbitrary number bigger than 9999 is selected here. This is so that the container is blocked to access host files even if somehow it manages to get access to host file system.

        Specified by:
        getGroup in interface ContainerSecurityContextProps
      • getUser

        public final Number getUser()
        Description copied from interface: ContainerSecurityContextProps
        The UID to run the entrypoint of the container process.

        Default: - 25000. An arbitrary number bigger than 9999 is selected here. This is so that the container is blocked to access host files even if somehow it manages to get access to host file system.

        Specified by:
        getUser in interface ContainerSecurityContextProps
      • $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