listTagsForResource method
Lists the tags for a resource.
May throw BadRequestException. May throw NotFoundException. May throw LimitExceededException. May throw UnauthorizedException. May throw InternalFailureException. May throw AccessDeniedException.
Parameter resourceArn
:
The GraphqlApi
ARN.
Implementation
Future<ListTagsForResourceResponse> listTagsForResource({
required String resourceArn,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
70,
75,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
return ListTagsForResourceResponse.fromJson(response);
}