listTagsForResource method

Future<ListTagsForResourceResponse> listTagsForResource({
  1. required String resourceArn,
})

Returns a list of the tags associated with the specified resource.

May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException.

Parameter resourceArn :

The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags.

Implementation

Future<ListTagsForResourceResponse> listTagsForResource({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/tags/${Uri.encodeComponent(resourceArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForResourceResponse.fromJson(response);
}