<s> from libcloud . dns . types import Provider , RecordType <EOL> from libcloud . dns . providers import get_driver <EOL> from libcloud . dns . drivers . auroradns import AuroraDNSHealthCheckType <EOL> cls = get_driver ( Provider . AURORADNS ) <EOL> driver = cls ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> zone = driver . get_zone ( '<STR_LIT>' ) <EOL> health_check = driver . ex_create_healthcheck ( zone = zone , <EOL> type = AuroraDNSHealthCheckType . HTTP , <EOL> hostname = '<STR_LIT>' , <EOL> path = '<STR_LIT:/>' , <EOL> port = <NUM_LIT> , <EOL> interval = <NUM_LIT:10> , <EOL> threshold = <NUM_LIT:5> ) <EOL> record = zone . create_record ( name = '<STR_LIT>' , type = RecordType . AAAA , <EOL> data = '<STR_LIT>' , <EOL> extra = { '<STR_LIT>' : health_check . id } ) </s>
