Class CnameInstanceBaseProps
Inheritance
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CnameInstanceBaseProps : Object, ICnameInstanceBaseProps, IBaseInstanceProps
Syntax (vb)
Public Class CnameInstanceBaseProps
Inherits Object
Implements ICnameInstanceBaseProps, 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
Constructors
CnameInstanceBaseProps() |
Properties
CustomAttributes | Custom attributes of the instance. |
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. |
InstanceId | The id of the instance resource. |
Constructors
CnameInstanceBaseProps()
public CnameInstanceBaseProps()
Properties
CustomAttributes
Custom attributes of the instance.
public IDictionary<string, string> CustomAttributes { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: none
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.
public string InstanceCname { get; set; }
Property Value
System.String
InstanceId
The id of the instance resource.
public string InstanceId { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated name