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
4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 | |