stopBulkDeployment method

Future<void> stopBulkDeployment({
  1. required String bulkDeploymentId,
})

Stops the execution of a bulk deployment. This action returns a status of ''Stopping'' until the deployment is stopped. You cannot start a new bulk deployment while a previous deployment is in the ''Stopping'' state. This action doesn't rollback completed deployments or cancel pending deployments.

May throw BadRequestException.

Parameter bulkDeploymentId : The ID of the bulk deployment.

Implementation

Future<void> stopBulkDeployment({
  required String bulkDeploymentId,
}) async {
  ArgumentError.checkNotNull(bulkDeploymentId, 'bulkDeploymentId');
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri:
        '/greengrass/bulk/deployments/${Uri.encodeComponent(bulkDeploymentId)}/%24stop',
    exceptionFnMap: _exceptionFns,
  );
}