aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetFile`](crate::operation::get_file::builders::GetFileFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`provider(GitProvider)`](crate::operation::get_file::builders::GetFileFluentBuilder::provider) / [`set_provider(Option<GitProvider>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_provider):<br>required: **true**<br><p>The Git provider.</p><br>
    ///   - [`owner(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::owner) / [`set_owner(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_owner):<br>required: **true**<br><p>The account that the Git connection is for. The value depends on the provider:</p> <ul>  <li>   <p>For GitHub, specify the user or organization name.</p></li>  <li>   <p>For GitLab, specify the user name.</p></li> </ul> <p>To get this value, call ListGitConnections.</p><br>
    ///   - [`repository_name(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_repository_name):<br>required: **false**<br><p>The name of the repository, which is the last segment of RepositoryPath.</p><br>
    ///   - [`repository_path(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::repository_path) / [`set_repository_path(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_repository_path):<br>required: **true**<br><p>The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.</p><br>
    ///   - [`file_path(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::file_path) / [`set_file_path(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_file_path):<br>required: **true**<br><p>The path of the file, relative to the root of the repository, for example package.json.</p><br>
    ///   - [`branch(impl Into<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::branch) / [`set_branch(Option<String>)`](crate::operation::get_file::builders::GetFileFluentBuilder::set_branch):<br>required: **true**<br><p>The name of the branch to read from.</p><br>
    /// - On success, responds with [`GetFileOutput`](crate::operation::get_file::GetFileOutput) with field(s):
    ///   - [`file_path(String)`](crate::operation::get_file::GetFileOutput::file_path): <p>The path of the file that was returned.</p>
    ///   - [`content(Blob)`](crate::operation::get_file::GetFileOutput::content): <p>The contents of the file.</p>
    ///   - [`sha(String)`](crate::operation::get_file::GetFileOutput::sha): <p>The Git object ID (blob SHA) of the file's contents. It changes whenever the file's contents change.</p>
    ///   - [`size(i64)`](crate::operation::get_file::GetFileOutput::size): <p>The size of the file, in bytes.</p>
    /// - On failure, responds with [`SdkError<GetFileError>`](crate::operation::get_file::GetFileError)
    pub fn get_file(&self) -> crate::operation::get_file::builders::GetFileFluentBuilder {
        crate::operation::get_file::builders::GetFileFluentBuilder::new(self.handle.clone())
    }
}