getDomainDetail method
This operation returns detailed information about a specified domain that is associated with the current AWS account. Contact information for the domain is also returned as part of the output.
May throw InvalidInput. May throw UnsupportedTLD.
Parameter domainName
:
The name of the domain that you want to get detailed information about.
Implementation
Future<GetDomainDetailResponse> getDomainDetail({
required String domainName,
}) async {
ArgumentError.checkNotNull(domainName, 'domainName');
_s.validateStringLength(
'domainName',
domainName,
0,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Domains_v20140515.GetDomainDetail'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DomainName': domainName,
},
);
return GetDomainDetailResponse.fromJson(jsonResponse.body);
}