CfnPublicDnsNamespacePropsMixin
- class aws_cdk.cfn_property_mixins.aws_servicediscovery.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.cfn_property_mixins import aws_servicediscovery as servicediscovery import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_public_dns_namespace_props_mixin = servicediscovery.CfnPublicDnsNamespacePropsMixin(servicediscovery.CfnPublicDnsNamespaceMixinProps( description="description", name="name", properties=servicediscovery.CfnPublicDnsNamespacePropsMixin.PropertiesProperty( dns_properties=servicediscovery.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 ) ) ), tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::ServiceDiscovery::PublicDnsNamespace.- Parameters:
props (
Union[CfnPublicDnsNamespaceMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- 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)
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.
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.cfn_property_mixins import aws_servicediscovery as servicediscovery properties_property = servicediscovery.CfnPublicDnsNamespacePropsMixin.PropertiesProperty( dns_properties=servicediscovery.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery.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.cfn_property_mixins import aws_servicediscovery as servicediscovery public_dns_properties_mutable_property = servicediscovery.CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty( soa=servicediscovery.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.cfn_property_mixins import aws_servicediscovery as servicediscovery s_oAProperty = servicediscovery.CfnPublicDnsNamespacePropsMixin.SOAProperty( ttl=123 )
Attributes
- ttl
The time to live (TTL) for purposes of negative caching.