untagResource method

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

Removes a tag or tags from a resource.

May throw AccessDeniedException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource that you want to untag.

Parameter tagKeys : The keys of the key-value pairs for the resource tag or tags assigned to the resource.

Implementation

Future<UntagResourceResponse> untagResource({
  required String resourceArn,
  required List<String> tagKeys,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  ArgumentError.checkNotNull(tagKeys, 'tagKeys');
  final $query = <String, List<String>>{
    'keys': tagKeys,
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/resources/${Uri.encodeComponent(resourceArn)}/tags',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return UntagResourceResponse.fromJson(response);
}