@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:32.157Z") @Stability(value=Stable) public enum DnsRecordType extends 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(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.
|
@Stability(value=Stable) public static final DnsRecordType A
@Stability(value=Stable) public static final DnsRecordType AAAA
@Stability(value=Stable) public static final DnsRecordType A_AAAA
@Stability(value=Stable) public static final DnsRecordType SRV
@Stability(value=Stable) public static final DnsRecordType CNAME
public static DnsRecordType[] values()
for (DnsRecordType c : DnsRecordType.values()) System.out.println(c);
public static DnsRecordType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.