enableDNSView method

Future<EnableDNSViewOutput> enableDNSView({
  1. required String dnsViewId,
})

Enables a disabled DNS view, allowing it to serve DNS queries again.

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 enable.

Implementation

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