@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:19.252Z") @Stability(value=Stable) public enum DnsRecordType extends Enum<DnsRecordType>
TaskDefinition taskDefinition;
Cluster cluster;
Ec2Service service = Ec2Service.Builder.create(this, "Service")
.cluster(cluster)
.taskDefinition(taskDefinition)
.cloudMapOptions(CloudMapOptions.builder()
// Create A records - useful for AWSVPC network mode.
.dnsRecordType(DnsRecordType.A)
.build())
.build();
| 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 A_AAAA
@Stability(value=Stable) public static final DnsRecordType AAAA
@Stability(value=Stable) public static final DnsRecordType CNAME
@Stability(value=Stable) public static final DnsRecordType SRV
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 © 2021. All rights reserved.