listTagsForResource method
Returns a list of the tags assigned to the specified applied quota.
May throw TooManyRequestsException. May throw NoSuchResourceException. May throw IllegalArgumentException. May throw AccessDeniedException. May throw ServiceException.
Parameter resourceARN
:
The Amazon Resource Name (ARN) for the applied quota for which you want to
list tags. You can get this information by using the Service Quotas
console, or by listing the quotas using the list-service-quotas
AWS CLI command or the ListServiceQuotas
AWS API operation.
Implementation
Future<ListTagsForResourceResponse> listTagsForResource({
required String resourceARN,
}) async {
ArgumentError.checkNotNull(resourceARN, 'resourceARN');
_s.validateStringLength(
'resourceARN',
resourceARN,
1,
1011,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ServiceQuotasV20190624.ListTagsForResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
},
);
return ListTagsForResourceResponse.fromJson(jsonResponse.body);
}