updatePipeline method
Updates a specified pipeline with edits or changes to its structure. Use a
JSON file with the pipeline structure and UpdatePipeline
to
provide the full structure of the pipeline. Updating the pipeline
increases the version number of the pipeline by 1.
May throw ValidationException. May throw InvalidStageDeclarationException. May throw InvalidActionDeclarationException. May throw InvalidBlockerDeclarationException. May throw InvalidStructureException. May throw LimitExceededException.
Parameter pipeline
:
The name of the pipeline to be updated.
Implementation
Future<UpdatePipelineOutput> updatePipeline({
required PipelineDeclaration pipeline,
}) async {
ArgumentError.checkNotNull(pipeline, 'pipeline');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodePipeline_20150709.UpdatePipeline'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'pipeline': pipeline,
},
);
return UpdatePipelineOutput.fromJson(jsonResponse.body);
}