untagResource method

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

Removes a set of key-value pairs from a recovery point, backup plan, or backup vault identified by an Amazon Resource Name (ARN)

May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ServiceUnavailableException.

Parameter resourceArn : An ARN that uniquely identifies a resource. The format of the ARN depends on the type of the tagged resource.

Parameter tagKeyList : A list of keys to identify which key-value tags to remove from a resource.

Implementation

Future<void> untagResource({
  required String resourceArn,
  required List<String> tagKeyList,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  ArgumentError.checkNotNull(tagKeyList, 'tagKeyList');
  final $payload = <String, dynamic>{
    'TagKeyList': tagKeyList,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/untag/${Uri.encodeComponent(resourceArn)}',
    exceptionFnMap: _exceptionFns,
  );
}