class CfnPublicDnsNamespacePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ServiceDiscovery.Mixins.CfnPublicDnsNamespacePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsservicediscovery/mixins#CfnPublicDnsNamespacePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.servicediscovery.mixins.CfnPublicDnsNamespacePropsMixin |
Python | aws_cdk.mixins_preview.aws_servicediscovery.mixins.CfnPublicDnsNamespacePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_servicediscovery » mixins » CfnPublicDnsNamespacePropsMixin |
Implements
IMixin
Extends
Mixin
Creates a public namespace based on DNS, which is visible on the internet.
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
CreatePublicDnsNamespaceAPI operation is not supported in the AWS GovCloud (US) Regions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as servicediscovery_mixins } from '@aws-cdk/mixins-preview/aws-servicediscovery';
const cfnPublicDnsNamespacePropsMixin = new servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin({
description: 'description',
name: 'name',
properties: {
dnsProperties: {
soa: {
ttl: 123,
},
},
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnPublicDnsNamespacePropsMixin(props: CfnPublicDnsNamespaceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Public Dns Namespace Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::ServiceDiscovery::PublicDnsNamespace.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript