Enum DnsRecordType
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum DnsRecordType
Syntax (vb)
Public Enum DnsRecordType
Remarks
ExampleMetadata: lit=aws-servicediscovery/test/integ.service-with-cname-record.lit.ts infused
Examples
using Amazon.CDK;
using Amazon.CDK;
var app = new App();
var stack = new Stack(app, "aws-servicediscovery-integ");
var namespace = new PublicDnsNamespace(stack, "Namespace", new PublicDnsNamespaceProps {
Name = "foobar.com"
});
var service = namespace.CreateService("Service", new DnsServiceProps {
Name = "foo",
DnsRecordType = DnsRecordType.CNAME,
DnsTtl = Duration.Seconds(30)
});
service.RegisterCnameInstance("CnameInstance", new CnameInstanceBaseProps {
InstanceCname = "service.pizza"
});
app.Synth();
Synopsis
Fields
| A | An A record. |
| AAAA | An AAAA record. |
| A_AAAA | Both an A and AAAA record. |
| CNAME | A CNAME record. |
| SRV | A Srv record. |
Fields
| Name | Description |
|---|---|
| A | An A record. |
| AAAA | An AAAA record. |
| A_AAAA | Both an A and AAAA record. |
| CNAME | A CNAME record. |
| SRV | A Srv record. |