Show / Hide Table of Contents

Class DnsRecordType

Inheritance
System.Object
DnsRecordType
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public sealed class DnsRecordType : Enum
Syntax (vb)
Public NotInheritable Class DnsRecordType
    Inherits

     Enum
Remarks

ExampleMetadata: lit=test/integ.service-with-cname-record.lit.ts infused

Examples
using Amazon.CDK;
using Amazon.CDK.AWS.ServiceDiscovery;

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.

A_AAAA

Both an A and AAAA record.

AAAA

An AAAA record.

CNAME

A CNAME record.

SRV

A Srv record.

value__

Fields

A

An A record.

public const DnsRecordType A
Field Value
Type Description
DnsRecordType

A_AAAA

Both an A and AAAA record.

public const DnsRecordType A_AAAA
Field Value
Type Description
DnsRecordType

AAAA

An AAAA record.

public const DnsRecordType AAAA
Field Value
Type Description
DnsRecordType

CNAME

A CNAME record.

public const DnsRecordType CNAME
Field Value
Type Description
DnsRecordType

SRV

A Srv record.

public const DnsRecordType SRV
Field Value
Type Description
DnsRecordType

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX