readPipeline method

Future<ReadPipelineResponse> readPipeline({
  1. required String id,
})

The ReadPipeline operation gets detailed information about a pipeline.

May throw ValidationException. May throw IncompatibleVersionException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter id : The identifier of the pipeline to read.

Implementation

Future<ReadPipelineResponse> readPipeline({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2012-09-25/pipelines/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return ReadPipelineResponse.fromJson(response);
}