CfnPublicDnsNamespacePropsMixin

class aws_cdk.mixins_preview.aws_servicediscovery.mixins.CfnPublicDnsNamespacePropsMixin(props, *, strategy=None)

Bases: 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 . .. epigraph:

The ``CreatePublicDnsNamespace`` API operation is not supported in the AWS GovCloud (US) Regions.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-publicdnsnamespace.html

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:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

PropertiesProperty

class CfnPublicDnsNamespacePropsMixin.PropertiesProperty(*, dns_properties=None)

Bases: object

Properties for the public DNS namespace.

Parameters:

dns_properties (Union[IResolvable, PublicDnsPropertiesMutableProperty, Dict[str, Any], None]) – DNS properties for the public DNS namespace.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-properties.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-properties.html#cfn-servicediscovery-publicdnsnamespace-properties-dnsproperties

PublicDnsPropertiesMutableProperty

class CfnPublicDnsNamespacePropsMixin.PublicDnsPropertiesMutableProperty(*, soa=None)

Bases: object

DNS 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-publicdnspropertiesmutable.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-publicdnspropertiesmutable.html#cfn-servicediscovery-publicdnsnamespace-publicdnspropertiesmutable-soa

SOAProperty

class CfnPublicDnsNamespacePropsMixin.SOAProperty(*, ttl=None)

Bases: object

Start 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-soa.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-publicdnsnamespace-soa.html#cfn-servicediscovery-publicdnsnamespace-soa-ttl