@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.144Z") @Stability(value=Stable) public enum DnsRecordType extends Enum<DnsRecordType>
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 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 © 2022. All rights reserved.