listTagsForDomain method
This operation returns all of the tags that are associated with the specified domain.
All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.
May throw InvalidInput. May throw OperationLimitExceeded. May throw UnsupportedTLD.
Parameter domainName
:
The domain for which you want to get a list of tags.
Implementation
Future<ListTagsForDomainResponse> listTagsForDomain({
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.ListTagsForDomain'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DomainName': domainName,
},
);
return ListTagsForDomainResponse.fromJson(jsonResponse.body);
}