untagResource method

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

Removes tags from S3 Files resources.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter resourceId : The ID or Amazon Resource Name (ARN) of the resource to remove tags from.

Parameter tagKeys : An array of tag keys to remove from the resource.

Implementation

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