updatePipelineExecution method

Future<UpdatePipelineExecutionResponse> updatePipelineExecution({
  1. required String pipelineExecutionArn,
  2. ParallelismConfiguration? parallelismConfiguration,
  3. String? pipelineExecutionDescription,
  4. String? pipelineExecutionDisplayName,
})

Updates a pipeline execution.

May throw ConflictException. May throw ResourceNotFound.

Parameter pipelineExecutionArn : The Amazon Resource Name (ARN) of the pipeline execution.

Parameter parallelismConfiguration : This configuration, if specified, overrides the parallelism configuration of the parent pipeline for this specific run.

Parameter pipelineExecutionDescription : The description of the pipeline execution.

Parameter pipelineExecutionDisplayName : The display name of the pipeline execution.

Implementation

Future<UpdatePipelineExecutionResponse> updatePipelineExecution({
  required String pipelineExecutionArn,
  ParallelismConfiguration? parallelismConfiguration,
  String? pipelineExecutionDescription,
  String? pipelineExecutionDisplayName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.UpdatePipelineExecution'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'PipelineExecutionArn': pipelineExecutionArn,
      if (parallelismConfiguration != null)
        'ParallelismConfiguration': parallelismConfiguration,
      if (pipelineExecutionDescription != null)
        'PipelineExecutionDescription': pipelineExecutionDescription,
      if (pipelineExecutionDisplayName != null)
        'PipelineExecutionDisplayName': pipelineExecutionDisplayName,
    },
  );

  return UpdatePipelineExecutionResponse.fromJson(jsonResponse.body);
}