untagResource method

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

Removes the given tags (metadata) from the resource.

May throw InvalidRequestException. May throw InternalFailureException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter resourceArn : The ARN of the resource.

Parameter tagKeys : A list of the keys of the tags to be removed from the resource.

Implementation

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