Amazon CodeArtifact · JSON Structure

Codeartifact Package Origin Restrictions Structure

Details about the origin restrictions set on the package. The package origin restrictions determine how new versions of a package can be added to a specific repository.

Type: object Properties: 2 Required: 2
AmazonArtifact RepositoryPackage ManagementDevOpsSoftware Supply ChainnpmMavenPyPINuGet

PackageOriginRestrictions is a JSON Structure definition published by Amazon CodeArtifact, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

publish upstream

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-package-origin-restrictions-structure.json",
  "name": "PackageOriginRestrictions",
  "description": "Details about the origin restrictions set on the package. The package origin restrictions determine how new versions of a package can be added to a specific repository.",
  "type": "object",
  "properties": {
    "publish": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AllowPublish"
        },
        {
          "description": "The package origin configuration that determines if new versions of the package can be published directly to the repository."
        }
      ]
    },
    "upstream": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AllowUpstream"
        },
        {
          "description": "The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source."
        }
      ]
    }
  },
  "required": [
    "publish",
    "upstream"
  ]
}