listTagsForResource method
List the tags for an Amazon EKS resource.
May throw BadRequestException. May throw NotFoundException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) that identifies the resource for which to
list the tags. Currently, the supported resources are Amazon EKS clusters
and managed node groups.
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);
}