getHostedZone method
Gets information about a specified hosted zone including the four name servers assigned to the hosted zone.
May throw NoSuchHostedZone. May throw InvalidInput.
Parameter id
:
The ID of the hosted zone that you want to get information about.
Implementation
Future<GetHostedZoneResponse> getHostedZone({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
0,
32,
isRequired: true,
);
final $result = await _protocol.send(
method: 'GET',
requestUri: '/2013-04-01/hostedzone/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
return GetHostedZoneResponse.fromXml($result.body);
}