@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:14.985Z") @Stability(value=Experimental) 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
(experimental) An A record.
|
A_AAAA
(experimental) Both an A and AAAA record.
|
AAAA
(experimental) An AAAA record.
|
CNAME
(experimental) A CNAME record.
|
SRV
(experimental) 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=Experimental) public static final DnsRecordType A
@Stability(value=Experimental) public static final DnsRecordType AAAA
@Stability(value=Experimental) public static final DnsRecordType A_AAAA
@Stability(value=Experimental) public static final DnsRecordType SRV
@Stability(value=Experimental) 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.