CmdID / aws / aws codeartifact
aws codeartifact update-package-versions-status
Updates the status of one or more versions of a package. AWS CLI reference
1 example 10 options Its page in the AWS CLI reference
Examples
To update package version status
The following update-package-versions-status example updates the status of version 4.0.0 of the test-package package to Archived.
aws codeartifact update-package-versions-status --domain test-domain --repository test-repo --format npm --package test-package --versions 4.0.0 --target-status ArchivedIdentify--domainThe name of the domain that contains the repository that contains the package versions with a status to be updated.--repositoryThe repository that contains the package versions with the status you want to update.--formatA format that specifies the type of the package with the statuses to update.--packageThe name of the package with the version statuses to update.--versionsAn array of strings that specify the versions of the package with the statuses to update.--target-statusThe status you want to change the package version status to.Its output
{
"successfulVersions": {
"4.0.0": {
"revision": "Ciqe5/9yicvkJT13b5/LdLpCyE6fqA7poa9qp+FilPs=",
"status": "Archived"
}
},
"failedVersions": {}
}For more information, see Update package version status in the AWS CodeArtifact User Guide.
Options
--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.--domainThe name of the domain that contains the repository that contains the package versions with a status to be updated.--expected-statusThe package version’s expected status before it is updated.--formatA format that specifies the type of the package with the statuses to update.--namespaceThe namespace of the package version to be updated.--packageThe name of the package with the version statuses to update.--repositoryThe repository that contains the package versions with the status you want to update.--target-statusThe status you want to change the package version status to.--version-revisionsA map of package versions and package version revisions.--versionsAn array of strings that specify the versions of the package with the statuses to update.