deleteMeteredProduct method

Future<void> deleteMeteredProduct({
  1. required String licenseEndpointId,
  2. required String productId,
})

Deletes a metered product.

May throw AccessDeniedException. May throw InternalServerErrorException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter licenseEndpointId : The ID of the license endpoint from which to remove the metered product.

Parameter productId : The product ID to remove from the license endpoint.

Implementation

Future<void> deleteMeteredProduct({
  required String licenseEndpointId,
  required String productId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2023-10-12/license-endpoints/${Uri.encodeComponent(licenseEndpointId)}/metered-products/${Uri.encodeComponent(productId)}',
    exceptionFnMap: _exceptionFns,
  );
}