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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-02T00:29:17.704Z") @Stability(Stable) public enum DnsRecordType extends Enum<DnsRecordType>
Example:

 import software.amazon.awscdk.*;
 import software.amazon.awscdk.*;
 App app = new App();
 Stack stack = new Stack(app, "aws-servicediscovery-integ");
 PublicDnsNamespace namespace = PublicDnsNamespace.Builder.create(stack, "Namespace")
         .name("foobar.com")
         .build();
 Service service = namespace.createService("Service", DnsServiceProps.builder()
         .name("foo")
         .dnsRecordType(DnsRecordType.CNAME)
         .dnsTtl(Duration.seconds(30))
         .build());
 service.registerCnameInstance("CnameInstance", CnameInstanceBaseProps.builder()
         .instanceCname("service.pizza")
         .build());
 app.synth();
 
  • Enum Constant Details

    • A

      @Stability(Stable) public static final DnsRecordType A
      An A record.
    • AAAA

      @Stability(Stable) public static final DnsRecordType AAAA
      An AAAA record.
    • A_AAAA

      @Stability(Stable) public static final DnsRecordType A_AAAA
      Both an A and AAAA record.
    • SRV

      @Stability(Stable) public static final DnsRecordType SRV
      A Srv record.
    • CNAME

      @Stability(Stable) public static final DnsRecordType CNAME
      A CNAME record.
  • Method Details

    • values

      public static DnsRecordType[] 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 DnsRecordType 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