disassociateDelegationSignerFromDomain method

Future<DisassociateDelegationSignerFromDomainResponse> disassociateDelegationSignerFromDomain({
  1. required String domainName,
  2. required String id,
})

Deletes a delegation signer (DS) record in the registry zone for this domain name.

May throw DuplicateRequest. May throw InvalidInput. May throw OperationLimitExceeded. May throw TLDRulesViolation. May throw UnsupportedTLD.

Parameter domainName : Name of the domain.

Parameter id : An internal identification number assigned to each DS record after it’s created. You can retrieve it as part of DNSSEC information returned by GetDomainDetail.

Implementation

Future<DisassociateDelegationSignerFromDomainResponse>
    disassociateDelegationSignerFromDomain({
  required String domainName,
  required String id,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'Route53Domains_v20140515.DisassociateDelegationSignerFromDomain'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DomainName': domainName,
      'Id': id,
    },
  );

  return DisassociateDelegationSignerFromDomainResponse.fromJson(
      jsonResponse.body);
}