untagResource method

Future<void> untagResource({
  1. required String resourceArn,
  2. required List<String> tagKeys,
})

Remove a tag from a Amazon SWF domain.

May throw LimitExceededFault. May throw OperationNotPermittedFault. May throw UnknownResourceFault.

Parameter resourceArn : The Amazon Resource Name (ARN) for the Amazon SWF domain.

Parameter tagKeys : The list of tags to remove from the Amazon SWF domain.

Implementation

Future<void> untagResource({
  required String resourceArn,
  required List<String> tagKeys,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'SimpleWorkflowService.UntagResource'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'resourceArn': resourceArn,
      'tagKeys': tagKeys,
    },
  );
}