aws_sdk_ecr/client/
delete_pull_through_cache_rule.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeletePullThroughCacheRule`](crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`ecr_repository_prefix(impl Into<String>)`](crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder::ecr_repository_prefix) / [`set_ecr_repository_prefix(Option<String>)`](crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder::set_ecr_repository_prefix):<br>required: **true**<br><p>The Amazon ECR repository prefix associated with the pull through cache rule to delete.</p><br>
7    ///   - [`registry_id(impl Into<String>)`](crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the pull through cache rule. If you do not specify a registry, the default registry is assumed.</p><br>
8    /// - On success, responds with [`DeletePullThroughCacheRuleOutput`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput) with field(s):
9    ///   - [`ecr_repository_prefix(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::ecr_repository_prefix): <p>The Amazon ECR repository prefix associated with the request.</p>
10    ///   - [`upstream_registry_url(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::upstream_registry_url): <p>The upstream registry URL associated with the pull through cache rule.</p>
11    ///   - [`created_at(Option<DateTime>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::created_at): <p>The timestamp associated with the pull through cache rule.</p>
12    ///   - [`registry_id(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::registry_id): <p>The registry ID associated with the request.</p>
13    ///   - [`credential_arn(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::credential_arn): <p>The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through cache rule.</p>
14    ///   - [`custom_role_arn(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::custom_role_arn): <p>The ARN of the IAM role associated with the pull through cache rule.</p>
15    ///   - [`upstream_repository_prefix(Option<String>)`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleOutput::upstream_repository_prefix): <p>The upstream repository prefix associated with the pull through cache rule.</p>
16    /// - On failure, responds with [`SdkError<DeletePullThroughCacheRuleError>`](crate::operation::delete_pull_through_cache_rule::DeletePullThroughCacheRuleError)
17    pub fn delete_pull_through_cache_rule(
18        &self,
19    ) -> crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder {
20        crate::operation::delete_pull_through_cache_rule::builders::DeletePullThroughCacheRuleFluentBuilder::new(self.handle.clone())
21    }
22}