update_package_group_origin_configuration
¶
update_package_group_origin_configuration(
domain: DomainName,
package_group: PackageGroupPattern,
*,
config_overrides: Optional[codeartifactClientConfig] = None,
domain_owner: Optional[AccountId] = None,
restrictions: Optional[OriginRestrictions] = None,
add_allowed_repositories: Optional[PackageGroupAllowedRepositoryList] = None,
remove_allowed_repositories: Optional[PackageGroupAllowedRepositoryList] = None,
) -> UpdatePackageGroupOriginConfigurationResult
Updates the package origin configuration for a package group.
The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package group origin controls and configuration, see Package group origin controls in the CodeArtifact User Guide.
Parameters:
-
domain(DomainName) –The name of the domain which contains the package group for which to update the origin configuration.
-
domain_owner(Optional[AccountId], default:None) –The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
-
package_group(PackageGroupPattern) –The pattern of the package group for which to update the origin configuration.
-
restrictions(Optional[OriginRestrictions], default:None) –The origin configuration settings that determine how package versions can enter repositories.
-
add_allowed_repositories(Optional[PackageGroupAllowedRepositoryList], default:None) –The repository name and restrictions to add to the allowed repository list of the specified package group.
-
remove_allowed_repositories(Optional[PackageGroupAllowedRepositoryList], default:None) –The repository name and restrictions to remove from the allowed repository list of the specified package group.
Raises:
-
AccessDeniedException–The operation did not succeed because of an unauthorized access attempt.
-
InternalServerException–The operation did not succeed because of an error that occurred inside CodeArtifact.
-
ResourceNotFoundException–The operation did not succeed because the resource requested is not found in the service.
-
ServiceQuotaExceededException–The operation did not succeed because it would have exceeded a service limit for your account.
-
ThrottlingException–The operation did not succeed because too many requests are sent to the service.
-
ValidationException–The operation did not succeed because a parameter in the request was sent with an invalid value.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeartifact/_services/codeartifact.py
3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 | |