deleteHypervisor method

Future<DeleteHypervisorOutput> deleteHypervisor({
  1. required String hypervisorArn,
})

Deletes a hypervisor.

May throw AccessDeniedException. May throw ConflictException. May throw ResourceNotFoundException.

Parameter hypervisorArn : The Amazon Resource Name (ARN) of the hypervisor to delete.

Implementation

Future<DeleteHypervisorOutput> deleteHypervisor({
  required String hypervisorArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'BackupOnPremises_v20210101.DeleteHypervisor'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'HypervisorArn': hypervisorArn,
    },
  );

  return DeleteHypervisorOutput.fromJson(jsonResponse.body);
}