listTagsForResource method
Returns the list of tags for the specified resource.
May throw ServiceException. May throw InvalidParameterException. May throw ResourceNotFoundException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource whose tags you want to
retrieve.
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);
}