{ "$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": "

The versions of the package to be copied.

You must specify versions or versionRevisions. You cannot specify both.

" } ] }, "versionRevisions": { "allOf": [ { "$ref": "#/components/schemas/PackageVersionRevisionMap" }, { "description": "

A list of key-value pairs. The keys are package versions and the values are package version revisions. A CopyPackageVersion operation succeeds if the specified versions in the source repository match the specified package version revision.

You must specify versions or versionRevisions. You cannot specify both.

" } ] }, "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 failedVersions field of the response with an ALREADY_EXISTS 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 Working with upstream repositories. " } ] } } }