update_repository_creation_template
async
¶
update_repository_creation_template(
prefix: Prefix,
*,
config_overrides: Optional[AsyncECRClientConfig] = None,
description: Optional[RepositoryTemplateDescription] = None,
encryption_configuration: Optional[
EncryptionConfigurationForRepositoryCreationTemplate
] = None,
resource_tags: Optional[TagList] = None,
image_tag_mutability: Optional[ImageTagMutability] = None,
image_tag_mutability_exclusion_filters: Optional[
ImageTagMutabilityExclusionFilters
] = None,
repository_policy: Optional[RepositoryPolicyText] = None,
lifecycle_policy: Optional[LifecyclePolicyTextForRepositoryCreationTemplate] = None,
applied_for: Optional[RCTAppliedForList] = None,
custom_role_arn: Optional[CustomRoleArn] = None,
) -> UpdateRepositoryCreationTemplateResponse
Updates an existing repository creation template.
Parameters:
-
prefix(Prefix) –The repository namespace prefix that matches an existing repository creation template in the registry. All repositories created using this namespace prefix will have the settings defined in this template applied. For example, a prefix of
prodwould apply to all repositories beginning withprod/. This includes a repository namedprod/team1as well as a repository namedprod/repository1.To apply a template to all repositories in your registry that don't have an associated creation template, you can use
ROOTas the prefix. -
description(Optional[RepositoryTemplateDescription], default:None) –A description for the repository creation template.
-
resource_tags(Optional[TagList], default:None) –The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
-
image_tag_mutability(Optional[ImageTagMutability], default:None) –Updates the tag mutability setting for the repository. If this parameter is omitted, the default setting of
MUTABLEwill be used which will allow image tags to be overwritten. IfIMMUTABLEis specified, all image tags within the repository will be immutable which will prevent them from being overwritten. -
image_tag_mutability_exclusion_filters(Optional[ImageTagMutabilityExclusionFilters], default:None) –A list of filters that specify which image tags should be excluded from the repository creation template's image tag mutability setting.
-
repository_policy(Optional[RepositoryPolicyText], default:None) –Updates the repository policy created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
-
lifecycle_policy(Optional[LifecyclePolicyTextForRepositoryCreationTemplate], default:None) –Updates the lifecycle policy associated with the specified repository creation template.
-
applied_for(Optional[RCTAppliedForList], default:None) –Updates the list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The supported scenarios are
PULL_THROUGH_CACHE,REPLICATION, andCREATE_ON_PUSH -
custom_role_arn(Optional[CustomRoleArn], default:None) –The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
ServerException–These errors are usually caused by a server-side issue.
-
TemplateNotFoundException–The specified repository creation template can't be found. Verify the registry ID and prefix and try again.
-
ValidationException–There was an exception validating this request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ecr/_services/async_ecr.py
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 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 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 | |