probeRoute 53

get_dns_answer

Get the DNS response for the specified record name & type

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosaws.route53.probes
Nameget_dns_answer
Returnmapping

Usage

JSON

{
  "name": "get-dns-answer",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.route53.probes",
    "func": "get_dns_answer",
    "arguments": {
      "zone_id": "",
      "record_name": "",
      "record_type": ""
    }
  }
}

YAML

name: get-dns-answer
provider:
  arguments:
    record_name: ""
    record_type: ""
    zone_id: ""
  func: get_dns_answer
  module: chaosaws.route53.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
zone_idstringYesZone IDRoute53 zone
record_namestringYesRecord Name
record_typestringYesRecord Type

Signature

def get_dns_answer(
        zone_id: str,
        record_name: str,
        record_type: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass