untagResource method

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

Removes tags from an EFS resource. You can remove tags from EFS file systems and access points using this API operation.

This operation requires permissions for the elasticfilesystem:UntagResource action.

May throw BadRequest. May throw InternalServerError. May throw FileSystemNotFound. May throw AccessPointNotFound.

Parameter resourceId : Specifies the EFS resource that you want to remove tags from.

Parameter tagKeys : The keys of the key:value tag pairs that you want to remove from the specified EFS resource.

Implementation

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