Skip to content

Commit

Permalink
Update ServiceDiscovery per 2021-03-18 changes and re-gen file
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Apr 24, 2021
1 parent 18095d6 commit 5de0403
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions troposphere/servicediscovery.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Copyright (c) 2012-2017, Mark Peek <[email protected]>
# Copyright (c) 2012-2021, Mark Peek <[email protected]>
# 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):
Expand Down Expand Up @@ -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),
}


Expand All @@ -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),
}

0 comments on commit 5de0403

Please sign in to comment.