Values.ValidatePullThroughCacheRuleResponseSourceValidates an existing pull through cache rule for an upstream registry that requires authentication. This will retrieve the contents of the Amazon Web Services Secrets Manager secret, verify the syntax, and then validate that authentication to the upstream registry is successful.
type nonrec t = {ecrRepositoryPrefix : PullThroughCacheRuleRepositoryPrefix.t option;The Amazon ECR repository prefix associated with the pull through cache rule.
*)registryId : RegistryId.t option;The registry ID associated with the request.
*)upstreamRegistryUrl : Url.t option;The upstream registry URL associated with the pull through cache rule.
*)credentialArn : CredentialArn.t option;The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.
*)customRoleArn : CustomRoleArn.t option;The ARN of the IAM role associated with the pull through cache rule.
*)upstreamRepositoryPrefix : PullThroughCacheRuleRepositoryPrefix.t option;The upstream repository prefix associated with the pull through cache rule.
*)isValid : IsPTCRuleValid.t option;Whether or not the pull through cache rule was validated. If true, Amazon ECR was able to reach the upstream registry and authentication was successful. If false, there was an issue and validation failed. The failure reason indicates the cause.
*)failure : PTCValidateFailure.t option;The reason the validation failed. For more details about possible causes and how to address them, see Using pull through cache rules in the Amazon Elastic Container Registry User Guide.
*)}type nonrec error = [ | `InvalidParameterException of InvalidParameterException.t| `PullThroughCacheRuleNotFoundException of
PullThroughCacheRuleNotFoundException.t| `ServerException of ServerException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InvalidParameterException of InvalidParameterException.t
| `PullThroughCacheRuleNotFoundException of
PullThroughCacheRuleNotFoundException.t
| `ServerException of ServerException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InvalidParameterException of InvalidParameterException.t
| `PullThroughCacheRuleNotFoundException of
PullThroughCacheRuleNotFoundException.t
| `ServerException of ServerException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `Boolean of IsPTCRuleValid.t
| `String of PullThroughCacheRuleRepositoryPrefix.t ])
list ]