Skip to content

Associate External Connection

codeartifact_associate_external_connection R Documentation

Adds an existing external connection to a repository

Description

Adds an existing external connection to a repository. One external connection is allowed per repository.

A repository can have one or more upstream repositories, or an external connection.

Usage

codeartifact_associate_external_connection(domain, domainOwner,
  repository, externalConnection)

Arguments

domain

[required] The name of the domain that contains the 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 which the external connection is added.

externalConnection

[required] The name of the external connection to add to the repository. The following values are supported:

  • public:npmjs - for the npm public repository.

  • public:nuget-org - for the NuGet Gallery.

  • public:pypi - for the Python Package Index.

  • public:maven-central - for Maven Central.

  • public:maven-googleandroid - for the Google Android repository.

  • public:maven-gradleplugins - for the Gradle plugins repository.

  • public:maven-commonsware - for the CommonsWare Android repository.

  • public:maven-clojars - for the Clojars repository.

  • public:ruby-gems-org - for RubyGems.org.

  • public:crates-io - for Crates.io.

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$associate_external_connection(
  domain = "string",
  domainOwner = "string",
  repository = "string",
  externalConnection = "string"
)