diff --git a/troposphere/servicediscovery.py b/troposphere/servicediscovery.py index 6a4535f75..6fa8a9460 100644 --- a/troposphere/servicediscovery.py +++ b/troposphere/servicediscovery.py @@ -1,9 +1,26 @@ -# Copyright (c) 2012-2017, Mark Peek +# Copyright (c) 2012-2021, Mark Peek # All rights reserved. # # See LICENSE file for full license. +# +# *** Do not modify - this file is autogenerated *** +# Resource specification version: 35.0.0 + + +from . import AWSObject +from . import AWSProperty +from troposphere import Tags +from .validators import double + + +class HttpNamespace(AWSObject): + resource_type = "AWS::ServiceDiscovery::HttpNamespace" -from . import AWSObject, AWSProperty, Tags + props = { + "Description": (str, False), + "Name": (str, True), + "Tags": (Tags, False), + } class Instance(AWSObject): @@ -37,30 +54,32 @@ class PublicDnsNamespace(AWSObject): } -class HealthCheckConfig(AWSProperty): +class DnsRecord(AWSProperty): props = { - "FailureThreshold": (float, False), - "ResourcePath": (str, False), + "TTL": (double, True), "Type": (str, True), } -class HealthCheckCustomConfig(AWSProperty): - props = {"FailureThreshold": (float, True)} +class DnsConfig(AWSProperty): + props = { + "DnsRecords": ([DnsRecord], True), + "NamespaceId": (str, False), + "RoutingPolicy": (str, False), + } -class DnsRecord(AWSProperty): +class HealthCheckConfig(AWSProperty): props = { - "TTL": (str, True), + "FailureThreshold": (double, False), + "ResourcePath": (str, False), "Type": (str, True), } -class DnsConfig(AWSProperty): +class HealthCheckCustomConfig(AWSProperty): props = { - "DnsRecords": ([DnsRecord], True), - "NamespaceId": (str, False), - "RoutingPolicy": (str, False), + "FailureThreshold": (double, False), } @@ -75,14 +94,5 @@ class Service(AWSObject): "Name": (str, False), "NamespaceId": (str, False), "Tags": (Tags, False), - } - - -class HttpNamespace(AWSObject): - resource_type = "AWS::ServiceDiscovery::HttpNamespace" - - props = { - "Description": (str, False), - "Name": (str, True), - "Tags": (Tags, False), + "Type": (str, False), }