1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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):<br>required: **true**<br><p>The name of the new repository to be created.</p><note>  <p>The repository name must be unique across the calling Amazon Web Services 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">Quotas</a> in the <i>CodeCommit User Guide</i>. The suffix .git is prohibited.</p> </note><br>
    ///   - [`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):<br>required: **false**<br><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><br>
    ///   - [`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):<br>required: **false**<br><p>One or more tag key-value pairs to use when tagging this repository.</p><br>
    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see <a href="https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p> <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p><br>
    /// - 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())
    }
}