describePipeline method
Describes the details of a pipeline.
May throw ResourceNotFound.
Parameter pipelineName
:
The name of the pipeline to describe.
Implementation
Future<DescribePipelineResponse> describePipeline({
required String pipelineName,
}) async {
ArgumentError.checkNotNull(pipelineName, 'pipelineName');
_s.validateStringLength(
'pipelineName',
pipelineName,
1,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DescribePipeline'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PipelineName': pipelineName,
},
);
return DescribePipelineResponse.fromJson(jsonResponse.body);
}