getDeploymentStatus method

Future<GetDeploymentStatusResponse> getDeploymentStatus({
  1. required String deploymentId,
  2. required String groupId,
})

Returns the status of a deployment.

May throw BadRequestException.

Parameter deploymentId : The ID of the deployment.

Parameter groupId : The ID of the Greengrass group.

Implementation

Future<GetDeploymentStatusResponse> getDeploymentStatus({
  required String deploymentId,
  required String groupId,
}) async {
  ArgumentError.checkNotNull(deploymentId, 'deploymentId');
  ArgumentError.checkNotNull(groupId, 'groupId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/greengrass/groups/${Uri.encodeComponent(groupId)}/deployments/${Uri.encodeComponent(deploymentId)}/status',
    exceptionFnMap: _exceptionFns,
  );
  return GetDeploymentStatusResponse.fromJson(response);
}