deleteApiMapping method

Future<void> deleteApiMapping({
  1. required String apiMappingId,
  2. required String domainName,
})

Deletes an API mapping.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter apiMappingId : The API mapping identifier.

Parameter domainName : The domain name.

Implementation

Future<void> deleteApiMapping({
  required String apiMappingId,
  required String domainName,
}) async {
  ArgumentError.checkNotNull(apiMappingId, 'apiMappingId');
  ArgumentError.checkNotNull(domainName, 'domainName');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/domainnames/${Uri.encodeComponent(domainName)}/apimappings/${Uri.encodeComponent(apiMappingId)}',
    exceptionFnMap: _exceptionFns,
  );
}