{ "$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" ] }