deleteBasePathMapping method

Future<void> deleteBasePathMapping({
  1. required String basePath,
  2. required String domainName,
})

Deletes the BasePathMapping resource.

May throw UnauthorizedException. May throw NotFoundException. May throw ConflictException. May throw BadRequestException. May throw TooManyRequestsException.

Parameter basePath : Required The base path name of the BasePathMapping resource to delete.

To specify an empty base path, set this parameter to '(none)'.

Parameter domainName : Required The domain name of the BasePathMapping resource to delete.

Implementation

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