Class CfnPublicDnsNamespace
Creates a public namespace based on DNS, which is visible on the internet.
Inherited Members
Namespace: Amazon.CDK.AWS.ServiceDiscovery
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPublicDnsNamespace : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPublicDnsNamespace
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
The namespace defines your service naming scheme. For example, if you name your namespace example.com
and name your service backend
, the resulting DNS name for the service is backend.example.com
. You can discover instances that were registered with a public DNS namespace by using either a DiscoverInstances
request or using DNS. For the current quota on the number of namespaces that you can create using the same AWS account , see AWS Cloud Map quotas in the AWS Cloud Map Developer Guide .
The CreatePublicDnsNamespace
API operation is not supported in the AWS GovCloud (US) Regions.
CloudformationResource: AWS::ServiceDiscovery::PublicDnsNamespace
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 cfnPublicDnsNamespace = new CfnPublicDnsNamespace(this, "MyCfnPublicDnsNamespace", new CfnPublicDnsNamespaceProps {
Name = "name",
// the properties below are optional
Description = "description",
Properties = new PropertiesProperty {
DnsProperties = new PublicDnsPropertiesMutableProperty {
Soa = new SOAProperty {
Ttl = 123
}
}
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPublicDnsNamespace(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPublicDnsNamespace(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPublicDnsNamespace(Construct, String, ICfnPublicDnsNamespaceProps) |
Properties
AttrArn | The Amazon Resource Name (ARN) of the public namespace. |
AttrHostedZoneId | The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace. |
AttrId | The ID of the public namespace. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description for the namespace. |
Name | The name that you want to assign to this namespace. |
Properties | Properties for the public DNS namespace. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags for the namespace. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPublicDnsNamespace(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPublicDnsNamespace(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPublicDnsNamespace(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPublicDnsNamespace(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnPublicDnsNamespace(Construct, String, ICfnPublicDnsNamespaceProps)
public CfnPublicDnsNamespace(Construct scope, string id, ICfnPublicDnsNamespaceProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPublicDnsNamespaceProps
Resource properties.
Properties
AttrArn
The Amazon Resource Name (ARN) of the public namespace.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrHostedZoneId
The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.
public virtual string AttrHostedZoneId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: HostedZoneId
AttrId
The ID of the public namespace.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
A description for the namespace.
public virtual string Description { get; set; }
Property Value
System.String
Name
The name that you want to assign to this namespace.
public virtual string Name { get; set; }
Property Value
System.String
Properties
Properties for the public DNS namespace.
public virtual object Properties { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>