disableDNSView method

Future<DisableDNSViewOutput> disableDNSView({
  1. required String dnsViewId,
})

Disables a DNS view, preventing it from serving DNS queries.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter dnsViewId : The unique identifier of the DNS view to disable.

Implementation

Future<DisableDNSViewOutput> disableDNSView({
  required String dnsViewId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'PATCH',
    requestUri: '/dns-views/${Uri.encodeComponent(dnsViewId)}/disable',
    exceptionFnMap: _exceptionFns,
  );
  return DisableDNSViewOutput.fromJson(response);
}