deleteBasePathMapping method

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

Deletes the BasePathMapping resource.

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

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

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

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

Parameter domainNameId : The identifier for the domain name resource. Supported only for private custom domain names.

Implementation

Future<void> deleteBasePathMapping({
  required String basePath,
  required String domainName,
  String? domainNameId,
}) async {
  final $query = <String, List<String>>{
    if (domainNameId != null) 'domainNameId': [domainNameId],
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/domainnames/${Uri.encodeComponent(domainName)}/basepathmappings/${Uri.encodeComponent(basePath)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}