-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ServiceDiscovery per 2021-03-18 changes and re-gen file
- Loading branch information
Showing
1 changed file
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): | ||
|
@@ -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), | ||
} |