getPipeline method

Future<GetPipelineResponse> getPipeline({
  1. required String pipelineName,
})

Retrieves information about an OpenSearch Ingestion pipeline.

May throw AccessDeniedException. May throw DisabledOperationException. May throw InternalException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter pipelineName : The name of the pipeline.

Implementation

Future<GetPipelineResponse> getPipeline({
  required String pipelineName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2022-01-01/osis/getPipeline/${Uri.encodeComponent(pipelineName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPipelineResponse.fromJson(response);
}