listTagsForResource method

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

Lists the tags for the specified resource.

May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource.

Implementation

Future<ListTagsForResourceResponse> listTagsForResource({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  final $payload = <String, dynamic>{
    'resourceArn': resourceArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListTagsForResource',
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForResourceResponse.fromJson(response);
}