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
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 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 | |