listTagsForResource method
Retrieves the list of key-value tags assigned to the application. For more information, see Using Tagging.
May throw ResourceNotFoundException. May throw InvalidArgumentException. May throw ConcurrentModificationException.
Parameter resourceARN
:
The ARN of the application for which to retrieve tags.
Implementation
Future<ListTagsForResourceResponse> listTagsForResource({
required String resourceARN,
}) async {
ArgumentError.checkNotNull(resourceARN, 'resourceARN');
_s.validateStringLength(
'resourceARN',
resourceARN,
1,
2048,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'KinesisAnalytics_20180523.ListTagsForResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
},
);
return ListTagsForResourceResponse.fromJson(jsonResponse.body);
}