Amazon CodeArtifact · JSON Structure

Codeartifact Copy Package Versions Request Structure

CopyPackageVersionsRequest schema from Amazon CodeArtifact API

Type: object Properties: 4
AmazonArtifact RepositoryPackage ManagementDevOpsSoftware Supply ChainnpmMavenPyPINuGet

CopyPackageVersionsRequest is a JSON Structure definition published by Amazon CodeArtifact, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

versions versionRevisions allowOverwrite includeFromUpstream

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeartifact/refs/heads/main/json-structure/codeartifact-copy-package-versions-request-structure.json",
  "name": "CopyPackageVersionsRequest",
  "description": "CopyPackageVersionsRequest schema from Amazon CodeArtifact API",
  "type": "object",
  "properties": {
    "versions": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PackageVersionList"
        },
        {
          "description": "<p> The versions of the package to be copied. </p> <note> <p> You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both. </p> </note>"
        }
      ]
    },
    "versionRevisions": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PackageVersionRevisionMap"
        },
        {
          "description": "<p> A list of key-value pairs. The keys are package versions and the values are package version revisions. A <code>CopyPackageVersion</code> operation succeeds if the specified versions in the source repository match the specified package version revision. </p> <note> <p> You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both. </p> </note>"
        }
      ]
    },
    "allowOverwrite": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BooleanOptional"
        },
        {
          "description": " Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the <code>failedVersions</code> field of the response with an <code>ALREADY_EXISTS</code> error code. "
        }
      ]
    },
    "includeFromUpstream": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BooleanOptional"
        },
        {
          "description": " Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html\">Working with upstream repositories</a>. "
        }
      ]
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/codeartifact-copy-package-versions-request-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.