listTagsForResource2018_06_18 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> listTagsForResource2018_06_18({
required String resource,
}) async {
ArgumentError.checkNotNull(resource, 'resource');
final $query = <String, List<String>>{
'Resource': [resource],
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2018-06-18/tagging',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return ListTagsForResourceResult(
tags: Tags.fromXml($elem),
);
}