untagResource method

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

Removes tags from a function.

May throw ServiceException. May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw TooManyRequestsException. May throw ResourceConflictException.

Parameter resource : The function's Amazon Resource Name (ARN).

Parameter tagKeys : A list of tag keys to remove from the function.

Implementation

Future<void> untagResource({
  required String resource,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resource, 'resource');
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $query = <String, List<String>>{
    'tagKeys': tagKeys,
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2017-03-31/tags/${Uri.encodeComponent(resource)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}