untagResource method

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

Removes a tag from a resource.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceArn : The Amazon Resource Name (ARN) to untag.

Parameter resourceTagKeys : Keys for the tags to be removed.

Implementation

Future<void> untagResource({
  required String resourceArn,
  required List<String> resourceTagKeys,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Invoicing.UntagResource'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceArn': resourceArn,
      'ResourceTagKeys': resourceTagKeys,
    },
  );
}