aws_sdk_codepipeline/client/get_pipeline.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetPipeline`](crate::operation::get_pipeline::builders::GetPipelineFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_pipeline::builders::GetPipelineFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_pipeline::builders::GetPipelineFluentBuilder::set_name):<br>required: **true**<br><p>The name of the pipeline for which you want to get information. Pipeline names must be unique in an Amazon Web Services account.</p><br>
7 /// - [`version(i32)`](crate::operation::get_pipeline::builders::GetPipelineFluentBuilder::version) / [`set_version(Option<i32>)`](crate::operation::get_pipeline::builders::GetPipelineFluentBuilder::set_version):<br>required: **false**<br><p>The version number of the pipeline. If you do not specify a version, defaults to the current version.</p><br>
8 /// - On success, responds with [`GetPipelineOutput`](crate::operation::get_pipeline::GetPipelineOutput) with field(s):
9 /// - [`pipeline(Option<PipelineDeclaration>)`](crate::operation::get_pipeline::GetPipelineOutput::pipeline): <p>Represents the structure of actions and stages to be performed in the pipeline.</p>
10 /// - [`metadata(Option<PipelineMetadata>)`](crate::operation::get_pipeline::GetPipelineOutput::metadata): <p>Represents the pipeline metadata information returned as part of the output of a <code>GetPipeline</code> action.</p>
11 /// - On failure, responds with [`SdkError<GetPipelineError>`](crate::operation::get_pipeline::GetPipelineError)
12 pub fn get_pipeline(&self) -> crate::operation::get_pipeline::builders::GetPipelineFluentBuilder {
13 crate::operation::get_pipeline::builders::GetPipelineFluentBuilder::new(self.handle.clone())
14 }
15}