listTagsForResource method
Returns a list of tags associated with a resource.
May throw InternalException. May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter resourceArn
:
The ARN of the resource to retrieve tags for.
Implementation
Future<ListTagsForResourceResponse> listTagsForResource({
required String resourceArn,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
return ListTagsForResourceResponse.fromJson(response);
}