listTagsForResource method
Returns a list of the tags that are assigned to a specified resource.
May throw InternalServerException. May throw ValidationException. May throw ResourceNotFoundException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource that contains the tags to
return.
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);
}