1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateRepository`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`repository_name(impl Into<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_repository_name): <p>The name of the new repository to be created.</p> <note>   <p>The repository name must be unique across the calling AWS account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">Limits</a> in the <i>AWS CodeCommit User Guide</i>. The suffix .git is prohibited.</p>  </note>
    ///   - [`repository_description(impl Into<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::repository_description) / [`set_repository_description(Option<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_repository_description): <p>A comment or description about the new repository.</p> <note>   <p>The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.</p>  </note>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_tags): <p>One or more tag key-value pairs to use when tagging this repository.</p>
    /// - On success, responds with [`CreateRepositoryOutput`](crate::operation::create_repository::CreateRepositoryOutput) with field(s):
    ///   - [`repository_metadata(Option<RepositoryMetadata>)`](crate::operation::create_repository::CreateRepositoryOutput::repository_metadata): <p>Information about the newly created repository.</p>
    /// - On failure, responds with [`SdkError<CreateRepositoryError>`](crate::operation::create_repository::CreateRepositoryError)
    pub fn create_repository(&self) -> crate::operation::create_repository::builders::CreateRepositoryFluentBuilder {
        crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::new(self.handle.clone())
    }
}