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