aws_sdk_ecrpublic/client/create_repository.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 [`CreateRepository`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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 to use for the repository. This appears publicly in the Amazon ECR Public Gallery. The repository name can be specified on its own (for example <code>nginx-web-app</code>) or prepended with a namespace to group the repository into a category (for example <code>project-a/nginx-web-app</code>).</p><br>
7 /// - [`catalog_data(RepositoryCatalogDataInput)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::catalog_data) / [`set_catalog_data(Option<RepositoryCatalogDataInput>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_catalog_data):<br>required: **false**<br><p>The details about the repository that are publicly visible in the Amazon ECR Public Gallery.</p><br>
8 /// - [`tags(Tag)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::set_tags):<br>required: **false**<br><p>The metadata that you apply to each repository to help categorize and organize your repositories. Each tag consists of a key and an optional value. You define both of them. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.</p><br>
9 /// - On success, responds with [`CreateRepositoryOutput`](crate::operation::create_repository::CreateRepositoryOutput) with field(s):
10 /// - [`repository(Option<Repository>)`](crate::operation::create_repository::CreateRepositoryOutput::repository): <p>The repository that was created.</p>
11 /// - [`catalog_data(Option<RepositoryCatalogData>)`](crate::operation::create_repository::CreateRepositoryOutput::catalog_data): <p>The catalog data for a repository. This data is publicly visible in the Amazon ECR Public Gallery.</p>
12 /// - On failure, responds with [`SdkError<CreateRepositoryError>`](crate::operation::create_repository::CreateRepositoryError)
13 pub fn create_repository(&self) -> crate::operation::create_repository::builders::CreateRepositoryFluentBuilder {
14 crate::operation::create_repository::builders::CreateRepositoryFluentBuilder::new(self.handle.clone())
15 }
16}