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,
upstream_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. You can't use this parameter with the Amazon ECR Public Premium upstream registry.
-
custom_role_arn(Optional[CustomRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that Amazon ECR assumes to authenticate to the upstream registry. This role must be in the same account as the registry that you are configuring.
For an Amazon ECR Public Premium upstream registry, specify this role together with
upstreamRoleArn. If you specify neither role, Amazon ECR uses its service-linked role. -
upstream_role_arn(Optional[CustomRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role in the
awspartition that Amazon ECR assumes throughcustomRoleArnto authenticate to the Amazon ECR Public Premium upstream registry. You can use this parameter only for the Amazon ECR Public Premium upstream registry, and it requirescustomRoleArn. If you omit bothcustomRoleArnandupstreamRoleArn, Amazon ECR uses its service-linked role.
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
3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 | |