update_repository_creation_template
¶
update_repository_creation_template(
prefix: Prefix,
*,
config_overrides: Optional[ECRClientConfig] = 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/ecr.py
3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 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 3798 | |