listTagsForResource method
Return the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.
Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging Application Resources.
May throw InsufficientPrivilegesException. May throw ResourceNotFoundException. May throw ResourceTypeNotSupportedException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resouce for which a tag list is
requested.
Must be the ARN of an Elastic Beanstalk resource.
Implementation
Future<ResourceTagsDescriptionMessage> listTagsForResource({
required String resourceArn,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final $request = <String, dynamic>{};
$request['ResourceArn'] = resourceArn;
final $result = await _protocol.send(
$request,
action: 'ListTagsForResource',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ListTagsForResourceMessage'],
shapes: shapes,
resultWrapper: 'ListTagsForResourceResult',
);
return ResourceTagsDescriptionMessage.fromXml($result);
}