@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:58.812Z") public enum DnsRecordType extends java.lang.Enum<DnsRecordType>
import software.amazon.awscdk.core.*; import software.amazon.awscdk.services.servicediscovery.*; 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 and Description |
---|
A
An A record.
|
A_AAAA
Both an A and AAAA record.
|
AAAA
An AAAA record.
|
CNAME
A CNAME record.
|
SRV
A Srv record.
|
Modifier and Type | Method and Description |
---|---|
static DnsRecordType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DnsRecordType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DnsRecordType A
public static final DnsRecordType AAAA
public static final DnsRecordType A_AAAA
public static final DnsRecordType SRV
public static final DnsRecordType CNAME
public static DnsRecordType[] values()
for (DnsRecordType c : DnsRecordType.values()) System.out.println(c);
public static DnsRecordType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null