Enum DnsPolicy

java.lang.Object
java.lang.Enum<DnsPolicy>
software.amazon.awscdk.services.batch.DnsPolicy
All Implemented Interfaces:
Serializable, Comparable<DnsPolicy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:11.992Z") @Stability(Stable) public enum DnsPolicy extends Enum<DnsPolicy>
The DNS Policy for the pod used by the Job Definition.

See Also:
  • Enum Constant Details

    • DEFAULT

      @Stability(Stable) public static final DnsPolicy DEFAULT
      The Pod inherits the name resolution configuration from the node that the Pods run on.
    • CLUSTER_FIRST

      @Stability(Stable) public static final DnsPolicy CLUSTER_FIRST
      Any DNS query that does not match the configured cluster domain suffix, such as "www.kubernetes.io", is forwarded to an upstream nameserver by the DNS server. Cluster administrators may have extra stub-domain and upstream DNS servers configured.
    • CLUSTER_FIRST_WITH_HOST_NET

      @Stability(Stable) public static final DnsPolicy CLUSTER_FIRST_WITH_HOST_NET
      For Pods running with hostNetwork, you should explicitly set its DNS policy to CLUSTER_FIRST_WITH_HOST_NET.

      Otherwise, Pods running with hostNetwork and CLUSTER_FIRST will fallback to the behavior of the DEFAULT policy.

  • Method Details

    • values

      public static DnsPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DnsPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null