Skip to content

Create Repository

codeartifact_create_repository R Documentation

Creates a repository

Description

Creates a repository.

Usage

codeartifact_create_repository(domain, domainOwner, repository,
  description, upstreams, tags)

Arguments

domain

[required] The name of the domain that contains the created repository.

domainOwner

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

repository

[required] The name of the repository to create.

description

A description of the created repository.

upstreams

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

One or more tag key-value pairs for the repository.

Value

A list with the following syntax:

list(
  repository = list(
    name = "string",
    administratorAccount = "string",
    domainName = "string",
    domainOwner = "string",
    arn = "string",
    description = "string",
    upstreams = list(
      list(
        repositoryName = "string"
      )
    ),
    externalConnections = list(
      list(
        externalConnectionName = "string",
        packageFormat = "npm"|"pypi"|"maven"|"nuget"|"generic"|"ruby"|"swift"|"cargo",
        status = "Available"
      )
    ),
    createdTime = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$create_repository(
  domain = "string",
  domainOwner = "string",
  repository = "string",
  description = "string",
  upstreams = list(
    list(
      repositoryName = "string"
    )
  ),
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)