aws_sdk_amplify/client/get_branch.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 [`GetBranch`](crate::operation::get_branch::builders::GetBranchFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`app_id(impl Into<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique ID for an Amplify app.</p><br>
7 /// - [`branch_name(impl Into<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::set_branch_name):<br>required: **true**<br><p>The name of the branch.</p><br>
8 /// - On success, responds with [`GetBranchOutput`](crate::operation::get_branch::GetBranchOutput) with field(s):
9 /// - [`branch(Option<Branch>)`](crate::operation::get_branch::GetBranchOutput::branch): <p>The branch for an Amplify app, which maps to a third-party repository branch.</p>
10 /// - On failure, responds with [`SdkError<GetBranchError>`](crate::operation::get_branch::GetBranchError)
11 pub fn get_branch(&self) -> crate::operation::get_branch::builders::GetBranchFluentBuilder {
12 crate::operation::get_branch::builders::GetBranchFluentBuilder::new(self.handle.clone())
13 }
14}