update_package_group_origin_configuration
async
¶
update_package_group_origin_configuration(
domain: DomainName,
package_group: PackageGroupPattern,
*,
config_overrides: Optional[AsynccodeartifactClientConfig] = 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/async_codeartifact.py
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 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 | |