Class CfnPrivateDnsNamespaceProps
Properties for defining a CfnPrivateDnsNamespace
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.AWS.ServiceDiscovery.dll
Syntax (csharp)
public class CfnPrivateDnsNamespaceProps : Object, ICfnPrivateDnsNamespaceProps
Syntax (vb)
Public Class CfnPrivateDnsNamespaceProps
Inherits Object
Implements ICfnPrivateDnsNamespaceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ServiceDiscovery;
var cfnPrivateDnsNamespaceProps = new CfnPrivateDnsNamespaceProps {
Name = "name",
Vpc = "vpc",
// the properties below are optional
Description = "description",
Properties = new PropertiesProperty {
DnsProperties = new PrivateDnsPropertiesMutableProperty {
Soa = new SOAProperty {
Ttl = 123
}
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnPrivateDnsNamespaceProps() |
Properties
Description | A description for the namespace. |
Name | The name that you want to assign to this namespace. |
Properties | Properties for the private DNS namespace. |
Tags | The tags for the namespace. |
Vpc | The ID of the Amazon VPC that you want to associate the namespace with. |
Constructors
CfnPrivateDnsNamespaceProps()
public CfnPrivateDnsNamespaceProps()
Properties
Description
A description for the namespace.
public string Description { get; set; }
Property Value
System.String
Remarks
Name
The name that you want to assign to this namespace.
public string Name { get; set; }
Property Value
System.String
Remarks
When you create a private DNS namespace, AWS Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.
Properties
Properties for the private DNS namespace.
public object Properties { get; set; }
Property Value
System.Object
Remarks
Tags
The tags for the namespace.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Vpc
The ID of the Amazon VPC that you want to associate the namespace with.
public string Vpc { get; set; }
Property Value
System.String