getContactReachabilityStatus method

Future<GetContactReachabilityStatusResponse> getContactReachabilityStatus({
  1. String? domainName,
})

For operations that require confirmation that the email address for the registrant contact is valid, such as registering a new domain, this operation returns information about whether the registrant contact has responded.

If you want us to resend the email, use the ResendContactReachabilityEmail operation.

May throw InvalidInput. May throw OperationLimitExceeded. May throw UnsupportedTLD.

Parameter domainName : The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid.

Implementation

Future<GetContactReachabilityStatusResponse> getContactReachabilityStatus({
  String? domainName,
}) async {
  _s.validateStringLength(
    'domainName',
    domainName,
    0,
    255,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Domains_v20140515.GetContactReachabilityStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (domainName != null) 'domainName': domainName,
    },
  );

  return GetContactReachabilityStatusResponse.fromJson(jsonResponse.body);
}