listTagsForResource2019_03_26 method
List tags for a CloudFront resource.
May throw AccessDenied. May throw InvalidArgument. May throw InvalidTagging. May throw NoSuchResource.
Parameter resource
:
An ARN of a CloudFront resource.
Implementation
Future<ListTagsForResourceResult> listTagsForResource2019_03_26({
required String resource,
}) async {
ArgumentError.checkNotNull(resource, 'resource');
final $query = <String, List<String>>{
'Resource': [resource],
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2019-03-26/tagging',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return ListTagsForResourceResult(
tags: Tags.fromXml($elem),
);
}