Class PublicDnsNamespaceProps
Inheritance
System.Object
PublicDnsNamespaceProps
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public class PublicDnsNamespaceProps : Object, IPublicDnsNamespaceProps, IBaseNamespaceProps
Syntax (vb)
Public Class PublicDnsNamespaceProps
Inherits Object
Implements IPublicDnsNamespaceProps, IBaseNamespaceProps
Remarks
ExampleMetadata: lit=test/integ.service-with-public-dns-namespace.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.A,
DnsTtl = Duration.Seconds(30),
HealthCheck = new HealthCheckConfig {
Type = HealthCheckType.HTTPS,
ResourcePath = "/healthcheck",
FailureThreshold = 2
}
});
service.RegisterIpInstance("IpInstance", new IpInstanceBaseProps {
Ipv4 = "54.239.25.192",
Port = 443
});
app.Synth();
Synopsis
Constructors
PublicDnsNamespaceProps() |
Properties
Description | A description of the Namespace. |
Name | A name for the Namespace. |
Constructors
PublicDnsNamespaceProps()
public PublicDnsNamespaceProps()
Properties
Description
A description of the Namespace.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: none
Name
A name for the Namespace.
public string Name { get; set; }
Property Value
System.String