getTags method
Gets the Tags collection for a given resource.
May throw BadRequestException. May throw UnauthorizedException. May throw TooManyRequestsException. May throw NotFoundException. May throw LimitExceededException.
Parameter resourceArn
:
Required
The ARN of a resource that can be tagged.
Parameter limit
:
(Not currently supported) The maximum number of returned results per page.
The default value is 25 and the maximum value is 500.
Parameter position
:
(Not currently supported) The current pagination position in the paged
result set.
Implementation
Future<Tags> getTags({
required String resourceArn,
int? limit,
String? position,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final $query = <String, List<String>>{
if (limit != null) 'limit': [limit.toString()],
if (position != null) 'position': [position],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return Tags.fromJson(response);
}