update_pull_through_cache_rule
async
¶
update_pull_through_cache_rule(
ecr_repository_prefix: PullThroughCacheRuleRepositoryPrefix,
*,
config_overrides: Optional[AsyncECRClientConfig] = None,
registry_id: Optional[RegistryId] = None,
credential_arn: Optional[CredentialArn] = None,
custom_role_arn: Optional[CustomRoleArn] = None,
) -> UpdatePullThroughCacheRuleResponse
Updates an existing pull through cache rule.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID associated with the registry associated with the pull through cache rule. If you do not specify a registry, the default registry is assumed.
-
ecr_repository_prefix(PullThroughCacheRuleRepositoryPrefix) –The repository name prefix to use when caching images from the source registry.
-
credential_arn(Optional[CredentialArn], default:None) –The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
-
custom_role_arn(Optional[CustomRoleArn], default:None) –Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR to authenticate to the ECR upstream registry. This role must be in the same account as the registry that you are configuring.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
PullThroughCacheRuleNotFoundException–The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
-
SecretNotFoundException–The ARN of the secret specified in the pull through cache rule was not found. Update the pull through cache rule with a valid secret ARN and try again.
-
ServerException–These errors are usually caused by a server-side issue.
-
UnableToAccessSecretException–The secret is unable to be accessed. Verify the resource permissions for the secret and try again.
-
UnableToDecryptSecretValueException–The secret is accessible but is unable to be decrypted. Verify the resource permisisons 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
3690 3691 3692 3693 3694 3695 3696 3697 3698 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 | |