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.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codeartifact/refs/heads/main/json-schema/codeartifact-package-origin-restrictions-schema.json",
"title": "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"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.