moto/tests/test_cloudformation/fixtures/route53_health_check.py

40 lines
1.1 KiB
Python
Raw Normal View History

2015-01-18 00:06:43 +00:00
from __future__ import unicode_literals
template = {
2017-02-24 02:37:43 +00:00
"Resources": {
2015-01-18 00:06:43 +00:00
"HostedZone": {
2017-02-24 02:37:43 +00:00
"Type": "AWS::Route53::HostedZone",
"Properties": {
"Name": "my_zone"
2015-01-18 00:06:43 +00:00
}
},
"my_health_check": {
"Type": "AWS::Route53::HealthCheck",
2017-02-24 02:37:43 +00:00
"Properties": {
"HealthCheckConfig": {
"FailureThreshold": 3,
"IPAddress": "10.0.0.4",
"Port": 80,
"RequestInterval": 10,
"ResourcePath": "/",
"Type": "HTTP",
2015-01-18 00:06:43 +00:00
}
}
},
2017-02-24 02:37:43 +00:00
"myDNSRecord": {
"Type": "AWS::Route53::RecordSet",
"Properties": {
"HostedZoneName": {"Ref": "HostedZone"},
"Comment": "DNS name for my instance.",
"Name": "my_record_set",
"Type": "A",
"TTL": "900",
"ResourceRecords": ["my.example.com"],
"HealthCheckId": {"Ref": "my_health_check"},
}
2015-01-18 00:06:43 +00:00
}
},
2017-02-24 02:37:43 +00:00
}