CfnPublicDnsNamespacePropsMixin
- class aws_cdk.mixins_preview.aws_servicediscovery.mixins.CfnPublicDnsNamespacePropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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.comand name your servicebackend, the resulting DNS name for the service isbackend.example.com. You can discover instances that were registered with a public DNS namespace by using either aDiscoverInstancesrequest 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 . .. epigraph:The ``CreatePublicDnsNamespace`` API operation is not supported in the AWS GovCloud (US) Regions.
- See:
- CloudformationResource:
AWS::ServiceDiscovery::PublicDnsNamespace
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_servicediscovery import mixins as servicediscovery_mixins cfn_public_dns_namespace_props_mixin = servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin(servicediscovery_mixins.CfnPublicDnsNamespaceMixinProps( description="description", name="name", properties=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.PropertiesProperty( dns_properties=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 ) ) ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ServiceDiscovery::PublicDnsNamespace.- Parameters:
props (
Union[CfnPublicDnsNamespaceMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'name', 'properties', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
PropertiesProperty
- class CfnPublicDnsNamespacePropsMixin.PropertiesProperty(*, dns_properties=None)
Bases:
objectProperties for the public DNS namespace.
- Parameters:
dns_properties (
Union[IResolvable,PublicDnsPropertiesMutableProperty,Dict[str,Any],None]) – DNS properties for the public DNS namespace.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicediscovery import mixins as servicediscovery_mixins properties_property = servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.PropertiesProperty( dns_properties=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 ) ) )
Attributes
- dns_properties
DNS properties for the public DNS namespace.
PublicDnsPropertiesMutableProperty
- class CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty(*, soa=None)
Bases:
objectDNS properties for the public DNS namespace.
- Parameters:
soa (
Union[IResolvable,SOAProperty,Dict[str,Any],None]) – Start of Authority (SOA) record for the hosted zone for the public DNS namespace.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicediscovery import mixins as servicediscovery_mixins public_dns_properties_mutable_property = servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 ) )
Attributes
- soa
Start of Authority (SOA) record for the hosted zone for the public DNS namespace.
SOAProperty
- class CfnPublicDnsNamespacePropsMixin.SOAProperty(*, ttl=None)
Bases:
objectStart of Authority (SOA) properties for a public or private DNS namespace.
- Parameters:
ttl (
Union[int,float,None]) – The time to live (TTL) for purposes of negative caching.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_servicediscovery import mixins as servicediscovery_mixins s_oAProperty = servicediscovery_mixins.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 )
Attributes
- ttl
The time to live (TTL) for purposes of negative caching.