aws_sdk_codecommit/client/get_commit.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 [`GetCommit`](crate::operation::get_commit::builders::GetCommitFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`repository_name(impl Into<String>)`](crate::operation::get_commit::builders::GetCommitFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_commit::builders::GetCommitFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository to which the commit was made.</p><br>
7 /// - [`commit_id(impl Into<String>)`](crate::operation::get_commit::builders::GetCommitFluentBuilder::commit_id) / [`set_commit_id(Option<String>)`](crate::operation::get_commit::builders::GetCommitFluentBuilder::set_commit_id):<br>required: **true**<br><p>The commit ID. Commit IDs are the full SHA ID of the commit.</p><br>
8 /// - On success, responds with [`GetCommitOutput`](crate::operation::get_commit::GetCommitOutput) with field(s):
9 /// - [`commit(Option<Commit>)`](crate::operation::get_commit::GetCommitOutput::commit): <p>A commit data type object that contains information about the specified commit.</p>
10 /// - On failure, responds with [`SdkError<GetCommitError>`](crate::operation::get_commit::GetCommitError)
11 pub fn get_commit(&self) -> crate::operation::get_commit::builders::GetCommitFluentBuilder {
12 crate::operation::get_commit::builders::GetCommitFluentBuilder::new(self.handle.clone())
13 }
14}