update_pull_through_cache_rule
¶
update_pull_through_cache_rule(
ecr_repository_prefix: PullThroughCacheRuleRepositoryPrefix,
*,
config_overrides: Optional[ECRClientConfig] = 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/ecr.py
3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 | |