Class InstancePrivateDnsNameOptions


  • public final class InstancePrivateDnsNameOptions
    extends java.lang.Object
    • Method Detail

      • enableResourceNameDnsARecord

        public java.util.Optional<java.lang.Boolean> enableResourceNameDnsARecord()
        Returns:
        Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
      • enableResourceNameDnsAaaaRecord

        public java.util.Optional<java.lang.Boolean> enableResourceNameDnsAaaaRecord()
        Returns:
        Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
      • hostnameType

        public java.util.Optional<java.lang.String> hostnameType()
        Returns:
        Type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: `ip-name` and `resource-name`.