Class PrivateDnsNamespaceProps
Inheritance
System.Object
PrivateDnsNamespaceProps
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PrivateDnsNamespaceProps : Object, IPrivateDnsNamespaceProps, IBaseNamespaceProps
Syntax (vb)
Public Class PrivateDnsNamespaceProps
Inherits Object
Implements IPrivateDnsNamespaceProps, IBaseNamespaceProps
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
// Cloud Map service discovery is currently required for host ejection by outlier detection
var vpc = new Vpc(this, "vpc");
var namespace = new PrivateDnsNamespace(this, "test-namespace", new PrivateDnsNamespaceProps {
Vpc = vpc,
Name = "domain.local"
});
var service = namespace.CreateService("Svc");
var node = mesh.AddVirtualNode("virtual-node", new VirtualNodeBaseProps {
ServiceDiscovery = ServiceDiscovery.CloudMap(service),
Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
OutlierDetection = new OutlierDetection {
BaseEjectionDuration = Duration.Seconds(10),
Interval = Duration.Seconds(30),
MaxEjectionPercent = 50,
MaxServerErrors = 5
}
}) }
});
Synopsis
Constructors
PrivateDnsNamespaceProps() |
Properties
Description | A description of the Namespace. |
Name | A name for the Namespace. |
Vpc | The Amazon VPC that you want to associate the namespace with. |
Constructors
PrivateDnsNamespaceProps()
public PrivateDnsNamespaceProps()
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
Vpc
The Amazon VPC that you want to associate the namespace with.
public IVpc Vpc { get; set; }
Property Value