untagResource method

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

Removes the specified tags from the specified resource.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource.

Parameter tagKeys : The tag keys to remove.

Implementation

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