Interface ICnameInstanceBaseProps
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICnameInstanceBaseProps : IBaseInstanceProps
Syntax (vb)
Public Interface ICnameInstanceBaseProps
Inherits IBaseInstanceProps
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
Properties
InstanceCname | If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record. |
Properties
InstanceCname
If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record.
string InstanceCname { get; }
Property Value
System.String