create_repository
async
¶
create_repository(
domain: DomainName,
repository: RepositoryName,
*,
config_overrides: Optional[AsynccodeartifactClientConfig] = None,
domain_owner: Optional[AccountId] = None,
description: Optional[Description] = None,
upstreams: Optional[UpstreamRepositoryList] = None,
tags: Optional[TagList] = None,
) -> CreateRepositoryResult
Creates a repository.
Parameters:
-
domain(DomainName) –The name of the domain that contains the created repository.
-
domain_owner(Optional[AccountId], default:None) –The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
-
repository(RepositoryName) –The name of the repository to create.
-
description(Optional[Description], default:None) –A description of the created repository.
-
upstreams(Optional[UpstreamRepositoryList], default:None) –A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
-
tags(Optional[TagList], default:None) –One or more tag key-value pairs for the repository.
Raises:
-
AccessDeniedException–The operation did not succeed because of an unauthorized access attempt.
-
ConflictException–The operation did not succeed because prerequisites are not met.
-
InternalServerException–The operation did not succeed because of an error that occurred inside CodeArtifact.
-
ResourceNotFoundException–The operation did not succeed because the resource requested is not found in the service.
-
ServiceQuotaExceededException–The operation did not succeed because it would have exceeded a service limit for your account.
-
ThrottlingException–The operation did not succeed because too many requests are sent to the service.
-
ValidationException–The operation did not succeed because a parameter in the request was sent with an invalid value.
-
UnknownServiceError–The service returned an error code this client does not model.