Interface AllowedHostPathV1Beta1

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    AllowedHostPathV1Beta1.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.79.0 (build b22f628)",
               date="2023-03-31T02:28:41.714Z")
    @Stability(Stable)
    public interface AllowedHostPathV1Beta1
    extends software.amazon.jsii.JsiiSerializable
    AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use.

    It requires the path prefix to be defined.

    • Method Detail

      • getPathPrefix

        @Stability(Stable)
        @Nullable
        default String getPathPrefix()
        pathPrefix is the path prefix that the host volume must match.

        It does not support *. Trailing slashes are trimmed when validating the path prefix with a host path.

        Examples: /foo would allow /foo, /foo/ and /foo/bar /foo would not allow /food or /etc/foo

      • getReadOnly

        @Stability(Stable)
        @Nullable
        default Boolean getReadOnly()
        when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.