listTagsForResource method
List tags for a given domain.
May throw UnknownResourceFault. May throw LimitExceededFault. May throw OperationNotPermittedFault.
Parameter resourceArn
:
The Amazon Resource Name (ARN) for the Amazon SWF domain.
Implementation
Future<ListTagsForResourceOutput> listTagsForResource({
required String resourceArn,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
1,
1600,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'SimpleWorkflowService.ListTagsForResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceArn': resourceArn,
},
);
return ListTagsForResourceOutput.fromJson(jsonResponse.body);
}