// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ValidatePullThroughCacheRule`](crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`ecr_repository_prefix(impl Into<String>)`](crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder::ecr_repository_prefix) / [`set_ecr_repository_prefix(Option<String>)`](crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder::set_ecr_repository_prefix):<br>required: **true**<br><p>The repository name prefix associated with the pull through cache rule.</p><br>
/// - [`registry_id(impl Into<String>)`](crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder::set_registry_id):<br>required: **false**<br><p>The registry ID associated with the pull through cache rule. If you do not specify a registry, the default registry is assumed.</p><br>
/// - On success, responds with [`ValidatePullThroughCacheRuleOutput`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput) with field(s):
/// - [`ecr_repository_prefix(Option<String>)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::ecr_repository_prefix): <p>The Amazon ECR repository prefix associated with the pull through cache rule.</p>
/// - [`registry_id(Option<String>)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::registry_id): <p>The registry ID associated with the request.</p>
/// - [`upstream_registry_url(Option<String>)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::upstream_registry_url): <p>The upstream registry URL associated with the pull through cache rule.</p>
/// - [`credential_arn(Option<String>)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::credential_arn): <p>The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.</p>
/// - [`is_valid(bool)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::is_valid): <p>Whether or not the pull through cache rule was validated. If <code>true</code>, Amazon ECR was able to reach the upstream registry and authentication was successful. If <code>false</code>, there was an issue and validation failed. The <code>failure</code> reason indicates the cause.</p>
/// - [`failure(Option<String>)`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleOutput::failure): <p>The reason the validation failed. For more details about possible causes and how to address them, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache.html">Using pull through cache rules</a> in the <i>Amazon Elastic Container Registry User Guide</i>.</p>
/// - On failure, responds with [`SdkError<ValidatePullThroughCacheRuleError>`](crate::operation::validate_pull_through_cache_rule::ValidatePullThroughCacheRuleError)
pub fn validate_pull_through_cache_rule(
&self,
) -> crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder {
crate::operation::validate_pull_through_cache_rule::builders::ValidatePullThroughCacheRuleFluentBuilder::new(self.handle.clone())
}
}