put_image_tag_mutability
async
¶
put_image_tag_mutability(
repository_name: RepositoryName,
image_tag_mutability: ImageTagMutability,
*,
config_overrides: Optional[AsyncECRClientConfig] = None,
registry_id: Optional[RegistryId] = None,
image_tag_mutability_exclusion_filters: Optional[
ImageTagMutabilityExclusionFilters
] = None,
) -> PutImageTagMutabilityResponse
Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutability in the Amazon Elastic Container Registry User Guide.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID associated with the registry that contains the repository in which to update the image tag mutability settings. If you do not specify a registry, the default registry is assumed.
-
repository_name(RepositoryName) –The name of the repository in which to update the image tag mutability settings.
-
image_tag_mutability(ImageTagMutability) –The tag mutability setting for the repository. If
MUTABLEis specified, image tags can 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 image tag mutability setting being applied.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
RepositoryNotFoundException–The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.
-
ServerException–These errors are usually caused by a server-side issue.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ecr/_services/async_ecr.py
3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 | |