deleteDeployment method
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
May throw BadRequestException.
May throw ConflictException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter deploymentId :
The identifier of the Deployment resource to delete.
Parameter restApiId :
The string identifier of the associated RestApi.
Implementation
Future<void> deleteDeployment({
required String deploymentId,
required String restApiId,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/deployments/${Uri.encodeComponent(deploymentId)}',
exceptionFnMap: _exceptionFns,
);
}