getDNSView method

Future<GetDNSViewOutput> getDNSView({
  1. required String dnsViewId,
})

Retrieves information about a DNS view.

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

Parameter dnsViewId : The ID of the DNS view to retrieve information about.

Implementation

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