listTagsForResource method

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

Lists the tags (metadata) you have assigned to the resource.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw ThrottlingException. May throw InternalFailureException.

Parameter resourceArn : The ARN of the resource.

Implementation

Future<ListTagsForResourceResponse> listTagsForResource({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  _s.validateStringLength(
    'resourceArn',
    resourceArn,
    1,
    2048,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    'resourceArn': [resourceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/tags',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForResourceResponse.fromJson(response);
}