Module Values.ValidatePullThroughCacheRuleResponseSource

Validates 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.

Sourcetype nonrec t = {
  1. ecrRepositoryPrefix : PullThroughCacheRuleRepositoryPrefix.t option;
    (*

    The Amazon ECR repository prefix associated with the pull through cache rule.

    *)
  2. registryId : RegistryId.t option;
    (*

    The registry ID associated with the request.

    *)
  3. upstreamRegistryUrl : Url.t option;
    (*

    The upstream registry URL associated with the pull through cache rule.

    *)
  4. credentialArn : CredentialArn.t option;
    (*

    The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.

    *)
  5. customRoleArn : CustomRoleArn.t option;
    (*

    The ARN of the IAM role associated with the pull through cache rule.

    *)
  6. upstreamRepositoryPrefix : PullThroughCacheRuleRepositoryPrefix.t option;
    (*

    The upstream repository prefix associated with the pull through cache rule.

    *)
  7. 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.

    *)
  8. 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.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterException of InvalidParameterException.t
  2. | `PullThroughCacheRuleNotFoundException of PullThroughCacheRuleNotFoundException.t
  3. | `ServerException of ServerException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?ecrRepositoryPrefix:??? -> ?registryId:??? -> ?upstreamRegistryUrl:??? -> ?credentialArn:??? -> ?customRoleArn:??? -> ?upstreamRepositoryPrefix:??? -> ?isValid:??? -> ?failure:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of IsPTCRuleValid.t | `String of PullThroughCacheRuleRepositoryPrefix.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t