listTagsForResource method
Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource.
Implementation
Future<ListTagsForResourceResponse> listTagsForResource({
required String resourceArn,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final response = await _protocol.sendRaw(
payload: null,
method: 'GET',
requestUri: '/v1/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return ListTagsForResourceResponse(
tagsModel: TagsModel.fromJson($json),
);
}