createRepository
inline suspend fun EcrClient.createRepository(crossinline block: CreateRepositoryRequest.Builder.() -> Unit): CreateRepositoryResponse
Creates a repository. For more information, see Amazon ECR repositories in the Amazon Elastic Container Registry User Guide.
Samples
fun main() {
//sampleStart
// This example creates a repository called nginx web app inside the project a namespace in the default
// registry for an account.
val resp = ecrClient.createRepository {
repositoryName = "project-a/nginx-web-app"
}
//sampleEnd
}